@font-face {
    font-family: "IBM Plex light";
    src: url("../../fonts/IBM_Plex_Sans/IBMPlexSans-Light.ttf") format('truetype');
    font-style: normal;

}

@font-face {
    font-family: "IBM Plex";
    src: url("../../fonts/IBM_Plex_Sans/IBMPlexSans-Regular.ttf") format('truetype');
    font-style: normal;
}

@font-face {
    font-family: "IBM Plex SemiBold";
    src: url("../../fonts/IBM_Plex_Sans/IBMPlexSans-SemiBold.ttf") format('truetype');
    font-style: normal;
}

@font-face {
    font-family: "Bebas Neue";
    src: url("../../fonts/Bebas_Neue/BebasNeue-Regular.ttf") format('truetype');
    font-style: normal;
}

@font-face {
    font-family: "Bebas Neue";
    src: url("../../fonts/Bebas_Neue/BebasNeue-Regular.ttf") format('truetype');
    font-style: normal;
}


* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}

html {
    scroll-behavior: initial;
    /* for scroll lib */
    scrollbar-width: none;
}

html,
body {
    width: 100vw;
    min-height: 100vh;
    min-height: 100svh;
    position: relative;

    /* -ms-overflow-style: none;  /* Disable scrollbar IE 10+ */
    /* overflow: scroll; */
}

body {
    background-image: url(../../art/99_Output/02_Kunstwerke/Manet/jpg/Telegraph_Manet02_0.5x.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

#start {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    color: #e6e5e1;
    /* background-color: #f2f0f1; */
    padding: 10px;
    border-radius: 5px;
    font-size: larger;
    font-family: "IBM Plex", sans-serif;
    font-weight: 800;
    font-style: bold;
    cursor: pointer;
    z-index: 1;
    text-align: center;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 2rem;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    text-transform: uppercase;
    width: 80%;
}

#start button {
    color: #e6e5e1;
    cursor: pointer;
    font-family: "IBM Plex", sans-serif;
    text-transform: uppercase;

    width: clamp(180px, 18.75vw, 360px);
    font-size: clamp(0.67rem, 1.25vw, 1.75rem);
    height: clamp(30px, 3.125vw, 60px);
    padding: clamp(0.375rem, 0.625vw, 0.875rem) clamp(0.75rem, 1vw, 1.25rem);
    background-color: transparent;
    border: 1px solid #e6e5e1;
    border-radius: 5px;
    -webkit-transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    -o-transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

#start button:hover {
    background: rgba(243, 239, 229, 0.3);
}

#intro {
    display: none;
    height: 100vh;
    height: 100svh;
    width: 100vw;
    /* DEVMODE display: none; */
    z-index: 9;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    -ms-grid-rows: 0.9fr 0.1fr 1fr;
    grid-template-rows: 0.9fr 0.1fr 1fr;
}

#intro > *:nth-child(1) {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
}

#intro > *:nth-child(2) {
    -ms-grid-row: 2;
    -ms-grid-column: 1;
}

#intro > *:nth-child(3) {
    -ms-grid-row: 3;
    -ms-grid-column: 1;
}

#grida {
    -ms-grid-column: 1;
    grid-column: 1;
    -ms-grid-row: 1;
    grid-row: 1;
    font-family: "IBM Plex light", sans-serif;
}

#gridb {
    -ms-grid-column: 1;
    grid-column: 1;
    -ms-grid-row: 3;
    grid-row: 3;
    -ms-grid-row-align: center;
        align-self: center;
    -ms-grid-column-align: center;
        justify-self: center;
}

#morsecode {
    position: absolute;
    padding: 0.5rem;
    margin: 0.5rem 6vw;
    /* top: 6vh; */
    /* top: 6svh; */
    color: #fcffff;
    font-size: calc((2vw + 4vh) / 2);
    /*2vw*/
    font-size: calc((2vw + 4svh) / 2);
    /*2vw*/
    letter-spacing: -0.025em;
    line-height: 300%;
}

#morsetext {
    position: relative;
    top: 2.5ch;
    left: 0;
    padding: 0.5rem 0.5rem 0 0.5rem;
    margin: 0.5rem 6vw;
    color: #fcffff;
    text-transform: uppercase;
    word-spacing: 3vw;
    font-size: calc((2vw + 4vh) / 2);
    /*2vw*/
    font-size: calc((2vw + 4svh) / 2);
    /*2vw*/
    letter-spacing: 0.13em;
    line-height: 300%;

}

#morsetextdesc {
    -ms-grid-column: 1;
    grid-column: 1;
    -ms-grid-row: 2;
    grid-row: 2;
    margin: 0 6vw;
    text-transform: none;
    padding: 0.5rem;
    word-spacing: 0.3rem;
    font-size: 1.25vw;
    letter-spacing: 0.13em;
    color: #fcffff;
    display: none;
    opacity: 0;
    -ms-grid-row-align: center;
        align-self: center;
    -ms-grid-column-align: start;
        justify-self: start;
    font-family: "IBM Plex light", sans-serif;
}

#infotext {
    display: none;
    /* position: absolute; */
    width: 61.8%;
    padding: 0.5rem;
    margin: 1vw 1vw 3rem 6vw;
    top: 50vh;
    top: 50svh;
    color: #fcffff;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    font-family: "IBM Plex light", sans-serif;
}

#infotext h3 {
    font-family: "IBM Plex", sans-serif;
    font-weight: 500;
}

#skip {
    display: none;
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    padding: 1rem;
    margin-right: 0.75rem;
    color: #fcffff;
    text-decoration: underline;
    text-transform: uppercase;
    font-size: large;
    cursor: pointer;
    font-family: "IBM Plex light", sans-serif;
}

/* #continue {
    display: none;
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    padding: 1rem;
    border: 1px solid #fcffff;
    color: #fcffff;
    text-transform: uppercase;
    font-size: large;
    cursor: pointer;
    -webkit-transition: background-color 300ms linear;
    -ms-transition: background-color 300ms linear;
    transition: background-color 300ms linear;
}

#continue:hover {
    background: #fcffff;
    color: #374c65;
} */

#continue {
    display: none;
    position: fixed;
    bottom: 2vw;
    right: 2vw;
    color: #e6e5e1;
    cursor: pointer;
    font-family: "IBM Plex", sans-serif;
    text-transform: uppercase;
    text-align: center;

    width: clamp(180px, 18.75vw, 360px);
    font-size: clamp(0.67rem, 1.25vw, 1.75rem);
    height: clamp(30px, 3.125vw, 60px);
    padding: clamp(0.375rem, 0.625vw, 0.875rem) clamp(0.75rem, 1vw, 1.25rem);
    /* background-color: transparent;  */
    background: rgba(243, 239, 229, 0.15);
    border: 1px solid #e6e5e1;
    border-radius: 5px;
    -webkit-transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    -o-transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

#continue:hover {
    /* background-color: #e6e5e1; */
    background: rgba(243, 239, 229, 0.3);
    /* color: #2e4259; */
}

@media (max-width: 800px) and (max-height: 600px) {

    #morsecode {
        /* top: 5vh; */
        /* top: 5svh; */
    }

    #morsetext {
        top: 2ch;
    }

    #morsetextdesc {}

    #infotext {
        top: 50vh;
        top: 50svh;
        font-size: 1.2rem;
    }

    /* #continue {
        font-size: 0.9rem;
    } */

    #skip {
        font-size: 0.9rem;
    }
}

@media (max-width: 680px) {

    #morsecode {
        /* top: 5vh; */
        /* top: 5svh; */
    }

    #morsetext {
        top: 6vh;
        top: 6svh;
    }

    #morsetextdesc {}

    #infotext {
        top: 50vh;
        top: 50svh;
        font-size: 0.9rem;
    }

    /* #continue {
        font-size: 0.9rem;
    } */

    #skip {
        font-size: 0.9rem;
    }
}

@media (max-height: 720px) {
    #morsecode {
        top: 0vh;
        top: 0svh;
    }

    #morsetext {
        top: 2ch;
    }

    #infotext {
        width: 70%;
        top: 50vh;
        top: 50svh;
        font-size: 0.9rem;
    }

    /* #continue {
        font-size: 1rem;
    } */

    #skip {
        font-size: 1rem;
    }
}

@media (max-height: 500px) {
    #morsecode {
        top: 0vh;
        top: 0svh;
    }

    #morsetext {
        top: 2ch;
    }

    #infotext {
        width: 70%;
        top: 50vh;
        top: 50svh;
        font-size: 0.7rem;
    }

    /* #continue {
        font-size: 0.7rem;
    } */

    #skip {
        font-size: 0.7rem;
    }
}

@media (max-height: 400px) {
    #morsecode {
        top: 0vh;
        top: 0svh;
        padding: 0.1rem;
    }

    #morsetext {
        top: 2ch;
        padding: 0.1rem;
    }

    #infotext {
        width: 70%;
        top: 50vh;
        top: 50svh;
        font-size: 0.6rem;
        padding: 0.1rem;
    }

    #morsetextdesc {
        padding: 0.1rem;
    }

    /* #continue {
        font-size: 0.7rem;
    } */

    #skip {
        font-size: 0.7rem;
    }
}

@media (max-width: 360px) {

    #morsecode {
        top: 0;
    }

    #morsetext {
        top: 2ch;
    }

    #infotext {
        width: 50%;
        top: 5.5vh;
        top: 5.5svh;
        font-size: 0.7rem;
    }

    /* #continue {
        font-size: 0.7rem;
    } */

    #skip {
        font-size: 0.7rem;
    }
}