

/* */
.sheet-chapter-locked-container {
    position: relative;
    width: 100%;
    min-height: 100%;
    height: 100%;
    background-color: var(--qp-color-light-grey);
    padding: 0 16px;
}

.sheet-chapter-locked-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.sheet-chapter-locked-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 32px;
    text-align: center;
    margin-bottom: 8px;
}

.sheet-chapter-locked-subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
    margin-bottom: 0;
}

.sheet-chapter-locked-content-padding {
    padding: 0 24px;
}

.sheet-chapter-locked-bottom-buttons-container {
    display: flex;
    flex-direction: column;
    min-height: 96px;
    margin-top: auto;
    align-items: center;
}
/* */


/* */
.theory-loader-list-item {
    display:flex;
    align-items:center;

    background-color: white;
    margin-bottom: 16px;
    border-radius: 8px;
}

.theory-loader-list-item-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 16px
}
/* */

.theory-chapters-list, .theory-paragraphs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;

    width: 100%;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.theory-chapters-list-item {
    display: flex;
    width: 100%;
    height: 148px;
    padding: 16px;
    cursor: pointer;
}

.theory-chapters-list-item-image-container, .theory-paragraphs-list-item-image-container {
    width: 104px;
    height: 148px;
    min-width: 104px;
    flex: 0;

    margin: -16px 16px -16px -16px;
    background-color: var(--qp-color-image-bg-grey);

    overflow: hidden;
    border-radius: 8px;
}

.theory-chapters-list-item-image-container > img, .theory-paragraphs-list-item-image-container > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theory-chapters-list-item-info-container, .theory-paragraphs-list-item-info-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.theory-chapters-list-item-title, .theory-paragraphs-list-item-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    color: var(--qp-color-dark-grey);
}

.theory-chapters-list-item-description, .theory-paragraphs-list-item-description {
    flex: 1;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    color: var(--qp-color-blue-note);
}

.theory-chapters-list-item-verified-paragraphs-text, .theory-paragraphs-list-item-verified-paragraphs-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: black;
}

.theory-chapters-list-item-locked {
    display: flex;
    width: fit-content;
    height: 32px;
    border-radius: 40px;
    justify-content: space-between;
    align-items: center;
    background-color: var(--qp-color-dark-pink);
    padding: 8px 6px 8px 8px;
}

.theory-chapters-list-item-locked > img {
    height: 16px;
    width: 16px;
    object-fit: cover;
}

.theory-chapters-list-item-locked > p {
    height: 32px;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    color: var(--qp-color-blue-note);
}

/*
*
*
*
 */

.theory-chapter-details-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    color: var(--qp-color-blue-note);
}

.theory-chapter-details-paragraphs-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    color: var(--qp-color-blue-note);
}

.theory-chapter-cover-image-container, .theory-paragraph-cover-image-container {
    position: relative;
    height: 168px;
    margin: 0 -16px;
    background-color: var(--qp-color-image-bg-grey);
    margin-bottom: 24px;
}

.theory-chapter-cover-image, .theory-paragraph-cover-image{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* */

.theory-chapter-verified-status-container, .theory-paragraph-verified-status-container {
    position: absolute;
    left: 0;
    top: 120px;
}

.theory-paragraphs-list-item {
    display: flex;
    width: 100%;
    height: 135px;
    padding: 16px;
}

.theory-paragraphs-list-item-title {
    max-height: 40px;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    color: var(--qp-color-blue-note);
}

.theory-paragraphs-list-item-description {
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    color: var(--qp-color-dark-grey);
}

/* */
.theory-paragraphs-list-item-verified-status {
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: white;
    text-align: center;

    display: flex;
    width: fit-content;
    height: 32px;
    border-radius: 40px;
    justify-content: space-between;
    align-items: center;
    background-color: var(--qp-color-light-blue);
    padding: 6px 16px;

    transition: all 0.2s linear;
}

.theory-paragraphs-list-item-verified-status.verified {
    background-color: var(--qp-color-green);
}

.theory-paragraphs-list-item-verified-status:before {
    content: 'Da verificare';
}

.theory-paragraphs-list-item-verified-status.verified:before {
    content: 'Verificato';
}
/* */

.theory-paragraph-details-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    color: var(--qp-color-blue-note);
    margin-bottom: 16px;
}

.theory-paragraph-details-title.loading-active {
    min-height: 32px;
}

.theory-paragraph-details-description {
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    color: var(--qp-color-blue-note);
}

.theory-paragraph-youtube-video-container {
    display: flex;
    flex-direction: column;
}

.theory-paragraph-details-player {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;

    border-radius: 8px;
    margin: 0 auto;
}

/* */
.theory-paragraph-details-segmented-control-bottom-bar {
    width: 50%;
    transition: all 0.2s ease-out;
    transform: translateX(0);
}

.theory-paragraph-details-segmented-control-bottom-bar > div {
    min-width: calc(100% - 32px);
    width: 90%;
    height: 4px;
    border-radius: 32px;
    margin: 0 auto;
    background-color: var(--qp-color-blue-note);
}

.theory-paragraph-details-segmented-control-sticking-height {
    height: 51px;
}

.theory-paragraph-details-segmented-control-container {
    position: fixed;
    width: 100%;
    height: calc(80px + 56px);
    margin: -85px -16px 0 -16px;
    background-color: var(--qp-color-light-grey);
    padding-top: 70px;
    padding-bottom: 12px;
    z-index: 10;
}

.theory-paragraph-details-segmented-control-container > ul {
    height: calc(100% - 4px);
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.theory-paragraph-details-segmented-control-container > ul > li {
    display: flex;
    flex-direction: column;
    width: 50%;
    cursor: pointer;
}

.theory-paragraph-details-segmented-control-container li > p {
    font-size: 18px;
    font-weight: 400;
    height: 24px;
    line-height: 24px;
    color: var(--qp-color-blue-note);
    margin: auto;
}

.theory-paragraph-details-segmented-control-container:has(> ul > li.active) > ul > li.active > p {
    font-weight: 700;
    cursor: pointer;
    pointer-events: none;
}
/* */

.theory-paragraph-questions-list {
    padding-left: unset;
}

.theory-paragraph-questions-list-item {
    display: flex;
    width: 100%;
    min-height: 80px;
    padding: 16px;
}
.theory-paragraph-questions-list-item-text {
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    color: var(--qp-color-blue-note);
    padding: 0 16px;
}

.theory-paragraph-questions-list-item-answer {
    width: 40px;
    height: 40px;
    text-align: center;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 40px;
    color: white;
    margin: auto;
}

.theory-paragraph-questions-list-item-answer.true {
    background-color: var(--qp-color-green);
}

.theory-paragraph-questions-list-item-answer.false {
    background-color: var(--qp-color-red);
}

.theory-paragraph-verify-bottom-sticky-button {
    display: flex;
    position: fixed;
    bottom: var(--qp-settings-tabbar-height);
    margin-left: -16px;
    height: 80px;
    z-index: 1;

    width: -moz-available;
    width: -webkit-fill-available;
    width: fill-available;
}

.theory-quiz-progress-bar {
    display:flex;
    justify-content: flex-start;
    width: 100%;
    height: 16px;
    border-radius: 6px;
    background-color: var(--qp-color-medium-light-grey);
    overflow: hidden
}

.theory-quiz-progress-bar.correct {
    width: 0;
    flex-grow: 0;
    flex-shrink: 0;
    border-radius: 0;
    background-color: var(--qp-color-green);
    transition: width 0.4s ease-in-out;
}
.theory-quiz-progress-bar.wrong {
    width: 0;
    flex-grow: 0;
    flex-shrink: 0;
    border-radius: 0;
    background-color: var(--qp-color-red);
    transition: width 0.4s ease-in-out;
}

.theory-quiz-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background-color: white;
    padding: 16px;
    padding-bottom: 0;

    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s ease-in-out;
    transform-origin: bottom center;
}

.theory-quiz-card.showup {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.theory-quiz-card.showup.slideout {
    transform: scale(1) translateX(calc(-100% - 24px)) rotateZ(-5deg) !important;
}

.theory-quiz-card-title-audio-container {
    display: flex;
    height: 48px;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.theory-quiz-card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 20px;
    color: var(--qp-color-dark-grey);
}

.theory-quiz-card-title-audio-button {
    font-weight: 500;
    width: 124px;
    height: 48px;
    background-color: var(--qp-color-aqua);
}

.theory-quiz-card-answers-buttons-container {
    display: flex;
    height: 48px;
    gap: 24px;

    background-color: white;
    margin: 0 -16px 0 -16px;
    margin-top: auto !important;
    padding: 0 16px;
    min-height: 64px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.theory-quiz-card-text-container {
    background-color: white;
    margin: 0 -16px;
    padding: 0 16px 20px 16px;
}

.theory-quiz-card-answer-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--qp-color-blue-note);
    margin: 0;
}

.theory-quiz-card-image-container {
    justify-content: center;
    width: 100%;
    height: 150px;
}

.theory-quiz-card-image {
    width: 100%;
    height: 100%;
    background-color: transparent;
    object-fit: contain;
}

.theory-paragraph-header {
    position: relative;
}

.theory-paragraph-header-data-block {
    position: unset;
}

.theory-paragraph-questions {
    position: relative;
}

.theory-quiz-card-data-block {
    display: flex;
    flex-direction: column;
}

.theory-quiz-card-data-item-title-audio {
    order: 1;
}

.theory-quiz-card-data-item-image {
    order: 0;
}


/* DESKTOP CLASSES AND MEDIA QUERIES */
@media screen and (min-width: 992px) {
    .theory-chapter-header {
        display: flex;
        margin-bottom: 32px;
    }

    .theory-paragraph-header {
        display: flex;
        margin-top: 40px;
    }

    .theory-chapter-cover-image-container, .theory-paragraph-cover-image-container {
        position: relative;
        width: 168px;
        height: 168px;
        margin: 0 24px 0 0;
        border-radius: 8px;
        overflow: hidden;
        background-color: var(--qp-color-image-bg-grey);
        flex: none;
    }

    .theory-chapter-details-number {
        font-size: 16px;
        font-weight: 700;
        line-height: 20px;
        color: var(--qp-color-dark-grey);
    }

    .theory-paragraph-verify-bottom-sticky-button {
        position: relative;
        width: 274px;
        height: auto;
        padding: 0;
        bottom: 0;
        margin-left: 0;
        margin-top: auto;
    }

    .theory-paragraph-header-data-block {
        position: relative;
        display: flex;
        flex-direction: column;
        min-height: 168px;
        margin-bottom: 32px;
    }

    .theory-paragraph-verified-status-container {
        position: relative;
        left: 0;
        top: 0;
        margin-bottom: 24px;
    }

    .theory-paragraph-details-segmented-control-container {
        margin-top: -12px;
    }

    .theory-paragraph-details-segmented-control-sticking-height {
        height: 100px;
    }

    .theory-paragraph-details-segmented-control-container > ul {
        width: 300px;
    }

    .theory-paragraph-youtube-video-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(calc(50% - 12px), 1fr));
        gap: 24px;
    }

    .theory-paragraph-breadcrumb-container {
        position: fixed;
        display: flex;
        justify-content: left;
        flex-wrap: wrap;
        min-height: 65px;
        margin: -24px -16px 0 -16px;
        background-color: var(--qp-color-light-grey);
        z-index: 20;

        width: -moz-available;
        width: -webkit-fill-available;
        width: fill-available;
    }

    .theory-paragraph-breadcrumb-list {
        display: flex;
        list-style-type: none;
        margin: auto 0;
        padding: 0 16px;
    }

    .theory-paragraph-breadcrumb-list > li {
        display: flex;
        font-size: 20px;
        line-height: 24px;
        color: var(--qp-color-blue-note);
    }

    .theory-paragraph-breadcrumb-list > li > a {
        font-size: 18px;
        line-height: 24px;
    }

    .theory-paragraph-breadcrumb-list > li:not(:first-child):before {
        content: url('/images/app/accessory-right.svg');
        padding: 0 8px;
    }

    .theory-paragraph-questions {
        margin-top: 40px;
    }

    .theory-quiz-card-data-block {
        flex-direction: row;
        gap: 16px;
    }

    .theory-quiz-card-image-container {
        justify-content: center;
        width: 100%;
        height: 100%;
        max-height: 300px
    }

    .theory-quiz-card-data-item-title-audio {
        order: 1;
        flex: 1;
    }

    .theory-quiz-card-data-item-image {
        order: 0;
    }

    .theory-quiz-card-answers-buttons-container {
        width: 60%;
        margin-left: auto;
    }

    .theory-paragraph-details-segmented-control-bottom-border {
        border-bottom: solid;
        border-bottom-width: 2px;
        border-bottom-color: var(--qp-color-medium-light-grey);
        width: 100%;
    }

}
/* DESKTOP CLASSES AND MEDIA QUERIES -eof- */