/* --- Countdown Container --- */
.countdown-container {
    width: 100%;
    max-width: 1400px;
    padding: 20px 0;
    margin: auto;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* --- Timer Display --- */
#timer {
    display: flex;
    justify-content: center;
    gap: 1rem; /* Space between the boxes */
    flex-wrap: wrap; /* Allows boxes to wrap on smaller screens */

    width: 100%;
}

.time-box {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    padding: 20px;
    text-align: center;

    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 100%;
    min-width: 120px;
    max-width: 150px;
}

/* The large number (e.g., 365) */
.time-box span {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

/* The label (e.g., "Days") */
.time-box p {
    margin: 5px 0 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Message for when the countdown ends --- */
#expired-message {
    color: rgba(255, 255, 255, 0.7);
    font-size: 3rem;
    font-weight: 700;
}

#countdown-title {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}


.typewriter h1 {
    overflow: hidden; /* Ensures the content is not revealed until the animation */
    border-right: .15em solid orange; /* The typwriter cursor */
    white-space: nowrap; /* Keeps the content on a single line */
    margin: 0 auto; /* Gives that scrolling effect as the typing happens */
    letter-spacing: 0em; /* Adjust as needed */
    animation:
            typing 3s steps(40, end),
            blink-caret 0.8s step-end infinite;
}

/* The typing effect */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #4dabf7 }
}