body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background: linear-gradient(135deg, #667eea, #764ba2, #ff7e5f, #feb47b, #764ba2, #ff7e5f, #667eea, #764ba2, #764ba2);
    animation: gradient 15s ease infinite;
    background-size: 400% 400%;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.countdown {
    font-family: "JetBrains Mono";
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.countdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    backdrop-filter: blur(10px);
    padding: 10px 10px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    font-size: 2.5rem;
    min-width: 60px;
    height: 60px;
    position: relative;
    overflow: hidden;
}

.countdown-item .time {
    position: absolute;
    transition: transform 0.5s ease-in-out;
}

.colon {
    font-size: 2.5rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .countdown-item {
        font-size: 2rem;
        min-width: 50px;
        height: 50px;
    }

    .colon {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .countdown-item {
        font-size: 1.5rem;
        min-width: 40px;
        height: 40px;
    }

    .colon {
        font-size: 1.5rem;
    }
}

.footer-text {
    display: block;
    text-align: center;
    width: 100%;
}

/* Overlay styles for loading and success */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e9eef5;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

#overlay-content {
    width: 80%;
    max-width: 500px;
}

.dotlottie-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-center {
    text-align: center;
}

.loading-center svg {
    display: block;
    margin: 0 auto;
}

/*New add*/
.countdown-item {
    position: relative;
    overflow: hidden;
    height: 60px;
}

.countdown-item .digit-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.countdown-item .digit {
    height: 60px;
    line-height: 60px;
    display: block;
}
