@font-face {
    font-family: 'SofadiOne-Regular';
    src: url('font/SofadiOne-Regular.ttf');
}

body {
    margin: 0;
    font-family: 'SofadiOne-Regular', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('img/background.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

h1 {
    color: #62457C;
    font-size: 48px;
    letter-spacing: -2.5px;
    text-align: center;
}

h2 {
    color: white;
    font-size: 44px;
    text-align: center;
    margin: 50px;
}

h3 {
    color: white;
    font-size: 24px;
    margin: 30px;
    text-align: center;
    letter-spacing: 0.5px;
}

h4 {
    color: white;
    font-size: 20px;
    letter-spacing: 0.1px;
    margin: 0;
    font-weight: lighter;
}

canvas {
    background-color: black;
}

#fullscreen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;    
}

.hide {
    display: none;
}

.pointer {
    cursor: pointer;
}

.link-color:hover {
    color: #210145;
}

.start-screen-bg {
    background-image: url('img/background.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    z-index: 2;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.start-screen-content {
    position: relative;
    background-color: #62457C;
    color: white;
    text-align: center;
    font-size: 26px;
    border-radius: 10px;
}

.choices-container {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin: 0 80px 40px 80px;
}

.start-screen-image {
    height: 150px;
}

.start-screen-mouseover:hover {
    filter: brightness(120%);
}

.impressum-link-container {
    font-size: 16px;
    margin-bottom: 10px;
}

.description, .impressum {
    z-index: 3;
    position: absolute;
    top: 110px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    overflow: auto;
    background-color: #796183;
    border-radius: 10px;
    color: white;
    scroll-behavior: smooth;
}

.description-text {
    margin: 0 30px 15px 30px;
    text-align: left;
    font-size: 16px;
}

.impressum {
    margin: 0 30px;
    padding: 0 30px 5px;
    text-align: left;
    font-size: 14px;
}

.impressum h3 {
    font-size: 20px;
    margin: 20px;
    text-align: center;
    letter-spacing: 0.5px;
}

.impressum a {
    text-decoration: none;
    color: white;
}

.description-crystal {
    height: 50px;
}

.description-apple {
    height: 30px;
}

.description-wraith {
    height: 70px;
}

.table-keys td:first-child {
    padding-right: 15px;
}

.description table {
    margin: 0 30px 30px 30px;
    padding: 0;
    border-spacing: 0;
    font-size: 16px;
    text-align: left;
}

.table-description td:first-child {
    text-align: center;
}

.table-description tr td {
    padding-bottom: 10px;
}

::-webkit-scrollbar {
    width: 7px;    
}
  
::-webkit-scrollbar-track {
    background: #F3AA6E;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #E08546;
    border-radius: 10px;
}

.infobox-bg, .banner-bg, .restart-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;    
}

.banner-bg, .restart-bg {
    top: 0;
    align-items: center;
    background-color: rgba(0,0,0,0.4);
}

.infobox-bg {
    top: 100px;
}

.infobox {
    background-color: #796183;
    height: 480px;
    width: 480px;
    overflow: auto;
    scroll-behavior: smooth;
    border-radius: 5px;
    color: white;
}

.restart-content {
    background-color: #796183;
    border-radius: 10px;
}

.infobox table {
    margin: 0 30px 30px 30px;
    padding: 0;
    border-spacing: 0;
    font-size: 16px;
    text-align: left;
}

.banner-img {
    height: 150px;
}

.restart-img-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.restart-img {
    height: 50px;
}

.restart-result {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 30px 0 30px;
    gap: 20px;
}

.restart-result-apple {
    height: 25px;    
}

.restart-result-wraith {
    height: 30px;    
}

.game-container {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.mobile-bar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 3px;
    margin-top: 200px;
}

.mobile-bar img {
    height: 50px;
    width: 50px;
}

@media only screen and (max-width: 720px) {

    canvas {
        max-width: 80%;
    }

}

@media only screen and (max-width: 550px) {

    h2 {        
        font-size: 34px;
        margin: 25px;
    }

    .start-screen-bg {
        background-image: unset;
    }
    
    .start-screen-content {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        font-size: 22px;
        border-radius: unset;
    }

    .choices-container {
        gap: 25px;
        margin: 30px 40px 25px 40px;
    }

    .start-screen-image {
        height: 125px;
    }
    
    .description {
        top: 80px;
    }

}

@media only screen and (max-height: 620px) {

    h1 {
        display: none;
    }

}

@media only screen and (max-height: 480px) {

    canvas {
        max-height: 100vh;
    }

}

@media only screen and (max-height: 400px) {

    .start-screen-bg {
        background-image: unset;
    }
    
    .start-screen-content {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        font-size: 18px;
        border-radius: 0;
    }
    
    .choices-container {
        gap: 50px;
        margin: 0 0 20px;
    }
    
    .start-screen-image {
        height: 120px;
    }

    .impressum-link-container {
        margin-bottom: 5;
    }

}

@media only screen and (orientation: portrait) {

    .orientation-note-bg {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #796183;
        color: white;
        z-index: 5;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .orientation-note {
        text-align: center;
        font-size: 24px;
        margin: 30px;
    }

    #fullscreen {
        display: none;
    }

}

@media only screen and (orientation: landscape) {

    .orientation-note-bg {
        display: none;
    }

}