/* Общие стили для всех разрешений */
.header {
    height: 10vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

@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;
}

pa {
    font-family: eUAlogo;
}

/* 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;
}

a {
    text-decoration: none;
    color: black;
}

.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;
}

.content {
    text-align: center;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .navbar-items a {
        display: block;
        margin: 10px 0;
        padding: 10px 0;
    }

    .navbar-items {
        display: block;
    }

    .logo img {
        width: 100px; /* уменьшаем логотип */
    }

    .content iframe {
        width: 100%; /* делаем iframe адаптивным */
        height: auto;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 0;
    }

    .logo img {
        width: 80px;
    }

    .navbar-items a {
        margin-left: 0;
        font-size: 14px;
    }

    .logo2 {
        padding: 5px;
    }

    .content {
        padding: 10px;
    }

    .content iframe {
        height: 1200px;
    }
}

/* Стили для бургер-меню */
.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%;
    }
}