@keyframes flip-top {
    to {
        transform: rotateX(90deg);
    }
}

@keyframes flip-bottom {
    to {
        transform: rotateX(0deg);
    }
}

.parvanweb-countdown-widget {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.parvanweb-countdown-widget .countdown-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    font-family: 'IRANSansXFa' !important;
}

.parvanweb-countdown-widget .cards {
    display: flex;
    flex-direction: row-reverse;
    gap: 15px;
}

.parvanweb-countdown-widget .card {
    text-align: center;
    position: relative;
}
.parvanweb-countdown-widget .card::after{
    content: "";
    height: 93px;
    left: -6px;
    position: absolute;
    top: -9px;
    width: 86px;
    border-width: 2px;
    border-style: solid;
    border-color: rgb(5, 39, 45);
    border-image: initial;
    border-radius: 20px;
}
.parvanweb-countdown-widget .flip-card {
    display: flex;
    align-items: center;
    flex-direction: column;
    position: relative;
}

.parvanweb-countdown-widget .top-half,
.parvanweb-countdown-widget .bottom-half,
.parvanweb-countdown-widget .top-flip,
.parvanweb-countdown-widget .bottom-flip {
    overflow: hidden;
    text-align: center;
    will-change: transform;
}

.parvanweb-countdown-widget .top-half,
.parvanweb-countdown-widget .top-flip {
    border-top-left-radius: 13px;
    border-top-right-radius: 13px;
}
.parvanweb-countdown-widget .top-half::before,
.parvanweb-countdown-widget .top-flip::before {
    content: "";
    background-color: #1b4449;
    height: 10px;
    width: 3px;
    position: absolute;
    bottom: 0;
    left: 0;
}

.parvanweb-countdown-widget .top-half::after,
.parvanweb-countdown-widget .top-flip::after {
    content: "";
    background-color: #1b4449;
    height: 10px;
    width: 3px;
    position: absolute;
    bottom: 0;
    right: 0;
}

.parvanweb-countdown-widget .bottom-half,
.parvanweb-countdown-widget .bottom-flip {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    border-radius: 0 0 5px 5px;
    border-top: 2px solid white;
}

.parvanweb-countdown-widget .bottom-half::before,
.parvanweb-countdown-widget .bottom-flip::before {
    content: "";
    background-color: #1b4449;
    height: 10px;
    width: 3px;
    position: absolute;
    top: 0;
    left: 0;
}

.parvanweb-countdown-widget .bottom-half::after,
.parvanweb-countdown-widget .bottom-flip::after {
    content: "";
    background-color: #1b4449;
    height: 10px;
    width: 3px;
    position: absolute;
    top: 0;
    right: 0;
}

.parvanweb-countdown-widget .top-flip {
    position: absolute;
    transform-origin: bottom;
    transform: rotateX(0deg);
    animation: flip-top 0.5s ease-in forwards;
}

.parvanweb-countdown-widget .bottom-flip {
    position: absolute;
    bottom: 0;
    transform-origin: top;
    transform: rotateX(90deg);
    animation: flip-bottom 0.5s ease-out 0.5s;
}

.parvanweb-countdown-widget .top-half,
.parvanweb-countdown-widget .bottom-half,
.parvanweb-countdown-widget .top-flip,
.parvanweb-countdown-widget .bottom-flip {
    font-size: 42px;
    height: 38px;
    width: 75px;
    padding: 4px 7px;
}
.parvanweb-countdown-widget .bottom-half,
.parvanweb-countdown-widget .bottom-flip {
    border-bottom-left-radius: 13px;
    border-bottom-right-radius: 13px;
}
.parvanweb-countdown-widget .bottom-half{
    border-color: #1b4449 !important;
    border-width: 2px !important;
}
.flip-clock-text{
    margin-top: 12px !important;
}

@media screen and (min-width: 700px) {
    .parvanweb-countdown-widget .cards {
        gap: 25px;
    }
}