html,
body {
  margin: 0;
  padding: 0;
  position: relative;
}

body {
  font-family: 'Roboto', sans-serif;
  -webkit-hyphens: auto;
  hyphens: auto;
  text-align: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Lato', sans-serif;
  color: #002147;
}

pre,
code {
  font-family: 'Roboto Mono', monospace;
  font-size: 16px;
}

code {
  border-radius: 3px;
  padding: 1px 3px;
  -webkit-hyphens: none;
  hyphens: none;
}

pre {
  overflow-x: auto;
  padding: 8px 12px;
  border-radius: 3px;
}

pre code {
  padding: initial;
  background: transparent;
}

article .article-content figure {
  border-bottom: solid medium #e6e6e6;
}

.article-content figure img {
  max-width: 90%;
}

.article-content figure figcaption {
  /* font-size: 100px; */
  padding-left: 10%;
  padding-right: 10%;
  text-align: center;
  font-style: italic;
  font-size: 16px;
}

a:hover,
a:active {
  outline: none;
  background-color: rgba(0,0,0,0);
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

img {
  float: left;
  padding-top: 16px;
  padding-right: 16px;
  padding-bottom: 16px;
  padding-left: 0px;

  display: block;
  margin: 0 auto;
  height: auto;
}

blockquote {
  border-left: 5px solid #ccc;
  background: #f5f5f5;
  margin: 20px;
  padding-left: 10px;
}

.wrapper {
  overflow: hidden;
  position: relative;
}

.header {
  padding: 15px 0;
  position: relative;
  background: #002147;
  border-bottom: 1px solid #eaeaea;
}

.nav {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
  font-family: 'Lato', sans-serif;
  display: flex;
  align-items : center;
  justify-content: space-between;
  flex-grow: 1;
}

.nav-logo {
    transition: transform 150ms ease-out;
    display: inline-block;
    vertical-align: middle;
    max-width: 30%;
    width: 350px;
    height: 100%;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo img {
    padding: 0;
    width: 150px;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.nav-links {
  vertical-align: middle;
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  max-width: 65%;
  font-size: 18px;
  text-align: right;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  padding: 6px 10px;
}

.nav-links a.nav-icon {
  display: none;
}

.nav-links a:visited {
 color: #fff;
}

.nav-links a:hover {
 color: #ccc;
}

/* When the screen is less than 500 pixels wide, hide all links.
   Show the link that should open and close the nav-links (.icon) */
@media screen and (max-width: 500px) {
  .nav-links a {
    display: none;
  }
  .nav-links a.nav-icon {
    display: flex;
    font-size: 18pt;
  }
}

/* The "responsive" class is added to the nav-links with JavaScript
   when the user clicks on the icon. This class makes the nav-links
   look good on small screens (display the links vertically instead
   of horizontally) */
@media screen and (max-width: 500px) {
  .nav-links {
    flex-flow: column nowrap;
  justify-content: space-between;
  }
  .nav-links.responsive a {
    display: flex;
    flex-flow: column nowrap;
    text-align: right;
  }
}

.content {
  display: block;
  /*min-height: calc(100vh - 60px);*/
  max-width: 800px;
  margin: 60px auto;
  padding: 0 15px;
  font-size: 18px;
  line-height: 1.8;
  color: #555;
}

.article-title {
  font-size: 34px;
  color: #002147;
  margin: 0;
  line-height: 1.3;
}

.article-date {
  font-size: 16px;
  font-family: 'Lato', sans-serif;
  color: #ccc;
}

.article-content p {
  margin: 15px 0 25px;
}

.article-content img {
  float: none;
  max-width: 90%;
  padding: 0;
  margin: auto;
}

.article-content a {
  text-decoration: none;
  color: inherit;
  border-bottom: medium solid #ddd;
  transition: border-color 600ms;
}

.article-content a:hover,
.article-content a:active {
  border-color: #606060;
}

.article-content hr {
  width: 150px;
  margin: 50px auto;
  height: 1px;
  overflow: hidden;
  border: none;
  background: #e8e8e8;
}

.section-divider {
  clear: both;
}

.obvious-link {
  padding: 8px;
  border-radius: 10px;
  width: 50%;
  margin: 0 auto;
  text-align: center;
  font-size: 32px;
  background-color: #002147;
}

.article-content .obvious-link a, a:visited a:active a:link {
  color: #fff;
  border-bottom: none;
}

.article-content .obvious-link a:hover {
  color: #ccc;
  border-bottom: none;
}

.section-divider img {
  max-width: 80%;
  width: 192px;
  float: left;
  padding-right: 12px;
  padding-top: 8px;
}

.toc {
  margin: 30px 0px;
  background-color: #f5f5f5;
  padding: 0;
  padding-left: 10px;
  border-radius: 3px;
  font-family: 'Lato', sans-serif;
  color: #404040;

}

.back-to-top {
  position: fixed;
  background-color: #f5f5f5;
  vertical-align: middle;
  text-align: center;
  text-decoration: none;
  border-radius: 20px;
  margin: 0;
  padding: 0;
  width: 30px;
  height: 30px;
  bottom: 5vw;
  right: 5vw;
  line-height: 1.4;
}

.back-to-top a, a:visited, a:active {
  text-decoration: none;
  color: #555;
}

.back-to-top a:hover {
  text-decoration: none;
  border: none;
  color: #222;
}

.toc ul {
  list-style-type: none;
  margin: 0;
  padding: 0px;
  padding-left: 6px;
}

.article-image-large {
  padding: 2px;
  border: solid 1px #e6e6e6;
  opacity: 1;
  transition: opacity 1s;
}

.article-image-large:hover,
.article-image-large:active {
  opacity: 0.5;
}

.list,
.category,
.tag-cloud {
  margin: 0;
  padding: 0;
  line-height: 1.3em;
}

.list-title,
.category-title,
.tag-cloud-title {
  font-size: 32px;
  margin-top: 60px;
  padding-bottom: 10px;
}

.list-item {
  margin: 0 0 20px;
  padding: 0;
}

.list-item-date {
  display: block;
  padding: 4px 0;
  font-family: 'Lato', sans-serif;
  color: #ccc;
  font-size: 14px;
}

.list-item a {
  display: inline-block;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 3px 0;
  text-decoration: none;
  font-size: 17px;
  font-family: 'Lato', sans-serif;
  font-weight: bold;
  color: #222;
  border-bottom: 1px solid #ddd;
  transition: border-color 300ms;
}

.list-item a:hover {
  border-color: #222;
}

.category-item {
  display: block;
  list-style: none;
  margin: 5px 0 15px;
  padding: 0;
}

.category-item a {
  display: inline-block;
  padding: 5px 0;
  text-decoration: none;
  font-size: 19px;
  font-family: 'Lato', sans-serif;
  font-weight: bold;
  color: #222;
  transition: color 300ms;
}

.category-item-count {
  font-family: 'Lato', sans-serif;
  margin-right: 15px;
  color: #ccc;
  font-size: 14px;
  font-weight: bold;
}

.tag-cloud-item {
  margin: 0;
  padding: 0;
}

.tag-cloud-item li {
  display: inline-block;
  list-style: none;
  padding: 0 15px 15px 0;
}

.tag-cloud-item a {
  text-decoration: none;
  font-family: 'Lato', sans-serif;
  font-weight: bold;
  color: #222;
  transition: color 300ms;
}

.tag-cloud-item a:hover,
.tag-cloud-item a:active,
.category-item a:hover,
.category-item a:active {
   color: #ccc;
}

.footer {
  height: 96px;
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: 'Lato', sans-serif;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #ccc;
  font-size: 14px;
}

.footer-links li {
  margin: 10px;
  padding: 0;
}

.footer-links a {
  color: #888;
  text-decoration: none;
  transition: color 300ms;
  margin: 0 0px;
}

.footer-links a:hover {
  color: #222;
}

.footer-links li::before {
  position: relative;
  left: 0px;
}

.footer-links li:first-child::before {
  display: none;
}

.page-links {
  margin: 25px 0;
  padding: 0;
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
}

.page-links li {
  display: inline-block;
}

.page-links a {
  text-decoration: none;
  padding: 0 5px;
  color: #555;
  transition: color 300ms;
}

.page-links a:hover {
  color: #ccc;
}

.page-links-active a,
.page-links-disabled a {
  text-decoration: none;
  color: #ccc;
}

.error-page-title {
  text-align: center;
  font-size: 76px;
}

.error-page-content {
  text-align: center;
}

.error-page-content a {
  text-decoration: none;
  color: inherit;
  transition: color 600ms;
}

.error-page-content a:hover,
.error-page-content a:active {
  color: #ccc;
}

@media (min-width: 600px) {

  .article-title {
    font-size: 42px;
  }

  .article-date {
    font-size: 19px;
  }

  .list-title,
  .category-title,
  .tag-cloud-title {
    font-size: 38px;
  }

  .list-item a {
    padding: 5px 0;
    font-size: 21px;
  }

  .list-item-date {
    padding: 5px 0;
    font-size: 17px;
    text-align: right;
    float: right;
  }

  .category-item {
     display: inline-block;
  }

  .category-item a {
     font-size: 21px;
  }

  .footer-links {
    font-size: 16px;
  }

  .footer-links a {
    margin: 0 0px;
  }

  .page-links {
    font-size: 19px;
  }

  .error-page-title {
    font-size: 114px;
  }
}
