html{
    overflow: hidden;
}
body{
    margin: 0px;
    background-color: white;
    width: 100vw;
    height: 100vh;

    background-image: url('img/sm_wallpaper.jpg');
    background-size: cover;
    background-position: center;
}

#game_screen{
    border: solid 5px black;
    max-width: 80%;
    max-height: 90%;
    
    z-index: 1;
    
    position: absolute;
        top: 50%;
        left: 50%;
    transform: translate(-50%, -50%); 
}

#pause_menu, #game_over_menu, #win_menu{
    /* to center */
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);

    font-size: 2.5em;
    font-weight: bold;
    background-color: rgba(128, 128, 128, 0.791);
    padding: 1.1em;
    width: 90%;
    text-align: center;
    display: none;
    z-index: 10;
}

#game_over_menu{
    background-color: rgba(185, 0, 0, 0.876);
    color: white;
}

#win_menu{
    background-color: rgba(0, 126, 185, 0.876);
    color: white;
    
}

.restart_button{
    font-size: 0.5em;
    border: 2px solid black;
    border-radius: 25px;
}

/* -----------------  menu a scomparsa a destra  ---------------------*/
#menu{
    display: flex;
    position: absolute;
    height: 100%;
    z-index: 11;
    transition: all 0.5s ease;
    top: 0;
    
}
.menu_open{
    left: calc(100% - 2.5vw - 25vw);
}
.menu_closed{
    left: calc(100% - 2.5vw);
}
#visible_part{
    width: 2.5vw;
    height: 100%;
    background-color: black;
    cursor: grab;
}
#hidden_part{
    width: 25vw; 
    height: 100%;
    background-color: white;
    padding-left: 2em; 
    padding-right: 2em; 
    box-sizing: border-box;
    text-align: center
}
form{
    text-align: center;
}
label{
    width: 6em;
    margin-right: 1em;
    /*text-align: right;*/
    text-align: left;
    display: inline-block;
    margin-top: 1em;
}
input{
    height: 2em;
    margin-top: 1em;
    border-radius: 5px;
    width: 15em;
    max-width: 100%;
    border-width: 1px;
}
button{
    background-color: white;
    border: 1px solid grey;
    border-radius: 5px;
    padding: 0.5em 1em;
}
button:hover{
    background-color: rgb(236, 236, 236);
}
button:focus{
    background-color: lightgray;
}
.error_message{
    color: red;
}
#rank{
    border: 1px solid black;
    margin-top: 1em;
    margin-left:auto;
    margin-right: auto;
    border-collapse: collapse;
}
#rank td{
    border: 1px solid black;
}

