.flipdown.flipdown__theme-dark {
  font-family: sans-serif;
  font-weight: bold;
}
.text {
  text-align: center;
  font-size: 2.5vw;
  margin: 2vw 0;
}

/* Rotor group headings */
.flipdown.flipdown__theme-dark .rotor-group-heading:before {
  /*color: #000000;*/
}
/* Delimeters */
.flipdown.flipdown__theme-dark
  .rotor-group:nth-child(n + 2):nth-child(-n + 3):before,
.flipdown.flipdown__theme-dark
  .rotor-group:nth-child(n + 2):nth-child(-n + 3):after {
  background-color: #333;
}
/* Rotor tops */
.flipdown.flipdown__theme-dark .rotor,
.flipdown.flipdown__theme-dark .rotor-top,
.flipdown.flipdown__theme-dark .rotor-leaf-front {
  color: #ffffff;
  background-color: #333;
}
/* Rotor bottoms */
.flipdown.flipdown__theme-dark .rotor-bottom,
.flipdown.flipdown__theme-dark .rotor-leaf-rear {
  color: #efefef;
  background-color: #333;
}
/* Hinge */
.flipdown.flipdown__theme-dark .rotor:after {
  border-top: solid 1px rgba(0, 0, 0, 0.3);
}

/********** Theme: light **********/
/* Font styles */
.flipdown.flipdown__theme-light {
  font-family: sans-serif;
  font-weight: bold;
}
/* Rotor group headings */
.flipdown.flipdown__theme-light .rotor-group-heading:before {
  color: #eeeeee;
}
/* Delimeters */
.flipdown.flipdown__theme-light
  .rotor-group:nth-child(n + 2):nth-child(-n + 3):before,
.flipdown.flipdown__theme-light
  .rotor-group:nth-child(n + 2):nth-child(-n + 3):after {
  background-color: #dddddd;
}
/* Rotor tops */
.flipdown.flipdown__theme-light .rotor,
.flipdown.flipdown__theme-light .rotor-top,
.flipdown.flipdown__theme-light .rotor-leaf-front {
  color: #222222;
  background-color: #dddddd;
}
/* Rotor bottoms */
.flipdown.flipdown__theme-light .rotor-bottom,
.flipdown.flipdown__theme-light .rotor-leaf-rear {
  color: #333333;
  background-color: #eeeeee;
}
/* Hinge */
.flipdown.flipdown__theme-light .rotor:after {
  border-top: solid 1px #222222;
}

/* END OF THEMES */

#countdown {
  text-align: center;
}
.flipdown {
  overflow: visible;
  display: inline-block;
  padding: 2vw;
}

.flipdown .rotor-group {
  position: relative;
  float: left;
  padding-right: 3vw;
}

.flipdown .rotor-group:last-child {
  padding-right: 0;
}

.flipdown .rotor-group-heading:before {
  display: block;
  height: 30px;
  line-height: 5vw;
  text-align: center;
}

.flipdown .rotor-group:nth-child(n + 2):nth-child(-n + 3):before {
  content: "";
  position: absolute;
  bottom: 3vw;
  left: 17.8vw;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.flipdown .rotor-group:nth-child(n + 2):nth-child(-n + 3):after {
  content: "";
  position: absolute;
  bottom: 7vw;
  left: 17.8vw;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.flipdown .rotor {
  position: relative;
  float: left;
  width: 0.81em;
  height: 1.2em;
  margin: 0px 0.5vw 0px 0px;
  border-radius: 4px;
  font-size: 10vw;
  text-align: center;
  text-shadow: 0 1px 2px #000;
  /*perspective: 200px;*/
  perspective: 20vw;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);

  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.34);
  box-shadow: 1px 2px 7px rgba(97, 97, 97, 0.43);
}
.flipdown.flipdown__theme-dark .rotor,
.flipdown.flipdown__theme-dark .rotor-top,
.flipdown.flipdown__theme-dark .rotor-leaf-front,
.flipdown.flipdown__theme-dark .rotor-bottom,
.flipdown.flipdown__theme-dark .rotor-leaf-rear {
  color: #ccc;
}

.flipdown .rotor:last-child {
  margin-right: 0;
}

.flipdown .rotor-top,
.flipdown .rotor-bottom {
  overflow: hidden;
  position: absolute;
  width: 8vw;
  height: 6vw;
  z-index: 1;
}

.flipdown .rotor-leaf {
  z-index: 1;
  position: absolute;
  width: 0.81em;
  height: 1.2em;
  transform-style: preserve-3d;
  transition: transform 0s;
  /*backface-visibility: hidden;*/
}

.flipdown .rotor-leaf.flipped {
  animation: anim 1s linear forwards infinite;
}

.flipdown .rotor-bottom-shadow {
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
  background-repeat: no-repeat;
  opacity: 1;
  background-position: top;
  width: 100%;
  height: 50%;
  visibility: hidden;
  position: absolute;
  bottom: 0;
  z-index: 1;
}

.flipdown .rotor-top-shadow {
  width: 100%;
  height: 50%;
  background-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 1)
  );
  background-repeat: no-repeat;
  opacity: 0;
  background-position: bottom;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  position: absolute;
  visibility: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  z-index: 1;
}
.flipdown .active {
  visibility: visible;
  -moz-backface-visibility: hidden;
  animation: shadows2 0.5s linear infinite;
}

.flipdown .bottom-active {
  visibility: visible;
  animation: shadows 1s linear infinite;
}

.flipdown .fadeout {
  animation: fadeout 1s linear infinite;
}

@keyframes fadeout {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
    transition: opacity 1s linear;
  }
}

@keyframes shadows {
  0% {
    opacity: 0;
  }
  40% {
    opacity: 0;
  }
  70% {
    opacity: 1;
    transition: opacity 1s ease-in-out;
  }
  100% {
    opacity: 1;
  }
}

@keyframes shadows2 {
  0% {
    opacity: 0;
  }
  70% {
    opacity: 1;
    transition: opacity 1s ease-in-out;
  }
  100% {
    opacity: 1;
  }
}

@keyframes anim {
  0% {
    z-index: 2;
    transform: rotateX(0deg);
  }
  50% {
    z-index: 4;
    transform: rotateX(-90deg);
  }

  100% {
    z-index: 4;
    transform: rotateX(-180deg);
  }
}

.flipdown .rotor-leaf-front,
.flipdown .rotor-leaf-rear {
  overflow: hidden;
  position: absolute;
  width: 8vw;
  height: 6vw;
  margin: 0;
  transform: rotateX(0deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flipdown .rotor-leaf-front {
  line-height: 1.2em;
  border-radius: 4px 4px 0px 0px;
}

.flipdown .rotor-leaf-rear {
  line-height: 0px;
  border-radius: 0px 0px 4px 4px;
  transform: rotateX(-180deg);
}

.flipdown .rotor-top {
  line-height: 1.2em;
  border-radius: 4px 4px 0px 0px;
}

.flipdown .rotor-bottom {
  bottom: 0;
  line-height: 0px;
  border-radius: 0px 0px 4px 4px;
}
@-moz-document url-prefix() {
  .flipdown .rotor-leaf-front,
  .flipdown .rotor-top {
    line-height: 1.36;
  }
  .flipdown .rotor-bottom,
  .flipdown .rotor-leaf-rear {
    line-height: 0.15;
  }
}

.flipdown .rotor:after {
  content: "";
  z-index: 2;
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 8vw;
  height: 6vw;
  border-radius: 0px 0px 4px 4px;
}

.flipdown-outside {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  display: flex;
  justify-content: center;
}

.days-before::before,
.hours-before::before,
.minutes-before::before,
.seconds-before::before {
  content: attr(data-before);
  font-size: 1.9vw;
  font-weight: 400;
}
.flipdown.flipdown__theme-dark .rotor,
.flipdown.flipdown__theme-dark .rotor-top,
.flipdown.flipdown__theme-dark .rotor-leaf-front,
.flipdown.flipdown__theme-dark .rotor-bottom,
.flipdown.flipdown__theme-dark .rotor-leaf-rear,
.light-theme {
  color: #ffe100;
}
.time_units {
  fill: #000000;
}

@media (max-width: 590px) {
  .flipdown .rotor-group:nth-child(n + 2):nth-child(-n + 3):before,
  .flipdown .rotor-group:nth-child(n + 2):nth-child(-n + 3):after {
    width: 8px;
    height: 8px;
  }
}
@media (max-width: 500px) {
  .flipdown .rotor-group:nth-child(n + 2):nth-child(-n + 3):before,
  .flipdown .rotor-group:nth-child(n + 2):nth-child(-n + 3):after {
    width: 5px;
    height: 5px;
  }
}
