/* Стили для модального окна */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Включает скролл при необходимости */
    background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный фон */
}

.modal-content {
    background-color: #fff;
    margin: 5% auto; /* Центрирование по вертикали */
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px; /* Максимальная ширина */
    border-radius: 8px;
    position: relative;
}

.close-button {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    background-color: #d1dbe3;
    border: none;
    cursor: pointer;
}

.close-button:hover {
    color: #ff0000;
}

.modal-content h3 {
    margin-top: 0;
    text-align: center;
    font-size: 24px;
}

#regionSearch {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    box-sizing: border-box;
    font-size: 16px;
}

.region-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 300px; /* Ограничиваем высоту */
    overflow-y: auto; /* Добавляем вертикальный скролл при необходимости */
}

.region-button {
    flex: 1 1 calc(33.333% - 10px); /* Три кнопки в ряд с отступами */
    padding: 10px;
    background-color: #37475a;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    transition: background-color 0.3s;
}

.region-button:hover {
    background-color: #e6e6e6;
}

.cancel-button {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background-color: #ff9900;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.cancel-button:hover {
    background-color: #e68a00;
}

@media (max-width: 600px) {
    .region-button {
        flex: 1 1 calc(50% - 10px); /* Две кнопки в ряд на маленьких экранах */
    }
}




/* стили отображения */
/* Добавьте этот код в ваш файл styles.css */


/* Стили для блока местоположения */
/* Контейнер местоположения */
.location-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-color: #232F3E;
    padding: 10px 20px;
    color: white;
}

.location-display {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.location-display i {
    font-size: 20px;
    margin-right: 5px;
    color: #ff9900;
}

.location-text {
    font-size: 16px;
}

.location-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    margin-left: 10px;
}

.location-button:hover {
    color: #ff9900;
}

.detect-location-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
}

.detect-location-button:hover {
    color: #ff9900;
}

@media (max-width: 768px) {
    .location-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .location-display {
        margin-bottom: 10px;
    }
}




/* кнопка определения местоположения */
.detect-location-button {
    padding: 8px 12px;
    background-color: #28a745; /* Зеленый цвет для кнопки */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.detect-location-button i {
    margin-right: 5px;
}

.detect-location-button:hover {
    background-color: #218838;
}
/* Стили для модального окна */
#regionModal {
    display: none; /* Изначально скрыто */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}
/* Фон модального окна */
#regionModalContent {
    background-color: #fff; /* Белый фон */
    color: #000; /* Чёрный текст */
    /* Остальные стили остаются без изменений */
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    position: relative;
    border-radius: 8px;
}

/* Стили заголовка и текста внутри модального окна */
#regionModalContent h3,
#regionModalContent p {
    color: #000; /* Чёрный текст */
    margin-top: 0;
}
#regionSearchInput {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

#regionList {
    list-style-type: none;
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

.region-item {
    margin-bottom: 10px;
}

.region-item button {
    width: 100%;
    padding: 10px;
    text-align: left;
    background-color: #232f3e;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.region-item button:hover {
    background-color: #37475a;
}



.warning-message {
    color: #d9534f; /* Красный цвет для выделения предупреждения */
    font-weight: bold;
    margin-bottom: 10px;
}

/* Стили для кнопок регионов */
.region-item button,
#otherRegionButton {
    width: 98%;
    padding: 10px;
    text-align: left;
    background-color: #232f3e;
    color: #fff; /* Белый цвет текста */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 5px; /* Отступ между кнопками */
}

.region-item button:hover,
#otherRegionButton:hover {
    background-color: #37475a;
}


 .region-notification {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    margin: 20px;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    text-align: center;
}

.switch-region-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #ff9900;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.switch-region-button:hover {
    background-color: #e68a00;
}


