@font-face {
    font-family: 'saint';
    src: url('./fonts/saint.woff') format('woff');
    font-weight: 900;
    font-style: normal
}

@font-face {
    font-family: 'mingliu';
    src: url('./fonts/mingliu.woff') format('woff');
    font-weight: 100;
    font-style: normal
}

@font-face {
    font-family: 'Marianna';
    src: url('./fonts/Marianna.woff') format('woff');
    font-weight: 300;
    font-style: normal
}

@font-face {
    font-family: 'FoglihtenNo0';
    src: url('./fonts/FoglihtenNo0.woff') format('woff');
    font-weight: 400;
    font-style: normal
}

@font-face {
    font-family: 'Hamiltone1';
    src: url('./fonts/Hamiltone1.woff') format('woff');
    font-weight: 500;
    font-style: normal
}

@font-face {
    font-family: 'Hamiltone';
    src: url('./fonts/Hamiltone.woff') format('woff');
    font-weight: 500;
    font-style: normal
}

@font-face {
    font-family: 'Corinthia';
    src: url('./fonts/Corinthia.woff') format('woff');
    font-weight: 600;
    font-style: normal
}

@font-face {
    font-family: 'TrajanPro3Regular';
    src: url('./fonts/TrajanPro3Regular.woff') format('woff');
    font-weight: 800;
    font-style: normal
}


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

:root {
    --light: #eeeeeec4;
    --text-color: #2e2424;
    --dark-green: #14241f;
    --light-green: #15541a;
    --bright-yellow: #e4ad0f;
}

html {
    font-size: calc(max(min(2vw, 20px), 14px));
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Nue, sans-serif;
}

.birds {
    width: 15rem;
    height: 10rem;
    background: url(./img/birds.gif) no-repeat;
    background-size: contain;
    position: absolute;
    top: 3rem;
    left: 100%;
    animation: birds 4s ease-in-out infinite;
}

@media (min-width: 500px) {
    .birds {
        animation-duration: 6s;
    }
}

@media (min-width: 900px) {
    .birds {
        animation-duration: 7s;
    }
}

@keyframes birds {
    0%   { left: 100%;}
    100% { left: -100%}
}

.welcome {
    height: 100svh;
    overflow: hidden;
    text-align: center;
    background-color: var(--light);
    background-image: url(./img/bg1_1.png), url(./img/paper-texture-3.jpg);
    background-repeat: no-repeat, repeat;
    background-position: 50% 100%, 0 0;
    background-size: 150% auto, 0 100%;
    /* transition: height .3s ease; */
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-tag {
    height: 75px;
    overflow: hidden;
    /* position: absolute; */
    top: 0;
    left: 50%;
    right: 50%;
}
.welcome-tag__svg {
    fill: var(--text-color);
    transform: rotate(28deg) translate(-25px, -25px);
}

.welcome__title {
    font-family: Corinthia;
    font-size: 6rem;
    margin: 2rem 0;
}

.welcome__block {
    background: rgb(255 255 255 / 75%);
    padding: 1rem;
    margin: 5rem auto 0;
}

.info {
    font-size: 1.2rem;
    --info-offset-lg: 1rem;
    --info-offset-sm: .2rem;
    display: inline-flex;
    margin: 1rem auto 0;
}

.info-block {
    padding: var(--info-offset-sm) var(--info-offset-lg);
}

.date {
    font-size: 2rem;
    line-height: 2.3rem;
    text-align: center;
    padding: var(--info-offset-sm) var(--info-offset-lg);
    border-right: 2px solid var(--dark-green);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.date__day {
    font-size: 3rem;
}

.date__year {
    font-size: 1.5rem;
    line-height: 1;
}

.info__address,
.info__time {
    font-size: 1rem;
}

.info__space {
    margin: 0.5rem 0;
    border-top: 2px solid var(--dark-green);
}

.welcome-arrow {
    color: var(--bright-yellow);
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.welcome-arrow__arrow {
    animation: bounce 1.6s ease-in-out infinite;
    transform-origin: center;
}

@keyframes bounce {
    0%   { transform: translateY(0);   opacity: 0.6; }
    50%  { transform: translateY(8px); opacity: 1;   }
    100% { transform: translateY(0);   opacity: 0.6; }
}

.main {
    /* min-height: 100vh; */
    overflow: hidden;
    position: relative;
    background-color: var(--dark-green);
}

.form {
    /* height: 1351px; */
    text-align: center;
}

.form__text {
    margin-top: 2rem;
}

.form__iframe-wrap {
    max-width: 720px;
    box-sizing: content-box;
    padding: 1rem;
    margin: 0 auto;
}

.form__iframe {
    width: 100%;
    margin-bottom: 1rem;
}

.form,
.form .title {
    color: var(--light);
}

.block {
    max-width: 800px;
    text-align: center;
    /* background: var(--light); */
    padding: 2rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.block + .block {
    margin-top: 2rem;
}

.separator {
    width: 100%;
    height: 2rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    margin-bottom: 1rem;
}

.separator-1 {
    background-image: url('./img/vin1.png');
}

.separator-2 {
    background-image: url('./img/vin2.png');
}

.separator-3 {
    height: 3rem;
    background-image: url('./img/vin3.png');
}

.title {
    color: var(--light-green);
    font-size: 3em;
    line-height: 2rem;
    margin-bottom: 1rem;
    font-family: Corinthia;
}

.list {
    list-style: none;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.list li::before {
    content: "✧ ";
}

a {
    border-bottom: 1px solid var(--light-green);
    text-decoration: none;
    color: var(--light-green);
}

.drescode-code {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    grid-template-columns: repeat(5, 1fr);
    margin-top: 2rem;
}

.drescode-code__block {
    --size: 3rem;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
}

.content {
    background-color: var(--light);
}

.content:before {
    content: '';
    width: 100%;
    height: 3rem;
    display: block;
    background: linear-gradient(var(--dark-green), var(--light));
}

.footer {
    text-align: center;
    color: var(--dark-green);
    margin-top: 4rem;
}

/* Светлячки */

.firefly {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, #f9ffe6 0, var(--bright-yellow) 40%, transparent 60%);
    opacity: 0.8;
    box-shadow: 0 0 18px rgba(163, 255, 198, 0.9);
    animation: float-firefly 12s linear infinite;
}

@keyframes float-firefly {
    0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
    }
    10% {
    opacity: 1;
    }
    50% {
    transform: translate3d(40px, -80px, 0);
    }
    100% {
    transform: translate3d(-20px, -160px, 0);
    opacity: 0;
    }
}

.test1 {
    font-family: saint;
    font-size: 60px;
}

.test2 {
    font-family: TrajanPro3Regular;
    font-size: 60px;
}

.test3 {
    font-family: Corinthia;
    font-size: 60px;
}

.test4 {
    font-family: Hamiltone;
    font-size: 60px;
}

.test6 {
    font-family: FoglihtenNo0;
    font-size: 60px;
}

.test7 {
    font-family: Marianna;
    font-size: 60px;
}

.test8 {
    font-family: mingliu;
    font-size: 60px;
}


