@media screen and (min-width: 700px) {
html {
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    background-color: #c5ccc5;
    background-image: url(background6.jpg);
    background-size: cover;
    background-repeat: repeat;
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto auto auto auto;
    align-items: center;
    justify-items: center;
    grid-template-areas: "header"
                         "nav"
                         "main"
                         "footer";
}
header {
    grid-area: header;
    background: url(header_background5.jpg) center no-repeat;  
    background-size: cover;
    align-self: stretch;
    justify-self: stretch;
}
nav {
    grid-area: nav;
    align-self: start;
    justify-self: stretch;
}
main {
    grid-area: main;
}
article {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-content: flex-start;
    flex-wrap: wrap;
    margin-left: 1%;
    margin-bottom: 1%;
}
section {
    width: 95%;
}
figcaption {
    text-align: center;
    margin-top: 5px;
} 
figure {
    float: right;

}
img {
    width: 500px;
    height: 300px;
    margin-left: 10px;
    box-shadow: 5px 5px black;
}
footer {
    grid-area: footer;
    align-self: flex-end;
    justify-self: stretch;
    margin-left: 10px;
    border-top: 2px solid #222931;
}
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #222931;

  }
  
  nav ul li {
    float: left;
}

@font-face {
    font-family: 'Xirod';
    src: url('fonts/Xirod-Regular.eot');
    src: url('fonts/Xirod-Regular.eot?#iefix') format('embedded-opentype'),
        url('fonts/Xirod-Regular.woff2') format('woff2'),
        url('fonts/Xirod-Regular.woff') format('woff'),
        url('fonts/Xirod-Regular.ttf') format('truetype'),
        url('fonts/Xirod-Regular.svg#Xirod-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
  nav ul li a {
    font-family: Xirod;
    display: block;
    color:  rgb(78, 241, 173);
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 15px;

  }
  nav ul li a:visited {
    color: rgb(245, 143, 245) ;
  }
  
  
  nav ul li a:hover {
    background-color: rgb(189, 51, 27);
  }
  @font-face {
    font-family: 'Aspergit';
    src: url('fonts/Aspergit.eot');
    src: url('fonts/Aspergit.eot') format('embedded-opentype'),
        url('fonts/Aspergit.woff2') format('woff2'),
        url('fonts/Aspergit.woff') format('woff'),
        url('fonts/Aspergit.ttf') format('truetype'),
        url('fonts/Aspergit.svg#Aspergit') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


h1 {
    font-family: Aspergit;
    text-align: center;
    color: white;
    margin-top: 4em;
}



#form {
    width: 100%;
    margin-left: 1%;
}


input[type=submit] {
    width: 30%;
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
  }


  input, textarea {
    width: 30%;
    display: block;
    box-sizing: border-box;

  }
  #html5-vid {
      float: right;
      box-shadow: 5px 5px black;
  }
  h2 {
      font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  }
  p {
      font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  }
}


@media only screen and (max-width: 700px) {
    html {
        width: 100%;
        overflow-x: hidden;
    }
    
    body {
        margin: 0;
        background-color: #c5ccc5;
        background-image: url(background6.jpg);
        background-size: cover;
        background-repeat: repeat;
        display: grid;
        grid-template-columns: auto;
        grid-template-rows: auto auto auto auto;
        align-items: center;
        justify-items: center;
        grid-template-areas: "header"
                             "nav"
                             "main"
                             "footer";
    }
    header {
        grid-area: header;
        background: url(header_background5.jpg) center no-repeat;  
        background-size: cover;
        align-self: stretch;
        justify-self: stretch;
    }
    nav {
        grid-area: nav;
        align-self: start;
        justify-self: stretch;
        top: 0;
    }
    main {
        grid-area: main;
    }
    article {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-content: flex-start;
        flex-wrap: wrap;
        margin-left: 1%;
        margin-bottom: 1%;
    }
    section {
        width: 95%;
    }
    figcaption {
        text-align: center;
    } 
    figure {
        float: right;
    
    }
    img {
        width: 300px;
        height: 200px;
        margin-left: 10px;
        box-shadow: 5px 5px black;
    }
    footer {
        grid-area: footer;
        align-self: flex-end;
        justify-self: stretch;
        margin-left: 10px;
        border-top: 2px solid #222931;
    }
    nav ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
        overflow: hidden;
        background-color: #222931;
    
    }
      
      nav ul li {
        float: left;
    }
    
    @font-face {
        font-family: 'Xirod';
        src: url('fonts/Xirod-Regular.eot');
        src: url('fonts/Xirod-Regular.eot?#iefix') format('embedded-opentype'),
            url('fonts/Xirod-Regular.woff2') format('woff2'),
            url('fonts/Xirod-Regular.woff') format('woff'),
            url('fonts/Xirod-Regular.ttf') format('truetype'),
            url('fonts/Xirod-Regular.svg#Xirod-Regular') format('svg');
        font-weight: normal;
        font-style: normal;
        font-display: swap;
    }
      nav ul li a {
        font-family: Xirod;
        display: block;
        color:  rgb(78, 241, 173);
        text-align: center;
        padding: 14px 16px;
        text-decoration: none;
        font-size: 15px;
    
    }
      nav ul li a:visited {
        color: rgb(245, 143, 245) ;
    }
    @font-face {
        font-family: 'Aspergit';
        src: url('fonts/Aspergit.eot');
        src: url('fonts/Aspergit.eot') format('embedded-opentype'),
            url('fonts/Aspergit.woff2') format('woff2'),
            url('fonts/Aspergit.woff') format('woff'),
            url('fonts/Aspergit.ttf') format('truetype'),
            url('fonts/Aspergit.svg#Aspergit') format('svg');
        font-weight: normal;
        font-style: normal;
        font-display: swap;
    }
    
    
    h1 {
        font-family: Aspergit;
        text-align: center;
        color: white;
        margin-top: 4em;
    }
    
    
    
    #form {
        width: 100%;
        margin-left: 1%;
    }
    
    
    input[type=submit] {
        width: 30%;
        background-color: #4CAF50;
        color: white;
        padding: 14px 20px;
        margin: 8px 0;
    }
    
    
    input, textarea {
        width: 30%;
        display: block;
        box-sizing: border-box;
    
    }
    #html5-vid {
        box-shadow: 5px 5px black;
    }
    
}