body {
    font-family: Arial, sans-serif;
    background-color: #1E2749;
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
    /* background-image: url("background.jpg"); Можно поменять фон */
    background-size: cover;
}
a {
    color: gray;
    text-decoration: none;
}
#password button {
    background: linear-gradient(to right, #444, #666); /* Градиент */
    color: white; /* Белый текст */
    padding: 8px 16px; /* Уменьшенные отступы */
    font-size: 16px; /* Чуть меньше шрифт */
    font-weight: bold; /* Жирный текст */
    border: 2px solid white; /* Белая рамка */
    border-radius: 6px; /* Чуть менее закруглённые углы */
    cursor: pointer; /* Курсор при наведении */
    transition: all 0.3s ease-in-out; /* Плавный эффект */
}

/* Эффект при наведении */
#password button:hover {
    background: linear-gradient(to right, #555, #777);
    transform: scale(1.03);
}


/* Навигация */
nav {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid black;
    position: relative;
}

/* Кнопка меню для мобильных устройств */
.menu-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: none; /* По умолчанию скрыта */
}

/* Контейнер для кнопок */
.nav-links {
    display: flex;
    gap: 20px; /* Увеличил расстояние между кнопками */
}

/* Кнопки навигации */
.nav-links button {
    background: transparent;
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.nav-links button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Контент */
.tab {
    display: none;
    padding: 20px;
}

.active {
    display: block;
}

/* Декор вкладки "Пароль" */
.password-box {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    border: 2px solid white;
}

input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid white;
    border-radius: 5px;
    background: transparent;
    color: white;
    text-align: center;
}

#result {
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .menu-button {
        display: block; /* Показываем кнопку меню */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.8);
        text-align: center;
        padding: 10px 0;
        border-top: 2px solid white;
    }

    .nav-links button {
        display: block;
        padding: 10px;
        width: 100%;
    }

    .nav-links.active {
        display: flex;
    }

    #password button {
        width: auto; /* Пусть размер кнопки подстраивается */
        font-size: 14px; /* Ещё немного меньше шрифт */
        padding: 6px 12px;
    }
    
}
body {
    font-family: Arial, sans-serif;
    background-color: #30343F;
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
    /* background-image: url("background.jpg"); */
    background-size: cover;
}

a {
    color: gray;
    text-decoration: none;
}

#password button {
    background: linear-gradient(to right, #444, #666);
    color: white;
    padding: 8px 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: linear-gradient(to right, #333, #555);
    color: white;
    padding: 8px 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.submenu {
    display: none;
    flex-direction: column;
    background-color: #222;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    z-index: 1;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.submenu button {
    background: none;
    color: white;
    padding: 10px;
    text-align: left;
    border: none;
    width: 100%;
    cursor: pointer;
}

.submenu button:hover {
    background-color: #30343F;
}

.dropdown.open .submenu {
    display: flex;
}
.gallery, .characters {
    display: grid;
    grid-template-columns: repeat(3, 3fr);
    gap: 20px;
    padding: 20px;
  }
  
  /* .gallery img, .characters img {
    width: 100%;
    height: auto;

    border-radius: 8px;
    transition: transform 0.2s;
  } */
  
  .gallery img:hover, .characters img:hover {
    transform: scale(1.05);
  }
  /* Ограничим высоту изображений */
  /* .gallery img, .characters img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
  } */
  
  /* Стили для модального окна */
  .modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: #30343F(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
  }
  
  /* .modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    text-align: center;
    position: relative;
  }
  
  .modal-close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 24px;
    cursor: pointer;
  }
   */

   .modal-content {
    background: #222;
    color: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
  }
  
  .modal-close {
    color: #f0f0f0;
  }
  

  .modal-nav {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
  }
  #Characters img,
  #gallery img,
  .character-card img {
      max-height: 350px;
      width: auto;
      object-fit: cover;
      border-radius: 10px;
      display: block;
      margin: 0 auto;
  }

  .tab {
    display: none;
}

.tab.active {
    display: block;
}

/* скрываем все вкладки */
.tab {
    display: none;
}

.tab.active {
    display: block;
}

/* сетки */
.gallery-grid,
.characters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

/* изображения */
.gallery-item img,
.character-card img {
    max-height: 120px;
    width: auto;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

/* заголовки */
.section-title {
    text-align: center;
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 10px;
}
#characterModal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
    color: white;
    position: relative;
}

.modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.modal-buttons button {
    background-color: #444;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.modal-buttons button:hover {
    background-color: #666;
}
/* .oo {
    width: 500px;
    height: 470px;
    margin-right: 1000px;
    border-radius: 2px;
    box-sizing: border-box;
    border-color: black;
}
.disc{
    margin-bottom: 400px;
} */

.tab {
    display: none;
    flex-direction: column; /* Важно для flex-контейнера */
    padding: 20px;
    color: white;
  }
  
  .tab.active {
    display: flex; /* Показываем, когда активна */
  }
  
  
  .tab-content {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .oo {
    max-width: 300px;
    height: auto;
    border-radius: 10px;
  }
  
  .disc {
    flex: 1;
  }
  
  .fn {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .fn img {
    /* width: 100%; */
    height: auto;
    border-radius: 8px;
    width: 300px;
  }
.blyat {
    margin-bottom: 20px;
}
 