.custom-modal {
    background-image: url("/images/ozatbot/backgroundGenerate.jpg");
    padding: 5% 10% 5% 10%;
    background-size: cover;
}

.robot-animation {
    width: 167px;
    height: 175px;
    background-size: cover;
    background-image: url('/images/robot/robot-ask.gif');
    position: absolute;
    left: 2%;
    top: 30%;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    transform: rotate(-20deg);
    animation: robotAnimation 4s ease-in-out infinite;
    display: block;
}

.custom-modal[style*="padding: 0px;"] .robot-animation {
    display: none;
}

@keyframes robotAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.custom-modal-body {
    justify-content: start;
}

.question-header-read-diagnostic-tasks {
    display: flex;
    /*justify-content: start;*/
    align-items: center;
    flex-flow: row;
    padding: 15px;
    width: 100%;
    gap: 30px
}

.question-header-read-diagnostic-tasks div {
    display: flex;
    flex-flow: row;
    color: #000;
    font-weight: bold;
}

.difficulty-read-diagnostic-tasks span {
    color: #f7931e;
}

.question-solution-collapsible-read-diagnostic-tasks {
    display: flex;
    /*align-items: center;*/
    text-align: center;
    padding: 5px 5px 5px 15px;
    gap: 5px;
    font-size: 18px;
    justify-content: flex-start;
    width: max-content;
    border-radius: 8px;
    margin-left: 20px;
    /*border: 1px solid #ddd;*/
    background: #3d366d;
    color: #FFFFFF;
    cursor: pointer;
}

.question-solution-collapsible-read-diagnostic-tasks:hover {
    background: #25b6a8;
}

.material-icons {
    cursor: pointer;
}

.question-solution-solution-read-diagnostic-tasks {
    display: flex;
    flex-direction: row;
    justify-content: center;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background-color: #f6f9ff;
    margin-top: 20px;
    padding: 20px;
    vertical-align: top;
    text-align: center;
    gap: 20px;
}

.solution-display-none {
    display: none !important;
}

.solution-type-read-diagnostic-tasks {
    display: flex;
    align-items: center;
    flex-direction: column;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    width: 350px;
    height: 250px;
}

.solution-type-read-diagnostic-tasks:hover img,
.theory-read-diagnostic-tasks:hover img {
    transform: scale(1.1); /* увеличение картинки */
}

.solution-type-read-diagnostic-tasks img,
.theory-read-diagnostic-tasks img {
    background-size: cover;
    transition: transform 0.3s ease; /* добавление плавности анимации */
}

.solution-type-read-diagnostic-tasks:hover,
.theory-read-diagnostic-tasks:hover {
    opacity: 0.9;
}

.solution-type-read-diagnostic-tasks span {
    padding: 5px 10px;
    background: #3d366d;
    border-bottom-left-radius: 5px;
    border-top-left-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #fff;
}

.theory-read-diagnostic-tasks {
    background: #fff;
}

.theory-read-diagnostic-tasks span {
    padding: 5px 10px;
    background: #3d366d;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #fff;
}

.solution-type-read-diagnostic-tasks a {
    background: #fff;
    /*border: 1px solid #3d366d;*/
    text-shadow: none;!important;
    border-bottom: none;
    font-weight: 500;
    justify-content: center;
    align-items: center;
    display: flex;
    padding: 5px 10px;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    color: #004aac;
    cursor: pointer;
    width: 350px;
    height: 50px;
    z-index: 100;
}

.no-solution-type-read-diagnostic-tasks span {
    color: #000;
}

.changer-read-diagnostic-tasks span {
    color: #000;
    cursor: pointer;
}

.solution-header-read-diagnostic-tasks {
    display: flex;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.5;
    padding: 1rem;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    align-items: center;
}

.solution-header-read-diagnostic-tasks i {
    margin-right: 1rem;
}

.video-solution-read-diagnostic-tasks,
.theory-solution-read-diagnostic-tasks{
    display: inline-block;
    width: 380px;
    padding: 20px;
    vertical-align: top; /* Выравнивание блоков по верхнему краю */
    text-align: center;
}

.video-solution-read-diagnostic-tasks h4,
.theory-solution-read-diagnostic-tasks h4 {
    font-size: 24px;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    margin: 10px 10px;
}
/********************************************/

.question-bottom-read-diagnostic-tasks {
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: min-content;
    width: 100%;
    padding: 10px 5px;
    gap: 5px;
}

.question-bottom-controller-read-diagnostic-tasks {
    display: flex;
    width: 100%;
    justify-content: center;
}

.question-bottom-controller-created-read-diagnostic-tasks {
    display: flex;
    width: 100%;
    padding: 0 0 10px 0;
    justify-content: center;
    align-items: center;
}

.question-bottom-controller-created-button-read-diagnostic-tasks {
    display: flex;
    justify-content: start;
    align-items: center;
    width: max-content;
    background: #f7931e;
    padding: 5px;
    border-radius: 50px;
    cursor: pointer;
    border: 2px solid #ddd;
}

.question-bottom-controller-created-button-read-diagnostic-tasks:hover,
.question-bottom-controller-created-button-read-diagnostic-tasks:active {
    opacity: 0.9;
    border: 2px solid #fff;
}

.question-bottom-controller-created-button-text-read-diagnostic-tasks {
    display: flex;
    padding: 0 20px;
    width: max-content;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 25px;
    letter-spacing: 5px;
}

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

.video-frame {
    width: 340px;
    height: 200px;
    border-radius: 5px;
    overflow: hidden; /* Обрезаем изображение по границам блока */
    position: relative;
}

.video-frame img {
    width: 100%; /* Растягиваем изображение на 100% ширины блока */
    height: auto; /* Поддерживаем соотношение сторон */
    transition: transform 0.3s ease; /* добавление плавности анимации */
}

.video-frame:hover img {
    transform: scale(1.1); /* увеличение картинки */
}

.lecture-frame {
    width: 340px;
    height: 200px;
    border-radius: 5px;
    overflow: hidden; /* Обрезаем изображение по границам блока */
    position: relative;
}

.lecture-frame img {
    width: 100%; /* Растягиваем изображение на 100% ширины блока */
    height: auto; /* Поддерживаем соотношение сторон */
    transition: transform 0.3s ease;
}

.lecture-frame:hover img {
    transform: scale(1.1);
}

/*.swal2-popup {*/
/*    width: 700px; !* Задайте нужную ширину *!*/
/*    height: 500px;*/
/*    max-width: 80%; !* Максимальная ширина для более адаптивного дизайна *!*/
/*    background-color: #fff; !* Цвет фона *!*/
/*    color: #333; !* Цвет текста *!*/
/*    border: 2px solid #aaa; !* Граница *!*/
/*    border-radius: 8px; !* Скругление углов *!*/
/*    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); !* Тень *!*/
/*    overflow: hidden;*/
/*}*/

/*.swal2-title {*/
/*    font-size: 1.5em; !* Размер шрифта заголовка *!*/
/*    color: #333; !* Цвет заголовка *!*/
/*}*/

/*.swal2-close {*/
/*    color: #aaa; !* Цвет кнопки закрытия *!*/
/*}*/

@keyframes slideIn {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.lecture-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    position: relative;
    transform: translateY(100%);
    animation: slideIn 0.3s ease forwards;
    border-radius: 10px;
}

.lecture-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.lecture-modal-header {
    border-bottom: 1px solid #c0c0c0;
    padding: 0 10px 20px 10px;
    display: flex;
    justify-content: space-between; /* для горизонтального выравнивания */
    align-items: center; /* для вертикального выравнивания */
}

.lecture-header-title {
    font-size: 24px;
    margin: 0;
}

.lecture-close {
    color: #aaa;
    top: 0;
    right: 0;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.lecture-close:hover,
.lecture-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.lecture-image-container {
    text-align: center;
    margin: 20px;
}

.lecture-image-container img {
    max-width: 100%;
    height: auto;
}

@keyframes slideOut {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

.lecture-modal-content.close {
    animation: slideOut 0.3s ease forwards;
}

.lecture-modal-content.close {
    transform: translateY(100%);
}
/********************************************/
.btn-question-bottom-read-diagnostic-tasks-parent {
    display: flex;
    padding: 0;
    border: 1px solid #ddd;
    background: #f1f1f1;
    border-radius: 15px;
}

.btn-question-bottom-read-diagnostic-tasks-parent-invisible {
    border: none;
    background: transparent;
}

.btn-question-bottom-read-diagnostic-tasks {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 15px;
    height: 15px;
    border: 1px solid #ddd;
    background: #ddd;
    border-radius: 50%;
    color: #3d366d;
    margin: 5px;
    cursor: pointer;
}

.btn-question-bottom-read-diagnostic-tasks:hover {
    background: #f5ad61;
}

.btn-back-read-diagnostic-tasks {
    display: flex;
    gap: 10px;
    background: #37a38e;
    border: none;
    color: #fff;
    line-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 5px 25px;
    margin: 10px 0px;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
}

.btn-next-read-diagnostic-tasks {
    display: flex;
    gap: 10px;
    background: #37a38e;
    border: none;
    color: #fff;
    line-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 5px 25px;
    margin: 10px 0px;
    border-bottom-right-radius: 50px;
    border-top-right-radius: 50px;
}

.btn-analyze-read-diagnostic-tasks,
.btn-finish-read-diagnostic-tasks {
    background-color: #363d8d;
    border: 1px solid #363d8d;
    color: #fff;
    line-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px 0px;
    padding: 5px 30px;
    border-radius: 7px
}

.btn-back-read-diagnostic-tasks:hover,
.btn-next-read-diagnostic-tasks:hover,
.btn-analyze-read-diagnostic-tasks:hover,
.btn-finish-read-diagnostic-tasks:hover {
    opacity: 0.7;
}

.btn-analyze-read-diagnostic-tasks {
    background: #f7931e;
    border: #f7931e;
}

.btn-read-diagnostic-tasks-blocked {
    opacity: 0.3;
    background: rgb(221, 221, 221);
    color: #3d366d;
    cursor: not-allowed;
    text-shadow: none;
}

.correct-diagnostic {
    background: #a0f58f !important;
    border: 2px solid #7dd76b !important;
}

.wrong-diagnostic {
    background: #ffa9a3 !important;
    border: 2px solid #ff9088 !important;
}

.current-diagnostic {
    border: 2px solid #3d366d !important;
}

.read-diagnostic-tasks-modal-header {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    padding: 0 10px;
    height: 50px;
}

.help-diagnostic-test {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f7931e;
    padding: 0 10px;
    border-radius: 0 0 15px 15px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    height: 50px;
    gap: 10px;
    cursor: pointer;
    width: max-content;
}

#question_header_left_read_diagnostic_tasks,
#question_header_right_read_diagnostic_tasks {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f7931e;
    padding: 0 10px;
    border-radius: 0 0 15px 15px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    height: 50px;
    width: 40px;
    cursor: pointer;
}

.read-diagnostic-tasks-modal-header div:hover,
.read-diagnostic-tasks-modal-header div:active {
    opacity: 0.9;
}

.read-diagnostic-tasks-modal-header div a {
    background: #f7931e;
    color: #fff;
    box-shadow: none;
    border: none;
}

/*.mjx-chtml,*/
/*.MJXc-display,*/
/*.MathJax_CHTML {*/
/*    display: flex !important;*/
/*    position: relative !important;*/
/*    justify-content: center !important;*/
/*    align-items: center !important;*/
/*    margin: 0 !important;*/
/*    padding: 0 5px !important;*/
/*    font-size: 100% !important;*/
/*    white-space: normal !important;*/
/*}*/

#question_hidden_body_read_diagnostic_tasks {
    display: none;
}

.question-body-read-diagnostic-tasks {
    width: 100%;
    display: flex;
    flex-flow: column;
    scroll-behavior: smooth;
    padding: 20px;
    gap: 20px;
    height: 100%;
}

.diagnostic-test-loading {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
}

.diagnostic-test-loading img {
    height: 50px;
}

.mentor-connection-diagnostic {

}

.mentor-connection-diagnostic:hover {
    opacity: 0.9;
}

.mentor-connection-diagnostic span {
    padding: 5px 10px;
    background: #3d366d;
    border-bottom-left-radius: 5px;
    border-top-left-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #fff;
}

.mentor-connection-diagnostic a {
    background: #fff;
    border: 1px solid #3d366d;
    justify-content: center;
    align-items: center;
    display: flex;
    padding: 5px 10px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    color: #3d366d;
    cursor: pointer;
}

.mentor-connection-diagnostic-test {
    display: flex;
    justify-content: center;
    border-radius: 0 0 15px 15px;
    background: #f7931e;
    width: max-content;
    height: 50px;
    padding: 0 15px;
    gap: 10px;
}

.mentor-connection-diagnostic-test:hover {
    opacity: 0.9;
}

.mentor-connection-diagnostic-test span {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.mentor-connection-diagnostic-test a {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 12px;
    background: #f7931e;
}

.question-solution-read-diagnostic-tasks {
    width: 100%;
    margin-top: 15px;
}

@media (max-width: 1300px) {
    .robot-animation {
        width: 120px;
        height: 125px;
    }
}
@media (max-width: 1100px) {
    .robot-animation {
        width: 72px;
        height: 75px;
    }
}
@media (max-width: 767px) {
    .question-body-read-diagnostic-tasks {
        padding: 10px;
    }

    .btn-back-read-diagnostic-tasks,
    .btn-next-read-diagnostic-tasks,
    .btn-finish-read-diagnostic-tasks {
        padding: 5px 5px;
    }

    .question-bottom-read-diagnostic-tasks {
        gap: 3px;
        background: none;
    }

    .question-header-read-diagnostic-tasks {
        gap: 10px;
    }

    .btn-question-bottom-read-diagnostic-tasks {
        width: 10px;
        height: 10px;
        margin: 3px;
        font-size: 0;
    }

    .custom-modal-footer a {
        margin: 0;
        width: 33.33%;
        border-radius: 0;
        padding: 20px 5px;
    }
}

.diagnostic-test-progress-bar {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.diagnostic-test-progress-bar-circular{
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: conic-gradient(#fff 0deg, transparent 0deg);
    display: flex;
    justify-content: center;
    align-items: center;
}

.diagnostic-test-progress-bar-circular:after {
    position: absolute;
    content: '';
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f7931e;
}

.diagnostic-test-progress-bar-circular-span {
    font-size: 16px;
    font-weight: 300;
    color: #fff;
    z-index: 1;
}

@media (max-width: 767px) {
    .robot-animation {
        display: none;
    }

    .question-solution-solution-read-diagnostic-tasks {
        /*width: 100%;*/
        /*height: 100%;*/
        /*padding: 10px;*/
        /*display: none;*/
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .question-solution-collapsible-read-diagnostic-tasks {
        text-align: center;
        /*padding: 5px 5px 5px 10px;*/
        /*font-size: 16px;*/
        display: flex;
        /*align-items: center;*/
        flex-direction: row;
        margin-top: 10px;
    }
}