* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96cecf);
    background-size: 400%;
    animation: colorFade 24s ease infinite;
}

@keyframes colorFade {
    0%, 32.083% { background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96cecf); } /* Day: 0s-7.7s (07:50-16:50) */
    44.583% { background: linear-gradient(45deg, #2c3e50, #34495e, #4834d4, #686de0); } /* Night: 10.7s (19:50) */
    81.25% { background: linear-gradient(45deg, #2c3e50, #34495e, #4834d4, #686de0); } /* Night until 19.5s (04:50) */
    100% { background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96cecf); } /* Back to day: 24s (07:50) */
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.holiday-text {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Arial', sans-serif;
    font-size: 4rem;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: textPop 1.5s ease-out forwards, glow 3s ease-in-out infinite;
    transition: opacity 0.5s ease;
    text-align: center;
    white-space: nowrap;
    max-width: 90vw;
    z-index: 3;
}

@keyframes textPop {
    0% { transform: translateX(-50%) scale(0.5); opacity: 0; }
    70% { transform: translateX(-50%) scale(1.1); opacity: 1; }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

@keyframes glow {
    0%, 100% { text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 107, 107, 0.7); }
    50% { text-shadow: 2px 2px 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(78, 205, 196, 0.9); }
}

.sun {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #ffeb3b 40%, #ff9800 70%);
    border-radius: 50%;
    animation: moveSun 24s linear infinite, pulse 4s ease-in-out infinite;
    left: -100px;
    z-index: 2;
}

@keyframes moveSun {
    0% { left: -100px; top: 20%; opacity: 1; } /* Sunrise: 0s (07:50) */
    16.0415% { left: 50%; top: 5%; opacity: 1; } /* Midday: 3.85s (~12:20) */
    32.083% { left: 100%; top: 20%; opacity: 0; } /* Sunset: 7.7s (16:50) */
    100% { left: 100%; top: 20%; opacity: 0; } /* Stay off-screen */
}

.moon {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #ecf0f1 40%, #b2bec3 70%);
    border-radius: 50%;
    animation: moveMoon 24s linear infinite;
    left: -100px;
    opacity: 0;
    z-index: 2;
}

@keyframes moveMoon {
    0%, 32.083% { left: -100px; top: 20%; opacity: 0; } /* Off-screen until 7.7s (16:50) */
    44.583% { left: 50%; top: 5%; opacity: 1; } /* Midnight: 10.7s (19:50) */
    81.25% { left: 100%; top: 20%; opacity: 0; } /* Moonset: 19.5s (04:50) */
    100% { left: 100%; top: 20%; opacity: 0; }
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    z-index: 1;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: twinkle 2s ease-in-out infinite, starFade 24s ease infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes starFade {
    0%, 32.083% { opacity: 0; } /* Hidden during day: 0s-7.7s (07:50-16:50) */
    44.583% { opacity: 0.4; } /* Fully visible at night: 10.7s (19:50) */
    81.25% { opacity: 0.4; } /* Stay visible until 19.5s (04:50) */
    100% { opacity: 0; } /* Hidden by 24s (07:50) */
}

.sea {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(180deg, #2196f3, #4ecdc4);
    animation: seaFade 24s ease infinite;
}

@keyframes seaFade {
    0%, 32.083% { background: linear-gradient(180deg, #2196f3, #4ecdc4); } /* Day: 0s-7.7s (07:50-16:50) */
    44.583% { background: linear-gradient(180deg, #2c3e50, #34495e); } /* Night: 10.7s (19:50) */
    81.25% { background: linear-gradient(180deg, #2c3e50, #34495e); } /* Night until 19.5s (04:50) */
    100% { background: linear-gradient(180deg, #2196f3, #4ecdc4); } /* Back to day: 24s (07:50) */
}

.wave {
    position: absolute;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: waveMove 3s linear infinite;
}

.wave1 { animation-delay: 0s; }
.wave2 { animation-delay: 1s; }
.wave3 { animation-delay: 2s; }

@keyframes waveMove {
    0% { transform: translateY(0) scale(1); opacity: 0.8; }
    50% { opacity: 0.4; }
    100% { transform: translateY(-150px) scale(1.5); opacity: 0; }
}

.palm-tree {
    position: absolute;
    bottom: 40%;
    width: 80px;
    height: 250px;
}

.palm-tree.left { left: 5%; }
.palm-tree.right { right: 5%; }

.trunk {
    position: absolute;
    bottom: 0;
    width: 15px;
    height: 150px;
    background: linear-gradient(90deg, #8d5524, #c19a6b);
    left: 50%;
    transform: translateX(-50%) rotate(5deg);
    animation: swayTrunk 6s ease-in-out infinite;
}

@keyframes swayTrunk {
    0%, 100% { transform: translateX(-50%) rotate(5deg); }
    50% { transform: translateX(-50%) rotate(-5deg); }
}

.leaves {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.leaf {
    position: absolute;
    width: 80px;
    height: 25px;
    background: linear-gradient(45deg, #4caf50, #81c784);
    border-radius: 50% 0;
    transform-origin: left;
    animation: swayLeaf 5s ease-in-out infinite;
}

.leaf1 {
    transform: rotate(-45deg) translate(-10px, -10px); /* Adjusted to separate leaves */
    animation-delay: 0s;
}

.leaf2 {
    transform: rotate(0deg) translate(0, -20px); /* Adjusted to separate leaves */
    animation-delay: 0.3s;
}

.leaf3 {
    transform: rotate(45deg) translate(10px, -10px); /* Adjusted to separate leaves */
    animation-delay: 0.6s;
}

@keyframes swayLeaf {
    0%, 100% { transform: translateX(8px); }
    50% { transform: translateX(-8px); }
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
    .holiday-text {
        font-size: 2.5rem;
        top: 15%;
        max-width: 80vw;
    }

    .sun, .moon {
        width: 80px;
        height: 80px;
        top: 5%;
    }

    .palm-tree {
        width: 60px;
        height: 200px;
        bottom: 35%;
    }

    .trunk {
        width: 12px;
        height: 120px;
    }

    .leaf {
        width: 60px;
        height: 20px;
    }

    .leaf1 { transform: rotate(-45deg) translate(-8px, -8px); }
    .leaf2 { transform: rotate(0deg) translate(0, -15px); }
    .leaf3 { transform: rotate(45deg) translate(8px, -8px); }

    .sea {
        height: 30%;
    }

    .wave {
        height: 60px;
    }

    .star {
        width: 2px;
        height: 2px;
    }
}

@media (max-width: 480px) {
    .holiday-text {
        font-size: 1.8rem;
        top: 12%;
    }

    .sun, .moon {
        width: 60px;
        height: 60px;
    }

    .palm-tree {
        width: 50px;
        height: 180px;
    }

    .trunk {
        width: 10px;
        height: 100px;
    }

    .leaf {
        width: 50px;
        height: 15px;
    }

    .leaf1 { transform: rotate(-45deg) translate(-6px, -6px); }
    .leaf2 { transform: rotate(0deg) translate(0, -10px); }
    .leaf3 { transform: rotate(45deg) translate(6px, -6px); }

    .star {
        width: 1.5px;
        height: 1.5px;
    }
}