.flip {
    position: relative;
    width: 62.86px;
    height: 70.06px;
    perspective: 200px;
}

.flip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    right: 0;
    width: 82%;
    height: 2px;
    /* Adjust thickness */
    background: linear-gradient(to bottom, #0089E4, #89DBFF);
    /* Change to your desired color */
    z-index: 10;
    transform: translate(-50%, -50%);
}

.card {
    position: absolute;
    width: 100%;
    height: 50%;
    overflow: hidden;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 600;
    border-radius: 10px;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.card.up {
    top: 0;
    transform-origin: bottom center;
    align-items: flex-end;
}

.card.down {
    bottom: 0;
    transform-origin: top center;
    align-items: flex-start;
}

.card .number {
    position: absolute;
    width: 100%;
    height: 200%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: black;
    font-family: 'Nunito', sans-serif;
    font-size: 36px;
    font-weight: 700;
    z-index: 1000000000;
}

.card.up .number {
    top: 0;
    transform: translateY(0%);
}

.card.down .number {
    bottom: 0;
    transform: translateY(0%);
}

.unit {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.label {
    font-size: 12px;
    color: white;
}

.countdown {
    display: flex;
    gap: 20px;
    justify-content: center;
    border-radius: 15px;
}

@media (max-width: 480px) {
    .flip {
        position: relative;
        width: 50px;
        height: 60px;
        perspective: 200px;
    }

    .card .number {
        font-size: 30px;
        font-weight: 700;
    }

    .countdown {
        display: flex;
        gap: 20px;
        justify-content: center;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .flip {
        width: 58.86px;
        height: 72.06px;
        perspective: 200px;
    }

    .card .number {
        font-size: 2.25rem;
    }
}