.flipdown.flipdown__theme-dark .rotor-top,
.flipdown.flipdown__theme-dark .rotor-leaf-front {
    color: #E74C3C;
    background-color: #FFFFFF;
}

.flipdown.flipdown__theme-dark .rotor-bottom,
.flipdown.flipdown__theme-dark .rotor-leaf-rear {
    color: #E74C3C;
    background-color: #FFFFFF;
}

.flipdown.flipdown__theme-dark .rotor:after {
    border-top: solid 1px #E74C3C;
}

.flipdown {
    width: fit-content;
    height: auto;
    margin: 0 auto;
}

.flipdown:after {
    content: '';
    display: block;
    clear: both;
}

.flipdown .rotor-group {
    position: relative;
    float: left;
    margin-right: 2px;
    padding: 3px 3px 21px;
    background: #E74C3C;
    border-radius: 5px;
}

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

.flipdown .rotor-group-heading {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
}

.flipdown .rotor-group-heading:before {
    content: attr(data-before);
    display: block;
    color: #FFFFFF;
    font-family: 'Rubik', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 12px;
    text-transform: lowercase;
    text-align: center;
}

.flipdown .rotor {
    position: relative;
    float: left;
    width: 34px;
    height: 50px;
    margin: 0 2px 0 0;
    border-radius: 5px;
    color: #E74C3C;
    font-family: 'Rubik', sans-serif;
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    perspective: 200px;
}

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

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

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

.flipdown .rotor-leaf-front {
    line-height: 50px;
    border-radius: 5px 5px 0 0;
}

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

.flipdown .rotor-top {
    line-height: 50px;
    border-radius: 5px 5px 0 0;
}

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

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