/* Main body elements */
body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}
header {
    text-align: center;
    min-height: 50px;
    background-color: hsl(210, 13%, 90%);
}
footer {
    min-height: 50px;
    background-color: hsl(210, 13%, 90%);
    text-align: center;
    font-size: 1em;
    padding: 1em 0;
}

/* Nav-Bar code */
.navbar {
    list-style-type: none;
    background-color: hsl(210, 13%, 50%);
    display: block;
    padding-top: 2px;
    padding-bottom: 2px;
    margin: 0;
    margin-bottom: 20px;
}
.navbar li {
    display: inline-block;
    padding: 5px;
    border: 2px solid black;
    width: 100px;
    height: 25px;
    text-align: center;
    line-height: 25px;
    margin: 0;
    font-size: 1em;
    transition: background-color 0.2s;
}
.navbar li a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #222;
}
.navbar li:hover,
.navbar li:focus-within {
    background-color: hsl(210, 13%, 80%);
}

/* Sizing and button positions adjusted for Mobile */
@media (max-width: 700px) {
    .navbar {
        flex-direction: column;
        display: flex;
        justify-content: center;
    }
    .navbar li {
        width: 90vw;
        max-width: 350px;
        margin: 4px auto;
        font-size: 1.1em;
        height: 32px;
        line-height: 32px;
    }
    header h1 {
        font-size: 1.5em;
    }
}