/* 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;
    flex-direction: column;
    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: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-areas: 
        "col1 col2 col3 col4";
    grid-gap: 20px;
    text-align: center;
    padding: 2rem;
    grid-area: main;
}
.main img{
   margin: 10px;
   
}
.gif1 {
    grid-area: col1;
}

.gif2 {
    grid-area: col2;
}
.gif2 img {
    margin-bottom: 40px;
}

gif3 {
    grid-area: col3;
}
.gif3 img {
    margin-bottom: 80px;
}
.gif4 {
    grid-area: col4;
}
.gif4 img {
    margin-bottom: 100px;
}
.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:580px) {
    html {
        font-size: .75rem;
    }
    .header h1 {
        font-size: .75rem;
    }
    .main {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "col1"
            "col2"
            "col3"
            "col4";
    }
}

@media screen and (min-width:500px) and (max-width:900px) {
    html {
        font-size: .75rem;
    }
    .main {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "col1 col2"
            "col3 col4";
    }
}