@font-face {
    font-family: 'Zabars';
    src: url('fonts/Zabars.ttf');
}

html {
    background-image: url('img/background-image.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position-x: center;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: 'Zabars', Arial, Helvetica, sans-serif;
    margin: 0;
}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 32px;
    font-weight: lighter;
    margin-block-start: 0.4em;
    margin-block-end: 0.4em;
}

p{
    font-size: 12px;
    padding: 10px;
    font-family: sans-serif;
    display: flex;
    margin-block-end: 0em;
}

#canvas {
    display: block;
}

.startscreen,
.game-over-modal,
.you-win-modal,
.change-device-orientation,
.options-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 720px;
    height: 480px;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: end;
}

.mobile-buttons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 720px;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 400px;
}

.left-mobile-buttons, .right-mobile-buttons {
    display: flex;
    gap: 10px;
}

.mobile-buttons img {
    width: 32px;
    height: 32px;
}

.mobile-buttons button {
    height: 48px;
    width: 48px;
    border-radius: 50%;
}

.startscreen {
    background-image: url('img/9_intro_outro_screens/start/startscreen_2.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.game-over-modal {
    background-image: url('img/You won, you lost/Game Over.png');
    background-size: 80% 80%;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}

#game-description p{
    font-size: 16px;
}

.options-modal {
    align-items: center;
    flex-direction: column;
    z-index: 2;
}

button {
    background-color: rgb(238, 166, 32);
    border-radius: 10px;
    padding: 8px;
    font-size: 32px;
    font-family: 'Zabars', Arial, Helvetica, sans-serif;
    &:hover {
        cursor: pointer;
        background-color: rgb(180, 120, 7);
    }
}

#restart-button {
    margin-bottom: 20px;
    z-index: 2;
}

.d-none {
    display: none;
}

.container {
    max-height: 480px;
    height: 100vh;
    position: relative;
    max-width: 720px;
    width: 100%;
}

.ingame-options {
    top: 0;
    position: absolute;
    z-index: 2;
    left: 300px;
}

.ingame-options button {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    margin-right: 10px;
    margin-top: 10px;
}

#options-button-overlay img, #audio-button img {
    background-color: rgb(238, 166, 32);
    padding: 10px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    &:hover {
        cursor: pointer;
        background-color: rgb(180, 120, 7);
    }
}

.control-description-modal {
    width: 400px;
    height: 80%;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
}

.control-keys {
    display: flex;
    align-items: center;
    width: 240px;
    justify-content: space-between;
}

#control-description img {
    height: 56px;
    width: 56px;
}

.imprint {
    font-family: sans-serif;
    font-size: 16px;
    overflow-y: scroll;
    justify-content: start;
}

.imprint a {
    font-family: sans-serif;
    font-size: 16px;
}

.change-device-orientation {
    background-color: unset;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.change-device-orientation h2 {
    font-family: sans-serif;
}

.change-device-orientation img {
    width: 48px;
    height: 48px;
}

/* Responsive */
@media only screen and (max-width: 1000px) {
    #canvas {
        width: 100%;
    }

    #title {
        display: none;
    }
}

@media only screen and (max-height: 600px) {
    #canvas, 
    .startscreen,
    .game-over-modal,
    .you-win-modal,
    .options-modal,
    .change-device-orientation,
    .mobile-buttons {
        height: 100vh;
    }

    #title {
        display: none;
    }
}