/* Общие стили для всего тела страницы */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}
.welcome-text {
    font-size: 3em;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeIn 3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* Описание секции */
.description {
    margin-top: 70px;
    padding: 20px;
    background-color: #f0f0f0;
    text-align: center;
}

.description h2 {
    font-size: 2em;
}

.description ul {
    list-style: none;
    padding: 0;
}

.description ul li {
    font-size: 1.2em;
    margin: 10px 0;
}

.description a {
    color: #007bff;
    text-decoration: none;
}

.description a:hover {
    text-decoration: underline;
}

/* Галерея */
.gallery {
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.gallery h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.gallery-images {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.gallery-images img {
    width: 300px;
    height: auto;
    border-radius: 10px;
}

/* Дополнительная галерея */
.extra-gallery {
    padding: 20px;
    background-color: #f0f0f0;
    text-align: center;
}

.extra-gallery h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.extra-gallery .gallery-images {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.extra-gallery .gallery-images img {
    width: 300px;
    height: auto;
    border-radius: 10px;
}
.park-description {
    padding: 80px 20px 20px; /* Добавляем отступ сверху, чтобы текст не скрывался под меню */
    text-align: center;
    font-size: 18px;
    color: #333;
    background-color: #f9f9f9;
    margin-top: 60px; /* Оставляем отступ от меню */
    line-height: 1.6;
}

.park-description h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.park-photos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.park-photo {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.park-photo:hover {
    transform: scale(1.05); /* Эффект увеличения при наведении */
}

/* Навигационная панель */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Содержимое навигационной панели */
.navbar-content {
    display: flex;
    align-items: center;
}

/* Иконка в панели */
.navbar-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

/* Текст в панели */
.navbar-text {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    font-family: Arial, sans-serif;
}

.video-section {
    padding: 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.video-section h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

video {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
}

/* Экран загрузки */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://wallpaperaccess.com/full/3240559.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-background {
    text-align: center;
    color: #000;
    font-size: 2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80%; /* Уменьшение высоты контейнера */
}

.loading-text {
    animation: fade 3s ease-in-out;
    margin-bottom: 20px; /* Отступ снизу */
    transform: translateY(-20%); /* Сдвиг текста вверх */
}

/* Текст поверх всего */
.text-overlay {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: bold;
    color: #333;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* Контейнер карты */
.map-container {
    position: relative;
    top: 0vh;
    left: 0;
    width: 100%;
    height: 125vh;
	overflow: hidden;
}

/* Карта */
.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-marker {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: green;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-image {
    width: 50%; /* Ширина изображения под размер окна */
    max-width: 400px; /* Максимальная ширина изображения */
    height: 10%; /* Автоматическая высота, чтобы сохранить пропорции */
    margin: 20px 0; /* Отступы сверху и снизу */
    border-radius: 10px; /* Закругленные углы */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Тень */
    object-fit: contain; /* Сохранение пропорций изображения */
}

/* Бесконечно плывущее изображение */
.map-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%; /* Удваиваем ширину изображения для плавного движения */
    height: 100%;
    background-image: url('https://avatars.mds.yandex.net/i?id=a2e95c8b296cb44ef733243d08d1c6be_l-4577300-images-thumbs&n=13'); /* Замените на ваше изображение */
    background-size: cover;
    opacity: 0.3; /* Прозрачность изображения */
    animation: moveBackground 60s linear infinite; /* Анимация для бесконечного движения */
}

/* Анимация движения фонового изображения */
@keyframes moveBackground {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Изображение будет двигаться на половину своей ширины */
    }
}

.marker-icon {
    width: 20px; /* Размер иконки (меньше, чем маркер) */
    height: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Центрируем иконку */
}
.map-marker:hover {
    background-color: lime;
}

/* Модальное окно */
.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

/* Содержимое модального окна */
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 500px;
	max-width: 80%;
	max-height: 80vh;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

<!-- Метки с иконками -->
    <div class="map-marker" style="top: 30%; left: 20%;" onclick="openModal('Метка 1', 'Описание для метки 1')">
        <img src="https://img.icons8.com/ios/452/question-mark.png" alt="Icon 1" class="marker-icon">
    </div>
    <div class="map-marker" style="top: 50%; left: 60%;" onclick="openModal('Метка 2', 'Описание для метки 2')">
        <img src="https://img.icons8.com/ios/452/question-mark.png" alt="Icon 2" class="marker-icon">
    </div>

.modal-content h3 {
    margin: 0 0 10px;
}

.modal-content p {
    margin: 0 0 20px;
}

/* Кнопка закрытия */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    color: #555;
    cursor: pointer;
}

.close-btn:hover {
    color: red;
}