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

* {
    box-sizing: border-box;
    margin: 0;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: black;
}

body {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    background-image: url('img/body_background.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    min-height: 100vh;
    font-family: 'Rye-Regular';
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.text_box {
    width: 60%;
    background-color: rgba(255, 255, 255, 0.5);
}

.back_btn {
    position: absolute;
    top: -10px;
    height: 80px;
    left: 0;
}

h1 {
    font-size: 50px;
    letter-spacing: 5px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

canvas {
    background-color: black;
    position: relative;
    display: block;
}

.game_over {
    position: absolute;
    z-index: 2;
    margin: auto !important;
    width: 700px;
    height: 380px;
}

.home_screen {
    position: relative;
    display: block;
    height: 480px;
    width: 720px;
}

.info_btn {
    position: absolute;
    top: 10px;
}

img {
    position: absolute;
    height: 100%;
    width: 100%;
}

.settings {
    top: 10px;
    height: 60px;
    justify-content: end;
}

#mobile-btns {
    display: none;
}

button img {
    height: 55px;
    width: 70px;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    user-select: none;
}

button {
    width: 80px;
    background-color: transparent;
}

.buttons {
    width: 70px;
    height: 66px
}

.mobile {
    height: 50px;
    /* display: none; */
}

.buttons:hover {
    cursor: pointer;
}

button:hover {
    cursor: pointer;
}

.no_border {
    border: none;
}

.rotate_180 {
    rotate: 180deg;
}

.d_none {
    display: none !important;
}

.width_720 {
    width: 720px;
}

.d_flex {
    display: flex;
}

.justify_center {
    justify-content: center;
}

.space_between {
    justify-content: space-between;
}

.space_around {
    justify-content: space-around;
}

.position_absolute {
    position: absolute;
}

.items_center {
    align-items: center;
}

.jump_btn {
    position: absolute;
    bottom: 0px;
    right: 0px;
}

.bottle_btn {
    position: absolute;
    bottom: 0px;
    right: 78px;
}

.run_right_btn {
    position: absolute;
    bottom: 0px;
    left: 78px;
}

.run_left_btn {
    position: absolute;
    bottom: 0px;
    left: 0px;
}

.play_btn {
    position: absolute;
    top: 0px;
    right: 0px;

}

.exit_or_restart_container {
    position: absolute;
    z-index: 3;
    top: 75%;
    margin: auto !important;
    width: 140px;
}

.exit_or_restart_buttons {
    width: 100%;
    display: flex;
    justify-content: center;
}

.restart_btn {
    display: flex;
    justify-content: center;
    align-items: center;
}

.exit_btn {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loud_btn {
    position: absolute;
    top: 0px;
    right: 78px;
}

.mute_btn {
    position: absolute;
    top: 0px;
    right: 78px;
}

.info_btn {
    position: absolute;
    top: 0px;
    right: calc(78px * 2);
}

.rotate_overlay {
    height: 100%;
    display: none;
}

footer {
    position: absolute;
    bottom: 10px;
}

@media (max-width: 1369px) {
  #mobile-btns {
        display: unset;
    }
}

@media only screen and (max-height: 480px) {
    canvas {
        height: 100vh;
        width: 100%;
    }
    
    .home_screen {
        height: 100vh;
        width: 100%;
    }

    .fulls_btn {
        display: none;
    }

    h1 {
        display: none;
    }

    .exit_or_restart_container {
        top: 92vh;
    }

    .game_over {
        width: 100%;
        height: 100%;
    }

}

@media only screen and (max-width: 720px) {
    canvas {
        width: 100%;
    }

    .home_screen {
        width: 100%;
    }
}

@media (min-width : 319px) and (max-width: 480px) {
    canvas {
        display: none;
    }

    .home_screen {
        display: none;
    }

    #win {
        display: none;
    }

    #game-over {
        display: none;
    }

    h1 {
        display: none;
    }

    .rotate_overlay {
        display: flex;
    }

}