* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    /* Lighter night sky gradient */
    background: linear-gradient(45deg, #121212, #004b8d, #0072bc, #34495e, #4a69bd);
    background-size: 400% 400%;
    animation: gradientBG 30s ease infinite;
    position: relative;
    overflow: hidden;
}

/* Constellations Container */
.constellations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    isolation: isolate;
}

.clouds-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background-image: url('img/clouds_final.png');
    background-size: 4096px 4096px;
    background-repeat: repeat;
    animation: driftClouds 60s linear infinite;
}

@keyframes driftClouds {
    0% {
        background-position: 0px 4096px;
    }
    100% {
        background-position: 4096px 0px;
    }
}

.constellation {
    position: absolute;
    opacity: 0.8;
    z-index: 1;
}

.star {
    fill: white;
}

.big-dipper {
    top: 20%;
    left: 10%;
    width: 350px;
    height: 550px;
}

.cassiopeia {
    top: 25%;
    right: 8%;
    width: 500px;
    height: 400px;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.countdown-container {
    text-align: center;
    z-index: 2;
    padding: 2rem;
}

h1 {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.timer {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.number {
    font-family: 'Montserrat', sans-serif;
    font-size: 8rem;
    font-weight: 600;
    line-height: 1;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    font-variant-numeric: tabular-nums;
}

.label {
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .timer {
        gap: 1.5rem;
    }
    .number {
        font-size: 5rem;
    }
    .label {
        font-size: 0.9rem;
    }
    h1 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .timer {
        flex-direction: row;
        gap: 1rem;
    }
    .number {
        font-size: 3.5rem;
    }
    .label {
        font-size: 0.7rem;
    }
}
