body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    height: auto; /* Упевнись, що сторінка не має фіксованої висоти */
    overflow: auto; /* Переконайся, що прокрутка дозволена */

}



// <uniquifier>: Use a unique and descriptive class name
// <weight>: Use a value from 200 to 700

// <uniquifier>: Use a unique and descriptive class name
// <weight>: Use a value from 100 to 900

.roboto-condensed-<uniquifier> {
  font-family: "Roboto Condensed", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

.oswald-<uniquifier> {
  font-family: "Oswald", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

// <uniquifier>: Use a unique and descriptive class name
// <weight>: Use a value from 200 to 700

.oswald-<uniquifier> {
  font-family: "Oswald", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

.cormorant-garamond-light {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-style: normal;
}

.cormorant-garamond-regular {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-style: normal;
}

.cormorant-garamond-medium {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-style: normal;
}

.cormorant-garamond-semibold {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-style: normal;
}

.cormorant-garamond-bold {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-style: normal;
}

.cormorant-garamond-light-italic {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-style: italic;
}

.cormorant-garamond-regular-italic {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-style: italic;
}

.cormorant-garamond-medium-italic {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-style: italic;
}

.cormorant-garamond-semibold-italic {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-style: italic;
}

.cormorant-garamond-bold-italic {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-style: italic;
}


.amatic-sc-regular {
  font-family: "Amatic SC", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.amatic-sc-bold {
  font-family: "Amatic SC", sans-serif;
  font-weight: 700;
  font-style: normal;
}
.merriweather-light {
  font-family: "Merriweather", serif;
  font-weight: 300;
  font-style: normal;
}

.merriweather-regular {
  font-family: "Merriweather", serif;
  font-weight: 400;
  font-style: normal;
}

.merriweather-bold {
  font-family: "Merriweather", serif;
  font-weight: 700;
  font-style: normal;
}

.merriweather-black {
  font-family: "Merriweather", serif;
  font-weight: 900;
  font-style: normal;
}

.merriweather-light-italic {
  font-family: "Merriweather", serif;
  font-weight: 300;
  font-style: italic;
}

.merriweather-regular-italic {
  font-family: "Merriweather", serif;
  font-weight: 400;
  font-style: italic;
}

.merriweather-bold-italic {
  font-family: "Merriweather", serif;
  font-weight: 700;
  font-style: italic;
}

.merriweather-black-italic {
  font-family: "Merriweather", serif;
  font-weight: 900;
  font-style: italic;
}






/* Стилі для меню */
.black-menu {
    background: linear-gradient(135deg, #000000, #000000);
    padding: 15px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    opacity: 0.9;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    margin: 0;
    font-family: 'Arial', sans-serif;
    font-size: 42px;
}

.logo-link {
    text-decoration: none;
    color: white;
}

.menu-options {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex; /* елементи в ряд */
    align-items: center;
}

 .menu-options li {
    margin-right: 30px;}

nav ul li:last-child {
    margin-right: 50px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    text-transform: uppercase;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    position: relative;
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-color: #ccccff;
    transition: width 1s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: #ccccff;
}

.company-logo {
    width: 80px;
    height: auto;
    margin-top: -10px;
    margin-bottom: 0px;
}

.menu-toggle {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
    margin-right: 40px;
}
  .mobile-menu {
    display: none;
  }


  @media (max-width: 960px) {
    .menu-toggle {
        display: block;
    }

    .mobile-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 250px;
        background: rgba(0, 0, 0, 0.9);
        z-index: 1002;
        padding: 20px;
    }

    .mobile-menu.open {
        display: flex;
    }

    .mobile-menu nav ul {
        display: flex;
        flex-direction: column;
    }

    .mobile-menu nav ul li {
        margin: 20px 0;
    }

    .mobile-menu nav ul li a {
        color: white;
        font-size: 20px;
    }

    .close-btn {
        font-size: 30px;
        color: white;
        cursor: pointer;
        align-self: flex-end;
    }

    .nav { display: none;
    }

    .menu-options {
      display: none;
    }
     .black-menu {
       height: 45px;
     }
   }



   @media (max-width: 460px) {
       .logo h1 {
           font-size: 24px;
       }

       .nav ul li a {
           font-size: 16px;
       }

       .intro-button {
           font-size: 18px;
           padding: 6px 12px;
       }

       .black-menu {
         height: 32px;
       }

     .company-logo {
       width: 50px;
       height: 50px;
       }

       .Menu2 {
         list-style-type: none;
       }

       .footer-content {
           display: flex;
           flex-direction: column;
           justify-content: center;
           align-items: center;
           width: 100%;
           font-size: 16px;
           height: auto; /* Заміна на auto для адаптації висоти */
           padding: 20px 0; /* Додаємо відступи зверху та знизу */
       }

       .contact-info {
           text-align: center !important;
           margin: 50px 35px 110px 0;
           position: relative;
       }

       .contact-info p, .contact-info a {
           color: white;
           text-decoration: none;
           margin: 5px 0; /* Додаємо відступи між елементами */
       }

       .social-media {
           margin: 15px 0;
           display: flex;
           justify-content: center;
           gap: 15px; /* Відступи між іконками */
       }

       .social-media a {
           font-size: 20px;
           color: white;
       }

       .contact-button {
           background-color: #8781FF;
           color: white;
           text-decoration: none;
           border-radius: 5px;
           font-weight: bold;
           padding: 10px 20px;
           margin: 0 0 85px;
           display: inline-block;
           text-align: center;
       }

       .copyright {
           text-align: center;
           color: white;
           font-size: 14px;
           margin-top: 20px;
       }
     }

/* ==============================Вище стандартні стилі================================================================================ */



.book-section {
    position: relative;
    height: 100vh; /* Висота блоку на весь екран */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Photos/DALL·E 2024-09-11 12.03.29 - A darker, more mysterious version of an old, magical library. The library is vast, with towering dark wooden shelves filled with ancient, mystical boo.webp');
    background-size: cover;
    background-position: center;
    z-index: -1;

    /* Початковий стан: чорно-біла картинка */
    filter: grayscale(100%);
    transition: all 0.5s ease; /* Плавний перехід для ефекту */
}

.book-section:hover .background-image {
    /* При наведенні: кольорова та насичена картинка */
    filter: grayscale(0%) saturate(3);
    transform: scale(1.1); /* Трохи збільшується */
}

.text-content {
    color: white;
    text-align: center;
    width: 45%;
    animation: fadeIn 2s ease-in-out; /* Анімація появи тексту */
}

.rainbow-text {
    font-size: 3em;
    font-weight: lighter;
    display: inline-block;
    font-family: Garamond;
    text-transform: uppercase;
    line-height: 1.2; /* Відстань між рядками заголовка */
    margin-bottom: 150px ;
}

/* Стиль для плоского райдужного тексту */


/* Анімація появи тексту */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Тінь для кращого контрасту тексту */
}




/* Стиль для фонової секції */
.library-section {
    background-image: url('Photos/DALL·E 2024-09-11 16.43.59 - A detailed wooden background with elements inspired by an old, magical library. The wood has a rich, dark tone with visible texture, resembling the sh.webp'); /* Підстав свій шлях до зображення бібліотеки */
    background-size: cover; /* Щоб фон покривав всю секцію */
    background-position: center; /* Центрування фону */
    background-attachment: fixed; /* Фон фіксується при скролінгу для ефекту паралаксу */
    padding: 50px 0; /* Простір зверху і знизу секції */
}

.book-catalog {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto; /* Центрування блоку каталогу */
}

.book-item {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9); /* Напівпрозорий білий фон для блоку книги */
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 7.5cm; /* Фіксована висота */
}

.book-cover {
    width: 170px; /* Ширина обкладинки */
    height: auto;
    border-radius: 4px;
    margin-right: 20px;
    box-shadow: 0 5px 9px rgba(0, 0, 0, 0.3);
}

.book-info {

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1; /* Займає весь простір праворуч від обкладинки */
}

.book-info h2 {
    font-size: 2em;
    font-weight: bold;
    font-family: Garamond;
    position: relative;
    margin: 0;
}

.book-info b {
  position: absolute;
  margin: 0;

}
.book-info p{
  font-family: Times;
  font-size: 17px;
}

.book-actions {
    display: flex;
    gap: 15px;
}

.btn {
    text-decoration: none;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    transition: background-color 0.3s;
    margin-top: 4px;
}

.btn:hover {
    background-color: #0056b3;
}

.transition-effect {
    height: 4px; /* Висота перехідної секції */
    background: black; /* Чорний градієнт зверху до прозорого */
  }



  @media only screen and (max-width: 460px) {

      /* Зменшення розмірів заголовків */
      .rainbow-text {
          font-size: 1.8em; /* Зменшений розмір заголовка для мобільних пристроїв */
      }

      /* Адаптація розміру тексту */
      .book-info h2 {
          font-size: 1.2em;
      }

      .book-info p {
          font-size: 0.9em;
      }

      /* Зменшення розмірів обкладинки книги */
      .book-cover {
          width: 180px; /* Зменшена ширина обкладинки книги */
          height: auto;
          margin-bottom: 15px;
      }

      /* Адаптація стилів для книги */
      .book-item {
          flex-direction: column; /* Розміщення контенту в колонку замість рядка */
          align-items: center;
          padding: 10px;
          height: auto;
      }

      /* Центрування кнопок і зменшення відступів */
      .book-actions {
          display: flex;
          flex-direction: column;
          gap: 10px;
          width: 100%;
          align-items: center;
      }

      .btn {
          font-size: 0.9em; /* Зменшений розмір тексту кнопок */
          padding: 8px 12px; /* Менші відступи для кнопок */
          width: 90%; /* Ширші кнопки на мобільних пристроях */
          text-align: center;
      }

      /* Зменшення загального відступу у секціях */
      .library-section {
          padding: 20px 10px;
      }

      /* Зменшення висоти для першого блоку */
      .book-section {
          height: 60vh; /* Зменшена висота для першого блоку на мобільних пристроях */
      }

      /* Адаптація тексту в першому блоці */
      .text-content {
          width: 80%; /* Зменшення ширини текстового блоку для мобільних */
          text-align: center;
      }

      /* Зменшення висоти переходу */
      .transition-effect {
          height: 5px; /* Менша висота для градієнта */
      }
  }


























/* =============Нижче стандартін стилі для футера====================================================================================== */

  footer {
      background-color:#121118;
      color:white;
      padding:40px 30px;
      text-align:center;
      position:relative;
  }

  .footer-content {
      display:flex;
      justify-content:space-between;
      align-items:center;
      width:100%;
      font-size:20px;
  }

  .contact-info, .social-media {
      flex:1;
      text-align:left;
  }

  .contact-info p, .contact-info a {
      display:block;
      margin-bottom:15px;
      color:white;
      text-decoration:none;
      margin-left:30px;
      font-family: Times New Roman;
  }

  .social-media {
      position:absolute;
      top:50%;
      left:50%;
      transform:translate(-50%, -50%);
  }

  .social-media a {
      font-size:24px;
      margin:0 10px;
      color:white;
  }

  .contact-button {
      background-color:#8781FF;
      color:white;
      padding:10px 20px;
      text-decoration:none;
      border-radius:5px;
      font-weight:bold;
      position:absolute;
      margin-left: 20px;
      bottom:40px;
  }

  .contact-button:hover {
      background-color:#0056b3;
  }

  .copy rights {
      font-size:14px;
      color:#ccc;
      position:absolute;
      bottom:10px;
      width:100%;
      text-align:center;
  }
