

.clock {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: rgb(29, 2, 168);
    gap: 3px; /* Tạo khoảng cách giữa giờ, phút, giây */
}

.digit-group {
    display: flex;
    gap: 3px; /* Tạo khoảng cách giữa các số trong cùng một nhóm */
}

.digit {
    position: relative;
    width: 30px;
    height: 40px;
    perspective: 500px;
}

.digit .top, .digit .bottom {
    position: absolute;
    width: 100%;
    height: 50%;
    background-size: cover;
}

.digit .top {
    top: 0px;
    transform-origin: bottom;
    margin-bottom: 5px; /* Tạo khoảng cách giữa nửa trên và nửa dưới */
}

.digit .bottom {
    bottom: 0px;
    margin-top: 5px;
}

.flip {
    animation: flip 0.5s ease-in-out;
}

@keyframes flip {
    0% { transform: rotateX(0); }
    100% { transform: rotateX(-180deg); }
}
