﻿.countdown-flip {
    display: flex;
    gap: 12px;
    justify-content: center;
    direction: rtl;
    font-family: 'Vazir', sans-serif;
}

.countdown-part-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-part {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: #222;
    color: white;
    font-size: 1.5rem;
    border-radius: 10px;
    text-align: center;
    perspective: 1000px;
    overflow: hidden;
}

    .countdown-part span {
        display: block;
        position: absolute;
        width: 100%;
        height: 50%;
        line-height: 30px;
        left: 0;
        backface-visibility: hidden;
        transition: transform 0.5s ease-in-out;
    }

    .countdown-part .top {
        top: 0;
        background: #333;
        border-bottom: 1px solid #555;
        z-index: 2;
    }

    .countdown-part .bottom {
        bottom: 0;
        background: #111;
        transform: rotateX(90deg);
    }

.countdown-label {
    margin-top: 5px;
    font-size: 0.75rem;
    color: black;
    font-weight: bold;
}


@media (max-width: 992px) {
    .countdown-flip {
        gap: 6px;
    }

    .countdown-part {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

        .countdown-part span {
            line-height: 20px;
        }

    .countdown-label {
        font-size: 0.65rem;
    }

    .countdown-flip .countdown-part-wrapper:last-child {
        display: none;
    }
}
