@font-face {
    font-family: Throne;
    src: url(assets/fonts/THE\ THRONE.ttf);
}

#GameContainer{
    overflow-y: scroll; 
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    position: relative;
}

body{
    margin: 0;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Throne;
    background-position: center;
    background-size: 100% 102vw;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    bottom: 0;
    height: 100vh;
    width: 100%;
    overflow-y:scroll
}

#index {
    position: absolute;
    top: 0px;
    left: -60px;
}

#index img{
    width:30px;
    height: 30px;
}

#imprint {
    position: relative;
    width: 300px;
    min-height: fit-content;
    height: fit-content;
    padding: 40px 100px;
    background-color: #ffffff94;
    border-radius: 30px;
}

@media(max-height:585px){
    #imprint {
        position: absolute;
        top: 0;
    }
}

#imprintLink a {
    text-decoration: none;
    color: black;
    cursor: pointer;
    font-weight: 700;
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 0;
}

#imprintLink a:hover{
    color: white;
}

#imprinth1 {
    bottom: 0;
    margin-top: 0;
    margin-bottom: 40px;
    color: #000000;
    font-size: 63px;
    text-shadow: 0 0 3px black;
    position: relative;
    bottom: 0px;
}

#Intro{
    position: absolute;
    top: 0px;
    left: 0;
    right: 0;
    z-index: 5;
}

#Intro img {
    position: absolute;
    width: 720px;
    height: 480px;
    border-radius: 20px;
    box-shadow: 0 0 5px black;
    z-index: 5;
}

#ButtonContainer {
    width: 88.17px;
    height: 100%;
}

#ButtonArea {
    display: flex;
    align-items: center;
    justify-content: center;
}

#Intro button {
    position: absolute;
    top: 60px;
    height: 40px;
    /* left: 330px; */
    cursor: pointer;
    border: none;
    background-color: #2aa9ce;
    border-radius: 5px;
    box-shadow: 0 0 5px black;
    color: #d4e3e9;
    font-weight: 600;
    text-shadow: 0 0 1px black;
    font-family: 'Throne';
    font-size: 24px;
    padding: 9px 16px 9px 16px;
    z-index: 6;
}

canvas{
    position: relative;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 0 5px black;
}

h1 {
    color: #4c4c4c;
    font-size: 77px;
    text-shadow: 0 0 1px black;
    position: relative;
    top: 30px;

}

#minScreen {
    position: absolute;
    width: 100%;
    height: 790px;
}

#Screen{
    position: relative;
    bottom: 80px;
    height: 480px;
    width: 720px;
    z-index: 1;
}

#fullscreen{
    width: 30px;
    height: 30px;
    position: absolute;
    bottom: 80px;
    right: 30px;
    z-index: 3;
    cursor: pointer;
}

#background{
    position: fixed;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

#frame{
    position: absolute;
    top: 0;
    width: 720px;
    height: 480px;
    border-radius: 20px;
}

#frame2{
    position: absolute;
    top: 0;
    width: 720px;
    height: 480px;
    border-radius: 20px;
}

#restart{
    position: absolute;
    bottom: 50px;
    height: 40px;
    left: 250px;
    right: 250px;
    cursor: pointer;
    border: none;
    background-color: #2aa9ce;
    border-radius: 5px;
    box-shadow: 0 0 5px black;
    color: #d4e3e9;
    font-weight: 600;
    text-shadow: 0 0 1px black;
    font-family: 'Throne';
    font-size: 24px;
    padding: 9px 16px 9px 16px;
    z-index: 3;
}
.mobileButton img{
    display: none;
    width: 30px;
    height: 30px;
}
.Button{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
}

.Button img{
    width: 30px;
    height: 30px;
    margin-right: 10px;
    filter: drop-shadow(0px 0px 4px black);
}

#buttons{
    display: flex;
    justify-content: center;
}

#Intro{
    display: flex;
    justify-content: center;
}

#A{
    text-shadow: 0 0 1px black;
}

#D{
    text-shadow: 0 0 1px black;
}

#W{
    text-shadow: 0 0 1px black;
}

#Space{
    text-shadow: 0 0 1px black;
}

#left {
    position: absolute;
    bottom: 19px;
    left: 20px;
}

#left img{
    width: 30px;
    height: 30px;
}

#right {
    position: absolute;
    bottom: 19px;
    left: 80px;
}

#right img{
    width: 30px;
    height: 30px;
}

#up {
    position: absolute;
    bottom: 19px;
    right: 83px;
}

#up img{
    width: 30px;
    height: 30px;
}

#space {
    position: absolute;
    bottom: 10px;
    right: 20px;
}

#space img{
    width: 50px;
    height: 47px;
}

#mute{
    position: absolute;
    bottom: 130px;
    right: 30px;
    width: 30px;
    height: 30px;
    z-index: 3;
    cursor: pointer;
}



#vol {
    z-index: 4;
    position: absolute;
    writing-mode: vertical-rl;
    bottom: 170px;
    right: 34px;
    transform: rotate(180deg);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #ddd;
    width: 17.5px;
    height: 100px;
    border-radius: 10px;
    box-shadow: 0 0 5px black;
}

/* WebKit browsers */
#vol::-webkit-slider-thumb {
    -webkit-appearance: none; /* Remove default thumb styling */
    background: #333; /* Thumb color */
    width: 20px; /* Thumb width */
    height: 20px; /* Thumb height */
    border-radius: 50%; /* Optional: Round thumb */
    cursor: pointer; /* Thumb cursor */
}

#vol::-webkit-slider-runnable-track {
    background: #ccc; /* Track background color */
    border-radius: 10px; /* Optional: Round track corners */
}

/* Firefox */
#vol::-moz-range-thumb {
    background: #333; /* Thumb color */
    width: 10px; /* Thumb width */
    height: 10px; /* Thumb height */
    border-radius: 50%; /* Optional: Round thumb */
    cursor: pointer; /* Thumb cursor */
}

#vol::-moz-range-track {
    background: #ccc; /* Track background color */
    border-radius: 10px; /* Optional: Round track corners */
}

/* Internet Explorer */
#vol::-ms-thumb {
    background: #333; /* Thumb color */
    width: 10px; /* Thumb width */
    height: 10px; /* Thumb height */
    border-radius: 50%; /* Optional: Round thumb */
    cursor: pointer; /* Thumb cursor */
}

#vol::-ms-track {
    background: #ccc; /* Track background color */
    border-radius: 10px; /* Optional: Round track corners */
    border: none; /* Remove default track border */
    color: transparent; /* Remove default track color */
}

@media only screen and (max-width: 720px) and (min-height: 480px){
    /* #fullscreen {
        display: none;
    } */
}



@media only screen and (max-width: 720px) and (min-height: 480px){
    #vol {
        bottom: 120px;
    }

    #rotate {
        display: flex;
        position: absolute;
        /* top: 523px; */
        font-weight: 700;
        font-size: 15px;
        text-shadow: 0 0 0px black;
        z-index: -1;
        left: 30px;
        bottom: 15px;
        color: #000000;
    }

    #imprintLink a {
        text-decoration: none;
        color: black;
        cursor: pointer;
        font-weight: 700;
        position: absolute;
        bottom: 15px;
        right: 30px;
        z-index: 0;
        top: auto;
    }

    canvas{
        width: 100%;
    }
    .mobileButton img{
        display: flex;
        width: 50px;
        height: 5%;
        cursor: pointer;
    }
    .Button{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #Screen{
        width: 100%;
        bottom: 63px !important;
    }

    #frame{
        width: 100%;
        height: 100%;
    }
    
    #frame2{
        width: 100%;
        height: 100%;
    }

    h1{
        font-size: 76px;
        bottom: 40px;
    }

    #fullscreen{
        display: none;
    }

    #mute {
        position: absolute;
        bottom: 80px;
        right: 30px;
        width: 30px;
        height: 30px;
        z-index: 3;
        cursor: pointer;
    }

    .Button img {
        width: 30px;
        height: 30px;
        margin-right: 0px;
        filter: drop-shadow(0px 0px 4px black);
    }
}

@media only screen and (min-width: 720px){
    #rotate {
        display: none;      
    }

    .Button img {
        width: 30px;
        height: 30px;
        margin-right: 10px;
        filter: drop-shadow(0px 0px 4px black);
    }
}

@media only screen and (max-height: 480px){
    canvas{
        height: 100%;
    }
    .mobileButton img{
        display: flex;
        width: 50px;
        height: 50px;
        cursor: pointer;        
    }
    /* .Button{
        display: none;
    } */

    #Screen {
        height: 100%;
        position: relative;
        bottom: 64px;
    }

    #frame{
        height: 100%;
        width: 100%;
    }
    
    #frame2{
        height: 100%;
        width: 100%;
    }

    h1{
        font-size: 77px;
    }
    /* #fullscreen{
        display: none;
    } */
}

@media (max-width:680px) {
    #restart{
        left: 190px;
        right: 190px;
    }
}

@media (max-width:550px) {
    #restart{
        left: 150px;
        right: 150px;
    }
}

@media (max-width:500px) {
    h1 {
        font-size: 66px;
        bottom: 30px;
    }
}

@media (max-width:470px) {
    #restart {
        bottom: 25px;
        height: 70px;
        left: 135px;
        right: 130px;
    }
    #right {
        position: absolute;
        bottom: 19px;
        left: 60px;
    }
    #up {
        position: absolute;
        bottom: 19px;
        right: 70px;
    }
}

@media (max-width:400px) {
    h1 {
        font-size: 56px;
        bottom: 30px;
    }
    #Intro button {
        position: relative;
        bottom: 160px;
        height: 34px;
        /* left: 330px; */
        cursor: pointer;
        border: none;
        background-color: #2aa9ce;
        border-radius: 5px;
        box-shadow: 0 0 5px black;
        color: #d4e3e9;
        font-weight: 600;
        text-shadow: 0 0 1px black;
        font-family: 'Throne';
        font-size: 20px;
        padding: 9px 16px 9px 16px;
        z-index: 6;
    }
}

@media (max-width:360px) {
    #restart {
        bottom: 25px;
        height: 70px;
        left: 100px;
        right: 110px;
    }

    h1 {
        font-size: 52px;
        bottom: 30px;
    }
}

@media (max-width:560px) {
    #Intro button{
        bottom: 120px;
    }

    #imprint {
        width: calc(100% - 40px);
        padding: 20px;
        text-align: center;
    }

    #index {
        position: absolute;
        top: 210px;
        left: 10px;
    }
}

@media (max-width:450px) {
    #Intro button{
        bottom: 100px;
    }
}

@media (max-width:400px) {
    #Intro button{
        bottom: 90px;
    }

    #rotate {
        font-size: 24px;
    }
}

@media (max-width:350px) {
    #Intro button {
        bottom: 75px;
    }

    #rotate {
        font-size: 22px;
    }
}

@media (pointer: coarse) {
    /* Styles for touch devices */
    .mobileButton img {
        display: flex;
        width: 50px;
        height: 50px;
        cursor: pointer;
    }
}

@media(max-height: 740px){
    h1 {
        margin-top: 10px;
    }
    #minScreen {
        height: 730px;
    }

    #minScreen div {
        height: 730px !important;
    }
}

@media(max-height: 700px){
    h1 {
        margin-top: 0px;
    }
    #minScreen {
        height: 700px;
    }

    #minScreen div {
        height: 700px !important;
    }
}

@media(max-height: 680px){
    h1 {
        margin-top: 0px;
        margin-bottom: 15px;
        top: 10px;
    }
    #minScreen {
        height: 680px;
    }

    #minScreen div {
        height: 680px !important;
    }
}

@media(max-height: 635px){
    h1 {
        margin-top: 0px;
        margin-bottom: 0px;
        top: 0px;
    }
    #minScreen {
        height: 635px;
    }
    #minScreen div {
        height: 635px !important;
    }
}

@media(max-height: 625px){
    #GameContainer{
        justify-content: center;
    }
    #Screen {
        position: absolute !important;
        top: auto !important;
        bottom: auto !important;
    }
}