/* flip clock */

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

.flipclock * {
  box-sizing: inherit;
}

.leaf {
  display: flex;
  flex-direction: column;
  margin: 0 2px;
  perspective: 300px;
}

.leaf::after {
  content: attr(data-label);
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 8px;
  transform: translateX(-50%);
  color: #111;
  font-size: 10px;
  font-weight: 200;
  text-transform: uppercase;
  opacity: 0.5;
}

.top, .bottom, .leaf-front, .leaf-back {
  position: relative;
  display: block;
  height: 20px;
  width: 50px;
  background-color: #f2f2f2;
  color: #2d3748;
  overflow: hidden;
  border-color: #2d3748;
}

.top span, .bottom span, .leaf-front span, .leaf-back span {
  position: absolute;
  left: 50%;
  width: 100%;
  height: 40px;
  text-align: center;
  font-family: "Impact", sans serif;
  font-size: 22px;
  line-height: 40px;
  transform: translateX(-50%);
}

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

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

.top span, .leaf-front span {
  top: 0;
}

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

.bottom, .leaf-back {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  border-top-style: solid;
  border-top-width: 0.5px;
}

.bottom span, .leaf-back span {
  bottom: 0;
}

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

/* start: flip clock styles */

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

@media screen and (max-width: 600px) {
  .leaf {
    margin: 0 0.3333333333vw;
  }
}

@media screen and (max-width: 600px) {
  .leaf::after {
    margin-top: 1.3333333333vw;
    font-size: 1.6666666667vw;
  }
}

@media screen and (max-width: 600px) {
  .top, .bottom, .leaf-front, .leaf-back {
    height: 3.3333333333vw;
    width: 8.3333333333vw;
  }
}

@media screen and (max-width: 600px) {
  .top span, .bottom span, .leaf-front span, .leaf-back span {
    height: 6.6666666667vw;
    font-size: 3.6666666667vw;
    line-height: 6.6666666667vw;
  }
}

@media screen and (max-width: 600px) {
  .leaf._3-digits .top, .leaf._3-digits .bottom, .leaf._3-digits .leaf-front, .leaf._3-digits .leaf-back {
    width: 8.3333333333vw;
  }
}

@media screen and (max-width: 600px) {
  .top, .leaf-front {
    border-top-left-radius: 1vw;
    border-top-right-radius: 1vw;
  }
}

@media screen and (max-width: 600px) {
  .bottom, .leaf-back {
    border-bottom-left-radius: 1vw;
    border-bottom-right-radius: 1vw;
  }
}

@media screen and (max-width: 600px) {
  .leaf-back {
    top: 3.3333333333vw;
  }
}

.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%;
}

/* end: flip clock styles */

