.flipdown.flipdown__theme-light .rotor-group-heading:before {
  color: #fff;
}

.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: #9f7849;
}

.flipdown.flipdown__theme-light .rotor,
.flipdown.flipdown__theme-light .rotor-top,
.flipdown.flipdown__theme-light .rotor-leaf-front {
  color: #fff;
  background-color: #9f7849;
}

.flipdown.flipdown__theme-light .rotor-bottom,
.flipdown.flipdown__theme-light .rotor-leaf-rear {
  color: #fff;
  background-color: #9f7849;
}

.flipdown.flipdown__theme-light .rotor:after {
  border-top: solid 1px #996c42;
}

/*.flipdown.flipdown__theme-light .rotor-group:nth-child(1) .rotor-bottom,
.flipdown.flipdown__theme-light .rotor-group:nth-child(1) .rotor-leaf-rear,
.flipdown.flipdown__theme-light .rotor-group:nth-child(1) .rotor-top,
.flipdown.flipdown__theme-light .rotor-group:nth-child(1) .rotor-leaf-front,
.flipdown.flipdown__theme-light .rotor-group:nth-child(1) .rotor {
  color: #9f7849;
  background: #fff;
}*/
.flipdown {
  font-weight: 700;
  overflow: visible;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
}

.flipdown .rotor-group {
  position: relative;
  margin-right: 30px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
}

.flipdown .rotor-group:last-child {
  margin-right: 0;
}

.flipdown .rotor-group-heading {
  width: 100%;
  font-weight: 600;
  position: absolute;
  bottom: -30px;
  text-align: center;
  text-transform: uppercase;
  z-index: 3;
}

.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 {
  position: relative;
  width: 50px;
  height: 80px;
  margin: 0px 5px 0px 0px;
  border-radius: 4px;
  font-size: 64px;
  line-height: 80px;
  text-align: center;
  -webkit-perspective: 200px;
  perspective: 200px;
}

.flipdown .rotor:last-child {
  margin-right: 0;
}

.flipdown .rotor-top,
.flipdown .rotor-bottom {
  overflow: hidden;
  position: absolute;
  width: 50px;
  height: 40px;
}

.flipdown .rotor-leaf {
  z-index: 1;
  position: absolute;
  width: 50px;
  height: 80px;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-transition: -webkit-transform 0s;
  transition: -webkit-transform 0s;
  -o-transition: transform 0s;
  transition: transform 0s;
  transition: transform 0s, -webkit-transform 0s;
}

.flipdown .rotor-leaf.flipped {
  -webkit-transform: rotateX(-180deg);
  transform: rotateX(-180deg);
  -webkit-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}

.flipdown .rotor-leaf-front,
.flipdown .rotor-leaf-rear {
  overflow: hidden;
  position: absolute;
  width: 50px;
  height: 40px;
  margin: 0;
  -webkit-transform: rotateX(0deg);
  transform: rotateX(0deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flipdown .rotor-leaf-front {
  line-height: 80px;
  border-radius: 4px 4px 0px 0px;
}

.flipdown .rotor-leaf-rear {
  line-height: 0px;
  border-radius: 0px 0px 4px 4px;
  -webkit-transform: rotateX(-180deg);
  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;
}

.flipdown .rotor:after {
  content: '';
  z-index: 2;
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 50px;
  height: 40px;
  border-radius: 0px 0px 4px 4px;
}

.flipdown.flipdown__theme-light .rotor::after {
  border-top: solid 1px rgba(0, 0, 0, 0.3);
}

.flipdown.flipdown__theme-light .rotor,
.flipdown.flipdown__theme-light .rotor-top,
.flipdown.flipdown__theme-light .rotor-leaf-front {
  background-color: #fff;
  color: #000;
}

.flipdown.flipdown__theme-light .rotor-bottom,
.flipdown.flipdown__theme-light .rotor-leaf-rear {
  background-color: #fff;
  color: #000;
}

.flipdown.flipdown__theme-light .rotor-group:nth-child(1) .rotor::after {
  /*border-top: solid 1px #ccab04;*/
}

.flipdown.flipdown__theme-light .rotor-group:nth-child(1) .rotor,
.flipdown.flipdown__theme-light .rotor-group:nth-child(1) .rotor-top,
.flipdown.flipdown__theme-light .rotor-group:nth-child(1) .rotor-leaf-front {
  background-color: #f2cb05;
  color: #000;
}

.flipdown.flipdown__theme-light .rotor-group:nth-child(1) .rotor-bottom,
.flipdown.flipdown__theme-light .rotor-group:nth-child(1) .rotor-leaf-rear {
  background-color: #f2cb05;
  color: #000;
}
