body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    /* Фоновое изображение */
    background-image: url('bg/advent_app_back__low_contrast_600_900.png'); /* Укажите путь к вашему изображению */
    background-size: auto; /* Сохраняет исходный размер изображения */
    background-position: center top; /* Центрирует по горизонтали, прижимает к верху */
    background-repeat: no-repeat; /* Без повторения */
    background-attachment: fixed; /* Фиксирует фон относительно окна */
    /* Запасной цвет фона на случай, если изображение не загрузится */
    background-color: #e9e8e8;
    display: flex;
    justify-content: center;
    height: 100vh;
    align-items: flex-end; /* Прижимает к низу */
}

.container {
    text-align: left;
    background: #b5b5b5;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative; /* Гарантирует, что контейнер поверх фона */
    z-index: 1; /* Помещает контейнер выше фона */
    margin-bottom: 10vh; /* Отступ от нижнего края, примерно 1/3 снизу */
    margin-top: auto; /* Отталкивает от верха */
    width: 90%; /* Ограничивает ширину контейнера */
    max-width: 95%;
    box-sizing: border-box;
    white-space: pre-line; /* Сохраняет форматирование текста */
    font-weight: bold;
    padding-bottom: 70px; /* или чуть больше, если кнопка крупнее */
}

button {
    display: block;
    width: 280px;
    margin: 10px auto;
    padding: 10px;
    background-color: #006bb8;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
}

h2, h3 {
    text-align: center;
}

#material-type, #title, #description, #theme-id, #questions {
    margin: 5px;
    width: -webkit-fill-available;
}

.back-button {
    text-align: center;
}

.back-button.fixed-bottom {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    z-index: 100;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 0;
    padding: 18px 0;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    cursor: pointer;
}

.main-panel-btn {
    text-align: center;
}

#send-answer {
    text-align: center;
}

p {
    font-weight: bold;
}

.modal {
    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;
}
.modal > div {
    background: #93c1c1;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.bible-ref {
    color: rgba(255, 75, 75, 0.99);
    text-decoration: none;
    cursor: pointer;
    font-family: "Roboto Light", "Ubuntu Light", "Ubuntu", monospace;
}

#bible-book, #bible-chapter, #bible-verses {
    width: -webkit-fill-available;
    margin: 5px;
    font-weight: bold;
    font-size: 1.2em;
}

#answer, #pastor-question {
    width: -webkit-fill-available;
    margin: 5px;
    font-weight: bold;
    font-size: 1.4em;
}