body {
    margin: 0;
    padding: 0;
    background-image: url(../images/mountainous-landforms-mountain-nature-highland-hill-station-natural-landscape-mountain-range-sky-tree-vegetation-green-wilderness-ridge-cloud-atmospheric-phenomenon-alps-hill-valley-mount-scenery-woody-plant-landsc.jpg);
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    overflow: auto;
    position: relative;
}


/* Основные стили для блока меню */

.menu {
    position: fixed;
    top: 50px;
    left: 30px;
    z-index: 1000;
}

.main-menu {
    padding: 15px 22px;
    background: linear-gradient(135deg, #4a90e2, #007aff);
    /* Синий градиент */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: 0.3s ease, transform 0.3s ease;
}

.main-menu:hover {
    background: linear-gradient(135deg, #0056b3, #003f7f);
    /* Темнее синий */
}


/* Адаптивные стили для мобильных устройств */

.container {
    text-align: center;
    border-radius: 10px;
    padding: 20px;
    max-width: 90%;
    font-family: 'Roboto', sans-serif;
    margin: 0 auto;
    overflow: hidden;
}

h1 {
    margin-bottom: 30px;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(90deg, #4a9a5a, #a3d9a0);
    /* Зелёный градиент */
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
}

.carousel-section {
    margin-bottom: 100px;
    padding: 20px;
    display: flex;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    flex-direction: column;
    align-items: center;
}

h2 {
    margin: 20px 0;
    color: transparent;
    background: linear-gradient(90deg, #4a9a5a, #a3d9a0);
    /* Розовый градиент */
    background-clip: text;
    -webkit-background-clip: text;
    font-size: 1.5em;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    border: 2px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    position: relative;
    min-width: 100%;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    font-size: 1.1em;
}


/* Основные стили для блока carousel-description */

.carousel-description {
    margin-top: 20px;
    padding: 15px;
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    /* Светлый серый фон для лучшего контраста */
    border: 3px solid #ccc;
    /* Светло-серый цвет границы */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #333;
    line-height: 1.2;
    opacity: 0;
    /* Начальная невидимость для анимации */
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}


/* Анимация появления блока при загрузке страницы */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Применение анимации для секции карусели */

.carousel-section {
    position: relative;
    animation: fadeInUp 1s ease-out;
}


/* Адаптивные стили для мобильных устройств */

@media (max-width: 768px) {
    @keyframes fadeInUpMobile {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    .carousel-section {
        animation: fadeInUpMobile 0.8s ease-out;
    }
}


/* Анимация для блока описания при наведении */

.carousel-section:hover .carousel-description {
    opacity: 1;
    transform: scale(1);
}

button {
    position: absolute;
    top: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1.2em;
    transition: background-color 0.3s;
}

button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}