/* style for mod7 assignment 1b */
* {
    margin: 0; padding: 0; border: 0; box-sizing: border-box;
}


body {
    background-color: #222;
    color: #EEE;
}


nav {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    padding-top: 14px;
    gap: 20px;
    margin-left: 8px;
    margin-right: 8px;
}

nav  > a {
    background-color: rgb(239, 169, 108);
    padding: 14px 16px;
    flex: 1 0 auto;
    text-align: center;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
    color:black;
    font-size: 14pt;
}

h1 {
    position: absolute; top: 160px; right: 20px;
    font-size: 14pt;
    font-weight: normal;
    color: #89a;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
}

section {
    min-height: 600px;
    width: 1000px;
    background-color: #222;
    padding-top: 20px;
    margin: 8px auto;
    
}

section h2, section h2 + p {
    text-align: center;
    color: #FFF;
}

section h2 {
    font-size: 20pt;
    padding-bottom: 8px;
}

section p {
  font-size: 14pt;  
}

.content_frame {
    
    min-height: 450px;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    padding: 12px;
    margin-top: 40px;
}

.content_frame > div {
    
    flex: 0 0 45%;
}

/* section:nth-child(odd) { */
    /* all of the odd sections */
    /* background-color: pink; */



section:nth-child(odd) .hero {
    background-image: url(../images/foodplate.jpg);
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center; 
    padding-top: 60px;
    border: 0;
    position: relative;
    right: -10%;

}

section:nth-child(odd) .text {
   background-color: rgb(239, 169, 108);
}

/* section:nth-child(even) { */
    /* all of the even sections */
   
section:nth-child(even) .hero {
    
    background-image: url(../images/foodplate.jpg);
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
    border: 0;
    position: relative;
    left: -10%;
    order: 2;

}

section:nth-child(even) .text {
    background-color: rgb(239, 169, 108);
}



@media screen and (max-width: 740px) {

    .content_frame > div {
        flex: 0 0 96%;
        order: 1; 
  } 


    section:nth-child(odd) .hero {
        right: 0;
        order: 1;
        margin-bottom: 20px;
}

    section:nth-child(even) .hero {
        left: 0;
        order: 1;
        margin-bottom: 20px;
    } 

    section {
        min-height: 500px;
        width: 100%;
        background-color: #222;
        padding-top: 20px;
        margin: 8px;
    }

    nav > a {
        flex: 0 0 40%;
    }

    h1 {
        display: none;
    }

    nav span {
        display: none;
    }
       
}



