﻿/* Fireworks Canvas Styling for Lunar New Year */
#fireworks-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    background: transparent;
}

#fireworks-close-btn {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 11px;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: none;
    font-family: Arial, sans-serif;
    opacity: 0.5;
}

#fireworks-close-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.9);
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.5);
}

#fireworks-close-btn:active {
    transform: scale(0.95);
}


#fireworks-container {
    display: none;
}

#fireworks-container.active {
    display: block !important;
}

/* Lunar New Year Message */
#lunar-message {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    text-align: center;
    pointer-events: none;
    animation: fadeInScale 2s ease-out;
    transition: opacity 0.5s ease-out;
}

#lunar-message.hidden {
    opacity: 0;
    pointer-events: none;
}

#lunar-message .happy-text {
    font-size: 56px;
    font-weight: 900;
    margin: 0 0 10px 0;
    color: #ffd700;
    text-shadow:
        0 0 20px rgba(255, 215, 0, 1),
        0 0 40px rgba(255, 215, 0, 0.8),
        3px 3px 8px rgba(0, 0, 0, 0.8);
    font-family: 'Arial Black', Arial, sans-serif;
    letter-spacing: 6px;
    text-transform: uppercase;
    animation: pulse 2s ease-in-out infinite, glow 2s ease-in-out infinite;
    display: block;
    text-align: center;
    width: 100%;
}

#lunar-message h1 {
    font-size: 84px;
    font-weight: 900;
    margin: 0;
    line-height: 1;
    background: linear-gradient(45deg, #ff0000, #ffd700, #ff6b00, #ffd700, #ff0000);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
    animation: gradientShift 4s ease infinite, glow 2s ease-in-out infinite;
    font-family: 'Arial Black', Arial, sans-serif;
    letter-spacing: 4px;
    text-transform: uppercase;
    filter: drop-shadow(0 5px 15px rgba(255, 0, 0, 0.5));
}

#lunar-message .year {
    font-size: 56px;
    font-weight: 900;
    color: #ffd700;
    text-shadow:
        0 0 15px rgba(255, 215, 0, 1),
        0 0 30px rgba(255, 215, 0, 0.8),
        0 0 45px rgba(255, 215, 0, 0.6),
        3px 3px 8px rgba(0, 0, 0, 0.8),
        -2px -2px 8px rgba(255, 100, 0, 0.5);
    animation: pulse 2s ease-in-out infinite, glow 2s ease-in-out infinite;
    display: block;
    margin: 15px 0;
    letter-spacing: 8px;
}

#lunar-message .blessing {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    text-shadow:
        0 0 20px rgba(255, 255, 255, 1),
        0 0 40px rgba(255, 215, 0, 0.6),
        3px 3px 8px rgba(0, 0, 0, 0.9);
    margin-top: 10px;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #ffffff, #fffacd, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: float 3s ease-in-out infinite, shimmer 3s ease infinite;
}

#lunar-message .emoji {
    font-size: 48px;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
    filter: drop-shadow(0 10px 20px rgba(255, 0, 0, 0.5));
    animation: bounce 2s ease-in-out infinite, fadeOutEmoji 3s ease-out forwards;
}

@keyframes fadeOutEmoji {
    0%, 85% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* Enhanced Animations */
@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* Animations */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.9));
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(-10deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(10deg);
    }
}

@media (max-width: 768px) {
    #lunar-message {
        bottom: 50px;
    }

    #lunar-message .happy-text {
        font-size: 36px;
        letter-spacing: 3px;
        margin-bottom: 8px;
    }

    #lunar-message h1 {
        font-size: 48px;
        letter-spacing: 2px;
    }

    #lunar-message .year {
        font-size: 38px;
        letter-spacing: 4px;
    }

    #lunar-message .blessing {
        font-size: 20px;
        letter-spacing: 1px;
    }

    #lunar-message .emoji {
        font-size: 32px;
        margin-right: 8px;
    }

    #fireworks-close-btn {
        bottom: 20px;
        padding: 10px 25px;
        font-size: 14px;
    }
}
