html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
}

html {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

caption, th, td {
  text-align: left;
  font-weight: normal;
  vertical-align: middle;
}

q, blockquote {
  quotes: none;
}
q:before, q:after, blockquote:before, blockquote:after {
  content: "";
  content: none;
}

a img {
  border: none;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary {
  display: block;
}

html {
  background-color: #5e5e5e;
}

body, .content {
  background-color: white;
}

body {
  font-family: arial, verdana, sans-serif;
  width: 800px;
  margin: 50px auto;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  min-height: calc(100vh - 100px);
  flex-direction: column;
}

/************************** Banners *************************/
#banner, #banner2 {
  max-width: 100%;
}

#banner {
  background: url("../../images/logo.jpg") no-repeat left;
  background-size: auto;
  margin: 0 20px;
  padding: 70px 0 70px 30px;
}

#banner2 {
  background: url("../../images/header_bottom_image_cropped.jpg") no-repeat;
  padding: 65px 0;
  margin: 5px;
}

/************************** Nav *************************/
.links {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  background-color: #9fc53a;
  text-align: center;
  padding: 10px 0;
}
.links li {
  width: 15%;
}
.links a {
  display: block;
  text-decoration: none;
  margin: 5px 5px;
  padding: 5px 0;
  color: #5e5e5e;
}
.links a:hover {
  background-color: white;
  box-shadow: none;
  border-radius: 5px;
}
.links a.selected {
  box-shadow: inset 0 0 25px #9fc53a;
  background-color: white;
  border-radius: 5px;
}

/************************** Main content *************************/
.content {
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  line-height: 1.4em;
}
.content li {
  list-style-type: disc;
  padding: 5px 0;
}
.content p, .content li {
  font-size: 1.2em;
}
.content p {
  margin: 10px 60px;
}
.content ul:last-child, .content p:last-child {
  margin-bottom: 50px;
}
.content ul {
  margin-left: 60px;
}
.content li {
  margin-left: 40px;
}
.content h2 {
  font-size: 1.3em;
  font-weight: bold;
  margin: 20px 60px 5px;
}

/************************** Footer *************************/
footer {
  height: 60px;
  text-align: center;
  background-color: #9fc53a;
  color: #fff;
}
footer P {
  padding: 20px 0;
}

/*************** Media query: 480 < screen res <= 720px *************/
@media only screen and (max-width: 720px) {
  body, footer {
    width: 100%;
  }

  #banner {
    background-size: 80%;
    background-position: center;
    padding: 50px;
  }

  .links {
    justify-content: space-around;
  }
  .links ul {
    padding: 10px 0;
  }
  .links li {
    width: 20%;
    font-size: 1.1em;
  }
  .links a {
    padding: 12px 0px;
  }
  .links a.selected {
    box-shadow: inset 0 0 40px #9fc53a;
  }

  .content ul {
    margin-left: 30px;
  }
  .content p, .content h2 {
    margin: 15px;
  }
}
/*************** Media query: screen res <= 480px *************/
@media only screen and (max-width: 480px) {
  body {
    margin: 0;
    font-size: 1.1em;
  }

  header {
    margin-top: 0;
  }

  #banner2 {
    display: none;
  }

  .links {
    flex-direction: column;
    align-items: center;
  }
  .links li {
    width: 90%;
  }

  .content p, .content h2 {
    margin: 0 10px;
  }
  .content p, .content ul, .content h2 {
    padding: 10px;
  }
  .content ul {
    margin-left: 10px;
  }
}
