/* Global Styles */

* {
    box-sizing: border-box;
}
html {
    font-size: 100%;
}
body {
    max-width: 1080px; 
    margin: 0 auto;
}

/*Each item in the grid contains words */

.item {
    /* Center the contents of the grid items. Make eah grid item a Flex Container */
    display: flex;
    /*Horizontal and vertical centering */
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    font-family: sans-serif;
}

.container {
    display: grid;
    grid-template-areas: 1fr;
    grid-template-areas: 
        "header"
        "top_nav"
        "main"
        "bottom_nav"
        "footer";
    grid-gap: .3rem;
}
.header {
     background-color: aqua;
    max-width: 95%;
    margin: 0 auto;
    border: 1px solid black;
    box-shadow: 10px 10px 5px #888888;
    grid-area: top;
    grid-area: header;
}
.top_nav {
    grid-area: top_nav;
    font-size: .75rem;
}

.main {
    display: block;
    text-align: center;
    background-color:beige;
    padding-left: 2rem;
    padding-right: 2rem;
    grid-area: main;
}
.main ul {
    list-style: none;
}
.bottom_nav {
    grid-area: bottom_nav;
    font-size: .75rem;
}
.footer {
    background-color: lightgray;
    padding-left: 2rem;
    padding-right: 2rem;
    text-align: center;
    grid-area: footer;
}

@media screen and (max-width:480px) {
    html {
        font-size: .75rem;
    }
    .header h1 {
        font-size: .75rem;
    }
}

@media screen and (min-width:500px) and (max-width:780px) {
    html {
        font-size: .75rem;
    }
}