.quiz-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quiz-title {
    flex: 1.3;
    text-align: left; /* Выравнивание по левому краю */
}

.quiz-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quiz-content-inner {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.quiz-answers {
    flex: 2.3;
}

.quiz-image {
    text-align: center;
}

.quiz-image img {
    max-width: 100%;
    height: auto;
}

/* Стили для мобильных устройств */
@media (max-width: 768px) {
    .quiz-content-inner {
        flex-direction: column;
    }

    .quiz-title, .quiz-answers {
        flex: none;
        width: 100%;
    }
}


.chekbox-answers {
    color: red;
    margin-bottom: 1rem;
    border: 1px solid red; /* Тонкая рамка вокруг */
    padding: 0.3rem; /* Добавим немного отступов */
    display: inline-block; /* Рамка вокруг текста */
}

.chekbox-answers p {
    margin: 0.1rem;
    font-size: 0.8rem;
}

.answers-list .answer-item {
    display: flex;
    align-items: center;
}

.answers-list .answer-item input {
    display: none; /* Скрываем стандартные чекбоксы и радиокнопки */
}

.answer-label {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease; /* Добавляем плавный переход */
}

.answer-label .custom-input {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 10px;
    text-align: center;
    line-height: 20px;
    font-size: 16px;
    border: 2px solid gray; /* Начальная цветная рамка */
    border-radius: 15%;
    position: relative;
}

.answer-label .custom-input::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Font Awesome 5 Free'; /* Используем шрифт Font Awesome */
    font-weight: 900; /* Делаем иконку жирной */
    color: transparent; /* Делаем иконку прозрачной по умолчанию */
}

.answer-label.correct {
    background: linear-gradient(to right, white, #d4f4d7, #a6e8a3); /* Градиентный фон для правильного ответа */
    color: green;
}

.answer-label.correct .custom-input {
    border-color: green; /* Зеленая рамка */
}

.answer-label.correct .custom-input::after {
    content: '\f00c'; /* Код иконки галочки */
    color: green; /* Зеленая иконка */
}

.answer-label.incorrect {
    background: linear-gradient(to right, white, #f4d7d7, #e8a3a3); /* Градиентный фон для неправильного ответа */
    color: red;
}

.answer-label.incorrect .custom-input {
    border-color: red; /* Красная рамка */
}

.answer-label.incorrect .custom-input::after {
    content: '\f00d'; /* Код иконки крестика */
    color: red; /* Красная иконка */
}

.quiz-comment-navigation {
    width: 100%;
}

.quiz-correct-answers {
    margin-top: 10px;
}

.quiz-correct-answers ul {
    list-style-type: none; /* Убираем стандартные маркеры списка */
    padding-left: 0; /* Убираем отступ слева */
}

.quiz-correct-answers li {
    margin-bottom: 5px;
    list-style-type: none; /* Скрываем маркеры для всех браузеров */
}

.correct-answer-icon {
    color: green;
    margin-right: 5px;
}

.incorrect-answer-icon {
    color: red;
    margin-right: 5px;
}

.quiz-comment {
    margin-top: 10px;
}

.quiz-navigation {
    margin-top: 20px;
}

.quiz-progress {
    margin-top: 20px;
}

/* Стили для скрытия и показа секций */
.sections-visible {
    display: flex;
    flex-direction: column;
}

.sections-nonvisible {
    display: none;
}

.quiz-result {

    display: flex;
    flex-direction: column;
    margin: 0 auto;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.quiz-result h2 {
    text-align: center;
    font-size: 1.5rem;
}
.high-score a, .low-score a {
    color: red;
}
.quiz-result p {
    text-align: center;
    font-size: 1rem;
}

.btn-toolbar {
    display: none;
}
.quiz-details h2, .quiz-container h2 {
    text-transform: none;
}
.quiz-container h3 {
    font-size: 1.3rem;
    line-height: 1.3rem;
    font-weight: 700;
    text-align: left;
}
.quiz-container h4 {
    margin: 5px 0;
    font-size: 1rem;
    line-height: 1.3rem;
    font-weight: 700;
    text-align: left;
}
.answer-text {
    font-weight: 400;
    font-size: 1rem;
}
.progress,.progress-stacked {
    --progress-height: 1rem;
    --progress-font-size: .75rem;
    --progress-bg: var(--secondary-bg);
    --progress-border-radius: var(--border-radius);
    --progress-box-shadow: var(--box-shadow-inset);
    --progress-bar-color: var(--shadow);
    --progress-bar-bg: var(--primary);
    --progress-bar-transition: width .6s ease;
    height: var(--progress-height);
    font-size: var(--progress-font-size);
    background-color: var(--theme-color);
    border-radius: var(--progress-border-radius);
    display: flex;
    overflow: hidden
}

.progress-bar {
    color: var(--progress-bar-color);
    text-align: center;
    white-space: nowrap;
    background-color: var(--primary);
    transition: var(--progress-bar-transition);
    flex-direction: column;
    justify-content: center;
    display: flex;
    overflow: hidden
}

.quiz-navigation .btn-success {
    background-color: var(--primary);
    color:white;
}

.quiz-correct-answers ul {
    font-weight: 400;
    margin: 0;
}

body:not(.com_gridbox) .body {
    margin: 0 0 25px 0!important;
}
.btn[disabled]{
    opacity: .45!important;
}

.answer-label .custom-input {
    flex: 0 0 1rem;
    height: 1rem;
}
