/* Общие стили */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    box-sizing: border-box;
    background-color: #f8f8f8;
    background-image: url('food-2879202_1280.jpg');
    background-size: cover;
    background-attachment: fixed;
}

/* Стили для контейнера видео */
#video-container {
    position: fixed; /* Фиксированное позиционирование */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; /* Выше всех остальных элементов */
    overflow: hidden; /* Скрытие части видео, которая выходит за границы контейнера */
}

/* Стили для видео */
#myVideo {
    width: auto;
    height: auto;
    min-width: 100%; /* Видео займет всю ширину контейнера */
    min-height: 100%; /* Видео займет всю высоту контейнера */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Центрируем видео */
    transition: opacity 1s ease-in-out;
}


/* Стили для шапки */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #33333300;
    padding: 10px auto;
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    z-index: 1;
    height: 80px;
}

#logo {
    width: 100px;
    height: auto;
}

nav {
    flex: 1;
    text-align: center;
}

nav a {
    /* text-align: center;
    align-items: center; */
    margin: 1 18px;
    text-decoration: none;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 24px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #9c6a27;
}

/* Флажки */
.language-link {
    margin: 0 8px;
    display: flex;
}

/* Блок с анимацией мигания */
.flashing {
    animation: flashing 1s infinite alternate;
}

@keyframes flashing {
    from {
        opacity: 1;
    }
    to {
        opacity: 0.5;
    }
}

.flag-icon {
    width: 35px;
    height: auto;
}

/* Кнопка контактов */
#contact-button {
    margin-right: 25px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #9c6a27;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 10px;
}

#contact-button:hover {
    background-color: #8B4513;
}

nav a:not(:last-child) {
    margin-right: 35px;
}

body.scrolled header {
            background-color: #604335;
        }

/* Фон и стили для галереи */
#gallery {
    position: relative;
    width: 100%;
    height: auto;
}

.background-photo {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
}

.background-photo img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* полупрозрачный черный цвет для оверлея */
    color: #fff; /* белый текст */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-overlay:hover {
    opacity: 1;
}

.photo-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.text-photo {
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: center;
}

#gallery-button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #fff;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#gallery-button:hover {
    background-color: #333;
    color: #fff;
}


/* Фотогалерея */
.photo-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap; /* Добавим возможность переноса элементов на маленьких экранах */
}

.photo {
    text-align: center;
    margin: 5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo img {
    max-width: 100%;
    height: auto;
    /* margin-bottom: 15px;
    margin-top: 50px; */
    margin-bottom: 2vw; /* Заменим на относительное значение */
    margin-top: 5vw; /* Заменим на относительное значение */
}

/* .photo-circle {
    width: 40px;
    height: 40px;
    background-color: #D2B48C;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    margin-right: 280px;
    margin-bottom: -50px;
    margin-top: 20px;
} */

.photo-circle {
    width: 3vw; /* Заменим на адаптивный размер */
    height: 3vw; /* Заменим на адаптивный размер */
    background-color: #D2B48C;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5vw; /* Заменим на адаптивный размер */
    font-weight: bold;
    margin-right: 15vw; /* Заменим на адаптивный размер */
    margin-bottom: -3vw; /* Заменим на относительное значение */
    margin-top: 1vw; /* Заменим на относительное значение */
}

.photo-text1 {
    font-size: 24px;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
    text-align: justify;
    color: aliceblue;
}

.photo p {
    text-align: justify;
    margin: 10px 0;
    font-size: 15px;
    margin-left: 20px;
    color: aliceblue;
}

/* Стили для блока с изображением и текстом */

.side-by-side-block {
    background-color: #6043357a;
    border-radius: 1vw; /* Относительное значение для радиуса скругления */
    overflow: hidden;
    height: 25vw; /* Относительное значение высоты */
    margin-left: 40vw; /* Относительное значение отступа слева */
    /* margin-right: 5vw; Заменим на относительное значение */
}

.side-by-side-content {
    display: flex;
    flex-direction: column;
    padding: 1vw; /* Относительное значение внутренних отступов */
    margin-top: 2vw; /* Относительное значение отступа сверху */
    margin-left: 5vw; /* Относительное значение отступа слева */
    margin-right: 2.5vw; /* Относительное значение отступа справа */
}

.image-container img {
    width: 25vw; /* Относительное значение ширины */
    height: 15vw; /* Относительное значение высоты */
    object-fit: cover;
    position: absolute;
    left: 33%; /* Центрирование по горизонтали */
    transform: translateX(-50%); /* Центрирование по горизонтали */
    top: 96vw; /* Относительное значение отступа сверху */
}

.side-by-side-text {
    margin-bottom: 1.5vw;
    color: white;
}

.side-by-side-text h4 {
    text-transform: uppercase;
    margin-left: 3vw;
    color: white;
}

.side-by-side-text h2 {
    font-size: 1.5vw; /* Относительное значение размера шрифта */
    text-transform: uppercase;
    color: white;
}

.side-by-side-text p {
    font-size: 18px;
    margin-left: 30px;
    color: white;
}

.vaata-button {
    background-color: #D2B48C;
    color: white;
    padding: 1vw 2vw; /* Относительное значение внутренних отступов */
    border: none;
    border-radius: 0.5vw;
    cursor: pointer;
    font-size: 1vw; /* Относительное значение размера шрифта */
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.vaata-button:hover {
    background-color: #B08E57;
}


/* Блок с центрированным контентом */
.centered-block {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.centered-block h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.centered-block p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

.centered-block::before {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: #007bff; /* синий цвет */
    margin: 0 auto 20px;
    border-radius: 2px;
}


/* Блок с фотографиями */
.photo-container1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 30px;
}

.photo1 {
    width: calc(20% - 30px); /* 25% ширины контейнера с небольшим отступом */
    margin-bottom: 70px;
    position: relative;
}

.photo1 img {
    width: 80%;
    height: auto;
    display: block;
    border-radius: 10px; /* закругленные углы */
    transition: transform 0.3s ease;
}

.photo1:hover img {
    transform: scale(1.1); /* увеличение при наведении */
}

.photo-text2 {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff; /* цвет текста */
    background-color: rgba(0, 0, 0, 0.5); /* полупрозрачный черный фон */
    padding: 5px 10px;
    border-radius: 5px;
}

.photo-textp {
    position: absolute;
    bottom: 10px;
    left: 5px;
    font-size: 0.6rem;
    color: #fff; /* цвет текста */
    background-color: rgba(0, 0, 0, 0.7); /* полупрозрачный черный фон */
    padding: 5px 10px;
    border-radius: 5px;
}


/* Блок с иконками и текстом */
#gallery3 {
    position: relative;
    width: 100%;
    height: auto;
}

.background-photo3 {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 800px; /* Высота по вашему желанию */
}

.background-photo3 img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.photo-overlay3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7); /* Полупрозрачный черный цвет для оверлея */
    color: #fff; /* Белый текст */
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-overlay3:hover {
    opacity: 1;
}

.photo-text3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.text-photo3 {
    font-size: 1rem;
    margin-bottom: 20px;
}

#gallery3 .photo-overlay3 {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#gallery3:hover .photo-overlay3 {
    opacity: 1;
}

#gallery-button3 {
    background-color: #fff;
    color: #92552a;
    padding: 1.4vw 2.6vw; /* Заменим на относительное значение */
    border: none;
    border-radius: 1vw;
    cursor: pointer;
    font-size: 1.4vw;
    transition: background-color 0.3s ease;
}

#gallery-button3:hover {
    background-color: #654321;
}

/* Стили для футера */
footer {
    background-color: #33333300; /* цвет фона */
    color: #333131; /* цвет текста */
    padding: 50px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo img {
    width: 150px; /* ширина логотипа */
    height: auto;
    margin-bottom: 20px;
}

.footer-data {
    margin-top: 20px;
}

.footer-data p {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.footer-data p:last-child {
    margin-bottom: 0;
}

.text-center {
    text-align: center;
}



