header, footer {
    font-family: 'Open Sans', sans-serif;;
    text-align: center;
    background-color: #e0e0e0;
    padding: 5px;
}
footer {
    border-top: black 2px solid;
}
header {

    border-bottom: black solid 2px;
    width: 80%;
    margin: auto;
}
header > h1 {
    text-align: left;
    padding-left: 20px;
    font-size: 3rem;
    font-family: 'Roboto', sans-serif;
    text-shadow: 2px 2px #ff0000;
}

body{
    padding-top: 0;
    margin: 0px;
    width: 100%;
    background-color: #e0e0e0 ;
    font-family: 'Open Sans', sans-serif;
    height: 80vh;
}
#innhold {
    width: 80%;



    display: flex;
}

#sethigh {
    width: 35%;
    margin: 20px;
    height: 100%;
    margin-left: 0px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}
#highscore {
    height: 50%;
 
 }
#settings{
   height: 50%;

}


.grid-container {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    grid-template-rows: 1fr;
    /* grid-template-areas: "op1 op2 op3"; */

}
#playcanvas {
    background-color:transparent;
    border: grey solid 3px;
    padding: 0px;
    width: 90%;
    margin: 0 4%;
}
table, th, td {
    border: black solid 3px;
    border-collapse: collapse;

}
table {
    width: 80%;
    text-align: center; 
    font-size: x-large;
}
form {
    margin-top: 20px;
    visibility: hidden;
}

#lol {
    top: 20vh;
    left: -100vw;
    height: 121vh;
    width: 98.7vw;
    background-color: #044B7F;
    z-index: 10000;
    position: absolute;

}

#lol:hover {
    left: -90vw;
    transition: left 2s;
}

#sizealt, #numalt {
    position: absolute;
    z-index: 1000;
    min-width: 100%;
    display: none;
    background-color: blanchedalmond;
    box-shadow: 0vh 3vh 3vh 0vh rgba(0, 0, 0, 0.5); 
    border-radius: 10px;
    margin-top: 1vh;
    
}

#sizealt > div, #numalt > div {
    text-align:center;
    
}
#sizealt > div:hover, #numalt > div:hover, #sizealt > div:focus, #numalt > div:focus {
    background-color: lightgrey;
    
}
#boardsize {
    display: block;
    border: black solid 1.5px;
    background-color: #EFEFEF ;
    padding: 1vh;
    border-radius: 10px;
    margin: 1vh 0;
    box-shadow: 0vh 3vh 3vh 0vh rgba(0, 0, 0, 0.5); 

    
}
#choosecolornum {

    border: black solid 1.5px;
    background-color: #efefef;
    padding: 1vh;
    display:block;
    border-radius: 10px;
    margin: 1vh 0;
    box-shadow: 0vh 3vh 3vh 0vh rgba(0, 0, 0, 0.5); 

}
span {
    display: inline-flex;
    vertical-align: middle;
}
#newmap {
    border: black solid 1.5px;
    background-color: #efefef;
    padding: 1vh;
    display:block;
 /*    width: 1vw; */
    margin-top: 1.5vh;
    border-radius: 10px;
    width: calc(211% + 2vh + 6px);
    text-align: center;
    box-shadow: 0vh 3vh 3vh 0vh rgba(0, 0, 0, 0.5); 
}

#boardsize:hover, #choosecolornum:hover, #newmap:hover, #newmap:focus, #boardsize:focus, #choosecolornum:focus {
    background-color: lightblue;
    box-shadow: 0vh 3vh 5vh 2vh rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.3  s;
    
}
#color, #size, #boarddiv {
    position: relative;
    display: inline-block;  

}
.show {
    display: block !important;
    font-size: 20px;

}
#restart, button[type=submit] {
    border: black solid 1.5px;
    background-color: #efefef;
    padding: 1vh;
    display:block;
 /*    width: 1vw; */
    margin-top: 1.5vh;
    border-radius: 10px;
    width: 50%;
    text-align: center;
}

@media screen and (max-width: 800px) {
    #innhold {
        flex-direction: column;
        width: 100%;
        margin: 0;
    }
    .game {

        width:  100%;
        margin: 1vw;
        margin-right: 0px;
    
    
    }
}
@media screen and (min-width: 800px) {
    #innhold {
        flex-direction: row;
        width: 80%;
        margin: auto;   
    }
    .game {

        width:  65%;
        margin: 20px;
        margin-right: 0px;
    
    
    }
}
#restart {
    visibility: hidden;
}

.how2 {
    /* background-color: grey; */
    height: 80vh;
    width: 100%;
    margin: auto;
    font-family: 'Open Sans', sans-serif;;
    
}