@font-face {
    font-family: "Book Antiqua";
    src: url("../../fonts/bookantiqua.ttf") format("truetype");
}
* {
    margin: 0;
    padding: 0;
    /*font-family: "Cormorant Infant", sans-serif;*/
    font-family: "Book Antiqua", sans-serif;
    /*font-family: "Alumni Sans Pinstripe", sans-serif;*/
    /*font-family: "Poiret One", sans-serif;*/


}

body {
    -webkit-text-size-adjust: 100%;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
}
.desktop-message {
     display: none;
     text-align: center;
     margin-top: 150px;
 }
.watermark {
    content: "ya-invite";
    position: fixed;
    font-size: 80px;
    color: rgba(0, 0, 0, 0.08);
    transform: rotate(-25deg);
    pointer-events: none;
    z-index: 55555;
    white-space: nowrap;
    font-weight: 600; /* выглядит аккуратнее */
}

/* Три позиции */
body::before {
    content: "ya-invite";
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 80px;
    color: rgba(0,0,0,0.08);
    pointer-events:none;
    z-index:5555555;
    white-space:nowrap;
}

body::after {
    content: "ya-invite";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 80px;
    color: rgba(0,0,0,0.08);
    pointer-events:none;
    z-index:5555555;
    white-space:nowrap;
}

html::after {
    content: "ya-invite";
    position: fixed;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 80px;
    color: rgba(0,0,0,0.08);
    pointer-events:none;
    z-index:555555;
    white-space:nowrap;
}
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.hid {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 3s ease-out;
}


.show {
    opacity: 1;
    transform: translateY(0);
}

.main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-top: 30px;
    background-color: #ffffff;
    padding-bottom: 30px;
}
.main-page {
    background-image: url("../images/main-photo.jpg");
    display: flex;
    align-items: end;
    justify-content: center;
    position: relative;
    background-size: cover;
    height: 630px;
    max-width: 450px;
    margin: 0 auto;
    overflow: hidden;
    z-index: 1;
}
.main-page-date {
    color: white;
    font-size: 40px;
    z-index: 5;
}
.main-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); // Затемнение (чем больше, тем темнее)
    z-index: 2;
}

.main-page-name {
    position: absolute;
    bottom: 20%;
    right: 15px;
    color: white;
    text-transform: uppercase;
    font-size: 40px;
    z-index: 5;
}


.icon {
    position: absolute;
    bottom: 88px;
    right: 46px;
    font-size: 145px;
    color: #b5b1b1;
    z-index: 3;
}
.main-page-name-two {
    margin-left: 20px;
}



.dear {
    font-size: 70px;
    text-align: center;
}

.no-fonts {
    text-align: center;
    font-size: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
    font-weight: normal;
    width: 100%;
    padding: 30px 0;
    background-color: #eaeaea;

}

.main-date {
    position: relative;
    font-size: 40px;
    z-index: 2;
    text-align: center;
}
.main-date-bg {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #e2e2e2;
    font-size: 120px;
    font-family: "Great Vibes", sans-serif;
    font-weight: bold;
    z-index: -1;

}

.main-photos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;


}
.main-photo-one {
    width: 300px;
}
.main-photo-one img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-top: 0px;

}
.main-photo-two {
    width: 300px;
    background-size: cover;

}
.main-photo-two img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-top: 100px;
}




 .program, .presence, .location, .dresscode, .wishes {
    padding: 50px 0 0px 0;
   /*background-image: url("../images/bg.jpg");*/


}

.location-title, .program-title, .dresscode-title, .wishes-title, .organizer-title,
.presence-title {
    text-align: center;
    font-size: 85px;
}

.program .container {

}

.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 3px;
    margin-bottom: 50px;
}
.event {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 85%;
    font-size: 40px;
    gap: 0px;

}
/*.event.line {*/
/*    width: 1px;*/
/*    height: 70px;*/
/*    background-color: black;*/
/*}*/

.event.line {
    width: 100px;
}
.event.line img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}



.location{
    background-color: #5e5e5e;
    color: white;
}

.location-info {
    text-align: center;
    font-size: 60px;
}
.location-address a {
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    outline: none;
    color: white;
    display: inline-block;
    cursor: pointer;
    border: 1px solid white;
    border-radius: 30px;
    padding: 15px;
    margin-top: 20px;
}
.location-address a:hover {
    color: #8c8c8c;
    display: inline-block;
    cursor: pointer;

}





.dresscode .container {
    /*position: relative;*/

}
.dresscode {
    position: relative;
    padding-bottom: 100px;
}
.wishes {
    padding-top: 0px;
}

.dresscode-info {

    text-align: center;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.dresscode-info-blocks {
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    width: 300px;
}

.dresscode-info-block.one {
    width: 300px;
    height: 30px;
    background-color: #e3ecfa;
}
.dresscode-info-block.two {
    width: 300px;
    height: 30px;
    background-color: #bed8ee;
}
.dresscode-info-block.three {
    width: 300px;
    height: 30px;
    background-color: #93bfee;
}
.dresscode-info-block.four {
    width: 300px;
    height: 30px;
    background-color: #faeee5;
}
.dresscode-info-block.five {
    width: 300px;
    height: 30px;
    background-color: #c7b2a2;
}
.dresscode-info-block {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.dresscode-info-block:nth-child(1) { transition-delay: 0.2s; }
.dresscode-info-block:nth-child(2) { transition-delay: 0.4s; }
.dresscode-info-block:nth-child(3) { transition-delay: 0.6s; }
.dresscode-info-block:nth-child(4) { transition-delay: 0.8s; }
.dresscode-info-block:nth-child(5) { transition-delay: 1s; }
.dresscode-info-block:nth-child(6) { transition-delay: 1.2s; }

.dresscode-info-blocks.active .dresscode-info-block {
    opacity: 1;
    transform: translateX(0);
}

.wishes .container {
    position: relative;

}
.wishes-wed {
    position: absolute;
    top: 40%;
    left: -22%;
    rotate: 270deg;
    font-family: "Book Antiqua", sans-serif;
    text-transform: uppercase;
    font-size: 85px;
    color: white;
}

.wishes-text {
    text-align: center;
    font-size: 40px;
}


.presence {
    padding-bottom: 50px;
}
.presence .container {
    position: relative;

}

.presence-text {
    text-align: center;
    font-size: 40px;
    margin-bottom: 30px;
}
.wedding-form * {
    box-sizing: border-box;
}
.wedding-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    font-size: 30px;
    font-family: "Cormorant Infant", sans-serif;

    fieldset {
        margin: 0 0 15px 0;
        padding: 0;
        border: none;
    }

    legend {
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
    }

    label {
        display: block;
        margin: 5px 0;
    }

    input[type="text"],
    textarea {
        width: 100%;
        padding: 8px;
        border: 1px solid black;
        border-radius: 5px;
        font-size: 16px;
    }
    .wedding-form input[type="radio"],
    .wedding-form input[type="checkbox"],
    textarea {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    textarea {
        min-height: 100px;
    }

    button {
        -webkit-appearance: none; /* Убирает дефолтные стили в Safari */
        -moz-appearance: none; /* Для Firefox */
        appearance: none; /* Общий сброс */
        background: transparent;
        width: 100%;
        padding: 10px;
        border: 1px solid #000;
        color: #000;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        font-weight: bold;

        &:hover {
            background: gray;
            border: 1px solid black;
        }
        &:focus {
            outline: none; /* Убирает синюю рамку при фокусе */
        }
    }
}
@supports (-webkit-appearance: none) {
    .wedding-form {
        max-width: 700px;
        margin: 0 auto;
        padding: 20px;
        font-size: 30px;
        font-family: "Cormorant Infant", sans-serif;
    }

    fieldset {
        border: none !important;
        padding: 0;
    }

    legend {
        font-weight: bold;
        margin-bottom: 5px;
    }

    label {
        display: block;
        margin: 5px 0;
    }
    input[type="text"],
    textarea {
        width: 100%;
        padding: 8px;
        border: 1px solid black;
        border-radius: 5px;
        font-size: 16px;
    }

    textarea {
        min-height: 100px;
    }

    button {
        -webkit-appearance: none; /* Убирает дефолтные стили в Safari */
        -moz-appearance: none; /* Для Firefox */
        appearance: none; /* Общий сброс */
        background: transparent;
        width: 100%;
        padding: 10px;
        border: 1px solid #000;
        color: #000;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        font-weight: bold;

        &:hover {
            background: gray;
            border: 1px solid black;
        }
        &:focus {
            outline: none; /* Убирает синюю рамку при фокусе */
        }
    }
}


.timout {
    background-color: #5e5e5e;
    padding: 50px 0;
    color: white;
}
.timout-title {
    font-size: 55px;
    text-align: center;
    font-weight: bold;
    white-space: nowrap;
}
#countdown {
    display: flex;
    justify-content: center;
    gap: 0px;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    text-align: center;

}

.time-box span {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

.time-box p {
    margin: 5px 0 0;
    font-size: 14px;
    text-transform: uppercase;
    opacity: 0.8;
    font-weight: bold;
}



