/* FONT */

@font-face {
    font-family: 'zabars';
    src: url('fonts/zabars.ttf') format('truetype');

}

/* MAIN CSS */

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'zabars', Arial, Helvetica, sans-serif;
    background-image: url('img/bg85.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: bottom;
    margin: 0;

}

canvas {
    background-color: black;
    display: block;
    border-radius: 30px;
    position: absolute;
    top: 0;
}

.fullscreen {
    width: 100vw !important;
    height: 100vh !important;
}

.content {
    margin-top: 220px;
    width: 720px;
    height: 480px;
    position: relative;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: center;
}

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

.endscreen {
    height: 100%;
    width: 100%;
    border-radius: 30px;
    position: absolute;
    /* top: 228px; */


}

.gameover-msg {
    font-size: 70px;
    position: absolute;
    top: 32px;
    width: 720px;
    display: flex;
    justify-content: center;

}

.start-btn-container {
    width: 100%;
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.start-btn {
    height: 50px;
    width: 100px;
    font-family: 'zabars';
    font-size: 30px;
    border-radius: 10px;
    border: none;
    background-color: rgb(255, 177, 31);
    cursor: pointer;
}

button:hover {
    background-color: rgb(246, 160, 0);
}

button img {
    height: 32px;
    width: 32px;
}

.menu-btn {
    height: 40px;
    width: 75px;
    font-size: 20px;
    margin: 8px;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 5;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 30px;
}

.turn-phone {
    display: none;
    width: 80%;
    border-radius: 30px;
    color: black;
    padding: 16px;
    font-size: 35px;
    height: 300px;
    margin-top: 50px;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.turn-phone img {
    height: 100px;
    width: 100px;

}

button {
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    background-color: rgb(255, 177, 31);
    border-radius: 25px;
    box-shadow: 0px 0px 6px 0px #6c6c6c;
    border: none;
    cursor: pointer;
    z-index: 100;
    transition: all .2s ease-in-out;
}

.play-btn{
    height: 50px;
    width: 0px;
    position: absolute;
    bottom: 3px;
    z-index: 2;
    padding: 27px;

}

#close-fullscreen-btn {
    position: absolute;
    top: 8px;
    left: 8px;
}

#restart-btn {
    position: absolute;
    bottom: 32px;
}

#menu-btn-container {
    display: flex;
    width: 100%;
    height: 50px;
    justify-content: flex-end;
    z-index: 2;
}

#controls {
    height: 60%;
    width: 50%;
    background-color: rgb(246, 160, 0);
    z-index: 10;
    border-radius: 30px;
    margin-top: 50px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#info {
    height: 80%;
    width: 80%;
    background-color: rgb(246, 160, 0);
    z-index: 10;
    border-radius: 30px;
    /* margin-top: 50px; */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#sounds {
    height: 50%;
    width: 50%;
    background-color: rgb(246, 160, 0);
    z-index: 10;
    border-radius: 30px;
    margin-top: 50px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.controls-content {
    height: 80%;
    width: 80%;
    margin-top: 12px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.controls-inner-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 24px;
}

.sounds-content {
    height: 80%;
    width: 80%;
    margin-top: 12px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;

}

.sounds-inner-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 24px;
}

ul {
    height: 70%;
    position: absolute;
    top: 10%;

}

ul li {
    padding: 17px;
}


/* HUD - MOBILE CONTROL KEYS */

#hud {
    position: absolute;
    bottom: -8px;
    width: 100%;
    display: none;
    justify-content: space-between;
}

.hud-left {
    /* width: 120px; */
    display: flex;
    justify-content: space-between;
}

.hud-right {
    /* width: 120px; */
    display: flex;
    justify-content: space-between;

}

#hud button {
    margin: 16px;
    border-radius: 100px;
    width: 45px;
    height: 45px;    
}

/* MOBILE CSS */

@media only screen and (max-width: 900px) {
    #fullscreen-btn {
        display: none;
    }
}

@media only screen and (max-width: 720px) {
    canvas {
        width: 100%;
        border-radius: 0;
        height: auto;
    }

    .content {
        width: 100%;
        height: unset;
        border-radius: 0;
        display: none;

    }

    .gameover-msg {
        width: 100%;
        font-size: 50px;
    }

    .endscreen {
        border-radius: 0;
        height: 100%;
    }

    .turn-phone {
        display: flex;
        flex-direction: column;
        align-items: center;

    }

   
    /* 
    .start-btn-container {
        width: 100%;

    } */
}
@media only screen and (max-height: 1024px) {
    .content {
        margin-top: 32px;
    }
    
    
}
@media only screen and (max-height: 900px) {
    #fullscreen-btn {
        display: none;
    }
}


@media only screen and (max-height: 550px) {
    .content {
        margin-top: 0;
    }
    #hud {
        display: flex;
    }
   
}

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

    .content {
        margin-top: 0;
        height: 100vh;
        width: 100vw;
        display: flex;
    }

    .turn-phone {
        display: none;
    }

    .overlay {
        border-radius: unset;
    }

    .endscreen {
        border-radius: unset;
    }
}