@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

@font-face {
    font-family: 'Jocky';
    src: url('Jocky.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --color: #694f44;
    --hl: hsla(56, 63%, 75%, 0.2);
    --darkhl: hsla(56, 63%, 40%, 0.3);
}

::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

html {
    height: 100%;
    margin: 0;
    color: var(--color);
    font-size: calc(18px + 0.2vw);
    line-height: calc(1.2em + 0.2vw);
    font-variant-numeric: oldstyle-nums;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-family: 'Poppins', sans-serif;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body {
    margin: 0;
    border: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    align-items: center;
    background-color: #FFFAE0;

}

header,
footer {
    width: 100%;
    height: 100px;
    overflow: hidden;
    background-color: transparent;
    align-items: center;
    margin-bottom: -30;
    background-image: url('footer.png');
    background-repeat: repeat-x;
    background-size: auto 80px;
}

.footer {
    text-align: center;
    font-family: 'Jocky', sans-serif;
    font-size: 1.2em;
}

main {
    flex: 1;
    margin: 0;
    max-width: 1024px;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #FFFAE0;
}

h1,
h2 {
    font-weight: 700;
    font-family: 'Jocky', sans-serif;
}

h1#title {
    font-size: 2.7em;
    line-height: 1.4em;
    text-align: center;
    margin: 30px auto 0 auto;
    font-family: 'Jocky', sans-serif;
}

h2#subtitle {
    font-size: 1.5em;
    line-height: 1em;
    text-align: center;
    margin: 10px auto 0 auto;
    font-family: 'Poppins', sans-serif;
}

main> :last-child {
    margin-bottom: 30px;
}

h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    text-align: center;
}

p,
li {
    text-align: justify;
    hyphens: auto;
}

p {
    margin: 5px 0;
}

main>p {
    padding: 0 1em;
    text-align: center;
}

main>ul {
    padding: 0 1em 0 2em;
}

a {
    color: #435ddf;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

code {
    font-size: 0.8em;
}

hr {
    margin-top: 50px;
}

hr.plumbago {
    border: none;
    background-image: url("/wedding/plumbago.png");
    background-size: 150px auto;
    width: 150px;
    height: calc(150px * 238 / 838);
}

nav {
    text-align: center;
    margin: 30px auto;
}

nav>ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav li {
    display: inline-block;
    margin: 10px 5px;
}

nav li>a {
    text-transform: uppercase;
    letter-spacing: 3;
    font-size: 0.65em;
}

ul.lang-selector {
    margin: 0 auto !important;
    list-style-type: none;
    width: 100%;
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

ul.lang-selector>li>a.btn {
    display: inline-block;
    min-width: 6em;
}

ul.lang-selector>li>a.btn>img.icon {
    margin-right: 0.3em;
}

ul.lang-selector>li:not(:first-of-type) {
    margin-top: 10px;
}

ul.lang-selector>li:not(:last-of-type) {
    margin-bottom: 10px;
}

img#pick-lang {
    vertical-align: text-top;
    height: 1.4em;
    display: inline;
}

img.show-img {
    vertical-align: sub;
    height: 1em;
    display: inline;
    filter: invert(31%) sepia(7%) saturate(1843%) hue-rotate(332deg) brightness(96%) contrast(85%);
}

img.show-img:hover {
    opacity: 50%;
}

a.btn {
    white-space: nowrap;
    color: var(--color);
    text-decoration: none;
    background-color: var(--hl);
    border-radius: 15px;
    padding: 8px 15px;
    box-shadow: 5px 5px 10px var(--darkhl);
}

a.btn.active,
a.btn:hover {
    box-shadow: 5px 5px 10px inset var(--darkhl);
}

img.icon {
    height: 0.8em;
    vertical-align: baseline;
    display: inline;
}

img.photo {
    max-width: 70%;
    max-height: 75dvh;
    align-self: center;
    border-radius: 15px;
    box-shadow: 5px 5px 10px var(--darkhl);
    margin: 20px auto;
    filter: saturate(90%) opacity(90%);
}

div.info {
    background-color: var(--hl);
    padding: 1em;
    margin: 5px auto;
    width: fit-content;
    border-radius: 10px;
    border: 1px dashed var(--color);
}

div.info>h2 {
    margin-top: 0;
}

:target {
    animation: hilite 2.5s;
}

@keyframes hilite {
    0% {
        background: transparent;
    }

    30% {
        background: var(--hl);
    }

    100% {
        background: transparent;
    }
}

div#messages {
    padding: 15px;
    margin: 20px auto;
    text-align: center;
    width: fit-content;
    align-self: center;
    border-radius: 15px;
    padding: 8px 15px;
    border: none;
}

div#messages {
    box-shadow: 5px 5px 10px var(--darkhl);
    background-color: var(--hl);
}

div#messages.error {
    background-color: lightsalmon;
    box-shadow: 5px 5px 10px salmon;
}

textarea,
input {
    font-size: calc(18px + 0.2vw);
    line-height: calc(1.2em + 0.2vw);
    font-family: "EB Garamond", serif;
    border-radius: 15px;
    border-width: 1px;
    resize: none;
}

textarea,
input[type="text"] {
    width: 100%;
    padding: 8px 15px;
}

#guestsSet > input[type="text"] {
    width: 8em;
    padding: 0 10px;
}

select {
    font-family: inherit;
    font-size: 0.85em;
    border-radius: 15px;
    border-width: 1px;
    background-color: white;
    margin-left: 10px;
    padding: 0 5px;
}

input[type="checkbox"] {
    margin-right: 10px;
    vertical-align: middle;
}

input[type="submit"] {
    box-shadow: 5px 5px 10px var(--darkhl);
    background-color: var(--hl);
    padding: 8px 15px;
    border: none;
    color: var(--color);
}

input[type="submit"]:active {
    box-shadow: 5px 5px 10px inset var(--darkhl);
}

fieldset {
    margin-bottom: 15px;
    color: var(--color);
    background-color: var(--hl);
    border-radius: 15px;
    padding: 8px 15px;
    box-shadow: 5px 5px 10px var(--darkhl);
    border: none;
    > legend { font-weight: 500; }
}

#ellipsis {
    display: flex;
    justify-content: space-around;
    width: 50px;
    margin: 20px auto 0 auto;
}

#ellipsis div {
    width: 8px;
    height: 8px;
    background-color: var(--color);
    border-radius: 50%;
    animation: ellipsis 1.2s infinite ease-in-out;
}

#ellipsis div:nth-child(1) {
    animation-delay: -0.24s;
}

#ellipsis div:nth-child(2) {
    animation-delay: -0.12s;
}

#ellipsis div:nth-child(3) {
    animation-delay: 0;
}

@keyframes ellipsis {
    0%,
    80%,
    100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.full-width-img {
    width: 100%;
    max-width: 1524px;
    align-self: center;
    height: auto; /* Maintains aspect ratio */
    display: block; /* Removes bottom margin */
}