@font-face
{
  font-family: AtkinsonHyperNext;
  src: url('AtkinsonHyperNext.otf');
}

body {
  background-color: #fdf6e3;
  font-size: 1.15em;
  font-family: AtkinsonHyperNext;
  margin: 0;
  color: #516975;
  line-height: 1.6em;
}

a, a:visited {
  color: #268bd2;
  text-decoration: underline;
}
a:hover {
  color: #847A94;
}

* {
  box-sizing: border-box;
}

#container {
  max-width: 700px;
  margin: 1em auto;
  width:96%;
}

#navbar {
  background-color: #fdf6e3;
  width: 100%;
  padding: 0 3%;
  margin-bottom: 10px;
  outline-width: 1px;
  outline-style: solid;
  outline-color: #B8A87D;
  border-radius: 5px;
  font-size: 1.0em;
}
#navbar ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style-type: none;
  justify-content: space-evenly;
}
#navbar li {
  padding-top: 5px;
  padding-bottom: 5px;
  display: inline-block;
  margin-right: 1.5em;
  margin-bottom: 0.1em;
  margin-top: 0.2em;
}
#navbar li a, #navbar li a:visited {
  color: #268bd2;
  text-decoration: underline;
  padding: 3px;
}
#navbar li a:hover {
  color: #847A94;
  text-decoration: underline;
}

#flex {
  display: flex;
}

article {
  padding: 5px 2.5% 15px 2.5%;
  background-color: #fdf6e3;
  outline-style: none;
  margin-bottom: 10px;
  width: 100%;
  outline-width: 1px;
  outline-style: solid;
  outline-color: #B8A87D;
}

footer {
  background-color: #fdf6e3;
  width: 100%;
  padding: 5px;
  text-align: center;
  outline-style: none;
  outline-width: 0px;
  outline-style: solid;
  outline-color: #B8A87D;
  border-radius: 5px;
}

h1, h2, h3, h4 {
  color: #516975;
  line-height: 1.1em;
}

hr {
  border: solid #CCC9D0;
  border-width: 1px 0 0 0;
}

blockquote {
  padding: 0 20px;
  margin-left: 0;
  border-left: 2px dotted #B8A87D;
  font-size: 1.0em;
  line-height: 1.6em;
}

img {
  max-width: 100%;
  height: auto;
  margin-top: 0.3em;
  margin-bottom: 0.3em;
  border: solid #CCC9D0;
  border-width: 1px;
  padding: 3px;
}

ul.none {
    padding: 0;
    list-style-type: none;
}

/* Alignment classes */
.right {
  float: right;
  margin-left: 1em;
}
.left {
  float: left;
  margin-right: 1em;
}
.center {
  display: block;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

/* Recent Blog Posts block in index.html */
#recentPostList ul {
  padding: 0;
  list-style-type: none;
}

/* Date/tags bar at the top of blog posts */
.postMetadata {
  background-color: #fdf6e3;
  width: 100%;
  padding: 6px;
  text-align: center;
  outline-width: 1px;
  outline-style: solid;
  outline-color: #CCC9D0;
  border-radius: 4px;
}

.footnote-ref {
  vertical-align: top;
}

/* At the bottom of blog posts */
#nextprev {
  text-align: center;
  margin-top: 1.4em;
}

@media only screen and (max-width: 900px) {
  #flex {
    flex-wrap: wrap;
  }
#navbar ul {
  flex-wrap: wrap;
  }
}

/* Go To Top button */
#topBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  border: none;
  outline-width: 2px;
  outline-style: dashed;
  outline-color: #B8A87D;
  background-color: #fdf6e3;
  color: #516975;
  cursor: pointer;
  padding: 15px;
  font-size: 15px;
  font-family: AtkinsonHyperNext;
}