
body::-webkit-scrollbar {
    width: 12px;               /* ширина всей полосы прокрутки */
  }
  
  body::-webkit-scrollbar-track {
    background: linear-gradient(to bottom, #4d546d, #394b6d, #4d546d);
  }
  
  body::-webkit-scrollbar-thumb {
    background-color: rgb(255, 255, 255);    /* цвет бегунка */
    border-radius: 20px;       /* округлось бегунка */
    border: 5px solid rgb(255, 255, 255);  /* отступ вокруг бегунка */
  }
  
  #menuContent::-webkit-scrollbar {
    width: 12px;              
  }
  
  #menuContent::-webkit-scrollbar-track {
    background: linear-gradient(to bottom, #4d546d, #394b6d, #4d546d);
  }
  
  #menuContent::-webkit-scrollbar-thumb {
    background-color: rgb(255, 255, 255);    
    border-radius: 20px;      
    border: 5px solid rgb(255, 255, 255); 
  }
  
  .hidden {
    display: none;
  }
  
   body {
        margin: 0;
        padding: 0;
        font-family: 'PT Sans', sans-serif;
        background-color: #333;
      }
  
      /* Шапка */
      .header {
        background-color: #333;
        padding: 10px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        z-index: 1000;
      }
  
      .header h1 {
    text-align: center;
    margin: 0;
    color: #f5f5f5;
    font-family: "Pacifico";
    font-size: 16px;
    animation: floating 6s infinite;
    flex-grow: 1; /* Растягиваем заголовок на всю доступную ширину */
  }
  
  
  
  
  #popUp {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px 0px #000000;
    padding: 10px;
    z-index: 100;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  #popUp.active {
    display: flex;
    opacity: 1;
    transform: scale(1);
  }
  
  
  
      /* ... меню ... */
      .phone-icon-button {
    font-size: 2.4em;
    cursor: pointer;
    background-color: transparent;
    border: none;
    border-radius: 0;
    outline: none;
    margin-right: 10px;
  }
  
  
  .burger-menu {
    font-size: 2.4em;  
    cursor: pointer;
    color: #aaaaac;
    background-color: transparent;
    border: none;
    border-radius: 0; 
    outline: none;
    margin-right: 10px;  
  }
  
  .phone-icon-button,
  .burger-menu {
      z-index: -1;
  }
  
  .burger-menu:hover {
    color: #bbbeee; /* Изменяем цвет при наведении */
  }
  .menu-content {
    width: 15%;
    max-height: 65%;
    overflow-y: auto;
    background: linear-gradient(to bottom, #4d546d, #394b6d, #4d546d);
    padding: 20px 15px;
    border-radius: 20px; 
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    position: fixed;
    right: 0;
    top: 20%;
  
  }
  
  
  
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: flex-end;
    align-items: center; 
    z-index: 50;
  }
  
  .menu-content.active {
    opacity: 1;
    transform: translateY(0);
  }
  
  .menu-content #imageNamesContainer p {
      cursor: pointer;
      transition: background-color 0.3s ease, border 0.3s ease, padding 0.3s ease; /* добавлено свойство padding в анимацию */
      border: 2px solid transparent; /* начальная рамка */
      border-radius: 10px; /* начальный радиус закругления */
      padding: 8px 8px; /* отступ сверху и снизу, отступ слева и справа */
  }
  
  .menu-content #imageNamesContainer p:hover {
      background-color: #bbbeee;
      color: rgb(84, 48, 88);
      border: 3px solid rgba(255, 255, 255, 0.8); /* увеличенная рамка */
      border-radius: 15px; /* увеличенный радиус закругления */
      padding: 7px 7px; /* уменьшенный отступ сверху и снизу, отступ слева и справа при наведении */
  }
  
  
  
  .close-button {
    position: fixed;
    top: 10px;
    right: 10px; 
    font-size: 3.6em; 
    color: #f5f5f5;;
    background-color: transparent;
    border: none;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    transition: color 0.3s ease; 
    z-index: 101; 
  }
  
  
  .menu-overlay.active {
    display: flex;
  }
  
  
     
  
  .phone {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(49, 49, 49, 0.98);
    border: none;
  }
  
  .phone-content {
    width: 100%;
    height: 100%;
  }
  
  .phone-mobile {
    background-image: url("/ico/phone.png");
    filter: brightness(1) contrast(1); 
  }
  
  .fas.fa-mobile-retro {
    color: #f5f5f5; 
  }
  
  .fas.fa-mobile-retro:hover {
    color: #bbbeee; 
  }
  
      /* Иконка телефона */
      .phone-icon-button {
        background: none;
        border: none;
        color: #f5f5f5;
        font-size: 24px;
        cursor: pointer;
        padding: 10px;
      }
  
      /* Модальное окно с телефонами */
  
      .phone {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(49, 49, 49, 0.98);
    border: none;
  }
  
  .phone-content {
    width: 100%;
    height: 100%;
  }
  
  .phone-mobile {
    background-image: url("/ico/phone.png");
    filter: brightness(1) contrast(1); 
  }
  
  
  
  
      .close-button:hover {
    color: #bbbeee; 
  }
      /* Бургер-меню */
      .burger-menu {
        background: none;
        border: none;
        color: #f5f5f5;
        font-size: 24px;
        cursor: pointer;
        padding: 10px;
  
      }
  
      /* Оверлей меню */
      .menu-overlay {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
      }
  
      .menu-content {
        padding: 20px;
        text-align: center;
        color: #f5f5f5;
      }
  
      .image-list-container {
        margin-top: 20px;
      }
  
   
  
  
      /* ... модальное окно ... */
      #modal {
              display: none; /* Скрыто по умолчанию */
              position: fixed;
              top: 0;
              left: 0;
              width: 100%;
              height: 100%;
              background-color: rgba(0, 0, 0, 0.8); /* overlay */
              justify-content: center;
              align-items: center;
              z-index: 1000;
          }
          #modal img {
              max-width: 90%;
              max-height: 90%;
              cursor: pointer; /* Курсор как указатель для изображения */
          }
          #closeModal {
              position: absolute;
              top: 20px;
              right: 20px;
              color: white;
              font-size: 3.6em; 
              color: #f5f5f5;
              cursor: pointer;
          }
  
          #closeModal:hover {
    color: #bbbeee; /* Цвет при наведении */
  }
        
  .wrapper {
    width: 90%;
    padding: 0 2rem;
    text-align: center;
  }
  .polaroid {
    background: #fff;
    padding: 1rem;
    box-shadow: 0 0.2rem 1.2rem rgba(0,0,0,0.2);
    
  }
  .polaroid > img{
    max-width: 100%;
    height: auto;
  }
  .caption {
    font-size: 1.8rem;
    text-align: center;
    line-height: 2em;
  }
  .item {
    width: 30%;
    display: inline-block;
    margin-top: 2rem;
    filter: grayscale(100%);
  }
  .item .polaroid:before {
    content: '';
    position: absolute;
    z-index: -1;
    transition: all 0.35s;
  }
  .item:nth-of-type(4n+1) {
    transform: scale(0.8, 0.8) rotate(5deg);
    transition: all 0.35s;
  }
  .item:nth-of-type(4n+1) .polaroid:before {
    transform: rotate(6deg);
    height: 20%;
    width: 47%;
    bottom: 30px;
    right: 12px;
    box-shadow: 0 2.1rem 2rem rgba(0,0,0,0.4);
  }
  .item:nth-of-type(4n+2) {
    transform: scale(0.8, 0.8) rotate(-5deg);
    transition: all 0.35s;
  }
  .item:nth-of-type(4n+2) .polaroid:before {
    transform: rotate(-6deg);
    height: 20%;
    width: 47%;
    bottom: 30px;
    left: 12px;
    box-shadow: 0 2.1rem 2rem rgba(0,0,0,0.4);
  }
  .item:nth-of-type(4n+4) {
    transform: scale(0.8, 0.8) rotate(3deg);
    transition: all 0.35s;
  }
  .item:nth-of-type(4n+4) .polaroid:before {
    transform: rotate(4deg);
    height: 20%;
    width: 47%;
    bottom: 30px;
    right: 12px;
    box-shadow: 0 2.1rem 2rem rgba(0,0,0,0.3);
  }
  .item:nth-of-type(4n+3) {
    transform: scale(0.8, 0.8) rotate(-3deg);
    transition: all 0.35s;
  }
  .item:nth-of-type(4n+3) .polaroid:before {
    transform: rotate(-4deg);
    height: 20%;
    width: 47%;
    bottom: 30px;
    left: 12px;
    box-shadow: 0 2.1rem 2rem rgba(0,0,0,0.3);
  }
  .item:hover {
    filter: none;
    transform: scale(1, 1) rotate(0deg) !important;
    transition: all 0.35s;
    cursor: pointer;
  }
  
  .item:hover .polaroid:before {
    content: '';
    position: absolute;
    z-index: -1;
    transform: rotate(0deg);
    height: 90%;
    width: 90%;
    bottom: 0%;
    right: 5%;
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.2);
    transition: all 0.35s;
  }
  
  
  #floatingTextContainer {
      position: relative; /* Позволяет абсолютное позиционирование дочерних элементов */
      overflow: hidden; /* Скрываем текст, выходящий за границы контейнера */
      height: 100vh; /* Высота контейнера на всю высоту экрана */
  
  }
  
  .floating-text {
      position: absolute;
      opacity: 0; /* Плавное появление */
      transform: rotate(-30deg);
      font-size: 20px; /* Размер шрифта */
      color: rgba(187, 187, 187, 0.1); /* Бледный цвет */
      white-space: nowrap; /* Запрет на перенос текста */
      transition: opacity 1s; /* Плавное изменение прозрачности */
      z-index: -2;
  }
  
  /* Дополнительные стили для эффекта */
  @keyframes fadeIn {
      0% {
          opacity: 0;
      }
      100% {
          opacity: 1;
      }
  }
  
  @keyframes float {
      0% {
          transform: translateY(0);
      }
      50% {
          transform: translateY(-10px);
      }
      100% {
          transform: translateY(0);
      }
  }
  
      .book-wrap {
        z-index: 1;
        position: relative;
      }
  
  
  @media (max-width: 1200px) {
  
    .floating-text {
        font-size: 2.4vw;
    line-height:  1.5vh;
      }
  
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
  
    figcaption {
        left: 50%;
        transform: translateX(-50%);
    }
  
    .menu-content {
      width: 80%;
      font-size: 3vw;
    }
  }
  