/* ОБЩИЕ СТИЛИ */
body {
    background: url("img/back1.jpeg") no-repeat center center;
    background-size: cover;
    font-family: Arial, sans-serif;
    background-attachment: fixed; /* Фиксируем фон при прокрутке */
    margin: 0;
    padding: 0;
    text-align: center;
}

.page-title {
    text-align: center;
  }
  
  .slider-container {
    position: relative;
    width: 600px;
    height: 400px;
    margin: 0 auto;
   
  }
  
  .slider {
    display: flex;
    width: 600px;  /* Должно совпадать с .slider-container */
    height: 400px; /* Должно совпадать с .slider-container */
    overflow: hidden; /* Скрывает выходящие за границы части */
}

.slider img {
    width: 600px; /* Должно совпадать с .slider */
    height: 400px; /* Должно совпадать с .slider */
    object-fit: cover; /* Обрезает изображение, но сохраняет пропорции */
}
  
  .prev-button,
  .next-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: none;
    font-size: 24px;
    color: white;
  }
  
  .prev-button {
    left: 10px;
  }
  
  .next-button {
    right: 10px;
  }

h1, h2 {
    color: #ff6600;
}
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}
main {
    flex: 1; /* Растягивает основное содержимое */
}

/* ВЕРХНЕЕ МЕНЮ */
header {
    display: flex;
    justify-content: center; /* Центрируем меню */
    align-items: center;
    padding: 15px 20px;
    background:purple;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.hero {
    text-align: center;
    padding-top: 80px;
    color:black;
    position: relative;
    
}
.hero h1 {
    font-size: 2.5em;
    color: #00eaff;
    text-shadow: 0 0 10px #00eaff, 0 0 20px #00bfff, 0 0 30px #008cff, 0 0 40px #0055ff;
    animation: neonGlow 1.5s infinite alternate;
}

/* Анимация мерцания неона */
@keyframes neonGlow {
    from {
        text-shadow: 0 0 5px #ff6600, 0 0 10px #ff4500, 0 0 20px #ff4500, 0 0 30px #ff6347;
    }
    to {
        text-shadow: 0 0 10px #ff4500, 0 0 20px #ff6347, 0 0 30px #ff1493, 0 0 40px #ff4500;
    }
}

.hero p {
    font-size: 1.5em;
    opacity: 0;
    color: #ff1493;
    transform: translateY(50px);
    animation: fadeInUp 1.5s ease-out forwards;
    animation-delay: 0.5s;
}

/* Ключевые кадры */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Эффект конфетти */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: red;
    opacity: 0.8;
    position: absolute;
    top: -10px;
    animation: fall linear infinite;
}

/* Ключевые кадры */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fall {
    from {
        transform: translateY(-10px);
    }
    to {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.logo {
    position: absolute;
    left: 20px; /* Логотип остаётся слева */
}
.logo img {
    height: 50px; /* Размер лого по умолчанию */
    width: auto;  /* Сохраняем пропорции */
}

.nav-list {
    display: flex;
    list-style: none;
    padding: 0;
}

.nav-list li {
    margin: 0 15px;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger-menu span {
    background: white;
    height: 3px;
    width: 30px;
    margin: 5px 0;
}
.video-container {
    text-align: center;
    padding: 20px;
}

.video-wrapper {
    position: relative;
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* Соотношение 16:9 */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* МОДАЛЬНОЕ ОКНО */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 25px;
    cursor: pointer;
}




.quests {
    text-align: center;
    padding: 50px 20px;
}

.quests-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.quest {
    background: white;
    padding: 15px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.quest img {
    width: 100%;
    border-radius: 10px;
}

.book-btn {
    background: #ff6600;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

.book-btn:hover {
    background: #ff4500;
}

.container {   width: 75%;
    border: 2px solid #ccc;
    background-color: #eee;
    border-radius: 5px; /* скругление углов блока */
    padding: 16px; /* внутренние поля */
    margin: 16px auto; /* внешние отступы */
  }

  .container img {
    float: left; /* обтекание слева */
    margin-right: 20px; /* пространство между аватаркой и абзацем */
    border-radius: 50%; /* скругляет аватарку */
    width: 90px;
  }
  
  .container span {
    font-size: 18px;
    margin-right: 15px;
  }


/* АДАПТИВНОСТЬ */
/* Адаптивность */
@media (max-width: 768px) {
    .slider-container {
        max-width: 90%; /* Сужаем контейнер */
    }

    .slider img {
        height: 300px; /* Уменьшаем высоту картинок */
    }

    .prev-button,
    .next-button {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .slider-container {
        max-width: 100%;
    }

    .slider img {
        height: 250px;
    }

    .prev-button,
    .next-button {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}

@media (max-width: 450px) {
    .container {
      text-align: center;
    }
    .container img {
      margin: auto;
      float: none;
      display: block;
    }
  }

@media (max-width: 600px) {
    .slider h1 {
        font-size: 16px;
        padding: 5px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        background: black;
        width: 100%;
        text-align: center;
        padding: 20px 0;
    }

    .burger-menu {
        display: flex;
    }
    .logo img {
        height: 40px; /* Чуть меньше на телефонах */
    }

    .nav.active {
        display: block;
    }
}

/* FOOTER */
footer {
    background: purple;
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: auto; /* Прижимает к низу */
}


.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

.footer-social a {
    color: #ff6600;
    text-decoration: none;
}
