﻿.ly-question-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: clamp(8px,1vw,20px);
    width: 100%;
    padding-top: clamp(15px,1.6vw,30px);
}

.ly-progress-bar {
    height: 20px;
    width: 100%;
    border-radius: 10px;
    background-color: var(--ly-bprog-bar-gray);
}

.ly-progress-bar-value {
    display: inline-block;
    height: 100%;
    background-color: var(--ly-prog-bar-green);
    border-radius: inherit;
}

.ly-lesson-title, .ly-question-prompt {
    width: 100%;
    text-align: center;
    font-size: clamp(18px,1.3vw,22px);
}

.ly-question-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.ly-audio-btn {
    width: clamp(40px,5vw,80px);
}

    .ly-audio-btn img {
        width: 100%;
    }

.ly-question-wrapper.has-title .ly-audio-btn {
    width: 40px;
}

.ly-question-title {
    width: fit-content;
    color: var(--ly-bright-red);
    text-align: center;
    font-size: clamp(22px,1.7vw,30px);
}

.ly-question-image {
    width: clamp(100px,8vw,150px);
}

    .ly-question-image img {
        width: 100%;
    }

.ly-question-prompt {
    font-size: clamp(22px,1.7vw,30px);
}

.ly-question-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    --questions-footer-padding: clamp(15px,3.2vw,25px);
    padding: var(--questions-footer-padding);
    /*padding-bottom: calc(var(--questions-footer-padding) + 65px);*/
    padding-bottom: calc(var(--questions-footer-padding) + 0px);
    background-color: var(--ly-white);
    margin-top: 30px;
    box-shadow: 0px 1px 19.3px 5px #0000001A;
}

.answered .ly-offered-answer-image-title {
    visibility: unset;
}

.ly-question-footer.answered input[type="submit"] {
    display: none;
}

.ly-question-footer:not(.answered) .next {
    display: none;
}

.ly-question-footer.answered .next {
    display: unset;
}

.ly-question-footer:has(.wrong) {
    background-color: var(--ly-red);
    color: var(--ly-white);
}

.ly-question-footer:has(.correct) {
    background-color: var(--ly-dark-green);
    color: var(--ly-white);
}

.ly-question-footer-submit-holder {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 52%;
    height: 100%;
}

.ly-question-footer:has(#answer-result-container:empty) .ly-question-footer-submit-holder {
    justify-content: center;
}

.ly-question-footer .ly-primary-btn {
    padding-block: 10px;
}

.ly-question-footer.answered .ly-primary-btn {
    background-color: var(--ly-white);
    color: var(--ly-dark-red);
}

#answer-result-container:not(:empty) {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    width:48%;
    padding-inline-start: max(10px,1.5vw);
}

.ly-question-footer-answer-status-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ly-question-footer-answer-status-img {
    width: clamp(30px,3.5vw,60px);
}

.ly-question-footer-correct-answer-img{
    width:clamp(35px,4vw,60px);
}

.ly-question-footer-correct-answer-img img{
    width: 100%;
}

.ly-question-footer-answer-status-title {
    font-size: clamp(18px,1.6vw,30px);
    direction:ltr;
}

.ly-question-footer-correct-answer {
    margin-top: 5px;
    font-size: clamp(16px,1.2vw,20px);
    direction: ltr;
}

.ly-question-form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

#question-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.ly-answer-type-buttons {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: clamp(10px,1.2vw,20px);
    width: 100%;
}

    .ly-answer-type-buttons .ly-offered-answer {
        direction:ltr;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        border-radius: clamp(10px,1.2vw,20px);
        border: 1px solid var(--ly-dark-red);
        padding: clamp(10px,1.2vw,20px) 10px;
        font-size: clamp(22px,1.7vw,30px);
        color: inherit;
        transition: all ease .3s;
    }

        .ly-answer-type-buttons .ly-offered-answer.selected,
        .ly-answer-type-buttons .ly-offered-answer:not(.disabled):not(.selected):hover {
            color: var(--ly-white);
            background-color: var(--ly-dark-red);
            border: 1px solid transparent;
        }

        .ly-answer-type-buttons .ly-offered-answer.wrong {
            color: var(--ly-white);
            background-color: var(--ly-wrong-answer-red);
            border: 0;
        }

        .ly-answer-type-buttons .ly-offered-answer.correct {
            color: var(--ly-white);
            background-color: var(--ly-green);
            border: 0;
        }

        .ly-answer-type-buttons .ly-offered-answer.disabled {
            cursor: initial;
        }

.ly-answer-type-textarea {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 200px;
}

    .ly-answer-type-textarea .ly-offered-answer {
        direction: ltr;
        flex: 1;
        -webkit-appearance: none;
        width: 100%;
        border-radius: 20px;
        border: 1px solid var(--ly-dark-red);
        background-color: transparent;
        font-size: clamp(22px,1.6vw,30px);
        color: var(--ly-dark-red);
        font-family: sharktooth-bold;
        font-weight: 400;
        padding: 20px;
    }

.ly-rtl-lang {
    direction: rtl;
}

.ly-answer-type-image {
    --answer-img-gap-value: clamp(10px,2vw,30px);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--answer-img-gap-value);
}

    .ly-answer-type-image .ly-offered-answer {
        flex: calc(25% - var(--answer-img-gap-value)) 0 1;
    }

    .ly-answer-type-image .ly-offered-answer:not(.disabled) {
        cursor: pointer;
    }

        .ly-answer-type-image .ly-offered-answer img {
            width: 100%;
        }

.ly-offered-answer-image {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    max-height:180px;
    border: 2px solid transparent;
    border-radius: 17px;
    overflow: hidden;
    transition: all ease .3s;
}

    .ly-offered-answer-image.selected,
    .ly-offered-answer-image:not(.disabled):not(.selected):hover {
        border: 2px solid var(--ly-lesson-orange);
    }

.ly-offered-answer-image-title {
    width: 100%;
    text-align: center;
    font-size: clamp(20px,1.6vw,30px);
    margin-top: 5px;
    visibility: hidden;
}

.ly-answer-type-dragndrop-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.ly-answer-dropzone {
    direction:ltr;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 85px;
    background: transparent url("../../images/Lingofy/site/ly-dropzone-bg-desktop.png") bottom 5px center no-repeat;
    background-size: 98%;
    border-radius: 20px;
    padding: 20px;
    border: 2px solid transparent;
    transition: all ease .3s;
}

    .ly-answer-dropzone.active, .ly-answer-type-dragndrop.active {
        border: 2px solid var(--ly-dark-red);
    }

.ly-answer-type-dragndrop {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    min-height: 100px;
    border-radius: 20px;
    padding: 20px;
    border: 2px solid transparent;
    transition: all ease .3s;
}

    .ly-answer-type-dragndrop .ly-offered-answer, .ly-answer-dropzone .ly-offered-answer {
        direction: ltr;
        display:flex;
        justify-content:center;
        align-items:center;
        flex-shrink: 0;
        min-width: 90px;
        padding: 8px 15px;
        text-align: center;
        border: 1px solid var(--ly-dark-red);
        border-radius: 12px;
        font-size: clamp(20px,1.6vw,30px);
        cursor: grab;
        touch-action: none;
    }

@media screen and (max-width:480px) {
    .ly-question-footer-submit-holder {
        width: 40%;
    }

    .ly-question-footer-answer-status-wrapper {
        justify-content: space-around;
    }

    .ly-answer-type-textarea {
        flex: unset;
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: 200px;
    }

    .ly-answer-type-image {
        gap: 10px 20px;
    }

        .ly-answer-type-image .ly-offered-answer {
            flex: calc(40% - 10px) 0 1;
        }

    #answer-result-container:not(:empty) {
        width: unset;
    }
}
