/* mobil.css - Адаптивные стили для мобильных устройств */

/* Медиа-запрос для мобильных устройств */
@media screen and (max-width: 768px) {

    .settings-modal {
        display: none; /* Скрываем модальное окно по умолчанию */
    }
    /* Модальное окно */
    .settings-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        /*display: flex;*/
        justify-content: center;
        align-items: center;
        z-index: 1000;
        padding: 5px;
        box-sizing: border-box;
    }

    .settings-modal-content {
        width: 90%;
        max-width: 500px;
        max-height: 90vh;
        background-color: #ffffff;
        border-radius: 10px;
        padding: 5px;
        overflow-y: auto;
        position: relative;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Хедер модального окна */
    .settings-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .settings-modal-header h2 {
        margin: 0;
        font-size: 18px;
        flex-grow: 1;
    }

    /* Контролы в хедере */
    .settings-modal-controls {
        display: flex;
        gap: 10px;
    }

    .btn-reset,
    .btn-close {
        background: none;
        border: none;
        padding: 10px;
        font-size: 16px;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .btn-reset {
        background-color: #f0f0f0;
        border-radius: 5px;
    }

    .btn-close {
        background-color: #ff4444;
        color: white;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Группы настроек */
    .settings-group {
        margin-bottom: 20px;
    }

    .settings-group h3 {
        margin-bottom: 15px;
        font-size: 16px;
    }

    .settings-group div {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Кнопки настроек */
    .settings-group button {
        flex-grow: 1;
        padding: 12px;
        font-size: 16px;
        border: 2px solid #e0e0e0;
        background-color: #f5f5f5;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.3s;
    }

    .settings-group button.active {
        background-color: #4A90E2;
        color: #000;
        border-color: #4A90E2;
    }

    /* Улучшение доступности */
    .settings-group button:focus {
        outline: 3px solid #4A90E2;
        outline-offset: 2px;
    }

    /* Специфичные стили для разных групп */
    .size-buttons button {
        min-width: 60px;
    }

    .theme-buttons button,
    .letter-spacing-buttons button,
    .font-buttons button {
        flex-basis: calc(33.333% - 10px);
    }

    .horizontal-menu li {
        padding-right: 1em;
        padding-left: 0em;
        border-right: 0px;
        padding-top: 0.5em;
    }
}



/* Стили для очень маленьких экранов */
@media screen and (max-width: 375px) {
    .settings-modal-content {
        width: 100%;
        padding: 5px;
        border-radius: 0;
    }

    .settings-group button {
        font-size: 14px;
        padding: 5px;
    }

    .content {
        width: 100%;
        margin: 0 auto;
    }
}
