body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: black;
}

.header {
    height: 10vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

pa {
    font-family: eUAlogo;
}

.navbar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: white;
    z-index: 1000;
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-family: eUAthin;
}

.navbar-items {
    display: inline-block;
}

.navbar-items a {
    margin-left: 5rem;
}

.navbar-items a:hover {
    background: rgb(228, 196, 196);
    padding: 10px 20px;
    border-radius: 25px;
}

.logo,
.logo2 {
    margin-bottom: 20px;
}

.logo img {
    width: 130px;
    /* Уменьшение ширины логотипа */
    height: auto;
    /* Сохраняем пропорции изображения */
    margin-bottom: 10px;
}

#parallax-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: white;
}

#parallax-content {
    position: relative;
    text-align: center;
    z-index: 10;
}

.main-title {
    font-family: eUAlogo;
    font-size: 3rem;
    margin-bottom: 20px;
}

.parallax-logo {
    width: 200px;
    height: auto;
}

.books-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    /* Убираем взаимодействие с книгами */
}

.floating-book {
    width: 80px;
    /* Уменьшим размер книг */
    height: auto;
    position: absolute;
    animation: fall linear infinite;
    opacity: 0;
    /* Начинаем с прозрачности */
}

@keyframes fall {
    0% {
        transform: translateY(-100px);
        /* Книга начинается за пределами экрана */
        opacity: 1;
    }

    100% {
        transform: translateY(100vh);
        /* Книга проходит весь экран сверху вниз */
        opacity: 0;
    }
}

/* Добавляем задержку для каждой книги, чтобы они не падали одновременно */
.book-1 {
    left: 10%;
    animation-duration: 5s;
    animation-delay: 0s;
}

.book-2 {
    left: 20%;
    animation-duration: 7s;
    animation-delay: 1s;
}

.book-3 {
    left: 30%;
    animation-duration: 6s;
    animation-delay: 2s;
}

.book-4 {
    left: 40%;
    animation-duration: 4s;
    animation-delay: 3s;
}

.book-5 {
    left: 50%;
    animation-duration: 8s;
    animation-delay: 4s;
}

.book-6 {
    left: 60%;
    animation-duration: 5s;
    animation-delay: 5s;
}

.book-7 {
    left: 70%;
    animation-duration: 7s;
    animation-delay: 6s;
}

.book-8 {
    left: 80%;
    animation-duration: 6s;
    animation-delay: 7s;
}

.book-9 {
    left: 90%;
    animation-duration: 4s;
    animation-delay: 8s;
}

.book-10 {
    left: 15%;
    animation-duration: 6s;
    animation-delay: 9s;
}

.book-11 {
    left: 25%;
    animation-duration: 5s;
    animation-delay: 10s;
}

.book-12 {
    left: 35%;
    animation-duration: 7s;
    animation-delay: 11s;
}

.book-13 {
    left: 45%;
    animation-duration: 6s;
    animation-delay: 12s;
}

.book-14 {
    left: 55%;
    animation-duration: 8s;
    animation-delay: 13s;
}

.book-15 {
    left: 65%;
    animation-duration: 5s;
    animation-delay: 14s;
}

/* Footer Styles */
.footer {
    background-color: #f8d7da;
    color: black;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #ccc;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.footer-content {
    font-family: eUAthin;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content a {
    color: #dc3545;
}

.footer-content a:hover {
    color: #c82333;
}

@font-face {
    font-family: eUAlogo;
    src: url('../fonts/e-UkraineHead-LOGO.otf');
}

@font-face {
    font-family: eUAthin;
    src: url('../fonts/e-UkraineHead-Thin.otf');
}

.logo2 {
    background-color: pink;
    padding: 10px;
    border-radius: 20px;
}

/* Стили для модального окна */
.modal {
    display: none;
    /* Скрыто по умолчанию */
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    /* Фон с прозрачностью */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.modal-content h2 {
    font-family: eUAlogo;
    margin-bottom: 20px;
}

.modal-content p {
    font-family: eUAthin;
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-content button {
    padding: 10px 20px;
    margin-right: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: eUAthin;
}

#agree {
    background-color: #28a745;
    color: white;
}

#disagree {
    background-color: #dc3545;
    color: white;
}

#agree:hover,
#disagree:hover {
    opacity: 0.9;
}

/* Общие стили для мобильных устройств */
@media (max-width: 768px) {

    /* Адаптация шрифта заголовков и текста */
    .main-title {
        font-size: 2rem;
    }

    .navbar-items {
        display: block;
        text-align: center;
    }

    .navbar-items a {
        display: block;
        margin: 10px 0;
    }

    .logo img {
        width: 100px;
        margin-bottom: 5px;
    }

    .parallax-logo {
        width: 150px;
    }

    /* Адаптация плавающих книг */
    .floating-book {
        width: 50px;
    }

    /* Стили для модального окна */
    .modal-content {
        width: 90%;
    }
}

/* Дополнительные стили для экранов меньше 480px */
@media (max-width: 480px) {
    .navbar {
        padding: 10px 0;
    }

    .logo img {
        width: 80px;
    }

    .main-title {
        font-size: 1.5rem;
    }

    .footer-content {
        font-size: 0.8rem;
    }

    .modal-content {
        padding: 15px;
    }

    .modal-content h2 {
        font-size: 1.2rem;
    }

    .modal-content p {
        font-size: 0.9rem;
    }

    .modal-content button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Стили для бургер-меню */
.burger-menu {
    display: none;
    /* Скрываем на десктопе */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    position: absolute;
    left: 50%;
    /* Центрируем по горизонтали */
    top: 40%;
    transform: translate(-50%, -50%);
    /* Точная центровка */
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
        /* Показываем на мобильных */
    }

    .navbar-items {
        display: none;
        /* Скрываем обычное меню */
        position: fixed;
        top: 60px;
        /* Высота navbar */
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding-top: 20px;
        transition: all 0.3s ease;
    }

    .navbar-items.active {
        display: flex;
        /* Показываем при активации */
    }

    .navbar-items a {
        margin: 15px 0;
        font-size: 1.2rem;
    }

    /* Анимация бургера в крестик */
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .navbar {
        position: fixed;
        width: 100%;
    }
}