@font-face {
    font-family: 'CormorantGaramondRegular';
    src: url('../fonts/CormorantGaramond-Regular.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'MargaritaScript';
    src: url('../fonts/margaritascript.woff2') format('woff2');
    font-display: swap;
}

:root {
    --font-size-title: clamp(48px, 5.5vmin, 72px);
    --font-size-h1: clamp(36px, 3.8vmin, 48px);
    --font-size-h2: clamp(24px, 2.6vmin, 28px);
    --font-size-nav: 20px;
    --font-size-text: 20px;

    --color-black: black;
    --color-white: white;
    --margin-small: 10px;
    --margin-medium: 20px;
    --margin-big: 40px;
}

@keyframes border_pulse {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

@keyframes pulse {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.4);
    }
}

@keyframes draw-stroke {
    to {
        stroke-dashoffset: 0;
    }
}

body {
    margin: 0;
    color: var(--color-black);
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f7f5f0;
}

.content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-shrink: 1;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.fancy-font {
    font-family: 'MargaritaScript', 'serif';
}

.readable-font {
    font-family: 'CormorantGaramondRegular', 'serif';
}

.hide-body-background {
    background-image: none;
}

nav {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #ddd;
    padding: var(--margin-small);
    width: 100%;
    box-sizing: border-box;
}

nav ul {
    list-style: none;
}

nav ul {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: stretch;
    margin: 0;
}

nav ul li {
    height: 48px;
    margin: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

nav ul li.logo img {
    height: 48px;
}

nav ul li {
    text-decoration: none;
    color: var(--color-black);
    font-size: var(--font-size-nav);
    font-weight: normal;
}

nav ul li:not(.logo)::after {
    content: "";
    display: block;
    width: 0%;
    border-bottom: 1px solid black;
}

nav ul li:not(.logo):hover::after {
    animation: border_pulse 0.3s ease-out 1 forwards;
}

nav ul li:not(.logo):hover {
    transform: scale(1.2);
}

nav ul .logo:hover {
    transform: scale(1.4);
}

.mobile-nav {
    width: 22px;
    height: 22px;
    position: absolute;
    right: 22px;
    top: 20px;
    display: none;
    flex-direction: column;
    justify-content: space-around;
    z-index: 1;
}

.mobile-nav .top-bar {
    width: 100%;
    height: 2px;
    background-color: black;
    transform-origin: 8px 0;
}

.mobile-nav .mid-bar {
    width: 100%;
    height: 2px;
    background-color: black;
}

.mobile-nav .low-bar {
    width: 100%;
    height: 2px;
    background-color: black;
    transform-origin: -1px 0px;
}

.l11n-select.ss-main {
    position: fixed;
    top: 10px;
    left: 0px;
    justify-content: space-around;
    width: 80px;
    height: 50px;
    font-size: 18px;
    font-weight: bold;
    z-index: 3;
    border: none;
    background-color: transparent;
}

.l11n-select.ss-main:focus {
    box-shadow: none;
}

.l11n-select .ss-values {
    flex: 0 !important;
}

.l11n-select.ss-main .ss-single .country {
    width: 30px;
    padding: 0 8px 0 8px;
    max-width: 30px !important;
}

.l11n-select.ss-content .ss-option {
    display: flex !important;
    align-items: center;
    height: 40px;
    font-size: 14px;
    font-weight: bold;
    justify-content: center;
}

.l11n-select.ss-content .ss-option .country {
    width: 30px;
    padding: 0 8px 0 8px;
}

.hero {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    position: relative;
}

.countryside {
    width: min(1100px, 100%);
    max-height: 70vh;
    height: auto;
    aspect-ratio: 1536/1024;
    mask-image:
        linear-gradient(to top, transparent 1%, black 10%, black 90%, transparent 95%);
    mask-repeat: no-repeat;
    mask-size: cover;
}

.hero-titles {
    filter: drop-shadow(3px 3px 1px #f7f5f0);
    color: var(--color-black);
}

.hero .location {
    font-size: var(--font-size-h1);
    transform: translateY(-20%);
    margin: 0;
}

.sign {
    width: min(605px, 100%);
    box-sizing: border-box;
}

@media (max-width: 650px) {
    .sign {
        padding: 15px;
    }
}

.sign path {
    fill: none;
    stroke: #000;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw-stroke 0.75s linear forwards;
}

.sign-path-drawn {
    stroke-dashoffset: 0 !important;
    animation: none !important;
    fill: black !important;
}

.signature #sign_bg path:nth-child(1),
.signature #sign_en path:nth-child(1) {
    animation-delay: 0s;
}

.signature #sign_bg path:nth-child(2),
.signature #sign_en path:nth-child(2) {
    animation-delay: 0.525s;
}

.signature #sign_bg path:nth-child(3),
.signature #sign_en path:nth-child(3) {
    animation-delay: 1.125s;
}

.signature #sign_bg path:nth-child(4),
.signature #sign_en path:nth-child(4) {
    animation-delay: 0s;
}

.signature #sign_bg path:nth-child(5),
.signature #sign_en path:nth-child(5) {
    animation-delay: 0.525s;
}

.signature #sign_bg path:nth-child(6),
.signature #sign_en path:nth-child(6) {
    animation-delay: 1.125s;
}

.signature #sign_bg path:nth-child(7),
.signature #sign_en path:nth-child(7) {
    animation-delay: 0s;
}

.signature #sign_bg path:nth-child(8),
.signature #sign_en path:nth-child(8) {
    animation-delay: 0.525s;
}

.signature #sign_bg path:nth-child(9),
.signature #sign_en path:nth-child(9) {
    animation-delay: 1.125s;
}

.signature #sign_bg path:nth-child(10),
.signature #sign_en path:nth-child(10) {
    animation-delay: 0s;
}

.signature #sign_bg path:nth-child(11),
.signature #sign_en path:nth-child(11) {
    animation-delay: 0.525s;
}

.countdown {
    position: absolute;
    top: 0;
    padding-top: var(--margin-small);
    box-sizing: border-box;
    display: flex;
    max-width: 600px;
    font-size: var(--font-size-h2);
    z-index: 3;
}

.countdown span {
    font-size: var(--font-size-h1);
}

.countdown .label {
    font-size: var(--font-size-text);
    display: inline-flex;
    align-items: flex-end;
    margin-right: var(--margin-small);
    margin-left: var(--margin-small);
}

.schedule h1 {
    font-size: var(--font-size-title);
    margin: 0;
    padding: 0;
    font-weight: normal;
    text-align: center;
    padding-top: 85px;
    padding-bottom: 0;
    transform: translateY(5px);
}

.event-entry {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: calc(1.5 * var(--font-size-text));
    margin-bottom: var(--margin-small);
}

.event-entry:last-of-type {
    margin-bottom: 0;
}

.event-time {
    flex-basis: 50px;
    flex-grow: 0;
    flex-shrink: 0;
    align-self: flex-end;
}

.event-name {
    flex-basis: 250px;
    flex-grow: 0;
    flex-shrink: 0;
}

.schedule {
    width: min(500px, 100%);
    margin: auto;
    display: block;
    padding-top: var(--margin-big);
    mask-image:
        linear-gradient(to top, transparent 1%, black 10%, black 90%, transparent 95%);
    mask-repeat: no-repeat;
    mask-size: cover;
}

.details {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    background-color: #f7f5f0;
}

.main p {
    font-size: var(--font-size-text);
    max-width: 500px;
}

.main h1,
.room-details h1 {
    font-size: var(--font-size-title);
    font-weight: normal;
    margin-bottom: 0;
}

.room-details h1 {
    margin-bottom: var(--margin-medium);
    text-align: center;
}

.main iframe {
    width: 300px;
    height: 300px;
    border: 0;
}

.main {
    display: flex;
    flex-basis: 300px;
    flex-grow: 0;
    flex-shrink: 0;
    gap: var(--margin-small);
    margin-top: var(--margin-small);
}

.table {
    margin-top: var(--margin-small);
    display: flex;
    border: 1px solid var(--color-black);
    margin-bottom: var(--margin-medium);
}

.table-entry>div {
    border: 1px solid var(--color-black);
    padding: 5px;
    font-size: var(--font-size-h2);
    text-align: center;
}

.table-entry>div:nth-child(2) {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.table-entry {
    display: flex;
    flex-direction: column;
}

.rsvp {
    display: flex;
    justify-content: center;
}

.rsvp iframe {
    width: 640px;
    height: 1396px;
}

.hidden {
    display: none !important;
}

.faq {
    height: 100%;
}

.faq .signpost {
    width: min(450px, 100%);
    padding-top: var(--margin-big);
    mask-image:
        linear-gradient(to top, transparent 1%, black 10%, black 90%, transparent 95%),
        linear-gradient(to right, transparent 1%, black 10%, black 90%, transparent 95%);
    mask-repeat: no-repeat;
    mask-size: cover;
    mask-composite: intersect;
    margin: auto;
    display: block;
}

.faq h1 {
    font-size: var(--font-size-title);
    margin: 0;
    padding: 0;
    font-weight: normal;
    text-align: center;
}

.faq .faq-entry {
    max-width: 300px;
    height: auto;
    display: flex;
    flex-direction: column;
    margin-left: var(--margin-medium);
}

.faq .faq-entry:first-of-type {
    margin-left: 0;
}

.faq .faq-entry h2 {
    font-weight: 700;
    font-size: clamp(18px, 2.6vw, 28px);
    z-index: 1;
    position: relative;
    margin: 0;
}

.faq .badge {
    flex-shrink: 0;
    flex-grow: 0;
    content: '';
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(249, 248, 246, 0) 70%, #f9f8f6 72% 100%),
        url(../img/countryside.png) center / cover no-repeat;
    box-shadow: 0 0 0 1px black;
    filter: grayscale(100%) contrast(90%) brightness(1.05);
    z-index: 0;
    mask-image:
        linear-gradient(to top, transparent, transparent 25%, black 60%, black 80%, transparent),
        linear-gradient(to right, transparent, black 60%, black 85%, transparent);
    mask-repeat: no-repeat;
    mask-size: cover;
    mask-composite: intersect;
    border: 1px solid black;
    outline: 1px solid black;
    outline-offset: -5px;
    transform: translate(0, 20%);
}

.faq .faq-entry p {
    margin: 0;
    max-width: 60ch;
    opacity: .9;
    font-size: clamp(16px, 2.1vw, 20px);
    margin-top: var(--margin-medium);
}

.faq-box {
    display: flex;
    justify-content: center;
    padding: var(--margin-big);
    flex-wrap: wrap;
}

.our-story .our-photo {
    width: 100vmin;
    margin: auto;
    display: block;
    mask-image:
        linear-gradient(to top, transparent, black 25%, black 80%, transparent),
        linear-gradient(to right, transparent, black 25%, black 80%, transparent);
    mask-repeat: no-repeat;
    mask-composite: intersect;
    mask-size: cover;
}

.honor-attendants h1,
.our-story h1 {
    font-size: var(--font-size-title);
    padding: 0;
    font-weight: normal;
    text-align: center;
}

.our-story p {
    font-size: var(--font-size-h2);
    display: block;
    margin: var(--margin-big);
}

.photos h1 {
    font-size: var(--font-size-title);
    padding: 0;
    font-weight: normal;
    text-align: center;
    margin-bottom: 0;
}

.photos p {
    font-size: var(--font-size-h2);
    display: block;
    text-align: center;
    margin: 0 var(--margin-medium);
}

.photos iframe {
    display: block;
    width: 100%;
    height: min(600px, 100%);
    box-sizing: border-box;
    border: 0;
}

.photos .image {
    width: min(450px, 100%);
    padding-top: var(--margin-big);
    mask-image:
        linear-gradient(to top, transparent 1%, black 10%, black 90%, transparent 95%),
        linear-gradient(to right, transparent 1%, black 10%, black 90%, transparent 95%);
    mask-repeat: no-repeat;
    mask-size: cover;
    mask-composite: intersect;
    margin: auto;
    display: block;
}

.honor-attendants-wrap {
    display: flex;
    justify-content: center;
    gap: calc(2* var(--margin-big));
    z-index: 2;
    position: relative;
}

.honor-attendants-wrap h1 {
    font-size: calc(1.5 * var(--font-size-title));
    margin: 0;
    padding: 0;
    font-weight: normal;
    text-align: center;
    transform: translate(-10px);
}

.honor-attendants-wrap h2 {
    font-size: var(--font-size-h1);
    margin: 0;
    padding: 0;
    font-weight: normal;
    text-align: center;
}

.honor-attendants-wrap p {
    font-size: var(--font-size-h2);
    margin: 0;
    padding: 0;
    font-weight: normal;
    text-align: center;
}

.honor-attendants img {
    width: 35vmin;
    border-radius: 50%;
    filter: drop-shadow(2px 4px 6px black);
}

.honor-attendant {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.visible-path {
    stroke-dashoffset: 0 !important;
}

.honor-attendants .background {
    position: absolute;
    height: 100%;
    width: 100%;
    background-image: url('../img/flowers.png');
    background-repeat: no-repeat;
    background-size: 70vmin;
    background-position: center;
    mask-image:
        linear-gradient(to top, transparent 15%, black 50%, transparent 80%),
        linear-gradient(to right, transparent 15%, black 50%, transparent 80%);
    mask-repeat: no-repeat;
    mask-size: cover;
    mask-composite: intersect;
}

img,
video,
iframe,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

img,
svg {
    display: block;
}

@media (max-width: 450px) {
    :root {
        --font-size-title: 48px;
        --font-size-h1: 28px;
        --font-size-h2: 20px;
        --font-size-nav: 16px;
        --font-size-text: 16px;
    }
}

@media (max-width: 1400px) {
    @keyframes border_pulse {
        from {
            width: 0%;
        }

        to {
            width: 60%;
        }
    }

    .countdown {
        padding-top: var(--margin-big);
    }

    nav {
        position: fixed;
        background-color: rgba(255, 255, 255, 0.95);
        z-index: 5;
        border-bottom: 1px solid #ddd;
        padding: 0;
        width: 0px;
        box-sizing: border-box;
        transition: width 0.1s;
        flex-direction: column;
    }

    .shown-nav {
        width: 200px;
        height: 50%;
        padding: 10px;
        right: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 0;
        display: none;
    }

    nav ul li {
        margin: 0;
    }

    nav .logo {
        order: -1;
    }

    .shown-nav ul {
        display: flex;
        overflow: hidden;
    }

    .l11n-select.ss-main {
        top: 0px;
    }

    .mobile-nav {
        display: flex;
        position: fixed;
        z-index: 5;
    }

    .shown-nav~.content .mobile-nav .top-bar {
        transform: rotate(45deg);
    }

    .shown-nav~.content .mobile-nav .low-bar {
        transform: rotate(-45deg);
    }

    .shown-nav~.content .mobile-nav .mid-bar {
        display: none;
    }

    .content {
        padding-top: var(--margin-medium);
    }

    .honor-attendants-wrap {
        flex-direction: column;
        align-items: center;
    }

    .honor-attendants .background {
        height: 95%;
    }

    .main {
        flex-direction: column;
    }

    .main div {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .main p {
        padding: 10px;
    }

    .table {
        flex-direction: column;
    }

    .table-name {
        background-color: #ccc;
    }

    .rsvp iframe {
        margin-top: var(--margin-medium);
    }
}