/**
 * Copyright (c) 2023 Ubique Innovation AG <https://www.ubique.ch>
 * 
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

:root {
    /* --scroll-offset: 0;*/
    --img-run: 0;
    --text-color: black;
    --button-default: 60px;
    --offset-top: 30vw;
    --padding-bottom: 30vw;
}

@font-face {
    font-family: 'TypeWriter';
    src: url("../fonts/OldNewspaperTypes.ttf");
}

@font-face {
    font-family: 'Montserrat';
    src: url("../fonts/Montserrat-VariableFont_wght.ttf");
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    font-family: "TypeWriter";
    overflow-x: hidden;
}

#teaser {
    position: sticky;
    top: 0px;
    background-color: black;
    /* Flexbox to center the entire element on the screen */
    display: grid;
    grid-template-rows: 70vh 30vh;
    justify-content: start;
    width: calc(100% - 1vw);
    height: 100vh;
    font-size: 3vw;
    /*padding-top: calc(35vh - 30px);*/
    padding-left: 1vw;
    color: white;
    font-family: "TypeWriter";
    z-index: 100;
}

.accept-button {
    width: 100vw;
    height: 30px;
    background: black;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 150%;
}

.blink_me {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.appearText {
    will-change: width;
    width: 100%;
    padding: 35vh 60px;
    animation: appear 2s;
    white-space: nowrap;
    overflow-x: hidden;
}

@keyframes appear {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

#intro {

    top: 0px;
    background-color: black;
    /* Flexbox to center the entire element on the screen */
    display: grid;
    grid-template-rows: 100vh;
    justify-items: center;
    align-items: center;
    width: 100%;
    height: 150vh;
    color: white;
    font-size: 3vw;
    font-family: "TypeWriter";

    backdrop-filter: invert(1) brightness(0.5);
}

#intro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 80vw;
    height: 100vh;
    filter: invert(1) brightness(0.2);
    background: url("../image/logo.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    margin-left: 10vw
}

.nav_buttons {
    grid-template-columns: 1fr 2fr 1fr;
    display: grid;
    width: 100%;
    justify-items: center;
    height: 100vh;
    z-index: 1000;
}

.nav_buttons>.accept-button {
    width: auto;
    text-align: center;
    border: 1px solid white;
    border-radius: 10px;
    height: auto;
    font-size: 3.5vw;
    padding: 10px;
    font-family: 'Montserrat', sans-serif;
    align-self: center;
}

.nav_buttons>.accept-button:hover {
    filter: invert(1)
}

.nav_buttons>.accept-button:link {
    text-decoration: none;
}

#intro>img {
    filter: invert(1);
    max-height: 50vh;
    width: 80vw;
    align-self: center;
}

.star-wars {
    top: 0px;

    width: 100%;
    /* Flexbox to center the entire element on the screen */
    display: grid;
    justify-content: center;
    color: white;
    font-family: 'Pathway Gothic One', sans-serif;
    text-align: justify;
    text-align: center;

    grid-column: 1/1;
    position: relative;
    line-height: 150%;
    height: 100vh;
    perspective: 90vh;
    -webkit-perspective: 90vh;
    padding-bottom: var(--padding-bottom);
}

.crawl {
    width: 80%;
    left: 10%;
    position: relative;
    top: calc(var(--scroll-offset) / 10 * 2px + var(--offset-top));

    /* Defines the skew origin at the very center when we apply transforms on the animation */
    transform-origin: 50% 100%;
    transform: rotateX(20deg) translateZ(calc(var(--scroll-offset) / 10 * 4px + min(min(100vh, 100vw), 400px)));
    -webkit-transform-origin: 50% 100%;
    -webkit-transform: rotateX(20deg) translateZ(calc(var(--scroll-offset) / 10 * 4px + min(min(100vh, 100vw), 400px)));
    animation: normal;
    -webkit-animation: normal;

    will-change: transform;
}

#info {
    top: 0px;
    background-color: white;
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: justify;
    color: black;
    padding-bottom: 50vh;
}

#info p {
    max-width: 80vw;
    margin-left: auto;
    margin-right: auto;
}

#info .star-wars {
    color: black;
}


@media only screen and (min-width: 600px) {

    .star-wars {

        /* The rest is totally up to personal styling preferences */
        font-size: 150%;

        /* background-color: linear-gradient(0deg, black, white 75%); */

    }

    .crawl {
        /* Position the element so we can adjust the top property in the animation */
        position: relative;
        /* Making sure the text is fully off the screen at the start and end of the animation */
        top: calc(var(--scroll-offset) / 10 * 2px + var(--offset-top));

        /* Defines the skew origin at the very center when we apply transforms on the animation */
        transform-origin: 50% 100%;
        transform: rotateX(20deg) translateZ(calc(var(--scroll-offset) / 10 * 4px + min(min(100vh, 100vw), 400px)));
        -webkit-transform-origin: 50% 100%;
        -webkit-transform: rotateX(20deg) translateZ(calc(var(--scroll-offset) / 10 * 4px + min(min(100vh, 100vw), 400px)));
        animation: normal;
        -webkit-animation: normal;

        will-change: transform;
    }
}


@media (max-width: 600px) {
    .star-wars {

        /* The rest is totally up to personal styling preferences */
        font-size: 120%;

    }

    .crawl {
        /* Position the element so we can adjust the top property in the animation */
        position: relative;
        width: 70%;
        left: 15%;
        /* Making sure the text is fully off the screen at the start and end of the animation */
        top: calc(var(--scroll-offset) / 10 * 2px + var(--offset-top));

        /* Defines the skew origin at the very center when we apply transforms on the animation */
        transform-origin: 50% 100%;
        transform: rotateX(20deg) translateZ(calc(var(--scroll-offset) / 10 * 4px + min(min(100vh, 100vw), 400px)));
        -webkit-transform-origin: 50% 100%;
        -webkit-transform: rotateX(20deg) translateZ(calc(var(--scroll-offset) / 10 * 4px + min(min(100vh, 100vw), 400px)));
        animation: normal;
        -webkit-animation: normal;
        will-change: transform;
    }
}

@media (max-width: 300px) {
    .star-wars {

        /* The rest is totally up to personal styling preferences */
        font-size: 60%;

    }

    .crawl {
        /* Position the element so we can adjust the top property in the animation */
        position: relative;
        /* Making sure the text is fully off the screen at the start and end of the animation */
        top: calc(var(--scroll-offset) / 10 * 0.5px + var(--offset-top));
        /* Defines the skew origin at the very center when we apply transforms on the animation */
        transform-origin: 50% 100%;
        transform: rotateX(20deg) translateZ(calc(var(--scroll-offset) / 10 * 1px + min(min(100vh, 100vw), 400px)));
        -webkit-transform-origin: 50% 100%;
        -webkit-transform: rotateX(20deg) translateZ(calc(var(--scroll-offset) / 10 * 1px + min(min(100vh, 100vw), 400px)));
        animation: normal;
        -webkit-animation: normal;
        will-change: transform;
    }
}

#buffer {

    top: 0px;
    height: 300px;
    width: 100%;
    background-image: linear-gradient(180deg, black, white 100%);
}

.container {
    padding: 0 30px;
    display: flex;
    justify-content: center;
    width: calc(100% - 60px);
}

.collage-container {
    display: grid;
    grid-template-rows: 50vh 50vh;
    grid-template-columns: 50vw 50vw;
    width: 100vw;
    height: 100vh;
}

.collage-container>.top {
    grid-row: 1/1;
    grid-column: 1/2;
    background: var(--img-src-top);
    width: 100vw;
    height: 50vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
}

.collage-container>.top-blur {
    grid-row: 1/1;
    grid-column: 1/2;
    background: var(--img-src-top);
    width: 100vw;
    height: 50vh;
    background-size: cover;
    align-self: end;
    max-height: 50vw;
}


.collage-container>.left {
    grid-row: 2/2;
    grid-column: 1/1;
    background: var(--img-src-left);
    width: 50vw;
    height: 50vh;
    background-size: contain;
    background-repeat: no-repeat;
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
    background-position: top right;
}

.collage-container>.left-blur {
    grid-row: 2/2;
    grid-column: 1/1;
    background: var(--img-src-left);
    width: 50vw;
    height: 50vh;
    background-size: cover;
    background-repeat: no-repeat;
    max-height: 30vw;
}

.collage-container>.right {
    grid-row: 2/2;
    grid-column: 2/2;
    background: var(--img-src-right);
    background-size: cover;
    width: 50vw;
    height: 50vh;
    background-size: contain;
    background-repeat: no-repeat;
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
    background-position: top left;
}

.collage-container>.right-blur {
    grid-row: 2/2;
    grid-column: 2/2;
    background: var(--img-src-right);
    background-size: cover;
    width: 50vw;
    height: 50vh;
    background-size: cover;
    background-repeat: no-repeat;
    max-height: 30vw;
}

.picture-container {
    width: 100vw;
    /* height: 200vh; */
    /* background-image: var(--img-src); */
    /* background-size: cover; */
    /* background-repeat: no-repeat; */
    position: relative;
    filter: brightness(70%);
}

.picture-container>.image-container {
    content: var(--img-src);
    width: 100vw;
    top: clamp(0px, max(100vh - 100vw/3*2, 0vh)/2, 50vh);
    position: relative;
    /* backdrop-filter: blur(100px); */
    /* -webkit-backdrop-filter: blur(100px); */
}

section#main-container {
    background-color: black;
    display: grid;
    grid-template-columns: 100vw;
    grid-template-rows: repeat(8, 100vh) [end-row];
}

.blur {
    position: absolute;
    /* background: rgba(255, 255, 255, 0.2); */
    /* backdrop-filter: blur(100px); */
    /* -webkit-backdrop-filter: blur(100px); */
    height: 200vh;
    width: 100vw;
    display: inline;
}

#info .star-wars {
    height: auto;
}

.infoContainer {
    display: grid;
    grid-template-columns: 100vw;
}

.infoContainer::before {
    content: "";
    position: sticky;
    top: 10vh;
    left: 0;
    width: 80vw;
    height: 80vh;
    filter: opacity(0.2) blur(1px);
    /* background-color: red; */
    background: url("../image/logo.svg");
    background-size: calc(min(80vh, 80vw));
    background-repeat: no-repeat;
    /* background-attachment: fixed; */
    background-position: center;
    z-index: -1;
    margin-left: 10vw;
    grid-row: 1;
    grid-column: 1;
}

.venueInfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: flex-start;
    row-gap: 0em;
}

.venueInfo p {
    margin-block-start: 0em;
    margin-block-end: 0em;
    max-width: 80%;
    margin: 0 auto;
}

.venueInfo p:nth-child(4) {
    padding-bottom: 30vh;
}

.venueInfo p:nth-child(odd) {
    font-size: 110%;
    font-weight: bold;
}

.venueInfo p:nth-child(even) {
    margin-block-start: 0em;
    margin-block-end: 1em;
    font-size: 80%;
}

.gifts {
    padding-bottom: 30vh;
}

.gifts p {
    margin-block-start: 0em;
    margin-block-end: 0em;
    max-width: 80%;
    /* margin: 0 auto; */
}

.gifts p:nth-child(odd) {
    font-size: 110%;
    font-weight: bold;
}

.gifts p:nth-child(even) {
    margin-block-start: 0em;
    margin-block-end: 1em;
    font-size: 80%;
    font-style: italic;
}

.gifts ul {
    max-width: 80vw;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    list-style-position: inside;
    padding-inline-start: 0;
}



.gifts ul>li>p {
    display: inline-block;
    position: relative;
    font-size: 100% !important;
    font-weight: normal !important;
    font-style: italic;
    grid-column: 4;
    place-self: center start;
    margin-left: 0 !important;
}

.gifts li {
    font-size: 80%;
    vertical-align: middle;
    display: grid;
    grid-template-columns: 10vw 50px 1em 4fr 10vw;
    width: 50vw;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 600px) {
    .gifts ul {
        max-width: 100vw;
    }
    .gifts li {
        width: 90vw;
        grid-template-columns: 1vw 50px 1em 4fr 1vw;
    }
}
.gifts li:nth-child(1)::before {
    content: url("../image/food-holidays-meal-svgrepo-com.svg");
    height: 50px;
    width: 50px;
    position: relative;
    display: inline-block;
    grid-column: 2;
}


.gifts li:nth-child(2)::before {
    content: url("../image/dessert-svgrepo-com.svg");
    height: 50px;
    width: 50px;
    position: relative;
    display: inline-block;
    grid-column: 2;
}

.gifts li:nth-child(3)::before {
    content: url("../image/paper-crane-svgrepo-com.svg");
    height: 50px;
    width: 50px;
    position: relative;
    display: inline-block;
    grid-column: 2;
}

.program {
    padding-bottom: 30vh;
}

.program p {
    margin-block-start: 0em;
    margin-block-end: 0em;
    max-width: 80%;
    margin: 0 auto;
}

.program p:nth-child(odd) {
    font-size: 110%;
    font-weight: bold;
}

.program p:nth-child(even) {
    margin-block-start: 0em;
    margin-block-end: 1em;
}

#form {
    top: 0px;
    background-color: white;
    width: 100vw;
    display: grid;
    justify-items: center;
    grid-template-rows: 10vh 1fr 3fr;
    justify-content: center;
    font-family: 'Pathway Gothic One', sans-serif;
    text-align: justify;
    text-align: center;
    color: black;
}

#boxOpener {
    margin-bottom: 20px;
    width: 80vw;

}

#formContainer {
    margin: 20px;
    opacity: 0;
    transition: opacity cubic-bezier(1, 0.08, 1, 0.58) 1s;
}

#formContainer .accept-button {
    color: black;
    background: white;
}

#navigation::before {
    content: url("../image/globe-alt.svg");
    width: 30px;
    height: 30px;
    position: relative;
    left: 8px;
    top: 7px;
    filter: invert();
}

#navigation {
    position: fixed;
    right: 0px;
    width: 40px;
    height: 40px;
    top: 0;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px) brightness(0.3);
    -webkit-backdrop-filter: blur(10px) brightness(0.3);
    border-radius: 5px;
    transition: width 0.3s linear, height 0.1s linear;
    overflow: hidden;
}

#navigation:hover {
    width: 125px;
    height: 100vh;
}

#navigation ul {
    padding: 0;
}

#navigation li {
    list-style: none;
    color: white;
    font-size: 110%;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px;
    width: 100%;
    font-family: 'Pathway Gothic One', sans-serif;
}

#navigation li>a {
    display: block;
    width: 100%;
    height: 100%;
}

#navigation li>a:link {
    color: white;
    text-decoration: none;
    font-family: 'Pathway Gothic One', sans-serif;
}

#navigation li>a:visited {
    color: white;
}

#navigation li:hover {
    background: blue;
    cursor: pointer;
}


#formButton {
    transition: height 1s linear, translate 1s linear 1s;
    position: relative;
    width: auto !important;
    overflow: hidden;
    padding: 10px;
    height: var(--button-default);
    border: 1px solid white;
    border-radius: 5px;
    background: white !important;
    color: black !important;
}

input#token {
    width: 100%;
    height: 60px;
    font-size: 150%;

    border: solid 1px blue;
    margin-bottom: 20px;
    border-radius: 100vw;
    text-align: center;
}

#form>h1 {
    font-size: 200%;
}

#formContainer input[type=number] {
    height: 40px;
    border-radius: 5px;
    padding: 10px;
    font-size: 110%;
    text-align: center;
    max-width: 40px;
}

.form-group {
    display: grid;
    width: 80vw;
    margin: 0 auto;
    max-width: 800px;
    grid-template-columns: 2fr 1fr;
    padding-top: 5px;
    padding-bottom: 5px;
    justify-items: center;
    align-items: center;
}

.form-group>input {
    grid-column: 2/2;
}

.form-group>label {
    justify-self: right;
}

.form-group>textarea {
    grid-column: 1/3;
    width: 80%;
    height: 30vh;
    padding: 20px;
    margin-top: 30px
}

.message {
    position: fixed;
    top: 0vh;
    left: 0;
    width: 100vw;
    padding: 10px;
    color: white;
    text-align: center;
}

.message.error {
    background-color: red;
   
}
.message.success {
    background-color: green;
}