/* THEMES */

/********** Theme: dark **********/
/* Font styles */
.flipdown.flipdown__theme-dark {
  font-family: "Roboto";
  font-weight: 700;
}
/* Rotor group headings */
.flipdown.flipdown__theme-dark .rotor-group-heading:before {
  color: #ffffff;
}
/* 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: #ffffff;
}
.flipdown.flipdown__theme-dark
  .rotor-group:nth-child(n + 1):nth-child(-n + 3):before,
.flipdown.flipdown__theme-dark
  .rotor-group:nth-child(n + 1):nth-child(-n + 3):after {
  background-color: #ffffff;
}
/* Rotor tops */
.flipdown.flipdown__theme-dark .rotor,
.flipdown.flipdown__theme-dark .rotor-top,
.flipdown.flipdown__theme-dark .rotor-leaf-front {
  color: #222222;
  font-weight: 700;
  background-color: #eeeeee;
}
/* Rotor bottoms */
.flipdown.flipdown__theme-dark .rotor-bottom,
.flipdown.flipdown__theme-dark .rotor-leaf-rear {
  color: #333333;
  font-weight: 700;
  background-color: #ffffff;
}
/* Hinge */
.flipdown.flipdown__theme-dark .rotor:after {
  /* border-top: solid 1px #e0e0e0; */
}

/********** Theme: light **********/
/* Font styles */
.flipdown.flipdown__theme-light {
  font-family: "Roboto";
  font-weight: 700;
}
/* Rotor group headings */
.flipdown.flipdown__theme-light .rotor-group-heading:before {
  color: #ffffff;
}
/* Delimeters */
.flipdown.flipdown__theme-light
  .rotor-group:nth-child(n + 1):nth-child(-n + 3):before,
.flipdown.flipdown__theme-light
  .rotor-group:nth-child(n + 1):nth-child(-n + 3):after,
.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: #ffffff;
}
/* Rotor tops */
.flipdown.flipdown__theme-light .rotor,
.flipdown.flipdown__theme-light .rotor-top,
.flipdown.flipdown__theme-light .rotor-leaf-front {
  color: #222222;
  font-weight: 700;
  background-color: #eeeeee;
}
/* Rotor bottoms */
.flipdown.flipdown__theme-light .rotor-bottom,
.flipdown.flipdown__theme-light .rotor-leaf-rear {
  color: #333333;
  font-weight: 700;
  background-color: #ffffff;
}
/* Hinge */
.flipdown.flipdown__theme-light .rotor:after {
  /* border-top: solid 1px #e0e0e0; */
}

/* END OF THEMES */

.flipdown {
  overflow: visible;
  display: flex;
  gap: 50px;
  zoom: .5;
}

.flipdown .rotor-group {
  position: relative;
  height: fit-content;
  margin-bottom: 10px;
  border-radius: 10px;
  background-color: #eeeeee;
}
.flipdown .rotor-group .rotor:nth-child(2) {
  border-radius: 10px 0 0 10px;
  overflow: hidden;
  text-align: right;
}

.flipdown .rotor-group .rotor:nth-child(3) {
  border-radius: 0 10px 10px 0;
  overflow: hidden;
  text-align: left;
}
.flipdown .rotor-group .rotor:nth-child(2):before {
    content: "";
    position: absolute;
    top: 50%;
    left: 4px;
    border-radius: 4px;
    overflow: hidden;
    background: #a30e13;
    width: 6px;
    height: 20px;
    z-index: 4;
    transform: translate(0, -50%);
  }
  .flipdown .rotor-group .rotor:nth-child(3):before {
      content: "";
      position: absolute;
      top: 50%;
      right: 4px;
      border-radius: 4px;
      overflow: hidden;
      background: #a30e13;
      width: 7px;
      height: 20px;
      z-index: 4;
      transform: translate(0, -50%);
    }
.flipdown .rotor-group:last-child {
  padding-right: 0;
}

.flipdown .rotor-group-heading:before {
  /* display: none; */
  height: 30px;
  line-height: 30px;
  text-align: center;
}

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

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

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

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

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

.flipdown .rotor {
  position: relative;
  float: left;
  width: 50px;
  height: 120px;
  margin: 0px;
  font-size: 3rem;
  text-align: center;
  perspective: 200px;
}
.flipdown .rotor-group .rotor-group-heading {
    display: flex;
    justify-content: center;
    font-size: 28px;
    text-transform: uppercase;
    font-weight: 500;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translate(-50%, 0);
}
.flipdown .rotor:last-child {
  margin-right: 0;
}

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

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

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