/* Фон и канвас для анимации */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250vh;
    background: url('../images/bg_event1.jpg') no-repeat center center fixed;
    background-size: cover;
    z-index: -1;
    opacity: 0.8; /* Применим прозрачность, чтобы не сильно мешать контенту */
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Остальной CSS */
body {
    font-family: 'Noto Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: #533;
    position: relative;
}

header {
    background-color: #222;
    color: white;
    padding: 20px;
    text-align: center;
}

header .logo img {
    width: 150px;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    padding: 10px;
}

nav ul li a:hover {
    color: #ff4081;
}

footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* Стили для страницы локации */
main {
    padding: 40px 20px;
}

.patch-description h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    color: white;  /* Устанавливаем белый цвет для заголовка */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);  /* Добавляем тень для улучшения контраста */
}

.patch-description p {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
    color: white;  /* Устанавливаем белый цвет для параграфа */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);  /* Тень для улучшения читаемости */
}

.location-image {
    text-align: center;
    margin-bottom: 40px;
}

.location-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Стили для слайдера */
.image-slider {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.slider-container {
    position: relative;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    transition: opacity 0.5s ease;
}

.slide img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 20px;
    cursor: pointer;
    z-index: 100;
    opacity: 1;
    width: 160px;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prev {
    left: -40px;
}

.next {
    right: 0;
}

.prev img, .next img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.prev:hover, .next:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .prev, .next {
        width: 50px;
        height: 50px;
    }

    .monsters-list {
        display: flex;
        flex-wrap: wrap;  /* Позволяет карточкам располагаться в несколько строк */
        justify-content: space-between; /* Расставляет карточки по ширине */
        margin: 0 auto;
        width: 100%; /* Растягиваем контейнер на всю ширину */
        padding: 20px; /* Отступы для внутреннего пространства */
        box-sizing: border-box;
    }

    .monster {
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        transition: transform 0.3s ease;
        flex: 1 1 calc(33.33% - 20px);  /* Каждая карточка занимает треть ширины с отступами */
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }

    .monster:hover {
        transform: translateY(-5px);
    }

    .monster img {
        width: 100%;
        height: 250px; /* Высота изображения */
        object-fit: cover;
    }

    .monster-info {
        padding: 15px;
        flex-grow: 1;
    }

    .monster-info h3 {
        font-size: 1.25rem;
        color: #333;
        margin-bottom: 10px;
    }

    .monster-info p {
        font-size: 0.9rem;
        color: #666;
    }
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .monsters-list {
        justify-content: center; /* Центрируем карточки на маленьких экранах */
    }

    .monster {
        flex: 1 1 100%; /* Карточки будут занимать всю ширину на мобильных */
        margin-bottom: 20px;
    }

    .monster img {
        height: 200px; /* Уменьшаем высоту на мобильных */
    }
}

@media (max-width: 1024px) {
    .monster {
        flex: 1 1 calc(50% - 20px);  /* Каждая карточка будет занимать 50% ширины экрана на средних экранах */
    }
}

/* Для элементов, которые будут поверх фона */
h1, h2, h3, p {
    color: #ffffff !important; /* Белый цвет текста для хорошего контраста */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6); /* Тень для улучшения читаемости */
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    margin-top: -2px;
    color: #ffffff !important;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.6) !important; /* Усиленная тень для лучшего контраста */
}


/* Для выпадающего меню */

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    max-height: 200px; /* Ограничиваем максимальную высоту */
    overflow-y: auto; /* Прокрутка по вертикали */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 0 15px 5px rgba(0, 0, 255, 1); /* Синяя неоновая обводка с яркостью */
    z-index: 1;
    padding: 10px;
    border-radius: 8px;
    margin-top: 5px;
}

/* Текст внутри выпадающего меню */
.dropdown-content p {
    color: #000000 !important; /* Цвет текста */
    text-shadow: 0 0 10px #00f, 0 0 20px #00f, 0 0 30px #00f; /* Более яркое неоновое свечение */
}


/* Для класса, который делает меню видимым */
.dropdown-content.show {
    display: block;
}

.dropdown-content p {
    margin: 5px 0;
}

/* Когда наводимся на лупу, у нас не показывается меню */
.search-icon {
    cursor: pointer;
    width: 24px;
    height: 24px;
    margin-left: 10px;
    transition: transform 0.3s;
}

.search-icon:hover {
    transform: scale(1.2);
}

/* Ссылка для изображения во весь рост */
.view-full-size {
    color: orange;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
}

.view-full-size:hover {
    text-decoration: underline;
}

/* Модальное окно */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Черный фон с прозрачностью */
    padding-top: 60px;
}

/* Стиль для изображения в модальном окне */
.modal-content {
    margin: auto;
    display: block;
    width: 80%; /* Ширина картинки 80% от окна */
    max-width: 700px; /* Максимальная ширина */
}

/* Кнопка закрытия модального окна */
.close {
    color: #ccc;
    font-size: 40px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 35px;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

/* Текст под изображением */
#caption {
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 1.1rem;
}


.spoilers {
    max-width: 400px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

.spoiler {
    border-radius: 12px;
    margin-bottom: 20px;
    background: #ffffff;
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.15);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.spoiler-title {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(to right, #fdfdfd, #f1faff);
    color: #222;
    font-size: 1.05rem;
    text-align: left;
    border: none;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s, color 0.3s;
    border-bottom: 1px solid #ddd;
}

.spoiler-title:hover {
    background: #e8f5ff;
    color: #000;
}

.spoiler-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    padding: 0 24px;
}

.spoiler-content img {
    max-width: 100%;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.spoiler-content p {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

/* Иконка стрелки */
.spoiler-title::after {
    content: "▼";
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: #888;
}

.spoiler-title.active::after {
    transform: rotate(-180deg);
}

td {
  background-color: transparent !important;
}