.countdown-container {
    text-align: center;
    padding: 0;
}

.countdown {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.separator {
    font-size: 34px;
    font-weight: bold;
    color: #e4f7cf;
    /* light green */
    margin: 0 2px;
    align-self: center;
    text-shadow: 0 0 10px rgba(120, 170, 51, 0.6);
}

/* Enhanced Flip Card Styling */
.flip-card {
    position: relative;
    width: 78px;
    height: 86px;
    margin-bottom: 10px;
    perspective: 1000px;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.flip-digit {
    position: absolute;
    width: 100%;
    height: 100%;
    /* green gradient themed to the hero */
    background: linear-gradient(135deg, #1c6a35 0%, #2f8539 50%, #78aa33 100%);
    border: 2px solid #0a2514;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.flip-digit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

/* Middle line separator */
.flip-digit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #2D0612;
    transform: translateY(-50%);
    z-index: 10;
}

.flip-digit.current {
    z-index: 2;
}

.flip-digit.next {
    z-index: 1;
    transform: rotateX(180deg);
}

.flip-digit.flip-animation {
    animation: flipCard 0.6s ease-in-out forwards;
}

@keyframes flipCard {
    0% {
        transform: rotateX(0deg);
        z-index: 2;
    }

    50% {
        transform: rotateX(-90deg);
        z-index: 2;
    }

    100% {
        transform: rotateX(-180deg);
        z-index: 1;
    }
}

.label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    background-color: #960707;
    padding:2px 4px;

    /* soft green */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin-top: 4px;
}

/* Glow effect for active elements */
.flip-card:hover .flip-digit {
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 0 20px rgba(120, 170, 51, 0.4);
    /* green glow */
}

/* Responsive design */
@media (max-width: 768px) {
    .flip-card {
        width: 64px;
        height: 72px;
    }

    .flip-digit {
        font-size: 32px;
    }

    .separator {
        font-size: 40px;
        font-weight: bold;
        color: #e4f7cf;
        /* light green */
        margin: 0;
        align-self: flex-start;
        margin-top: 8px;
        text-shadow: 0 0 10px rgba(120, 170, 51, 0.6);
    }

    .countdown {
        gap: 10px;
    }
}