html, body {
    background-color: whitesmoke;
    height: 100%;
    font-family: 'Oswald', sans-serif;
    margin: 0;
    padding: 0;
    overflow: auto; /* Обеспечивает правильную прокрутку сайта */
}

.menu-image {
    width: 50px;
    height: 50px;
    object-fit: contain; /* Сохраняет пропорции изображения */
}

a {
    text-decoration: none;
    color: #bcdff6;
}

a:hover {
    color: #48a2dd;
}

h1 {
    font-size: 48px;
    font-weight: bold;
    color: #86bee3;
    position: relative;
    overflow: hidden;
    margin: 0;
}

h1::before {
    content: 'Anna Miart';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #2980b9;
    clip-path: polygon(0 0, 0% 100%, 100% 0);
    animation: slideIn 5s ease-in-out infinite alternate;
}

@keyframes slideIn {
    0% {
        clip-path: polygon(0 0, 0% 100%, 100% 0);
    }
    100% {
        clip-path: polygon(0 0, 100% 100%, 100% 0);
    }
}

h1:hover {
    color: #036eb6;
}

h1:hover::before {
    color: #005a95;
}

h1.down {
    transform: translate(0%, 30%);
    color: #175782;
}

p {
    height: 50px;
    font-size: 20px;
    text-align: center;
    margin: 0; /* Убираем отступы сверху и снизу */
    line-height: 50px; /* Центрируем текст по вертикали */
}

.main-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: calc(var(--vh, 1vh) * 100);
}

.flex-container-top {
    display: flex;
    flex-direction: row;
    height: 50px;
    width: 100vw;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.flex-container-top-left,
.flex-container-top-right {
    height: 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 1%;
    background-color: whitesmoke;
}

.flex-container-top-left {
    width: 60%;
}

.flex-container-top-right {
    width: 40%;
}

.zero-flex-block,
.first-flex-block,
.second-flex-block,
.third-flex-block,
.fourth-flex-block {
    height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: whitesmoke;
}

.zero-flex-block {
    width: 50%;
}

.first-flex-block:hover,
.second-flex-block:hover,
.third-flex-block:hover,
.fourth-flex-block:hover {
    color: #2980b9;
}

.zero-flex-block:hover {
    background-color: #7abce9;
}

.flex-container-bottom {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: calc(100vh - 50px); /* Используем min-height вместо фиксированной высоты */
}

.left-flex-block {
    width: 0%;
    background-color: white;
    height: auto;
}

.right-flex-block {
    width: 100%;
    background-color: whitesmoke;
    opacity: 1;
    height: auto;
}

.page {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 1s ease-in-out;
    transform-origin: right center;
}

.page.flip {
    transform: rotateY(-180deg);
}

.page-container {
    perspective: 1000px;
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden; /* Скрываем содержимое за границами */
}

.menu-button {
    display: none; /* Скрываем кнопку для десктопной версии */
    width: 38px;
    height: 38px;
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 1000;
    cursor: pointer;
    border: 3px solid #c0e6ff;
    border-radius: 5px;
    text-align: center;
    line-height: 38px;
    font-size: 24px;
    color: #000;
    background-color: #8ecffb;
}

.menu-icon {
    font-weight: bold;
    font-size: 22px;
    max-width: 100%;
    max-height: 100%;
    border-radius: 5px;
    color: #fcfeff;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.8);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: max-height 0.5s ease-in-out;
    overflow: hidden;
    max-height: 0;
    visibility: hidden;
    opacity: 0;
}

.mobile-menu.visible {
    visibility: visible;
    opacity: 1;
    max-height: 100vh;
}

.mobile-menu a {
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: black;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-menu a:hover {
    background-color: #f5f5f5;
}

@media (orientation: portrait) {
    .menu-button {
        display: block; /* Показываем кнопку для мобильной версии */
    }

    .flex-container-top-left {
        width: 100%;
    }

    .flex-container-top-right {
        display: none; /* Скрываем верхнее меню для мобильной версии */
    }

    .mobile-menu {
        display: flex;
    }

    .zero-flex-block,
    .first-flex-block,
    .second-flex-block,
    .third-flex-block,
    .fourth-flex-block {
        height: 50px;
    }
}

.language-switcher {
    margin-left: auto;
    padding-right: 10px;
}

.language-switcher a {
    text-decoration: none;
    color: black;
    margin: 0 5px;
}

.language-switcher a:hover {
    color: #2980b9;
}

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 15px;
    display: none; /* Изначально скрыто */
    z-index: 1000;
    box-sizing: border-box;
}

.cookie-consent p {
    margin: 0 0 30px 0;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    padding: 0 10px;
    word-wrap: break-word;
}

.cookie-consent button {
    background-color: #005a95;
    color: white;
    border: none;
    padding: 10px 30px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    font-size: 14px;
    display: block;
    margin: 0 auto;
    max-width: 100%;
}
