/* Basic Reset & Font Import */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d); /* Energetic gradient */
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    overflow: hidden; /* Prevents scrollbars during animation */
}

/* Background Gradient Animation */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Main Container Styling */
.container {
    background: rgba(0, 0, 0, 0.7); /* Dark semi-transparent background */
    padding: 40px 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0; /* Start hidden for fade-in */
    transform: translateY(20px); /* Start slightly lower for fade-in */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* Fade-in transition */
}

/* Header Styling */
header h1 {
    font-family: 'Orbitron', sans-serif; /* Techy font for title */
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #fdbb2d; /* Accent color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

header .subtitle {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
}

header .renewal-date {
    font-size: 1.4em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 30px;
}

/* Countdown Timer Styling */
#countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* Space between timer boxes */
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.timer-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px; /* Ensure boxes have some width */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.timer-digit {
    font-family: 'Orbitron', sans-serif;
    font-size: 3em; /* Large digits */
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    transition: transform 0.15s ease-out; /* For pulse effect */
}

.timer-label {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.timer-separator {
    font-family: 'Orbitron', sans-serif;
    font-size: 3em;
    color: rgba(255, 255, 255, 0.5);
    align-self: center; /* Vertically center the colon */
    padding-bottom: 25px; /* Align roughly with digits */
}

/* Message Box Styling */
.message-box {
    background: #b21f1f; /* Red background for alert */
    color: white;
    padding: 20px;
    border-radius: 8px;
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 30px; /* Space from where countdown was */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    opacity: 0; /* Start hidden */
    transition: opacity 0.5s ease-in;
}

/* Footer Styling */
footer {
    margin-top: 30px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
}

footer p {
    margin-bottom: 15px;
}

.button {
    display: inline-block;
    background-color: #fdbb2d; /* Accent color */
    color: #1a2a6c; /* Dark blue text */
    padding: 12px 25px;
    border-radius: 25px; /* Pill shape */
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.button:hover {
    background-color: #fca700; /* Slightly darker on hover */
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .container {
        padding: 25px 20px;
    }

    header h1 {
        font-size: 2em;
    }

    .timer-digit {
        font-size: 2.2em;
    }

    .timer-box {
        padding: 10px 15px;
        min-width: 70px;
    }

    .timer-separator {
        font-size: 2.2em;
        padding-bottom: 20px;
    }

    #countdown {
        gap: 10px;
    }

    .message-box {
        font-size: 1.2em;
    }

     .button {
        padding: 10px 20px;
    }
}

@media (max-width: 400px) {
     header h1 {
        font-size: 1.6em;
    }
     header .subtitle {
        font-size: 1em;
    }
      header .renewal-date {
        font-size: 1.1em;
    }
     .timer-digit {
        font-size: 1.8em;
    }
     .timer-label {
        font-size: 0.7em;
    }
     .timer-box {
        min-width: 55px;
        padding: 8px 10px;
    }
     .timer-separator {
        font-size: 1.8em;
        padding-bottom: 15px;
    }
    #countdown {
        gap: 5px;
    }
}
