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

:root {
    font-size: 62.5%;
    --clr-main: black;
    --clr-secondary: red;
    --font-size-1: 1rem;
    --font-size-2: 2rem;
    --font-size-3: 3rem;
    --margin: 1rem;
}

/* TYPE RELATED */

@font-face {
    font-family: "Busorama";
    src: url('/assets/fonts/Busorama.ttf') format('truetype');
}

@font-face {
    font-family: "Caslon";
    src: url('/assets/fonts/ACaslonPro-Regular.otf') format('opentype');
}

@font-face {
    font-family: "CaslonItalic";
    src: url('/assets/fonts/AdobeCaslonProItalic.ttf') format('opentype');
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    cursor: pointer;
}

em {
    font-family: "CaslonItalic";
    font-style: normal;
    font-weight: inherit;
}

/* Generel Styling */

html {
    overscroll-behavior: none;
}

body {
    background-color: white;
}

/* LOGO DESIGN */

#logo {
    position: fixed;
    width: 28rem;
    left: calc(50% - 14rem);
    /* width: 25vw;
    left: 37.5vw; */
    top: 1rem;
    z-index: 50;
    pointer-events: all;
}

.cls-1 {
    fill:#1e1e1c;
}

.cls-1.white {
    fill: white;
}

    @media screen and (width < 700px) {
        #logo {
            padding: 1rem;
            width: 100vw;
            left: 0;
            top:0;
        }
    }

/* CONTENT */

.main {
    position: relative;
    height: 100svh;
    width: 100vw;
    overflow: hidden;
}

/* POEM */

.poem,
.intermission {
    display: none; 
    font-family: "Busorama";
    /* font-size: 5rem; */
    /* font-size: 3.4vw; 
    line-height: 3.4vw; */
    font-size: 4.4rem;
    line-height: 4.4rem;
    position: fixed;
    top: calc(100svh - 1rem);
    transform: translateY(-100%);
    left: 0;
    width: calc(100% - 1rem);
    text-transform: uppercase;
    z-index: 20;
    padding-top: 0.4rem;
    margin-inline: 0.5rem;
}

.intermission {
    text-align: center;
    color: #efefef;
    letter-spacing: 0.5rem;
    /* font-size: clamp(2rem, 3.5vw, 6rem); */
}

.poem.active {
    display: block;
    text-align: center;
}

    @media screen and (width < 700px) {
        .poem {
            top: 55svh;
            font-size: 3rem;
            line-height: 2.3rem;
            transform: translateY(-50%);
            padding-inline: 1rem;
            letter-spacing: -0.5rem;
        }
        .intermission {
            top: 55svh;
            font-size: 3rem;
            line-height: 2.3rem;
            transform: translateY(-50%);
            padding-inline: 1rem;
        }
    }

/* LINE */  

.line {
    display: none; 
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.line.visible {
    display: block;
    opacity: 1;
}

/* WORD */

.word {
    display: inline-block;
    opacity: 1;
    transition: opacity 0.3s ease-in-out, color 0.3s ease-in-out;
    color: #efefef;
    /* -webkit-text-stroke: black 0.1em;
    paint-order: stroke fill;
    text-shadow: none; */
    letter-spacing: -0.1rem;
    /* font-size: 5rem;
    line-height: 5rem; 
    font-size: 3.4vw;
    line-height: 3.4vw;*/
    font-size: 4.4rem;
    line-height: 4.6rem;
}

.word.highlight {
    opacity: 1;
    color: black;
}

    @media screen and (width < 700px) {
        .word {
            color: white;
            letter-spacing: 0.15rem;
            /* text-shadow: rgb(0, 0, 0) 1px 0px 0px, rgb(0, 0, 0) 0.540302px 0.841471px 0px, rgb(0, 0, 0) -0.416147px 0.909297px 0px, rgb(0, 0, 0) -0.989993px 0.14112px 0px, rgb(0, 0, 0) -0.653644px -0.756803px 0px, rgb(0, 0, 0) 0.283662px -0.958924px 0px, rgb(0, 0, 0) 0.96017px -0.279416px 0px;    */
            /* text-shadow: 2px 2px 6px rgba(0,0,0,0.53); */
            font-size: 4rem;
            line-height: 4rem;
        }
    }

/* LANDSCAPE IMAGES */

.wrapper {
    position: absolute;
    width: 28rem;
    left: calc(50% - 14rem);
    /* width: 25vw;
    left: 37.5vw;
    top: 0;
    top: calc(100svh - 21.6vw);*/
    top: calc(100svh - 25.7rem);
}

.wrapper img {
    width: 100%;
}

.wrapper.big {
    width: 100vw;
    height: 100svh;
    object-fit: cover;
    top:0;
    left: 0;
}

@media screen and (width < 700px) {
    .wrapper {
        width: 100vw;
        left: 0;
        top: 55svh;
        padding-inline: 1rem;
    }
    .wrapper.big {
        width: 100vw;
        height: 100svh;
        left: 0;
        top: 0;
        padding-inline: 0;
    }
}

.wrapper_2 {
    position: relative;
}

.wrapper_2:hover {
    filter: brightness(95%);
}

@media screen and (width < 700px) {
    .wrapper_2:hover {
        filter: brightness(100%);
    }
}

.wrapper.big .wrapper_2:hover {
    filter: brightness(100%);
}

.plus_icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    opacity: 0;
    width: 1.5vw;
    pointer-events: none;
    cursor: pointer;
}

.wrapper_2:hover .plus_icon {
    opacity: 1;
}

.wrapper.big .plus_icon {
    display: none;
}

.image_wrapper img {
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 1rem;
    transform: translateY(0);
}

.wrapper.big .image_wrapper img {
    border-radius: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

@media screen and (width < 700px) {
    .image_wrapper img {
        transform: translateY(-50%);
    }
    .wrapper.big .image_wrapper img {
        transform: translateY(0);
        height: 100vh;
        width: 100vw;
        object-fit: cover;
    }
    .plus_icon {
        display: none;
    }
}

/* INFO BUTTON */

.info_button {
    font-family: "Caslon";
    margin-top: 1.5rem;
    margin-left: 1.5rem;
    margin-bottom: 0.7rem;
    font-size: 1.8rem;
    position: absolute;
    z-index: 50;
    color: black;
    width: max-content;
    text-decoration: none;
    display: block;
}

.info_button.gone {
    display: none;
}

/* INFO BUTTON DESKTOP */

.info_button_desktop {
    display: block;
}

.info_button_desktop:hover {
    cursor: pointer;
    border-bottom: 1px solid black;
    display: inline-block;
    line-height: 1.7rem;
}

.info_button_desktop.underline {
    border-bottom: 1px solid black;
    display: inline-block;
    line-height: 1.7rem;
}

/* INFO BUTTON MOBILE */

.info_button_mobile {
    display: none;
}

.info_button_mobile.inverted svg circle {
    fill: black;
}

.info_button_mobile.inverted svg path {
    fill: white;
}

    @media screen and (width < 700px) {
        .info_button {
            bottom: 0;
        }

        .info_button_desktop {
            display: none;
        }

        .info_button_desktop.underline {
            display: none;
        }
        
        .info_button_mobile {
            display: block;
        }
    }

/* INFO OVERLAY */

.info_overlay {
    position: fixed;
    width: 100vw;
    height: 100svh;
    top: 0;
    left: 0;
    background-color: white;
    z-index: 40;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
    /*--- Rest --*/
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.info_overlay.yes {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.5s;
}

.info_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* margin-top: 12vw; */
    margin-top: 15rem;
    width: 28rem;
    overflow: hidden;
}

.info_wrapper > div:first-child {
    font-family: "Caslon";
    font-size: 1.8rem;
    line-height: 1.8rem;
    word-spacing: -0.1rem;
    border-block: 2px solid black;
    padding-block: 0.5rem;
    margin-inline: 0rem;
    transition: margin-top 0.5s ease-in-out;
}

@media screen and (width < 700px) {
    .info_wrapper > div:first-child {
        font-size: 1.6rem;
        line-height: 1.6rem;
    }
    /* .info_wrapper > div:first-child.up {
        display: none;
        transition: margin-top 0.5s ease-in-out;
    } */
}

.info_wrapper > div:first-child p {
    border-bottom: 1px solid black;
    padding-block: 0.8rem;
    text-align: center;
    text-wrap: pretty;
}

.info_wrapper > div:first-child p:first-child {
    border-top: 1px solid black;
}

.info_wrapper > div:last-child {
    text-align: center;
    font-family: "Caslon";
    font-size: 1rem;
    margin-top: 1rem;
}

    @media screen and (width < 700px) {
        .info_wrapper {
            width: calc(100% - 2rem);
            margin-inline: 1rem;
            left:0;
            margin-top: 45vw;
        }

        .info_wrapper > div:first-child.up {
            margin-top: -45vw;
            transition: margin-top 0.5s ease-in-out;
        }
    }

/* CREDITS */

.credits {
    text-align: center;
    font-family: "Caslon";
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    line-height: 1.4rem;
}

.credits img {
    max-width: 100%;
}

.credits p:first-child {
    margin-bottom: 0.8rem;
}

.imprint > div:first-child {
    margin-bottom: 0.5rem;
}

.imprint > div:first-child:hover {
    cursor: pointer;
}

.imprint > div:last-child {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s linear;
}

.imprint > div:last-child p {
    margin-bottom: 0.75rem;
}

@media screen and (width < 700px) {
    .imprint > div:last-child {
        font-size: 0.7rem;
    }
}

.imprint > div:last-child.seen {
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.4s linear;
}