/****************************** Start of Accordian CSS *********************************/


/***************************************************************************************/


/*
IMPORTANT NOTE!!: Any input fields such as text boxes must be put inside there own div and have its opacity set to 1
*/


/*https://codepen.io/raubaca/pen/PZzpVe*/

.acc-row {
    display: flex;
    width: 90%;
    position: relative;
    left: 50%;
    transform: translate(-50%);
}

.acc-row input {
    position: absolute;
    opacity: 0;
    /*unfortunately this hides all text boxes and other inputs */
    z-index: -1;
    /*unfortunately this hides all text boxes and other inputs */
}

.exercise-tables input {
    position: relative;
    opacity: 1;
    z-index: 1;
}

.acc-row .acc-col {
    flex: 1;
}

.acc-row .acc-col:last-child {
    margin-left: 1em;
}


/* Accordion styles */

.acc-tabs {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.5);
}

.acc-tab {
    width: 100%;
    color: white;
    overflow: hidden;
}

.acc-tab-label {
    display: flex;
    justify-content: space-between;
    padding: 1em;
    background: #2c3e50;
    font-weight: bold;
    cursor: pointer;
    font-size: 20px;
    /* Icon */
}

.acc-tab-label:hover {
    background: #1a252f;
}

.acc-tab-label::after {
    content: "\276F";
    width: 1em;
    height: 1em;
    text-align: center;
    transition: all 0.35s linear;
}

.acc-tab-content {
    max-height: 0;
    padding: 0 1em;
    color: #2c3e50;
    background: white;
    transition: all 0.35s linear;
    display: flex;
    flex-direction: column;
}

.acc-row input:checked+.acc-tab-label {
    background: #1a252f;
}

.acc-row input:checked+.acc-tab-label::after {
    transform: rotate(90deg);
}

.acc-row input:checked~.acc-tab-content {
    max-height: 100vh;
    padding: 1em;
    overflow-y: auto;
}