@font-face {
    font-family: 'zabras';
    src: url('fonts/zabars.ttf') format('truetype');
}

body {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
}

body::after {
    content: "";
    background-image: url('img/5_background/canyon-7631482_1920.png');
    background-size: cover;
    background-position: contain;
    opacity: 0.7;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    z-index: -1;
}

canvas {
    display: block;
    border-radius: 4px;
}

p {
    font-size: 30px;
    font-family: 'zabras';
    margin-top: 16px;
    margin-bottom: 16px;
}

span {
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-size: 12px;
    z-index: 0;
}

.spaceBetween {
    justify-content: space-between;
}

.d-none {
    display: none;
}

.d-flex {
    display: flex;
}

.alignCenter {
    align-items: center;
}

.vis-hidden {
    opacity: 0;
}

.container {
    width: 720px;
    height: 480px;
    box-shadow: 0px 0px 8px 0px black;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

#startContainer img {
    width: 100%;
    height: 100%;
}

button {
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    background-color: #d9ff002f;
    border-radius: 4px;
    box-shadow: 0px 0px 2px 0px #000000f4;
    border: none;
    cursor: pointer;
    z-index: 100;
    transition: all 5ms ease-in-out;
}

button:hover {
    background-color: #e2ff04bf;
    transform: scale(1.1);
}

#startButton {
    height: 40px;
    width: 186px;
    font-family: 'zabras';
    font-size: 38px;
    cursor: pointer;
    background-color: #d9ff00cc;
    border: none;
    border-radius: 4px;
}

#startButton:hover {
    background-color: #e2ff04da;
    transform: scale(1.1);
}

.startButtonLine {
    position: absolute;
    top: 12px;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menuButtonLine {
    position: absolute;
    bottom: 0px;
    width: calc(100% - 64px);
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 32px;
    padding-right: 32px;
}

.menuButton {
    height: 38px;
    width: 64px;
    font-size: 16px;
    margin: 4px;
}

.gameMenuButtonLine {
    position: absolute;
    top: 0;
    padding: unset;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

#closeButton {
    font-family: 'zabras';
    background-color: #ff8012;
    height: 30px;
    width: 80px;
    font-size: 26px;
}

.hud {
    position: absolute;
    bottom: 0px;
    width: 100%;
    height: 60px;
    justify-content: space-between;
    align-items: center;
}

#hud button {
    margin: 16px;
    border-radius: 100px;
    width: 45px;
    height: 45px;
}

#startContainer {
    background-image: url('img/9_intro_outro_screens/start/startscreen_1.png');
    background-size: 100% 100%;
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.fullscreen {
    border-radius: unset;
}

.canvasFullscreen {
    height: 100%;
    width: 100%;
}

.throw {
    transform: rotate(40deg);
}

.background {
    height: 100%;
    width: 100%;
    position: absolute;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all .4s ease-in-out;
}

.menu {
    display: block;
    background-color: #e2ff04da;
    padding: 16px;
    border-radius: 4px;
    box-shadow: 0px 0px 8px 0px black;
    transition: all .4s ease-in-out;
}

.closeMenu {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
}

.menu p {
    font-size: 30px;
}

#settings {
    height: auto;
    width: 250px;
}

#control {
    height: auto;
    width: 250px;
}

.controlImage {
    width: 24px;
    height: 24px;
}

.controlImageTouch {
    width: 24px;
    height: 24px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    z-index: 100;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 2px;
    background-color: rgb(0, 230, 31);
    -webkit-transition: .4s;
    transition: .4s;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-transition: .4s;
    transition: .4s;
    background-color: rgb(255, 255, 255);
}

input:checked+.slider {
    background-color: #ff0000a9;
}

input:focus+.slider {
    box-shadow: 0 0 1px #041422;
}

input:checked+.slider:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

#rotateScreenOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-family: 'zabras';
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 24px;
    z-index: 999;
}

@media only screen and (max-width: 720px) {
    canvas {
        width: 100vw;
    }

    .container {
        width: 100%;
        height: auto;
    }

    #startButton {
        height: 50px;
        width: 100px;
        font-size: 20px;
    }

    #settingsButton {
        height: 35px;
        width: 75px;
    }

    #fullscreenButton {
        height: 35px;
        width: 75px;
    }

    #controlButton {
        height: 35px;
        width: 75px;
    }

    #restartGame {
        height: 35px;
        width: 75px;
    }

    #settingsButton img {
        width: 28px;
        height: 28px;
    }

    #fullscreenButton img {
        width: 24px;
        height: 24px;
    }

    .bottomButtonLine {
        bottom: 0;
    }

    .topButtonLine {
        top: 0px;
    }
}

@media only screen and (max-width: 600px) {
    .menu {
        padding: 8px;
    }

    .menu p {
        font-size: 14px;
    }

    #menuButton {
        display: none;
    }

    .closeMenu {
        margin: 0;
    }

    #hud img {
        width: 24px;
        height: 24px;
    }

    #hud button {
        width: 35px;
        height: 35px;
    }
}

@media only screen and (max-width: 480px) {
    p {
        margin-top: 8px;
        margin-bottom: 8px;
    }

    .gameMenuButtonLine {
        top: -12px;
    }
}

@media only screen and (max-width: 460px) {
    .bottomButtonLine {
        bottom: -8px;
    }
}

@media only screen and (max-width: 380px) {
    .menu p {
        font-size: 12px;
    }

    .controlImage {
        width: 20px;
        height: 20px;
    }
}

@media only screen and (max-width: 360px) {
    #startButton {
        height: 50px;
        width: 100px;
        font-size: 20px;
    }

    #settingsButton {
        height: 30px;
        width: 45px;
    }

    #fullscreenButton {
        height: 30px;
        width: 45px;
    }

    #controlButton {
        height: 30px;
        width: 45px;
    }

    #restartGame {
        height: 30px;
        width: 45px;
    }

    #settingsButton img {
        width: 24px;
        height: 24px;
    }

    #fullscreenButton img {
        width: 20px;
        height: 20px;
    }

    #controlButton img {
        width: 28px;
        height: 28px;
    }

    .bottomButtonLine {
        bottom: -12px;
    }

    .topButtonLine {
        top: -8px;
    }
}

@media only screen and (max-height: 480px) {
    canvas {
        height: 100vh;
    }

    .container {
        height: 100vh;
        width: auto;
    }

    .menu {
        padding: 8px;
    }

    .menu p {
        font-size: 14px;
    }

    .controlImage {
        width: 20px;
        height: 20px;
    }
}

@media only screen and (max-height: 450px) {
    .topButtonLine {
        top: 0px;
    }
}

@media only screen and (max-width: 430px) {
    #rotateScreenOverlay {
        display: flex;
    }
}

@media only screen and (max-height: 400px) {
    #startButton {
        height: 50px;
        width: 100px;
        font-size: 20px;
    }

    #settingsButton {
        height: 20px;
        width: 50px;
    }

    #fullscreenButton {
        height: 35px;
        width: 75px;
    }

    #controlButton {
        height: 35px;
        width: 75px;
    }

    #restartGame {
        height: 35px;
        width: 75px;
    }

    #settingsButton img {
        width: 28px;
        height: 28px;
    }

    #fullscreenButton img {
        width: 24px;
        height: 24px;
    }

    .bottomButtonLine {
        bottom: -8px;
    }
}

@media only screen and (max-height: 380px) {
    #menuButton {
        display: none;
    }

    .closeMenu {
        margin: 0;
    }

    #hud img {
        width: 24px;
        height: 24px;
    }

    #hud button {
        width: 35px;
        height: 35px;
    }

    .gameMenuButtonLine {
        top: -12px;
    }
}

@media only screen and (max-height: 320px) {
    p {
        margin-top: 8px;
        margin-bottom: 8px;
    }
}

@media (pointer: coarse) {
    .controlImageTouch {
        display: block;
    }
}

@media not (pointer: coarse) {
    .controlImage {
        display: block;
    }

    .hud {
        display: none;
    }
}