/*  For the following files
    /// resultAnalyze.blade.php  ///
    /// questions.blade.php      ///
    /// allResults.blade.php     ///
*/

body {
    font-family: "Nunito", sans-serif;
}

.active:hover {
    background-color: cornflowerblue;
}

.active:active {
    background-color: lightblue;
}

#questionForm {
    max-width: 75%;
}

.extra-item {
    background-color: lightgray;
}

.util-btn-group {
    margin-top: 1em;
    display: flex;
    flex-shrink: 0;
    flex-grow: 0;
    justify-content: flex-start;
    align-items: flex-end;
}

.hover-btn-group {
    max-width: 20%;
}

/* Toggle Button */

.util-btn-group .toggle-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    cursor: pointer;
}

.util-btn-group input[type="checkbox"] {
    visibility: hidden;
}
.util-btn-group input[type="checkbox"]:checked + label {
    background-color: #198754;
}
.util-btn-group input[type="checkbox"]:checked + label:before {
    transform: translateX(100%);
    background-color: #fff;
}

.util-btn-group label {
    display: flex;
    width: 5em;
    height: 2.5em;
    border: 5px solid #198754;
    border-radius: 99em;
    position: relative;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
    transform-origin: 50% 50%;
    cursor: pointer;
}

.util-btn-group label:before {
    transition: transform 0.2s ease, background-color 0.2s ease-in-out;
    transition-delay: 0.1s;
    content: "";
    display: block;
    position: absolute;
    width: 1.5em;
    height: 1.5em;
    background-color: #198754;
    border-radius: 50%;
    top: 12%;
    left: 12%;
}

.chart-container {
    margin: 2em 0 5em 0;
    display: flex;
    box-sizing: border-box;
    justify-content: space-around;
    align-items: center;
}

.typelist-pie-chart {
    width: 50%;
    height: auto;
}

@media only screen and (max-width: 768px) {
    #questionForm {
        max-width: 100%;
    }
    .util-btn-group {
        margin-top: 1em;
        display: flex;
        flex-shrink: 0;
        flex-grow: 0;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }
    .input-group .w-50 .p-2 {
        white-space: nowrap;
    }
    .hover-btn-group {
        max-width: 100%;
    }
}
