body {
    background: #1a1a2e; /* Dark background */
    color: #e94560; /* Vibrant primary color */
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;     /* Center vertically */
    min-height: 100vh;       /* Full viewport height */
    margin: 0;
    overflow: hidden;        /* Prevent scrollbars if elements slightly exceed viewport */
    padding: 20px;           /* Add some padding around the edges for smaller screens */
    box-sizing: border-box;  /* Include padding in element's total width/height */
}

.countdown-container {
    text-align: center;
    padding: 40px 30px; /* Increased vertical padding for more space */
    background: rgba(255, 255, 255, 0.05); /* Semi-transparent card */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 90%; /* Ensure it doesn't get too wide on very large screens */
    width: fit-content; /* Adjust width to content, allowing flex-gap to work */
}

#countdown-title {
    font-size: 2.5em;
    margin-bottom: 35px; /* Increased margin below title */
    color: #fc466b; /* Secondary vibrant color */
    text-shadow: 0 0 10px #fc466b;
    line-height: 1.2; /* Better line spacing for title */
}

#countdown-timer {
    display: flex;
    flex-wrap: wrap; /* Allow boxes to wrap to next line on smaller screens */
    justify-content: center; /* Center boxes horizontally */
    gap: 25px; /* Increased space between boxes */
    margin-bottom: 20px; /* Add some space below the timer if message appears */
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px; /* Increased vertical padding in boxes */
    background: #0f3460; /* Darker box background */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 90px; /* Slightly increased min-width for better spacing */
    transition: transform 0.2s ease-in-out;
    flex-shrink: 0; /* Prevent boxes from shrinking too much */
}

.time-box:hover {
    transform: translateY(-5px);
}

.number {
    font-size: 3.8em; /* Slightly larger numbers */
    font-weight: 700;
    color: #92e6a7; /* Bright "LED" green for numbers */
    line-height: 1;
    margin-bottom: 8px; /* Slightly increased margin below number */
}

.label {
    font-size: 0.9em; /* Slightly larger label */
    text-transform: uppercase;
    color: #e0d0d0;
}

/* Style for the 'Happy Birthday' message */
#birthday-message {
    font-size: 4em;
    color: #ffe066;
    margin-top: 30px;
    text-shadow: 0 0 20px #ffe066;
    animation: pulse 1.5s infinite alternate;
    line-height: 1.2; /* Better line spacing */
}

.hidden {
    display: none;
}

/* Simple pulsating animation */
@keyframes pulse {
    from {
        opacity: 0.8;
        transform: scale(1);
    }
    to {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    #countdown-title {
        font-size: 1.8em; /* Smaller title on small screens */
    }

    .time-box {
        min-width: 70px; /* Smaller min-width for boxes on small screens */
        padding: 15px 10px; /* Adjusted padding */
    }

    .number {
        font-size: 2.8em; /* Smaller numbers on small screens */
    }

    .label {
        font-size: 0.7em; /* Smaller labels on small screens */
    }

    #birthday-message {
        font-size: 2.5em; /* Smaller birthday message on small screens */
    }
    
    .countdown-container {
        padding: 25px 15px; /* Adjusted container padding */
    }
}

@media (max-width: 400px) {
    #countdown-timer {
        gap: 15px; /* Even smaller gap on very small screens */
    }
}
