/* Подключение шрифта */
@font-face {
    font-family: "LeJardine";
    src: url("LeJardine.woff") format("woff");
    font-weight: 200;
    font-style: italic;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bad+Script&display=swap');

/* Сброс стилей по умолчанию */
body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    font-family: "LeJardine", sans-serif;
    background-color: #f9f9f9;
    line-height: normal;
}

img {
    position: absolute;
    top: -100px;
    width: 400px;
    /* Анимациянын ылдамдыгын жана түрүн оңдодук */
    animation: image_animate ease-in-out 2s infinite alternate;
    /* alternate - анимациянын алдыга жана артка жүрүшүн камсыздайт */
    transform: scale(1) rotate(-5deg) translateX(0px);
}

@keyframes image_animate {

    /* Баштапкы абал: кичинекей айлануу, толук өлчөм */
    0% {
        transform: scale(1) rotate(-2deg) translateX(20px);
    }

    /* Ортодо: кичине чоңоюу, башка жакка бир аз айлануу */
    50% {
        transform: scale(1.03) rotate(5вeg) translateX(-20px);
        /* 50 градус өтө көп, 2-5 градус жетиштүү */
    }

    /* Кайра баштапкы абалга келет */
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.invitation-container {
    position: relative;
    /* max-width: 450px; */
    /* Ширина мобильного приглашения */
    margin: 0 auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Обрезка акварельных элементов */
}

.section {
    padding: 20px 20px;
    text-align: center;
    position: relative;
}

/* ШРИФТЫ И АКЦЕНТЫ */
.script-text {
    font-family: 'Marck Script', cursive;
    /* Рукописный шрифт */
    font-size: 2em;
    color: #6d6d6d;
    /* Серый цвет для рукописного текста */
    margin-bottom: 5px;
}

.couple-names {
    /* font-family: 'Marck Script', cursive; */
    font-size: 2.3em;
    margin: 20px 0 20px 0;
    color: #333;
    font-weight: 100;
    /* Анимациянын ылдамдыгын жана түрүн оңдодук */
    animation: title_name ease-in-out 2s infinite;
}

@keyframes title_name {

    /* Баштапкы өлчөм */
    0% {
        transform: scale(1);
    }

    /* Ортодо кичине чоңойот */
    50% {
        transform: scale(1.05);
        color: #fb00ff;
        /* Мисалы, түсүн да өзгөртсө болот */
    }

    /* Кайра баштапкы өлчөмгө кайтат */
    to {
        transform: scale(1);
    }
}

.greeting-text {
    margin-top: 10px;
    font-size: 20px;
    font-weight: 300;
    font-weight: 400;
    letter-spacing: 2px;
}

.small-caps {
    text-transform: uppercase;
}

/* ВЕРХНИЙ ДЕКОР И МЕНЮ */
.flower-top-mobile {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    max-width: 200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.505);
    padding: 5px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(3px);
    border-radius: 5px;
    display: none;
}

.menu-text {
    font-family: 'Marck Script', cursive;
    font-size: 1.5em;
    color: rgb(255, 255, 255);
}

/* ГЛАВНЫЙ БАННЕР */
.main-banner-section {
    padding-top: 200px;
    /* height: 100vh!important; */
    /* Отступ для видимости верхнего декора */
    padding-bottom: 60px;
    /* Фоновое изображение для верхнего цветочного венка */
    /* background-image: url('./top.png'); */
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: top center;
}

.banner-content {
    /* background-color: rgba(255, 255, 255, 0.5); */
    /* Полупрозрачный фон для текста на цветах */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.quote-text {
    font-family: "Cormorant Garamond";
    font-optical-sizing: auto;
    font-weight: normall;
    font-style: italic;

    font-size: 1em;
    font-weight: 300;
    margin: 5px 0;
    line-height: 1.4;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.location-details {
    font-size: 0.9em;
    font-weight: 300;
    margin: 5px 0;
    line-height: 1.4;
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
}

.date-block {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px 0 15px 0;
    font-weight: 500;
    font-size: 20px;
    letter-spacing: 2px;
}

.day-number {
    font-size: 2em;
    font-weight: 700;
    color: #333;
}

.separator {
    margin: 0 10px;
    font-size: 1.5em;
    color: #ccc;
}

.call-to-action {
    font-size: 0.9em;
    letter-spacing: 4px;
    font-weight: 400;
    margin-top: 10px;
}

/* ТАЙМЕР ОБРАТНОГО ОТСЧЕТА */
.countdown-section {
    scroll-margin-top: 50px;
    background-color: #f7f5f0;
    /* Более темный фон для выделения */
    padding: 30px 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.countdown-timer {
    display: flex;
    justify-content: space-around;
    max-width: 350px;
    margin: 0 auto;
}

.timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-number {
    font-size: 2.2em;
    font-weight: 700;
    color: #a08c70;
    /* Бежевый/коричневый акцентный цвет */
    line-height: 1;
}

.timer-label {
    font-size: 0.7em;
    font-weight: 400;
    text-transform: uppercase;
    margin-top: 5px;
    color: #777;
    letter-spacing: 1px;
}

/* ОСНОВНОЕ ПРИГЛАШЕНИЕ И КАРТА */
.map-invitation-section {
    padding: 0;
    /* Фоновое изображение: Большая акварельная рамка/цветы */
    background-image: url('map_flowers_overlay.png');
    background-repeat: no-repeat;
    background-size: cover;
    /* Покрыть всю секцию */
    background-position: center bottom;
}

.invitation-card {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px 30px;
    margin: 50px 0 20px 0px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    position: relative;
    width: 95%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.card-greeting {
    margin-bottom: 20px;
    color: #a08c70;
}

.card-text {
    font-size: 0.95em;
    line-height: 1.8;
    margin-bottom: 20px;
    font-family: "Cormorant Garamond" !important;
    font-style: italic;
}

.card-details {
    font-size: 0.85em;
    font-weight: 500;
    line-height: 1.5;

    font-family: "Cormorant Garamond" !important;
    font-style: italic;
}

/* КАРТА */
.map-placeholder {
    height: 400px;
    /* Высота области карты */
    background-color: #e0e0e0;
    position: relative;
    /* Маскировка/Стилизация карты (реализуется стилями Google Maps API) */
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
    border-top: 1px solid #eee;
}

.map-button {
    background-color: #a08c70;
    color: white;
    border: none;
    padding: 8px 25px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 0.9em;
}

.address-text {
    font-size: 0.8em;
    margin: 0;
    color: #666;
    font-weight: 300;
}

.map-info {
    text-align: left;
    padding: 10px 20px 30px;
    font-size: 0.8em;
    line-height: 1.3;
    color: #777;
}

/* Медиа-запросы для небольших экранов (если нужно) */
@media (max-width: 400px) {
    .couple-names {
        font-size: 2.5em;
    }

    .countdown-timer {
        gap: 5px;
    }
}

/* -- */
/* Основной контейнер для индикатора */
.scroll-indicator {
    position: fixed;
    /* Закрепляем на экране */
    bottom: 0px;
    /* Располагаем внизу */
    /* left: 50%; */
    /* transform: translateX(-50%);  */
    display: flex;
    flex-direction: column;
    /* Стрелки друг под другом */
    align-items: center;
    z-index: 1000;
    cursor: pointer;
    width: 100%;
    left: 0;
}

/* Стиль одной "стрелки" */
.arrow {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #007bff70;
    /* Цвет стрелки */
    margin-top: 5px;
    /* Расстояние между стрелками */
    opacity: 0;
    /* Изначально делаем невидимыми */
    animation: bounce_bottom 2s infinite;
    /* Применяем анимацию */
}

/* Сдвигаем анимацию для каждой стрелки, чтобы создать эффект "волны" */
.arrow:nth-child(2) {
    animation-delay: 0.2s;
}

.arrow:nth-child(3) {
    animation-delay: 0.4s;
}

/* Ключевые кадры анимации "bounce" (подскок) */
@keyframes bounce_bottom {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
        /* В начальной и конечной точках - исходное положение */
        opacity: 0;
    }

    40% {
        transform: translateY(-10px);
        /* Поднимается вверх */
        opacity: 1;
        /* Полностью видна */
    }

    60% {
        transform: translateY(-5px);
        /* Опускается немного */
        opacity: 1;
    }
}

/* /-- */

/* style.css */

/* Стиль для кнопки управления аудио */
.audio-control-button {
    /* Фиксированная позиция, чтобы кнопка всегда была на экране */
    position: fixed;
    bottom: 20px;
    /* Отступ от нижнего края */
    right: 50px;
    /* Отступ от правого края */

    /* Дополнительные стили для внешнего вида */
    background-color: #fb00ff;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    /* Курсор-указатель */
    border-radius: 5px;
    z-index: 1000;
    /* Гарантирует, что кнопка будет поверх других элементов */
    box-shadow: 0 4px 8px #fb00ff;
    transition: background-color 0.2s;

    animation: image_animate ease-in-out 2s infinite alternate;
}

.audio-control-button:hover {
    background-color: rgb(251, 16, 255);
}

@keyframes image_animate {

    /* Баштапкы абал: кичинекей айлануу, толук өлчөм */
    0% {
        transform: scale(1) rotate(-2deg) translateX(20px);
    }

    /* Ортодо: кичине чоңоюу, башка жакка бир аз айлануу */
    50% {
        transform: scale(1.03) rotate(5вeg) translateX(-20px);
        /* 50 градус өтө көп, 2-5 градус жетиштүү */
    }

    /* Кайра баштапкы абалга келет */
    100% {
        transform: scale(1) rotate(0deg);
    }
}