* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    background-color: #4b4b4b;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
}

body > main {
    width: 80vh;
    max-width: 95vw;
    background-color: black;
    border: 1px solid white;
}

footer {
    border-top: 1px solid white;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 1.5em;
    /* background-color: rgba(13, 17, 75, 0.788); */
    font-size: 0.9em;
}

footer .title {
    font-size: 1.8em;
}

footer h1 {
    margin-top: -10px;
}

footer button, footer input {
    padding: 5px;
    margin-bottom: 5px;
    font-size: 0.8em;
}

footer button {
    /* border: 1px solid white;
    background-color: black; */
    color: black;
    cursor: pointer;
}

footer input {
    border: none;
    width: 100%;
}

footer .inputs {
    width: 100%;
}

footer ul {
    list-style: none;
    padding-left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

footer ul button {
    width: 100%;
    border: none;
}

#grid {
    display: grid;
    height: 100%;
    width: 100%;
    max-height: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    justify-content: center;
    align-content: center;
}

#grid > .cell {
    width: 1fr;
    height: 1fr;
}

#grid > .wall {
    background-color: black;
}

#grid > .path, #grid > .unknown {
    background-color: white
}

#grid > .start, #grid > .end {
    background-color: red;
}

#grid > .player {
    background-color: blue;
}

@media (min-width: 768px) {
    footer {
        flex-direction: row;
        justify-content: space-between;
    }
    footer .inputs, footer ul {
        width: auto;
    }
}
