@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');
body{
    font-family: Georgia;
    height: 100vh;
    display: flex;
    flex-direction: column;
}
header{
    background-color: green;
    height: 60px;
    flex-shrink: 0;
}
header h1{
   font-family: "Lobster", sans-serif;
   font-size: 40px;
   color: yellow;
}   
nav{
    background-color: yellowgreen;
    height: 30px;
}
nav li{
    display: inline-block;
    list-style: none;
    height: 30px;
}
nav a{
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 10px 0 10px;
    color: blue;
}
#content{
    display: flex;
    flex: auto;
    flex-direction: row;
}
main{
    width: 70%;
    box-sizing: border-box;
    padding: 20px;
}
aside{
    width: 30%;
    box-sizing: border-box;
    padding: 30px;
    background-color: yellowgreen;
}
footer{
    background-color: green;
    color: yellow;
    font-size: 85%;
    flex-shrink: 0;
}
h1{
    color: blue;
    font-size: 140%;
    margin-bottom: 20px;
    font-weight: bold;
}
p{
    margin-bottom: 12px;
}
#menu-button{
    display: none;
}
pre{
    background-color: black;
    color: yellow;
    border-radius: 10px;
}
h2{
    color: blue;
    font-size: 120%;
    margin-bottom: 10px;
}

aside ul{
    font-size: 110%;
    padding: 10px;
    font-weight: 600;
}
ul li{
    padding-left: 20px;
    padding-bottom: 10px;
    font-size: small;
}

input[type=button]{
    padding: 10px;
    border-radius: 4px;
    border:2px solid yellow;
    background-color: green;
    color: yellow;
    font-weight: bold;
}

#caption{
    padding: 10px;
    font-weight: 500px;
}

@media all and (max-width:800px){
    header{
        height: 44px;
        padding-left: 5px;
    }
    #content{
        display: block;
    }
    main, aside{
        width: 100%;
    }
    #menu-button{
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        height: 44px;
        text-align: center;
        line-height: 44px;
        color: yellow;
    }
    nav{
        height: auto;
        display: none;
    }
    nav li{
        display: block;
    }
    nav.open{
        display: block;
    }
    pre{
        font-size:x-small;
    }
    #mainImg{
        width: 300px;
    }
    aside ul{
        font-size: auto;
    }
}

@media all and (max-width:400px){
    header h1{
        font-size: xx-large;
        padding-left: 5px;
    }
}

#grid-container {
    position: relative;
    width: 505px;
    height: 505px;
}

#grid {
    display: grid;
    grid-template: repeat(25, 20px) / repeat(25, 20px);
    gap: 1px;
    background: #999;
}

.cell { 
    background: #fff;
    border: #121212;
}

#player {
    position: absolute;
    width: 20px;
    height: 20px;
    background: red;
    top: 0;
    left: 0;
    z-index: 10;
    transition: top 0.2s, left 0.2s;
}