@import url('https://fonts.googleapis.com/css2?family=Gwendolyn&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..500;1,100..500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jura:wght@300&display=swap');


* {
    opacity: 1;
}

:root {
    --gold: #d4af47;
}

audio {
    margin: 2em 0 0;
}

.stylized {
    font-family: "Gwendolyn", cursive;
    font-weight: 400;
    font-style: normal;
    color: var(--gold);
}

body {
    font-family: "Noto Sans", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 300;
    margin: 0;
    padding: 0 0 200px;
    max-width: none;
    /*background: #f8f3fb;*/
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Gwendolyn", cursive;
    font-weight: 400;
    font-style: normal;
    color: var(--gold);

}

h1 {
    font-size: 4em;
}

h2 {
    font-size: 2.2em;
    margin: 10px 0;
}

h3 {
    font-size: 2em;
}

h4 {
    font-size: 1.5em;
}

a.button {
    display: inline-block;
    padding: 5px 30px;
    border: 1px solid #000;
    border-radius: 5px;
    color: #000;
    background-color: rgba(0, 0, 0, 0.05);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

#lang {
    padding: 15px 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lang img {
    display: inline;
    width: 20px;
}

#lang img, #lang a {
    margin-right: 0.5em;
}

#lang a {
    cursor: pointer;
    color: var(--gold);
}

#lang a.selected {
    text-decoration: underline;
}


section {
    background-color: #fff;
    max-width: 600px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    padding: 20px 30px 40px;
    box-sizing: border-box;
}

section#intro {
    padding-bottom: 0;
}

section > div {
    max-width: 500px;
    min-width: 300px;
    margin: 0 10px;

    background-color: inherit;
}

h2 {
    width: 100%;
}

.date {
    display: flex;
    justify-content: center;
    background-color: inherit;
}

.date h2 {
    font-size: 1.8em;
    flex-basis: auto;
    padding: 0 0.5em;
    z-index: 1;
    margin-top: 0;
    background-color: inherit;
}

.alt {
    background-color: var(--background-alt);
}

.top h1 {
    font-size: 5em;
    margin-top: 12px;
}

.top h1 span {
    font-weight: 500;
}

section hr {
    position: relative;
    top: -27px;
    margin: 0 2em;
    border-color: var(--gold);
}

form {
    text-align: left;
    flex-basis: 800px;
}

#rsvp h2 {
    width: 100%;
}

input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

.loading section,
.loading main {
    opacity: 0;
}

section, main, [data-content] {
    transition: opacity 400ms linear;
}

.loading section#intro {
    opacity: 1;
}

.loading section#intro [data-content] {
    opacity: 0;
}

#countdown {
    display: flex;
    justify-content: space-around;
}

#countdown div {
    flex-basis: 50px;
}

#countdown .value {
    font-size: 1.5em;
}

body.modal-open {
    overflow: hidden;
}

.modal {
    display: none;
    position: fixed;
    top: 20px;
    bottom: 20px;
    overflow: auto;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 200;
    width: calc(100vw - 80px);
    max-width: 800px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: white;
    opacity: 0.75;
    z-index: 100;
}

.modal-open .overlay {
    display: unset;
}

.modal.open {
    display: unset;
}

.modal .actions {
    margin-bottom: 20px;
    text-align: right;
}

.night {
    background-color: #eddbfa;
}


.modal.night {
    border: none;
}

#program-modal h2 {
    text-align: center;
    color: black;
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 600px;
}

.timeline::before {
    content: "";
    border-left: 1px solid var(--gold);
    height: 100%;
    display: block;
    position: absolute;
    left: 50%;
    width: 1px;
}

.timeline-item {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
}

/*.timeline-item::before {*/
/*    content: "";*/
/*    display: block;*/
/*    position: absolute;*/
/*    left: calc(50% - 20px);*/
/*    width: 40px;*/
/*    height: 40px;*/
/*    background-image: url("/assets/icons/sunflower.png");*/
/*    background-size: contain;*/
/*}*/

.timeline-item > * {
    width: 50%;
}

.timeline-item figure {
    margin: 0;
    text-align: right;
}

.timeline-item figure img {
    width: 100px;
    height: 100px;
    margin-right: 50px;
}

.timeline-item-description {
    font-family: "Jura", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;

    font-size: 1.5em;
    padding-left: 50px;
    text-align: left;
    box-sizing: border-box;
}

.timeline-item-description > * {
    margin: 0;
    width: 100%;
    display: inline-block;
}

#footer {
    background-image: url("/assets/images/footer.png");
    background-image: url("/assets/images/footer.png"), linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: auto 100%;
    position: fixed;
    z-index: 50;
    bottom: 0;
    width: 100%;
    height: 150px;
}


@media screen and (max-width: 1440px) {
}

@media screen and (max-width: 1024px) {
}

@media screen and (max-width: 768px) {
    .line {
        display: none;
    }

    section > div,
    section > * {
        width: 90vw;
        max-width: 400px;
        flex-basis: unset;
    }

    .timeline-item-description {
        padding-left: 30px;
    }

    .timeline-item figure img {
        margin-right: 30px;
    }
}

@media screen and (max-width: 450px) {
    .top h1 {
        font-size: 3.3em;
    }
}

#timeline-template {
    display:none;
}

body:not(.vip) .vip-only {
    display: none;
}

.vip .no-vip-only {
    display: none;
}

.hearts {
    /*position: relative;*/
}
.hearts::before,
.hearts::after {
    content: "";
    display: inline-block;
    /*position: absolute;*/
    width: 20px;
    height: 20px;
    background-image: url(/assets/images/corazon.png);
    background-size: contain;
}

.hearts::before{
    margin: 0 10px 0 0;
    /*transform: translate(-121px, 58px);*/
}
.hearts::after{
    margin: 0 0 0 10px;
    /*transform: translate(121px, 58px);*/
}