body {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    min-height: 100vh;
    background-position: center;
    background-size: cover;
    font-size: 54px;
    font-family: "Rye-Regular", Arial, Helvetica, sans-serif;
    letter-spacing: 10px;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
    height: 100vh;
}

.bg {
    background-image: url("img/fs-bg.png");
}

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

h1 {
    font-size: 64px;
    letter-spacing: 5px;
    color: rgb(90, 6, 6);
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}

h3 {
    font-size: 10px;
}

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

.control {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.infoControl {
    position: absolute;
    max-width: 720px;
    width: 100%;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 7;
}

.openControl {
    display: flex;
    font-family: Helvetica, Arial, sans-serif;
    color: rgb(90, 6, 6);
    padding: 30px;
    font-size: 25px;
    box-sizing: border-box;
    margin: 50px;
    letter-spacing: normal;
    text-shadow: none;
    background-color: #ec840c;
    border-radius: 20px;
}

.d-none {
    display: none !important;
}

.main-game {
    position: relative;
}

#main-buttons {
    position: absolute;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    z-index: 5;
    width: 100%;
    padding-top: 25px;
}

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

#keys img {
    height: 80px;
    width: 100px;
}

.close img {
    height: 50px;
    opacity: 1;
}

.close img:hover {
    opacity: 0.5;
}

.colloumn {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

button {
    background-color: #f7814a;
    color: rgb(255, 255, 255);
    border: 1px solid black;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    align-items: center;
    font-size: 30px;
    cursor: pointer;
    font-family: "Rye-Regular", Arial, Helvetica, sans-serif;
}

button:hover {
    background-color: #fc996c;
    cursor: pointer;
}

.start-screen {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
}

.start-screen img {
    position: absolute;
    max-width: 720px;
    width: 100%;
    top: 0;
    height: 100%;
}

.end-screen {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
}

.end-screen img {
    position: absolute;
    max-width: 100%;
    width: 100%;
    top: 0;
    height: 100%;
}

#stats {
    z-index: 8;
    color: rgb(90, 6, 6);
    margin-top: 310px;
}

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

#restart {
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 400px;
    color: rgb(90, 6, 6);
    position: absolute;
    bottom: -20px;
    right: 20px;
    left: 20px;
}

.ingameButtons {
    display: flex;
    position: absolute;
    top: 12px;
    right: 12px;
    gap: 20px;
}

.ingameBtn {
    color: white;
    border-radius: 20px;
    padding: 0px;
    cursor: pointer;

}

.ingameBtn img {
    height: 30px;
    padding: 5px;
}

.ingameBtnEnd {
    border-radius: 20px;
    cursor: pointer;
    padding: 10px;
    font-size: 32px;
    background-color: #f16e31;
}

.ingameBtnEnd2 {
    border-radius: 20px;
    cursor: pointer;
    padding: 10px;
    font-size: 32px;
    background-color: #f16e31;
    margin-top: 15px;
}

.ingameBtnEnd:hover {
    background-color: #f7814a;
}

#buttons {
    display: flex;
    gap: 15px;
}

#buttons button {
    color: rgb(90, 6, 6);
}

.ingameBtnEnd2:hover {
    background-color: #f7814a;
}

.ingame-btns-bottom {
    display: flex;
    position: absolute;
    bottom: 0;
    justify-content: space-between;
    width: 97%;
    margin-left: 12px;
    margin-bottom: 6px;
}

#buttons-for-mobile img {
    height: 30px;
    padding-left: 12px;
    padding-right: 12px;
}

#buttons-for-mobile {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 100px;
    display: none;
}

.walk {
    display: flex;
    gap: 20px;
}

.jump-throw{
    display: flex;
    gap: 20px;
}

.jump-throw button {
    width: 60px;
    height: 60px;
    border-radius: 100%;
}

#rotatePhone {
    display: flex;
    justify-content: center;
    display: none;
    height: 300px;
    text-align: center;
    color: rgb(90, 6, 6);
}

#rotatePhone img {
    height: 300px;
}

#rotatePhone p {
    margin-bottom: 20px;
}
/* ---- SMARTPHONES -------*/

#buttons-for-mobile {
    opacity: 70%;
}

@media (max-width: 500px) {
    #main-game {
        display: none;
    }

    #rotatePhone {
        display: block !important;
    }
}

@media (max-width: 710px) {
    canvas {
        width: 100%;
    }

    #buttons-for-mobile {
        display: flex;
        gap: 250px;
    }
}

@media only screen and (max-width: 550px) {
    #buttons-for-mobile img {
        height: 20px;
        padding-left: 6px;
        padding-right: 6px;
        padding-top: 5px;
        padding-bottom: 5px;
    }
}

@media only screen and (max-width: 430px) {
    #buttons-for-mobile img {
        height: 15px;
        padding-left: 4px;
        padding-right: 4px;
        padding-top: 0px;
        padding-bottom: 0px;
    }

    h1 {
        text-align: center;
    }

    h2 {
        text-align: center;
    }
}

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

    h1 {
        display: none;
    }

    #buttons-for-mobile {
        display: flex;
    }

    #loadScreenImage {
        display: none;
    }

    #loadScreen {
        display: none;
    }

    #loader {
        display: none;
    }
}

#loadScreen {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#loadScreenHeadSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 80px;
}

#loadScreenHeadSection h2 {
    color: rgb(234, 95, 0);
    margin-bottom: 0 !important;
    font-size: 52px;
}

#loadScreenHeadSection img {
    height: 250px;
    margin-bottom: 100px;
}
