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

html {
    height: 100%;
    overflow: hidden; /* Prevent scrolling from the aura effect */
}

body {
    height: 100%;
    font-family: 'Inter', sans-serif;
    color: #fff;
    background: linear-gradient(45deg, #1a1a2e, #16213e, #0f3460, #533483);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    position: relative;
}

/* Aura Effect */
body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 99, 71, 0.3) 0%, rgba(255, 99, 71, 0) 60%),
                radial-gradient(circle at top right, rgba(138, 43, 226, 0.4) 0%, rgba(138, 43, 226, 0) 70%),
                radial-gradient(circle at bottom left, rgba(30, 144, 255, 0.4) 0%, rgba(30, 144, 255, 0) 70%);
    animation: auraAnimation 20s linear infinite;
    z-index: -1;
}


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

@keyframes auraAnimation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Main Container */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Use height 100% instead of min-height 100vh */
    padding: 20px;
}

/* Glassmorphism Card */
.content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* For Safari */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    max-width: 800px;
    width: 100%;
}

h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    min-width: 120px;
}

.timer-unit span {
    font-size: 4rem;
    font-weight: bold;
    line-height: 1;
    transition: opacity 0.5s ease-in-out; /* Fade transition */
}

.timer-unit label {
    font-size: 1rem;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Class for fade animation on update */
.timer-unit span.updating {
    opacity: 0;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .countdown-timer {
        flex-wrap: wrap; /* Allow items to wrap on smaller screens */
        gap: 15px;
        justify-content: center;
    }

    .timer-unit {
        padding: 15px;
        min-width: 100px;
    }

    .timer-unit span {
        font-size: 2.5rem;
    }

    .timer-unit label {
        font-size: 0.8rem;
    }

    .content {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .countdown-timer {
        gap: 10px;
    }
    .timer-unit {
        flex-basis: calc(50% - 10px); /* Two items per row */
        min-width: auto;
        padding: 10px;
    }
     .timer-unit span {
        font-size: 2rem;
    }
}
