.flipclock {
display: flex;
justify-content: center;
padding: 10px 10px 60px;
box-sizing: border-box;
}

.flipclock * {
box-sizing: inherit;
}

.leaf {
display: flex;
flex-direction: column;
margin: 0 5px;
perspective: 300px;
box-shadow: 0 4.93px 7.395px 0 rgba(17, 36, 46, 0.40);
border: 1.8px solid rgba(255, 255, 255, 0.12);
border-radius: 10px;
background: rgba(255, 255, 255, 0.15);
}

.bottomText::after {
content: attr(data-label);
position: absolute;
top: 100%;
left: 50%;
margin-top: 8px;
transform: translateX(-50%);
color: rgba(255, 255, 255, 0.87);
font-size: 14px;
font-weight: normal;
text-transform: uppercase;
opacity: 0.5;
}

.top,
.bottom,
.leaf-front,
.leaf-back {
position: relative;
display: block;
height: 49px;
width: 98px;
/* background: rgba(255, 255, 255, 0.07); */
color: #fff;
overflow: hidden;
/* border-color: #2d3748; */
}
.leaf::after, .leaf::before {
    content: '';
    display: block;
    position: absolute;
    width: 4px;
    height: 10px;
    background: #fff;
}
.leaf::after { right: 0; bottom: 44px } .leaf::before { left: 0; bottom: 44px }
.bottom, .leaf-back {
    /* border-bottom: 1.8px solid var(--darkmode-ffffff-12, rgba(255, 255, 255, 0.12));
    border-right: 1.8px solid var(--darkmode-ffffff-12, rgba(255, 255, 255, 0.12));
    border-left: 1.8px solid var(--darkmode-ffffff-12, rgba(255, 255, 255, 0.12)); */
    background:  rgba(255, 255, 255, 0.07);
}
.top span,
.bottom span,
.leaf-front span,
.leaf-back span {
position: absolute;
left: 50%;
width: 100%;
height: 98px;
text-align: center;
font-family: "SF Pro Display";
font-weight: 900;
font-size: 49px;
line-height: 98px;
transform: translateX(-50%);
}

.leaf._3-digits .top,
.leaf._3-digits .bottom,
.leaf._3-digits .leaf-front,
.leaf._3-digits .leaf-back {
width: 148px;
}

.top,
.leaf-front {
border-top-left-radius: 9px;
border-top-right-radius: 9px;
margin-bottom: 0;
border-bottom-style: solid;
border-bottom-width: 0;
}
.top span,
.leaf-front span {
top: 0;
}

.leaf-front {
position: absolute;
z-index: 10;
}

.bottom,
.leaf-back {
border-bottom-left-radius: 9px;
border-bottom-right-radius: 9px;
border-top-style: solid;
/* border-top-width: 1px; */
}
.bottom span,
.leaf-back span {
bottom: 0;
}

.leaf-back {
position: absolute;
top: 49px;
z-index: 10;
}

@media  screen and (max-width: 600px) {
.flipclock {
padding: 10px 10px 100px;
}

.leaf {
margin: 0 4px;
}

.bottomText::after {
/* margin-top: 1.3333333333vw; */
font-size: 12px;
}

.top,
.bottom,
.leaf-front,
.leaf-back {
    height: 39px;
    width: 78px;
}
.top span,
.bottom span,
.leaf-front span,
.leaf-back span {
    height: 78px;
    font-size: 40px;
    line-height: 78px;
}

.leaf._3-digits .top,
.leaf._3-digits .bottom,
.leaf._3-digits .leaf-front,
.leaf._3-digits .leaf-back {
    width: 78px;
}

.top, 
.leaf-front {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.bottom,
.leaf-back {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.leaf-back {
    top: 39px;
}
.leaf::after, .leaf::before {
    width: 3px;
    height: 8px;
}
.leaf::after { right: 0; bottom: 35px } .leaf::before { left: 0; bottom: 35px }
}
.leaf-front {
transform-origin: bottom center;
transform: rotateX(0deg);
transform-style: preserve-3d;
transition-delay: 0.3s;
}

.leaf-back {
transform-origin: top center;
transform: rotateX(90deg);
transform-style: preserve-3d;
transition-delay: 0s;
}

.bottom::before {
content: "";
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 0%;
background: black;
background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
filter: blur(10px);
}

.flip .leaf-front {
transform: rotateX(-90deg);
transition: transform 0.3s ease-in, background-color 0.3s ease-in, color 0.3s ease-in;
transition-delay: 0s;
color: black;
background-color: #737373;
}
.flip .leaf-back {
transform: rotateX(0deg);
transition: transform 0.3s ease-in, background-color 0.3s ease-in, color 0.3s ease-in;
transition-delay: 0.3s;
}
.flip .bottom::before {
transition: height 0.3s ease-in-out;
transition-delay: 0.15s;
height: 100%;
}