.flipdown.flipdown__theme-dark {
  font-family: 'Cinzel', serif;
  font-weight: bold;
}

.flipdown.flipdown__theme-dark .rotor-group-heading:before {
  color: #facc15;
}

.flipdown.flipdown__theme-dark .rotor,
.flipdown.flipdown__theme-dark .rotor-top,
.flipdown.flipdown__theme-dark .rotor-leaf-front {
  color: #facc15;
  background-color: #0a0a0a;
  box-shadow: 0 0 3px rgba(250, 204, 21, 0.25);
  border: 1px solid rgba(250, 204, 21, 0.2);
}

.flipdown.flipdown__theme-dark .rotor-bottom,
.flipdown.flipdown__theme-dark .rotor-leaf-rear {
  color: #fbbf24;
  background-color: #0a0a0a;
  box-shadow: inset 0 0 2px rgba(250, 204, 21, 1);
}

.flipdown.flipdown__theme-dark .rotor:after {
  border-top: solid 1px rgba(250, 204, 21, 0.3);
}

.flipdown.flipdown__theme-dark .rotor-group {
  border: 1px solid rgba(250, 204, 21, 0.3);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

.flipdown.flipdown__theme-dark .rotor-group-delimiter:before,
.flipdown.flipdown__theme-dark .rotor-group-delimiter:after {
  background-color: #facc15;
  box-shadow: 0 0 10px #fbbf24;
}

.flipdown {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 20px;
  width: max-content;
  margin: 0 auto;
}

.flipdown .rotor-group {
  position: relative;
  padding: 10px;
  border-radius: 6px;
}

.flipdown .rotor-group-heading:before {
  display: block;
  height: 30px;
  line-height: 30px;
  text-align: center;
  font-size: 1.3rem;
}

.flipdown .rotor-group:nth-child(1) .rotor-group-heading:before {
  content: attr(data-before);
}

.flipdown .rotor-group:nth-child(2) .rotor-group-heading:before {
  content: attr(data-before);
}

.flipdown .rotor-group:nth-child(3) .rotor-group-heading:before {
  content: attr(data-before);
}

.flipdown .rotor-group:nth-child(4) .rotor-group-heading:before {
  content: attr(data-before);
}

.rotor-group:nth-child(n+2):nth-child(-n+3) {
  position: relative;
}

.rotor-group:nth-child(n+2):nth-child(-n+3)::before,
.rotor-group:nth-child(n+2):nth-child(-n+3)::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  left: -15px;
}

.rotor-group:nth-child(n+2):nth-child(-n+3)::before {
  bottom: 35px;
}

.rotor-group:nth-child(n+2):nth-child(-n+3)::after {
  bottom: 65px;
}

.rotor-group-delimiter:before,
.rotor-group-delimiter:after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.flipdown .rotor {
  position: relative;
  float: left;
  width: 60px;
  height: 100px;
  margin: 0px 5px 0px 0px;
  border-radius: 4px;
  font-size: 5rem;
  text-align: center;
  perspective: 200px;
}

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

.flipdown .rotor-top,
.flipdown .rotor-bottom {
  overflow: hidden;
  position: absolute;
  width: 60px;
  height: 50px;
}

.flipdown .rotor-leaf {
  z-index: 1;
  position: absolute;
  width: 60px;
  height: 100px;
  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: 60px;
  height: 50px;
  margin: 0;
  transform: rotateX(0deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flipdown .rotor-leaf-front {
  line-height: 100px;
  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: 100px;
  border-radius: 4px 4px 0px 0px;
}

.flipdown .rotor-bottom {
  bottom: 0;
  line-height: 0px;
  border-radius: 0px 0px 4px 4px;
}

.flipdown .rotor:after {
  content: '';
  z-index: 2;
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 60px;
  height: 50px;
  border-radius: 0px 0px 4px 4px;
}

@media (max-width: 720px) {
  .flipdown {
    grid-template-columns: repeat(2, auto);
    gap: 20px 15px; /* MODIFIED */
    width: max-content;
  }

  .flipdown .rotor-group {
    padding: 6px; /* MODIFIED */
  }

  .rotor-group:nth-child(n+2):nth-child(-n+3)::before,
  .rotor-group:nth-child(n+2):nth-child(-n+3)::after {
    display: none;
  }

  .flipdown .rotor-group:nth-child(odd) {
    position: relative;
  }

  .flipdown .rotor-group:nth-child(odd)::before,
  .flipdown .rotor-group:nth-child(odd)::after {
    display: block;
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    right: -11.5px; /* MODIFIED */
  }

  .flipdown .rotor-group:nth-child(odd)::before {
    bottom: 20px; /* MODIFIED */
  }

  .flipdown .rotor-group:nth-child(odd)::after {
    bottom: 44px; /* MODIFIED */
  }

  .flipdown .rotor {
    font-size: 3.5rem; /* MODIFIED */
    margin-right: 4px; /* MODIFIED */
  }

  .flipdown .rotor,
  .flipdown .rotor-leaf,
  .flipdown .rotor-leaf-front,
  .flipdown .rotor-leaf-rear,
  .flipdown .rotor-top,
  .flipdown .rotor-bottom,
  .flipdown .rotor:after {
    width: 45px; /* MODIFIED */
  }

  .flipdown .rotor-group-heading:before {
    font-size: 1.2rem; /* MODIFIED */
    height: 25px; /* MODIFIED */
    line-height: 25px; /* MODIFIED */
  }

  .flipdown .rotor-leaf-front,
  .flipdown .rotor-top {
    line-height: 75px; /* MODIFIED */
  }

  .flipdown .rotor-leaf,
  .flipdown .rotor {
    height: 75px; /* MODIFIED */
  }

  .flipdown .rotor-leaf-front,
  .flipdown .rotor-leaf-rear,
  .flipdown .rotor-top,
  .flipdown .rotor-bottom,
  .flipdown .rotor:after {
    height: 37.5px; /* MODIFIED */
  }

  .flipdown.flipdown__theme-dark .rotor-group {
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
  }
}

@media (max-width: 480px) {
  .flipdown.flipdown__theme-dark .rotor-group {
    top: -50%;
  }
}