/* Ensure the timer fits well between sections */
.timer-container {
    max-width: 900px; /* Max width for readability */
    margin: 0 auto;
    padding: 40px 20px; /* Add padding for better spacing */
    background-color: #f8f9fa; /* Light background for clarity */
    border-radius: 8px; /* Rounded corners for a smoother look */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    margin-top: 0px;
}

.brand-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0px;
    margin-top: -30px;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 40px; /* Space between each timer box */
    align-items: center; /* Vertically center the boxes */
    flex-wrap: nowrap; /* Prevent wrapping on smaller screens */
}

.timer div {
    text-align: center;
    font-size: 1.5rem;
    color: #444;
}

.timer div span {
    display: block;
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #555;
}

.timer div #days,
.timer div #hours,
.timer div #minutes,
.timer div #seconds {
    font-size: 3rem;
    font-weight: bold;
    color: #f10808;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Adjust layout for smaller screens */
@media (max-width: 768px) {
    .timer {
        flex-direction: row; /* Keep it horizontal on small screens */
        gap: 20px; /* Reduce horizontal spacing */
        justify-content: center; /* Center the items */
    }

    .timer div {
        font-size: 1.2rem;
        min-width: 70px; /* Set a reasonable width for the timer boxes */
    }

    .timer div #days,
    .timer div #hours,
    .timer div #minutes,
    .timer div #seconds {
        font-size: 2.5rem;
    }
}

/* Animation for the timer container to fade in */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply the fadeIn animation to the timer container */
.timer-container {
    animation: fadeIn 1s ease-out;
}

/* Animation for individual timer boxes (days, hours, minutes, seconds) */
@keyframes scaleUp {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Apply the scaleUp animation to each timer box with a delay for sequential animation */
.timer div {
    animation: scaleUp 0.5s ease-out forwards;
    opacity: 0; /* Start hidden */
}

/* Add delay to each box for sequential effect */
.timer div:nth-child(1) {
    animation-delay: 0.2s;
}
.timer div:nth-child(2) {
    animation-delay: 0.4s;
}
.timer div:nth-child(3) {
    animation-delay: 0.6s;
}
.timer div:nth-child(4) {
    animation-delay: 0.8s;
}
