body {
  background-color:antiquewhite;
  font-family:Arial, Helvetica, sans-serif;
  color: rgb(40, 38, 38);
  font-size: small;
}

h1 {
  margin-left: 10%;
  color:rgb(91, 84, 84);
  font-size: small;
}

h2 {
  margin-left: 0%;
  color:rgb(0, 0, 0);
  font-size: large;
  text-align: left;
}

h3 {
  margin-left: 0%;
  color:rgb(91, 84, 84);
  font-size: small;
  text-align: left;
}

h4 {
  color:rgb(91, 84, 84);
  font-size: small;
}

img {
  max-width: 100%;
}

main {
  margin-top: 2em;
  margin-left: 10%;
  margin-right: 10%;
}
  
#flex-container, #flex-container1, #flex-container2 {
  display:block;
  margin-top: 3%;
  margin-bottom: 3%;
  margin-left: 10%;
  margin-right: 10%;
  justify-content: center;
}

.box1a {
  width: 100%;
  /*this contains author photo */
  /* to put a limit on how big the images get */
  max-width: 350px;
  margin-right: 2em;
}

.box1 {
  width: 100%;
  /* to put a limit on how big the images get */
  max-width: 300px;
  margin-right: 2em;
}

.box2 {
  width: 100%;
  flex: 0 0 35em;
  max-width: 600px;
  line-height: 2em;
  text-align: justify;
  /* to put a limit on how big the images get */
}

.box3 {
  /*this box contains videos */
  width: 100%;
  margin-right: 2em;
  max-width: 400px;
}

.box4 {
  width: 100%;
  line-height: 2em;
  max-width: 650px;
  text-align: justify;
}

.box1 img:hover {
  filter: brightness(1.2) contrast(1.1);
}

.flex-container {
  display: flex;
  margin-top: 1rem;
}

.box1 img {
  max-width: 100%;
  border-radius: 10px;
}
* { font-family: sans-serif; }

video {
  padding-top: 1.5em;
  width: 720px;
  max-width: 100%;
}

/* unvisited link */
a:link {
  color: black;
  text-decoration: none;
}

/* visited link */
a:visited {
  color: black;
}

/* mouse over link */
a:hover {
  color: red;
}

/* selected link */
a:active {
  color:   black;
  text-decoration: none;
}

footer {
  background-color: #F3FBFC;
  color: black;
  border-top: 1px solid #d4cad2;
  text-indent: 10%;
  padding-top: 2em;
  padding-bottom: 2em;
  margin-bottom: 5%;
  line-height: 1em;
  font-size: small;
}

/* ====================================
   Styles Common to Small and Wide Widths 
   ==================================== */
   body {
    margin: 0;
  }
  
  /* navigation */
  nav.sitenav {
    width: 100%;
    background-color:orangered;
    line-height: 3em;
    border-bottom: 1px solid #d4cad2;
  }

  nav.sitenav ul {
    list-style:none;
    }

  nav.sitenav a {
    display:inline-block;
    font-weight: normal;
    padding: 0px 4em;
  }
  nav.sitenav a:link {
    text-decoration: none;
    }

  nav.sitenav .current {
    background-color: grey;
  }
  
  /* ====================================
     Styles specific to wide widths - 
     i.e. these styles will be overriden in the 
     small width section below 
     ==================================== */
  nav #menu {
    display: none;
  }
  nav.sitenav ul {
    display: flex;
    padding: 0;
    margin: 0 auto;
  }
  nav.sitenav li {
    flex: auto;
  }
  nav.sitenav a {
    text-align: center;
  }
  nav.sitenav a {
    color: white;
  }
nav.sitenav a {
    background-color: orangered;
  }
  
  /* ====================================
     Styles for small width screens
     ==================================== */
  @media screen and (max-width: 50em) {
    nav #menu {
      display:flex;
      text-align:left;
      background-image: url(../images/pancake-menu.svg);
      background-repeat: no-repeat;
      background-position-x:left;
      padding-left: 40px;
      background-color: rgb(181, 188, 187);
    }
    nav.sitenav {
      height: auto;
      width: 40%;
    }
    nav.sitenav li {
      display: flex;
    }
    nav.sitenav ul {
      display: flex;
      margin-left: -98em;
      text-align: left;
      width: 0%;
    }
    nav.sitenav a {
      text-align: left;
      padding-left: 40px; /* to align with Menu */
    }
    /* ======================
       Styles for when use clicks
       to reveal menu
       ====================== */
    nav.sitenav.presentonpage ul {
      /* block display */
      display: block;
      /* set left margin so it is on page */
      margin-left: 0;
    }
    /* change background image to an "x" from "pancake" */
    nav.sitenav.presentonpage #menu {
        background-image: url('../images/x-menu.svg');
    }
  }
  @media screen and (min-width: 450px) {
    #flex-container, #flex-container1, #flex-container2 {
        display: flex;
    }
  }