body {
    background-color: #f0f2f5;
    margin: 0;
    font-family: Arial, sans-serif;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;  /* Немного уменьшили высоту */
}

.login-form {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 15px 25px;  /* Уменьшили padding */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 350px;
    text-align: center;
}

.login-form h2 {
    margin-bottom: 20px;
    color: #333333;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #dfe1e5;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: #f7f9fc;
    transition: border-color 0.3s;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: #007bff;
    outline: none;
}

.login-form input[type="submit"] {
    width: 100%;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

.login-form input[type="submit"]:hover {
    background-color: #0056b3;
}

/* styles.css */

/* Стили только для меню с классом main-menu */
/* Основные стили для меню */
.main-menu {
    background-color: #333; /* Цвет фона */
    padding: 15px 20px; /* Внутренние отступы */
    display: flex; /* Делаем элементы флексовыми */
    justify-content: space-between; /* Разделение элементов по краям */
    align-items: center; /* Выравнивание по вертикали */
}

.menu-list {
    list-style: none; /* Убираем маркеры списка */
    padding: 0; /* Убираем внутренние отступы */
    margin: 0; /* Убираем внешние отступы */
    display: flex; /* Отображаем элементы в одной строке */
}

.menu-list li {
    display: inline-block; /* Отображаем пункты меню в одной строке */
    margin-right: 25px; /* Отступ между пунктами меню */
}

.menu-list li:last-child {
    margin-right: 0; /* Убираем отступ у последнего пункта меню */
}

.menu-list li a {
    color: #fff; /* Цвет текста ссылок */
    text-decoration: none; /* Убираем подчеркивание у ссылок */
    padding: 12px 20px; /* Внутренние отступы ссылок */
    border-radius: 8px; /* Закругляем углы ссылок */
    font-weight: bold; /* Жирный шрифт */
}

.menu-list li a:hover {
    background-color: #555; /* Цвет фона ссылки при наведении */
}

.active a {
    background-color: #969696; /* Цвет фона для активного элемента */
    color: #000; /* Цвет текста активной ссылки */
}

/* Кнопка выхода */
.logout-button {
    background-color: #f44336; /* Красный цвет кнопки */
    color: #fff; /* Белый текст */
    border: none;
    padding: 12px 20px; /* Внутренние отступы */
    border-radius: 8px; /* Закругление */
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.logout-button:hover {
    background-color: #d32f2f; /* Цвет при наведении */
}

/* Стили для футера */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Стили для таблицы */
.table-wrapper {
    width: 80%; /* Уменьшаем ширину, чтобы была центральнее */
    margin: 20px auto; /* Центрируем и добавляем внешние отступы */
    overflow-x: auto;
    padding: 10px; /* Внутренние отступы вокруг таблицы */
    border: 1px solid #ddd; /* Граница вокруг таблицы */
    border-radius: 8px; /* Закругленные углы */
    background-color: #f9f9f9; /* Легкий фон для выделения */
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px; /* Увеличенные отступы для более удобного просмотра */
    text-align: left;
    border-bottom: 1px solid #ddd;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

td {
    vertical-align: top; /* Выравнивание текста по верхнему краю ячейки */
}

    /* Стили для кнопок */
.btn {
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c82333;
}

    /* Стили для изображений */
.program-image {
    width: 200px;
    height: auto;
}

.table-name{
    text-align: center;
}

.back-button-img{
    max-width: 40px;
}

.back-button:hover {
    cursor: pointer; /* Устанавливаем курсор указателя при наведении на кнопку */
}
 .correct {
        list-style-type: none; /* Скрыть стандартный маркер списка */
    }

    .correct::before {
        content: "\2713"; /* Галочка Unicode */
        color: green; /* Цвет для правильного ответа */
        margin-right: 5px; /* Добавить небольшой отступ между маркером и текстом */
    }

    .incorrect {
        list-style-type: none; /* Скрыть стандартный маркер списка */
    }

    .incorrect::before {
        content: "\2717"; /* Крестик Unicode */
        color: red; /* Цвет для неправильного ответа */
        margin-right: 5px; /* Добавить небольшой отступ между маркером и текстом */
    }

.correct input[type="checkbox"] + label::before {
    content: '✔ ';
    color: green;
}

.incorrect input[type="checkbox"] + label::before {
    content: '✖ ';
    color: red;
}

.program-card .my-program-card{
    cursor: pointer;
    transition: transform 0.2s;
}

.program-card:hover {
    transform: scale(1.05);
}
html, body {
    height: 100%;
    margin: 0;
}
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.content {
    flex: 1;
}
footer {
    text-align: center;
    padding: 1rem 0;
}

.program-card img {
    width: 100%; /* Заставляет изображение занимать всю ширину карточки */
    height: 200px; /* Фиксированная высота для изображений */
    object-fit: cover; /* Обрезает изображение, чтобы оно вписывалось в заданные размеры */
    border-radius: 5px; /* Скругляет углы изображений */
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

#InsidetextLessonContent {
    position: relative;
}

.modal-body .btn {
    bottom: 10px;
}

#prevSlideButton {
    left: 10px;
}

#nextSlideButton {
    right: 10px;
}
#InsidetextLessonContent {
    position: relative;
    padding-bottom: 60px; /* Отступ снизу, чтобы кнопки не перекрывали содержимое */
}

/* Основные стили модального окна */
.custom-modal .modal-dialog.modal-lg {
    max-width: 900px; /* Ширина модального окна */
}

.modal {
    width: auto; /* Ширина автоматически подстраивается под содержимое */
    height: auto; /* Высота автоматически подстраивается под содержимое */
    overflow: hidden; /* Убираем прокрутку в модалке */
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 100%; /* Ограничиваем ширину контента */
    max-height: 100%; /* Ограничиваем высоту контента */
    overflow: auto; /* Добавляем вертикальную прокрутку, если контент слишком большой по высоте */
    word-wrap: break-word; /* Перенос длинных слов */
    overflow-wrap: break-word; /* Дополнительный перенос */
    white-space: normal; /* Разрешаем перенос строк */
}

.modal-body {
    max-height: 80vh; /* Устанавливаем максимальную высоту для содержимого модалки */
    overflow-y: auto; /* Добавляем вертикальную прокрутку, если контент превышает высоту */
}

pre {
    white-space: pre-wrap; /* Разрешаем перенос текста внутри pre */
}

.custom-modal-header {
    background: #f8f9fa; /* Светлый фон для заголовка */
    border-bottom: 1px solid #dee2e6; /* Легкая граница внизу */
    padding: 1rem 1.5rem; /* Отступы */
}

.custom-modal-body {
    display: flex;
    flex-direction: column;
    height: 70vh; /* Высота модального окна */
    padding: 0;
}

.modal-image-container {
    width: 100%;
    height: 70%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Изображение покрывает весь контейнер */
}

.custom-modal-description-container {
    width: 100%;
    height: 30%;
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.custom-modal-description {
    margin-bottom: 1rem;
    text-align: center;
    color: #333; /* Темный текст для лучшей читаемости */
}

.custom-btn {
    background: linear-gradient(135deg, #007bff, #0056b3); /* Градиентный фон */
    border: none;
    color: #fff;
    font-weight: 600;
    transition: background 0.3s ease;
    padding: 0.75rem 1.5rem;
    text-align: center;
    display: inline-block;
}

.custom-btn:hover {
    background: linear-gradient(135deg, #0056b3, #003d7a);
}

/* Обновляем стили для кнопок в модальных окнах */
.modal-content .btn {
    position: relative; /* Сбрасываем абсолютное позиционирование */
}

/* Пример: Кнопка в футере модального окна */
.modal-footer .btn {
    position: relative; /* Убедитесь, что кнопка не перекрывает другие элементы */
    margin: 0; /* Удалите любые отступы, которые могут мешать */
}

/* Стили для уникального модального окна тестов */
.test-modal .modal-dialog {
    max-width: 800px; /* Ширина модального окна */
}

.test-modal .modal-content {
    border-radius: 10px; /* Радиус скругления углов */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Тень для модального окна */
}

.test-modal .modal-header {
    background-color: #007bff; /* Цвет фона заголовка */
    color: white; /* Цвет текста заголовка */
    border-bottom: 1px solid #0056b3; /* Граница под заголовком */
}

.test-modal .modal-title {
    font-size: 1.25rem; /* Размер шрифта заголовка */
}

.test-modal .modal-body {
    padding: 2rem; /* Отступы внутри модального тела */
}

.test-modal .answer-item {
    border-bottom: 1px solid #dee2e6; /* Легкая граница для отделения */
    padding-bottom: 1rem; /* Отступ снизу */
}

.test-modal .form-control {
    border-radius: 0.25rem; /* Радиус скругления для полей ввода */
}

.test-modal .form-check {
    display: flex;
    align-items: center;
}

.test-modal .form-check-input {
    margin-right: 0.5rem; /* Отступ справа от чекбокса */
}

.test-modal .btn {
    border-radius: 0.25rem; /* Радиус скругления для кнопок */
}

.test-modal .btn-secondary {
    background-color: #6c757d; /* Цвет фона для вторичных кнопок */
    border-color: #6c757d; /* Цвет границы для вторичных кнопок */
}

.test-modal .btn-primary {
    background-color: #007bff; /* Цвет фона для основных кнопок */
    border-color: #007bff; /* Цвет границы для основных кнопок */
}

.test-modal .btn-danger {
    background-color: #dc3545; /* Цвет фона для кнопок удаления */
    border-color: #dc3545; /* Цвет границы для кнопок удаления */
}

.test-modal .d-flex {
    display: flex;
    align-items: center;
}

.test-modal .ms-2 {
    margin-left: 0.5rem; /* Отступ слева для элементов справа */
}

.test-modal .input-group {
    display: flex;
    align-items: center; /* Выравнивание по центру по вертикали */
}

.test-modal .form-check {
    margin-right: 1rem; /* Отступ справа от чекбокса */
}

.test-modal .btn-sm {
    height: 2rem; /* Высота маленьких кнопок */
}

#InsidetextLessonContent canvas {
    max-width: 100%;
    margin: 0 auto;
}

#prevQuestion, #nextQuestion {
    margin-top: 10px; /* Отступ сверху */
}

.active {
    font-weight: bold;         /* Жирный текст для активного элемента */
    /* Другие стили для подсветки */
}

.card-img-top {
    width: 100%; /* Изображение будет растягиваться по ширине контейнера */
    height: 200px; /* Фиксированная высота изображения */
    object-fit: cover; /* Изображение будет обрезаться, чтобы сохранить пропорции */
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.col-md-4 {
    display: flex;
}

.card {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Прокручиваемый контейнер */
.scrollable-lessons {
    max-height: 300px; /* Высота окна для уроков (можно регулировать) */
    overflow-y: auto;  /* Включаем вертикальную прокрутку */
    padding: 10px;
    border: 1px solid #ddd; /* Добавляем границу для визуального отделения */
    background-color: #f9f9f9; /* Фон для контраста */
}

/* Уроки в строку */
.lesson-item {
    padding: 10px;
    border-bottom: 1px solid #ccc; /* Разделение между строками */
}

/* Убираем последний разделитель */
.lesson-item:last-child {
    border-bottom: none;
}

/* Стиль заголовков уроков */
.lesson-title {
    max-width: 1000px; /* Установите максимальную ширину по вашему усмотрению */
    white-space: nowrap; /* Запрещает перенос строки */
    overflow: hidden; /* Скрывает переполняющий текст */
    text-overflow: ellipsis; /* Добавляет многоточие (...) для переполняющего текста */
    font-weight: bold;
}

/* При наведении изменяем фон */
.lesson-item:hover {
    background-color: #e9ecef;
}

.intro-text {
    text-align: center;
    font-size: 18px;  /* Размер текста */
    font-weight: bold;  /* Жирный текст */
    margin-top: 20px;  /* Отступ сверху для опускания текста */
    color: black;  /* Цвет текста */
    max-width: 800px;  /* Ограничить ширину текста для лучшего отображения */
    margin-left: auto;
    margin-right: auto;
}

.clue {
    font-weight: bold;
    font-style: italic; /* Курсив для всего текста */
    color: brown; /* Коричневый цвет для всего текста */
}

.highlight {
    color: black; /* Черный цвет для текста в кавычках */
    font-style: normal; /* Убираем курсив для текста в кавычках */
}

.lesson-item {
    border-bottom: 1px solid #dfe1e5; /* Легкая линия разделения между уроками */
    padding: 10px 0; /* Отступы сверху и снизу */
}

.open-close.buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.open-close.buttons .hide-lessons {
    margin-left: 10px; /* Отступ между кнопками, если нужно */
}

#testContent {
    padding: 15px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}


.remove-answer-button{
    margin-top: 10px;
}

/* Для корректного выравнивания чекбоксов с длинными текстами */
.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-right: 10px;
}

.form-check-label {
    margin-bottom: 0;
    word-break: break-word; /* Перенос текста для длинных слов */
}