@font-face {
    font-family: 'Better Land';
    src: url('fonts/Better Land.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Fog';
    src: url('fonts/FoglihtenNo06.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Cormorant';
    src: url('fonts/CormorantSC-Regular.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Fog', sans-serif;
    background-color: rgb(231, 225, 215);
}

*, *::before, *::after {
    box-sizing: border-box;
}

#desktop-placeholder {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#desktop-placeholder p {
    font-size: 24px;
    text-align: center;
}

#mobile-content {
    margin: 0;
    padding: 0;
    width: 100%;
    display: none;
}

.photo {
    margin-top: 60px;
}

.ph {
        display: block;
        margin: 0 auto;
        border-radius: 15px;
        width: 90%;
    }

button {
    font-family: 'Fog', sans-serif;
    background-color: #f1f1ee;
    color: black;
    border: 1px solid #a19995;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
    z-index: 2;
    display: block; 
    margin: 10px auto; 
    width: 100%; 
}

.block {
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

.block-9 {
    padding: 0 20px;
}

.background-image {
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.background-video {
    position: relative;
    width: 100%;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffeab1;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.background-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

video::-webkit-media-controls {
    display: none !important;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); 
    z-index: 0; 
}

.block-main {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}


.text-center {
    text-align: center;
    max-width: 100%;
    word-wrap: break-word;
}

#envelope {
    cursor: pointer;
    position: relative; 
    transition: opacity 1s; 
    z-index: 100;
    animation: shake-and-scale 4s infinite, glow 2s infinite;
    transition: transform 0.3s ease-in-out;
}

#invitation-text {
    width: 300px;
    opacity: 0; 
    transition: opacity 1s; 
    position: absolute; 
    bottom: 10%; 
    font-size: 36px;
}

#click-text {
    opacity: 1; 
    transition: opacity 1s; 
    font-size: 22px;
}


h2 {
    font-family: 'FOg', sans-serif;
    font-size: 36px;
    font-weight: normal;
    margin: 0 0 20px 0;
    text-align: center;
    color: #241706;
}

p {
    font-family: 'Cormorant', sans-serif;
    font-size: 20px;
    padding: 0;
    text-align: center;
}

.invitation p {
    font-family: 'Fog', sans-serif;
    font-size: 26px;
    margin-bottom: 10%;
}

.leaf {
    width: 100px;
    display: block;
    margin: 50px auto; 
    opacity: 0;
    transition: opacity 1s;
}

.faq {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.faq-question {
    font-family: 'Fog', sans-serif;
    background-color: #f1f1ee;
    border: none;
    border-radius: 15px;
    padding: 20px;
    text-align: left;
    width: 100%;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
    z-index: 2;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-arrow {
    transition: transform 0.3s;
    color: #241706;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f1f1ee;
    border-radius: 15px;
    padding: 0 15px;
    margin-top: 0;
    z-index: 1;
}

.faq-answer p {
    text-align: left;
    font-size: 18px;
    margin: 25px 0 0 0;
}

.faq-item.active .faq-answer {
    max-height: 300px; 
    padding: 15px;
    margin-top: -25px;
}

.faq-item.active .faq-arrow {
    transform: rotate(-90deg); /* Поворачиваем стрелочку на 90 градусов */
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    #desktop-placeholder {
        display: none;
    }

    #mobile-content {
        display: block;
    }

    body {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .background-image {
        padding: 0;
    }

    img {
        width: 100%;
        height: auto;
        padding: 0;
    }

    #envelope {
        width: 300px;
    }

    #dy {
        width: 80%;
    }

}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.02);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    }
}

/* Анимация тряски и увеличения конверта */
@keyframes shake-and-scale {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }

    13% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1) rotate(0deg);
    }

    36% {
        transform: scale(1.01) rotate(-1deg);
    }

    50% {
        transform: scale(1) rotate(1deg);
    }

    63% {
        transform: scale(1.01) rotate(-1deg);
    }

    75% {
        transform: scale(1) rotate(1deg);
    }

    86% {
        transform: scale(1.01) rotate(-1deg);
    }
}

@keyframes light-streak {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}


.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}


/* Общие стили для формы */

.guest-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.guest-form h2 {
    font-family: 'Fog', sans-serif;
    font-size: 46px;
    margin-bottom: 20px;
    text-align: center;
}

.guest-form p {
    font-family: 'Cormorant', sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.guest-form2 {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.guest-form2 h2 {
    font-family: 'Fog', sans-serif;
    font-size: 46px;
    margin-bottom: 20px;
    text-align: center;
}

.guest-form2 p {
    font-family: 'Cormorant', sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.exl-block {
    background-color: #f1f1ee;
    display: block;
    border-radius: 15px;
    color: black;

}

.exl-block p {
        font-size: 14px;
        margin: 0 auto;
        padding: 15px;
        text-align: left;
}

.half-button {
    display: flex;
    button {
        width: 48%;
    }
}

/* Стили для полей ввода */
.guest-form input[type="text"],
.guest-form input[type="radio"],
.guest-form input[type="checkbox"] {
    font-family: 'Cormorant', sans-serif;
    background-color: #f1f1ee;
    border: 1px solid #a19995;
    color: black;
    border-radius: 15px;
    padding: 15px;
    font-size: 16px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

.guest-form2 input[type="text"],
.guest-form2 input[type="radio"],
.guest-form2 input[type="checkbox"] {
    font-family: 'Cormorant', sans-serif;
    background-color: #f1f1ee;
    border: 1px solid #a19995;
    color: black;
    border-radius: 15px;
    padding: 15px;
    font-size: 16px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

.guest-form input[type="radio"],
.guest-form input[type="checkbox"] {
    margin: 5px;
    width: 13px;
    height: 13px;
}

.guest-form2 input[type="radio"],
.guest-form2 input[type="checkbox"] {
    margin: 5px;
    width: 13px;
    height: 13px;
}

/* Стили для меток */
.guest-form label {
    font-family: 'Cormorant', sans-serif;
    font-size: 16px;
    margin-bottom: 5px;
    display: inline-block;
}

.guest-form2 label {
    font-family: 'Cormorant', sans-serif;
    font-size: 16px;
    margin-bottom: 5px;
    display: inline-block;
}

.form-group label {
    margin-left: 5px;
    margin-bottom: 0;
}

/* Стили для группы вопросов */
.guest-form, 
.guest-form2,
.question-group {
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
}

/* Стили для кнопки отправки */
.guest-form button[type="submit"] {
    font-family: 'Cormorant', sans-serif;
    background-color: #f1f1ee;
    border: 1px solid #a19995;
    color: black;
    border-radius: 15px;
    padding: 15px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

.guest-form2 button[type="submit"] {
    font-family: 'Cormorant', sans-serif;
    background-color: #f1f1ee;
    border: 1px solid #a19995;
    color: black;
    border-radius: 15px;
    padding: 15px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

.guest-form button[type="submit"]:hover {
    background-color: #e9ecef;
}

.guest-form2 button[type="submit"]:hover {
    background-color: #e9ecef;
}

/* Стили для выбора напитков */
.guest-form .guest-form2 .drinks-group {
    display: flex;
    justify-content: space-between;
}

.guest-form .guest-form2 .drinks-group .drinks-column {
    width: 48%;
}

.map-container {
    position: relative;
    width: 100%;
    height: 400px; /* Высота карты */
    overflow: hidden;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8); /* Полупрозрачный белый фон */
    display: flex;
    flex-direction: column; /* Элементы вертикально */
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 18px;
    color: #000; /* Цвет текста */
    z-index: 10; /* Оверлей поверх карты */
    touch-action: manipulation; /* Улучшение для мобильных устройств */
}

.map-overlay p {
    margin: 0;
    padding: 10px;
    border-radius: 10px;
}

#unlock-button {
    margin-top: 20px; /* Отступ от текста */
    padding: 15px 20px;
    font-size: 14px;
    cursor: pointer;
    width: 260px;
    transition: background-color 0.3s ease; /* Плавное изменение цвета */
}

#unlock-button:hover {
    background-color: #0056b3; /* Темно-синий при наведении */
}

#copy-text {
    cursor: pointer; /* Курсор в виде руки */
    color: rgb(0, 0, 0);
    transition: color 0.2s ease;
}

#copy-text:active {
    color: dimgray;
}

.countdown-container {
    text-align: center;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-size: 2.5rem;
    min-width: 70px;
    display: inline-block;
}

.countdown-label {
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
}

@media (max-width: 600px) {
    .countdown {
        gap: 1rem;
    }
    .countdown-number {
        font-size: 1.8rem;
        min-width: 50px;
    }
}