body {
  font-family: Calibri, Optima, Arial, sans-serif;
  font-size: 14pt;
  line-height: 32px;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5 {
  font-family: Helvetica;
  margin: 0.2rem 0 0.5rem 0;
}

h1 {
  font-size: 34pt;
  line-height: 3rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 22pt;
  line-height: 2.5rem;
}

h3 {
  font-size: 18pt;
}

h4 {
  font-size: 14pt;
}

h5 {
  font-size: 16pt;
}

pre {
  white-space: pre-wrap;
  font-size: 12pt;
}

img {
  display: block;
  max-width: 80%;
  margin: 0 auto;
}

a:hover {
  color: #aaa;
}

hr {
  margin: 2rem 3rem 2rem 3rem;
  border: 1px #ccc solid;
}

pre {
  padding: 1rem 0.5rem 1rem 0.5rem;
  background-color: #f4f4f4;
  border: 1px solid #ddd;
}

blockquote {
  border-left: 5px solid #ccc;
  padding-left: 1rem; 
}

nav {
  background-image: url("/media/banner-1.jpg");
  background-repeat: repeat-y;
  background-size: cover;
  background-position: 50% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0px;
  width: 20rem;
  height: 100%;
  padding: 0.75rem;
  text-align: center;
  font-family: Helvetica;
  color: white;
  text-shadow: 0 0 10px #303538;
}

nav h1 {
  margin-bottom: 1rem;
}

nav h2 {
  font-size: 14pt;
  font-weight: lighter;
  line-height: 1.6rem;
}

nav a {
  display: block;
  font-weight: lighter;
  margin-bottom: 0.5rem;
  color: white;
  text-decoration: none;
}

nav a:hover {
  text-shadow: 0 0 20px #ccc;
  color: white;
}

main {
  margin-left: 17rem;
  padding: 3rem 6rem 0 10rem;
  color: #3A4145;
}

main h1, main h2, main h3, main h4, main h5 {
  color: #50585d;
}

main h1 a {
  text-decoration: none;
}

h3.articleDate {
  font-size: 11pt;
  font-weight: normal;
  margin-bottom: 0rem;
}

main a {
  color: #3A4145;
}

main.error {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* justify-content: center; */
}

@media only screen and (max-width: 900px) {
  nav {
    position: static;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    margin: 0px;
    padding: 3rem 0 1.5rem 0;
  }

  main {
    margin-left: 0px;
    padding: 2.5rem 2.5rem 0 2.5rem;
  }
}

@media only screen and (max-width: 600px) {
  body {
    font-size: 14pt;
  }

  p {
    line-height: 28px;
  }

  h1 {
    font-size: 20pt;
    line-height: 2rem;
  }

  h2 {
    font-size: 17pt;
    line-height: 1.7rem;
  }

  h3 {
    font-size: 15pt;
    line-height: 1.5rem;
  }

  h4, h5 {
    font-size: 14pt;
    line-height: 1.5rem;
  }

  pre {
    white-space: pre;
    overflow: scroll;
    font-size: 10pt;
  }
}
