.weekly-countdown {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-left: 102px;
    margin-top: 30px;
    font-family: 'Oswald';
    font-size: 22px;
    color: #E0E1FF;
}

html[lang="fr"] .weekly-countdown {
    padding-left: 0;
    padding-right: 102px;
}

.weekly-countdown p.title {
    margin-right: 10px;
}

.countdown-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    display: flex;
    gap: 6px;
    height: 70px;
}

.digit {
    position: relative;
    width: 50px;
    height: 70px;
    perspective: 800px;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 70px;
    font-family: 'Oswald';
}

.digit .static-top {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
    line-height: 69px;
    border-radius: 7px 7px 2px 2px;
    background: linear-gradient(180deg, #1F59D2 0%, #3F9EBD 100%);
    z-index: 1;
}

.digit .static-bottom {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
    line-height: 0;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(180deg, #3F9EBD 0%, #60E5A8 100%);
    z-index: 1;
}

.digit .flip-top {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
    line-height: 69px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, #1F59D2 0%, #3F9EBD 100%);
    transform-origin: bottom center;
    transform: rotateX(0deg);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    z-index: 10;
}

.digit .flip-bottom {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
    line-height: 0;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(180deg, #3F9EBD 0%, #60E5A8 100%);
    transform-origin: top center;
    transform: rotateX(90deg);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    z-index: 9;
}

.digit::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
    background: #0C142D;
    z-index: 20;
}

.digit.flipping .flip-top {
    animation: flipDigitTop .28s cubic-bezier(.4, 0, .6, 1) forwards;
}

.digit.flipping .flip-bottom {
    animation: flipDigitBottom .28s .28s cubic-bezier(.4, 0, .6, 1) forwards;

}

@keyframes flipDigitTop {
    0% {
        transform: rotateX(0deg);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

    45% {
        box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
    }

    100% {
        transform: rotateX(-90deg);
        box-shadow: 0 12px 20px rgba(0, 0, 0, .45);
    }
}

@keyframes flipDigitBottom {
    0% {
        transform: rotateX(90deg);
        box-shadow: 0 -10px 18px rgba(0, 0, 0, .4);
    }


    60% {
        box-shadow: 0 -4px 10px rgba(0, 0, 0, .25);
    }

    100% {
        transform: rotateX(0deg);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

}

.countdown-label {
    line-height: 1;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #FF5501;
    font-size: 30px;

}

.countdown-colon {
    margin-top: -20px;
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
    color: #737b86;
    text-shadow: 0 2px 2px rgba(0, 0, 0, .3);
}


/* ================================
   Mobile
================================ */
@media (max-width: 1024px) {
    .weekly-countdown {
        font-size: 16px;
        flex-wrap: wrap;
        margin: 0 0 20px;
        padding-left: 0;
        justify-content: center;
    }
    
    html[lang="fr"] .weekly-countdown {
        padding-left: 0;
        padding-right: 0;
    }
    .countdown-label {
        font-size: 18px;
    }

    .weekly-countdown .title {
        flex: 1 100%;
        text-align: center;
    }

}

@media (max-width: 768px) {
    .weekly-countdown {
        gap: 8px;
    }


    .countdown-number {
        gap: 3px;
        height: 40px;
    }

    .digit {
        width: 28px;
        height: 40px;
        font-size: 28px;
        line-height: 40px;
    }

    .digit .static-top,
    .digit .flip-top {
        line-height: 39px;
    }


    .countdown-colon {
        font-size: 18px;
        margin-top: -15px;
    }


    .countdown-label {
        margin-top: 0px;
        font-size: 16px;
        letter-spacing: 1px;
    }

    .weekly-countdown p.title {
        margin-right: 0;
        text-align: left;
    }

    html[lang="ar"] .weekly-countdown p.title {
        text-align: right;
    }

}