/*Website Set-Up*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Lato', 'Arial', sans-serif;
}

html {
    background-color: floralwhite;
}

/*Top Bar Navigation and Logo*/
nav {
    text-decoration: none;
    background: #29741d;
    top: 0;
    width: 100vw;
    padding: 10px 0;
    text-align: center;
    font-size: 18px;
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.navbar a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 10px;
}

.navbar a:hover {
    background: floralwhite;
    color: #073200;
    border-radius: 3px;
}
header img {
    height: 100px;
    width: auto;
    justify-self: start;
    margin-left: 20px;
    padding: 0;
}

nav ul li {
  flex: auto;
  list-style-type: none;
}

.header {
    text-align: center;
    width: 100%;
    height: 50vh;
    min-height: 350px;
    background-image: url(assets/CSS50A_headerimage.png);
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/*Header Banner*/
.header h1{
    font-weight: 800;
    font-size: 84px;
    color: #073200;
    margin-bottom: 0;
}

.header p{
    font-size: 36px;
    color: #073200;
    margin-top: 5px;
}

/*Main*/
main {
    display: flex;
    flex-wrap: wrap;
    padding-top: 20px;
    padding-bottom: 20px;
  }

main p {
    font-size: 14px;
}

.article-specs {
    flex: 33%;
    padding: 10px 0;
    width: 50%;
}

article figure {
    text-align-last: center;
}
article h2 {
    text-align: center;
    padding: 10px 0 5px 0;
}

.article-text {
    text-align: center;
    font-size: 1rem;
    line-height: 1.2rem;
    padding: 10px;
}

/* Small devices (tablets, 768px and up) */
@media screen and (min-width: 768px) {
    body {
        display: flex;
        flex-direction: column;
        max-width: 98%;
        margin: auto;
    }
    
    main {
        display: flex;
        flex-wrap: wrap;
    }
    
    nav, header {
        order: -1;
    }
    
    nav ul {
        flex-direction: row;
    }
    
    article {
        flex: 50%;
    }

    body, p, a, h4 {
        font-size: 15px;
    }
}

/* Medium devices (desktops, 992px and up) */
@media screen and (min-width: 992px) {
    body {   
        display: flex;
        flex-direction: column;
        max-width: 75rem;
    }
    
    main {
        display: flex;
        flex-wrap: wrap;
    }
    
    nav, header {
        order: -1;
    }
    
    nav {
        flex-direction: row;
        top: 0;
        width: auto;
        padding: 10px 0;
        text-align: center;
        font-size: 18px;
    }
    
    .navbar ul {
        flex-direction: row;
    }
    
    nav a {
        flex: auto;
    }
    
    article {
        flex: 50%;
    }
    
    aside, section {
        flex: 100%;
    }
    aside {
        
    }
}

/* Large devices (large desktops, 1200px and up)*/
@media screen and (min-width: 1024px) {
  article {
    flex: 33%;
  }

  body, a {
    font-size: 16px;
  }
}

/* Footer*/
footer {
    text-align: center;
    padding: 1em;
    background-color: #29741d;
    color: white;
    clear: both;
}