@media (max-width: 768px)
{
body {
    width: 100%;
    height: auto; /* Изменено на auto для адаптивности */
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 0.9em;
    color: white;
    line-height: 135%;
    background-color: #1E201E;
    margin: 0 auto; /* Центрирование контента */
}

/*основное тело*/
.body {
    width: 100%; /* Изменено на 100% */
    height: auto; /* Изменено на auto для адаптивности */
    margin-top: 10px; /* Уменьшено значение */
    background-color: #3C3D37;
    border-radius: 20px;
    padding-bottom: 80px; /* Добавляем отступ снизу для фиксированной панели */
    position: relative;
}

/*стили кнопки ? в нижнем меню*/
#about-us-button-bottom
{
    width: 47px; /* Уменьшил размер кнопки */
    font-size: 20px; /* Уменьшил размер шрифта */
    height: 47px; /* Уменьшил высоту кнопки */
    border-radius: 15px;
    border: none;
    color: white;
}
#newsMobile {
    width: 80px;
    height: 45px;
    text-align: center;
    background-color: #4CAF50;
    font-size: 17px;
    color: white;
    border-radius: 10px;
    border: none;
}
.bottom-nav {
    position: fixed;
    margin-bottom: 3px;
    border: 1px solid #697565;
    border-radius: 20px;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #3C3D37;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-sizing: border-box;
    z-index: 100; /* Чтобы панель всегда была сверху */
}

/*стили кнопок нижнего меню*/
.bottom-nav a, .bottom-nav button {
    display: block;
    width: 47px; /* Примерная ширина иконок */
    height: 47px;
    margin: 0;
}
.iconDeveloper {
    width: 47px;
    height: 47px;
    border-radius: 25px;
}

.feedbackTelegram
{
    width: 47px;
    height: 47px;
}
.feedbackMail
{
    width: 47px;
    height: 47px;
}
/*стили кнопок нижнего меню*/
.bottom-nav-pc {
    display: none;
}


.scrollable-block {
    width: 95%; /* Увеличено для заполнения пространства */
    height: auto; /* Автоматическая высота */
    display: flex;
    flex-direction: column; /* Изменено на column */
    overflow-y: auto;
    margin-top: 10px; /* Уменьшено значение */
    margin-left: auto;
    margin-right: auto;
    border-radius: 15px;
    padding: 10px;
    gap: 20px;
    box-sizing: border-box;
}

.game {
    text-align: center;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #1E201E;
    padding: 10px;
    width: 95%; /* Растягиваем на всю ширину */
    height: auto; /* Автоматическая высота */
    border-radius: 15px;
    background-color: #697565;
    display: flex; /* Добавляем flex контейнер */
    flex-direction: column; /* Размещаем элементы вертикально */
    box-sizing: border-box;
}

.game-content {
    flex-grow: 1; /* Занимает все доступное пространство */
}

.icon {
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    max-width: 100%; /* Адаптивность изображения */
    height: auto;
}

.title {
    font-style: italic;
    font-weight: bold;
    color: white;
    font-size: 20px; /* Уменьшено */
    background-color: #697565;
    width: 100%; /* TextArea занимает всю ширину */
    height: auto; /* Автоматическая высота */
    border-radius: 10px;
    text-align: center;
    resize: none; /* Запретить изменение размера */
    overflow: auto; /* Автоматическая прокрутка при необходимости */
    border: none; /* Убрать рамку */
    padding: 5px; /* Уменьшено */
    font-family: inherit; /* Наследовать шрифт */
    line-height: inherit; /* Наследовать высоту строки */
    box-sizing: border-box; /* Важно, чтобы padding не увеличивал ширину */
}
.description {
    font-style: italic;
    font-weight: bold;
    color: white;
    background-color: #697565;
    width: 100%; /* TextArea занимает всю ширину */
    height: auto; /* Автоматическая высота */
    border-radius: 10px;
    text-align: center;
    resize: none; /* Запретить изменение размера */
    overflow: auto; /* Автоматическая прокрутка при необходимости */
    border: none; /* Убрать рамку */
    padding: 5px; /* Уменьшено */
    font-family: inherit; /* Наследовать шрифт */
    font-size: 16px; /* Уменьшено */
    line-height: inherit; /* Наследовать высоту строки */
    box-sizing: border-box;
}

.game-buttons {
    margin-bottom: auto; /* Прижимает кнопки к низу */
    margin-top: 10px;
}

.download-button, .upcoming-button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 8px 16px; /* Уменьшено */
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px; /* Уменьшено */
    margin: 5px 0; /* Уменьшено */
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


/* Отступ для кнопок "Официальные релизы" и "Не официальные релизы" */
.release-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 20px; /* Увеличен отступ */
    padding-top: 10px; /* Дополнительный отступ внутри контейнера */
}

.oficialGames, .noOficialGames, .news {
    width: 40%; /* Уменьшено */
    height: 40px; /* Уменьшили высоту */
    border-radius: 10px;
    border: 0;
    font-size: 12px; /* Уменьшили шрифт */
    box-sizing: border-box;
}

/* Стили для модального окна */
.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); /* Чёрный фон с прозрачностью */
}

.modal-content {
    background-color: #3C3D37;
    border-radius: 10px;
    text-align: center;
    font-size: 13px; /* Уменьшено */
    font-weight: bold;
    margin: 30% auto; /* Отступ сверху и центрирование */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Увеличено для мобильных */
    box-sizing: border-box;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: green;
    text-decoration: none;
    cursor: pointer;
}
/*убираем кнопку с вопросиком*/
#about-us-button
{
    display: none;
}
