/* THEMES */

/********** Theme: dark **********/
/* Font styles */
.flipdown.flipdown__theme-dark {
    font-family: sans-serif;
    font-weight: bold;
}
/* 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: #151515;
}
/* Rotor tops */
.flipdown.flipdown__theme-dark .rotor,
.flipdown.flipdown__theme-dark .rotor-top,
.flipdown.flipdown__theme-dark .rotor-leaf-front {
    color: #FFFFFF;
    background-color: #151515;
}
/* Rotor bottoms */
.flipdown.flipdown__theme-dark .rotor-bottom,
.flipdown.flipdown__theme-dark .rotor-leaf-rear {
    color: #EFEFEF;
    background-color: #202020;
}
/* Hinge */
.flipdown.flipdown__theme-dark .rotor:after {
    border-top: solid 1px #151515;
}

/********** 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 */

.flipdown {
    overflow: visible;
    width: 300px; /* Adjusted for smaller size */
    height: 60px; /* Adjusted for smaller size */
}

.flipdown .rotor-group {
    position: relative;
    float: left;
    padding-right: 15px; /* Reduced padding */
}

.flipdown .rotor-group:last-child {
    padding-right: 0;
}

.flipdown .rotor {
    position: relative;
    float: left;
    width: 30px; /* Smaller width */
    height: 50px; /* Smaller height */
    margin: 0px 3px 0px 0px; /* Adjusted margin */
    border-radius: 3px;
    font-size: 2rem; /* Reduced font size */
    text-align: center;
    perspective: 150px; /* Adjusted for smaller dimensions */
}

.flipdown .rotor:last-child {
    margin-right: 0;
}

.flipdown .rotor-top,
.flipdown .rotor-bottom {
    overflow: hidden;
    position: absolute;
    width: 30px; /* Match rotor width */
    height: 25px; /* Match half of rotor height */
}

.flipdown .rotor-leaf {
    z-index: 1;
    position: absolute;
    width: 30px; /* Match rotor width */
    height: 50px; /* Match rotor height */
    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: 30px; /* Match rotor width */
    height: 25px; /* Match half of rotor height */
    margin: 0;
    transform: rotateX(0deg);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flipdown .rotor-leaf-front {
    line-height: 50px; /* Adjust for smaller size */
    border-radius: 3px 3px 0px 0px;
}

.flipdown .rotor-leaf-rear {
    line-height: 0px;
    border-radius: 0px 0px 3px 3px;
    transform: rotateX(-180deg);
}

.flipdown .rotor-top {
    line-height: 50px; /* Adjust for smaller size */
    border-radius: 3px 3px 0px 0px;
}

.flipdown .rotor-bottom {
    bottom: 0;
    line-height: 0px;
    border-radius: 0px 0px 3px 3px;
}

.flipdown .rotor:after {
    content: '';
    z-index: 2;
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 30px; /* Match rotor width */
    height: 25px; /* Match half of rotor height */
    border-radius: 0px 0px 3px 3px;
}

/* Adjustments for smaller screen sizes */
@media (max-width: 550px) {

    .flipdown {
        width: 200px; /* Smaller width for mobile */
        height: 50px;
    }

    .flipdown .rotor {
        font-size: 1.5rem; /* Further reduced font size */
        margin-right: 2px;
    }

    .flipdown .rotor,
    .flipdown .rotor-leaf,
    .flipdown .rotor-leaf-front,
    .flipdown .rotor-leaf-rear,
    .flipdown .rotor-top,
    .flipdown .rotor-bottom,
    .flipdown .rotor:after {
        width: 20px;
    }

    .flipdown .rotor-group {
        padding-right: 10px;
    }

    .flipdown .rotor-group:last-child {
        padding-right: 0px;
    }

    .flipdown .rotor-leaf-front,
    .flipdown .rotor-top {
        line-height: 40px;
    }

    .flipdown .rotor-leaf,
    .flipdown .rotor {
        height: 40px;
    }

    .flipdown .rotor-leaf-front,
    .flipdown .rotor-leaf-rear,
    .flipdown .rotor-top,
    .flipdown .rotor-bottom,
    .flipdown .rotor:after {
        height: 20px;
    }
}
