/* THEMES */

/* Font styles */
.flipdown.flipdown__theme-dark {
  font-family: sans-serif;
  font-weight: bold;
}
/* Rotor tops */
.flipdown .rotor,
.flipdown .rotor-top,
.flipdown .rotor-leaf-front {
  color: #6817B4;
  background-color: #F1EFF0;
}
/* Rotor bottoms */
.flipdown .rotor-bottom,
.flipdown .rotor-leaf-rear {
  color: #6817B4;
  background-color: #FFFFFF;
}


/* END OF THEMES */

.flipdown {
  display: flex;
  justify-content: center;
  overflow: visible;
  /* width: 510px; */
  /* height: 110px; */
  padding: 20px 0;
}

.flipdown .rotor-group {
  position: relative;
  float: left;
  padding-right: 50px;
  display: flex;
  align-items: flex-end;
}

.flipdown .rotor-group:last-child {
  padding-right: 0;
}

.flipdown .rotor-group-heading:after {
  /* display: block; */
  font-size: 16px;
  color: #FFF;
  height: 30px;
  line-height: 30px;
  text-align: center;
}

.flipdown .rotor-group:nth-child(1) .rotor-group-heading:after {
  content: '天';
}

.flipdown .rotor-group:nth-child(2) .rotor-group-heading:after {
  content: '时';
}

.flipdown .rotor-group:nth-child(3) .rotor-group-heading:after {
  content: '分';
}

.flipdown .rotor-group:nth-child(4) .rotor-group-heading:after {
  content: '秒';
}

.flipdown .rotor {
  position: relative;
  float: left;
  width: 60px;
  height: 80px;
  margin: 0px 5px 0px 0px;
  border-radius: 8px;
  font-size: 48px;
  text-align: center;
  perspective: 200px;
  overflow: hidden;
  margin-right: 10px;
}
.flipdown .rotor:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0px;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #6817B4;
  z-index: 3;
}
.flipdown .rotor:after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #6817B4;
  z-index: 3;
}

.flipdown .rotor:last-child {
  margin-right: 0;
}

.flipdown .rotor-top,
.flipdown .rotor-bottom {
  overflow: hidden;
  position: absolute;
  width: 100%;
  height: 50%;
}

.flipdown .rotor-leaf {
  z-index: 1;
  position: absolute;
  width: 100%;
  height: 80px;
  transform-style: preserve-3d;
  transition: transform 0s;
}

.flipdown .rotor-leaf.flipped {
  transform: rotateX(-180deg);
  transition: all 0.5s ease-in-out;
}

.flipdown .rotor-leaf-front,
.flipdown .rotor-leaf-rear {
  overflow: hidden;
  position: absolute;
  width: 100%;
  height: 40px;
  margin: 0;
  transform: rotateX(0deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flipdown .rotor-leaf-front {
  line-height: 80px;
  border-radius: 20px 20px 0px 0px;
}

.flipdown .rotor-leaf-rear {
  line-height: 0px;
  border-radius: 0px 0px 4px 4px;
  transform: rotateX(-180deg);
}

.flipdown .rotor-top {
  line-height: 80px;
  border-radius: 4px 4px 0px 0px;
}

.flipdown .rotor-bottom {
  bottom: 0;
  line-height: 0px;
  border-radius: 0px 0px 4px 4px;
}


@media (max-width: 1300px) {

  .flipdown .rotor {
    width: 45px;
    font-size: 36px;
    margin-right: 5px;
  }
  .flipdown .rotor-group {
    padding-right: 20px;
  }

  .flipdown .rotor-group-heading:after {
    font-size: 16px;
  }
  .flipdown .rotor-leaf-front,
  .flipdown .rotor-top {
    line-height: 60px;
  }
  .flipdown .rotor-leaf-front,
 .flipdown .rotor-leaf-rear{
    height: 30px;
 }
  .flipdown .rotor-leaf,
  .flipdown .rotor {
    height: 60px;
  }
}
@media (max-width: 767px) {
  .flipdown .rotor {
    width: 40px;
    font-size: 28px;
    margin-right: 5px;
  }
  .flipdown .rotor-group {
    padding-right: 15px;
  }

  .flipdown .rotor-group-heading:after {
    font-size: 16px;
  }
  .flipdown .rotor-leaf,
  .flipdown .rotor {
    height: 50px;
  }
  .flipdown .rotor-leaf-front,
  .flipdown .rotor-top {
    line-height: 50px;
  }
  .flipdown .rotor-leaf-front,
 .flipdown .rotor-leaf-rear{
    height: 25px;
 }

}
@media (max-width: 540px) {
  .flipdown .rotor {
    width: 30px;
    font-size: 20px;
    margin-right: 3px;
  }
  .flipdown .rotor-group {
    padding-right: 5px;
  }

  .flipdown .rotor-group-heading:after {
    font-size: 14px;
  }
  .flipdown .rotor-leaf,
  .flipdown .rotor {
    height: 40px;
  }
  .flipdown .rotor-leaf-front,
  .flipdown .rotor-top {
    line-height: 40px;
  }
  .flipdown .rotor-leaf-front,
 .flipdown .rotor-leaf-rear{
    height: 20px;
 }

}
