html, body {
  margin: 0 auto;
  height: 100%;
  font-family: Cambria, Georgia, serif;
  background-color: #84fbe1;
}

header {
  position: relative;
  top: 64px;
  left: 0;
  right: 0;
}

header img {
  height: 130px;
  z-index: 11;
  background-color: #fff5af;
  border-radius: 50%;
  border: 20px solid #fff5af;
  top: -145px;
  position: absolute;
  left: 50%;
  margin-left: -560px;
}

nav {
  background-color: #fff5af;
  position: absolute;
  height: 60px;
  z-index: 9;
  top: 20px;
}

nav div.menu-container {
  text-align: center;
  height: 60px;
}

nav .menu-bars {
  display: inline-block;
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 10px;
}

.b1, .b2, .b3 {
  width: 35px;
  height: 5px;
  background-color: #333;
  margin: 6px 0;
  transition: 0.4s;
}

nav .change div.b1 { transform: rotate(-45deg) translate(-9px, 6px); }
nav .change div.b2 { opacity: 0; }
nav .change div.b3 { transform: rotate(45deg) translate(-8px, -8px); }

nav ul {
  display: inline-block;
  margin: 0;
  padding: 0;
  line-height: 60px;
}

nav li {
  float: left;
  list-style: none;
}

nav li a {
  display: block;
  width: 100%;
  height: 100%;
  color: black;
  text-decoration: none;
}

nav li.active a {
  font-weight: bold;
}

section {
  background-color: #ffffed;
  position: relative;
  width: 80%;
  left: 10%;
  top: 96px;
  max-width: 1100px;
  line-height: 28px;
}

section article {
  padding: 64px;
  padding-top: 90px;
  padding-bottom: 40px;
  font-size: 19px;
}

section article h1,
section article p {
  display: inline-table;
  margin: 0;
  padding-top: 10px;
}

section article h1 {
  font-size: 21pt;
}

section article img {
  padding-left: 10px;
  padding-bottom: 10px;
  display: block;
  width: 100%;
  height: auto;
  max-width: 300px;
  max-height: 325px;
}

section .footer {
  padding: 10px;
  color: lightgrey;
  text-align: center;
}

@media screen and (min-width: 901px) {
  header img {
    position: absolute;
    left: 50%;
    margin-left: -76px;
    z-index: -4;
  }
  nav .menu-bars { display: none; }
  nav .menu-container { padding: 0 20px 0 0; }
  nav li { padding-right: 20px; }
}

@media screen and (min-width: 1376px) {
  section {
    left: 50%;
    margin-left: -550px;
  }
  nav {
    left: 50%;
    right: 0;
    margin-left: -550px;
    width: 1100px;
  }
  header img {
    position: absolute;
    left: 50%;
    margin-left: -560px;
    top: -60px;
  }
}

@media screen and (max-width: 640px) {
  section article img {
    padding-left: 0;
    max-width: 470px;
    max-height: 375px;
    float: left;
  }
}

@media screen and (min-width: 641px) {
  section article img {
    max-width: 300px;
    max-height: 325px;
    float: right;
  }
}

@media screen and (max-width: 900px) {
  .hide-xs { display: none !important; }
  header img {
    position: absolute;
    left: 50%;
    margin-left: -86.5px;
    top: -70px;
  }
  nav .menu-container { display: none; }
  nav .change .menu-container { display: block; }
  section { top: 124px; }
  section article {
    padding: 22px;
    font-size: 16px;
    line-height: 22px;
  }
  section article h1 { font-size: 16pt; }
  section article h2 { font-size: 14pt; }
}

@media screen and (max-width: 1375px) {
  nav {
    right: 0;
    margin-right: 10%;
    left: 0;
    margin-left: 10%;
  }
}

nav .open { display: block; }

nav .open li {
  float: none;
  background-color: #fff5af;
  font-size: 16pt;
}

nav .menu-logo.open { top: -130px; }

nav .open ul {
  width: 100%;
  position: relative;
  top: 60px;
}

section.open { display: none; }
