@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap');

html,

#below {
    width: 100vw;
    height: 100vh;
}

body {
    height: 100%;
    margin: 0;
    animation: fadeIn 0.75s ease;
}

body {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-image: url('background.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: black;
    font-family: 'JetBrains Mono', monospace;
    backdrop-filter: blur(1vh) brightness(0.33);
    -webkit-backdrop-filter: blur(1vh) brightness(0.33);
    box-shadow: 0px 0px 10vh rgb(0, 0, 0) inset;
}

#mainbox {
    transform: rotate3d(25deg);
    background-color: #00000045;
    border: 0.2vh solid #ffffff5d;
    box-shadow: 0px 0px 2vh rgba(0, 0, 0, 0.521) inset;
    justify-content: center;
    align-items: center;
    width: 140vh;
    max-width: calc(100vw - 10vh);
    height: 70vh;
    border-radius: 2.25vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2vh;
    padding: 2vh;
    z-index: 0;
    animation: transitionIn 0.75s ease;
    color: white;
}

h1 {
    color: #ffffff;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(50% - 25vh - 18vh);
    margin: 0;
    z-index: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 3vh;
    text-align: center;
    animation: transitionInTitle 0.75s ease;
    width:100%;
}

#mainbox h2 {
    grid-column: 1 / -1; 
    justify-self: center; 
    text-align: center;
    margin: 0;
}

#mainbox p {
    margin: 0px;
    color: white;
}

#mainbox {
    height: 70vh; /* keep if you want */
    max-height: 70vh;
    overflow-y: auto; /* force vertical scroll */
    -webkit-overflow-scrolling: touch; /* enables smooth scrolling on iOS */
    transform: translate(-50%, -50%); /* keep centering */
    /* remove rotate3d here if scrolling is more important */
}


#mainbox p {
    margin: 0 0 1vh 0;
    line-height: 1.4;
    color: #fdeef8;
}

#mainbox li {
    color: #ffffff96;
    margin-left: 2vh;
    transition: margin-left 0.5s ease;
}

#mainbox li:hover {
    margin-left: 3vh;
}

@keyframes fadeIn {
    from {
        filter: blur(10vh) brightness(0.25);
    }

    to {
        filter: blur(0vh) brightness(1);
    }
}

@keyframes transitionIn {
    from {
        rotate: 3deg;
        top: 45%;
    }

    to {
        rotate: 0deg;
        top: 50%
    }
}

@keyframes transitionInTitle {
    from {
        rotate: 5deg;
    }

    to {
        rotate: 0deg;
    }
}
#warning {
    text-align: center;
}
#warning a{
    text-align: center;
    color: red;
    text-decoration: underline;
    font-size: 1.5vh;
}

#copyall {
    display: inline-block;
    width: auto;
    justify-self: start;
    align-self: start;
    cursor: pointer;
    padding: 0.5vh 1vh;
    box-sizing: border-box;
    text-decoration: underline;
    transition: background-color 0.3s ease;
}
#copyall:hover {
    background-color: #ffffff21;
}

#topright {
    position: absolute;
    top: 1.25vh;
    right: 2vh;
    margin: 0;
    font-size: 1.6vh;
    color: #ffffffcc;
    background: transparent;
    padding: 0.2vh 0.6vh;
    pointer-events: none; 
}
h2 {
    position: absolute;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#tutorial {
    position: absolute;
    top: calc(26vh + 4vh);
    left: 2vh;
    right: 2vh;
    text-align: left;
    padding-top: 0.5vh;
    box-sizing: border-box;
}

#back {
    position: fixed;
    width: 8vh;
    height: 3.5vh;
     background-color: #00000045;
    border: 0.2vh solid #ffffff00;
    box-shadow: 0px 0px 2vh rgba(71, 71, 71, 0);
    top: 2vh;
    left: 1vh;
    border-radius: 1vh;
    text-align: center;
    line-height: 3.5vh;
    font-size: 1.75vh;
    color: white;
    opacity: 0.1;
    transition: 0.3s ease;
}

#back:hover {
    left: 2vh;
    opacity: 1;
    cursor: pointer;
    border: 0.2vh solid #ffffff0a;
    box-shadow: 0px 0px 1.5vh rgba(71, 71, 71, 0.289);
}

@media (max-width: 600px) {
    #mainbox {
        position: static;
        transform: none;
        width: calc(100vw - 4vh);
        max-width: 100%;
        height: auto;
        margin: 4vh auto;
        padding: 2vh;
    }

    h1 {
        position: static;
        left: auto;
        transform: none;
        top: auto;
        font-size: 3.2vh;
        margin-bottom: 1vh;
    }

    h2, #tutorial, #topright, #copyall {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        width: auto;
        margin: 0 0 1vh 0;
        text-align: left;
        display: block;
    }

    #topright {
        text-align: right;
        pointer-events: none;
        color: #ffffffcc;
    }

    /* make the tutorial readable on small screens */
    #tutorial {
        padding-top: 0.5vh;
        line-height: 1.5;
    }
}