* {
  margin: 0;
  padding: 0;
  font-size: inherit; }

a {
  text-decoration: none;
  color: #57a3e8;
  transition: background,color 0.2s ease; }

a:hover {
  color: #222; }

body {
  margin: 0 auto;
  padding: 1.5em;
  max-width: 55em;
  font-family: "Montserrat", "Futura", sans-serif;
  line-height: 1.6em;
  color: black; }

#header {
  display: flex;
  flex-wrap: wrap; }
  #header > a {
    min-width: 8em;
    flex-grow: 1;
    padding-bottom: 1.5em;
    display: inline-block; }
  #header img#logo {
    max-height: 7em;
    width: 100%;
    display: inline-block; }
  #header #right {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-shrink: 1;
    padding-left: 1.5em; }
    #header #right #top {
      display: flex;
      flex-direction: row;
      align-items: space-between;
      margin-bottom: 1.5em; }
      #header #right #top p {
        color: #222; }
      #header #right #top .filler {
        flex-grow: 1; }
      #header #right #top #icons img {
        height: 1em;
        margin: 0em 0.2em; }
    #header #right #nav {
      color: #222;
      font-size: 1.1em;
      font-weight: bold;
      flex-grow: 1;
      flex-shrink: 1;
      display: flex;
      justify-content: center;
      align-items: flex-end;
      flex-wrap: wrap;
      padding-bottom: 1.5em; }
      #header #right #nav a {
        display: inline;
        color: inherit;
        padding: 0em 0.5em;
        transition: background 0.2s ease; }
      #header #right #nav a:hover {
        background: #eee; }
      #header #right #nav a:hover {
        background: #eee; }
      #header #right #nav a.disabled {
        color: #ccc;
        cursor: default; }
      #header #right #nav a.disabled:hover {
        background: transparent; }

#intro {
  display: flex;
  align-items: flex-end;
  margin-bottom: 3em; }
  #intro > img {
    height: 6em;
    width: auto;
    margin-left: 0.75em;
    margin-bottom: 1.5em;
    transform: scale(-1, 1); }
  #intro #intro-content {
    display: flex;
    flex-wrap: wrap;
    flex-grow: 1;
    border: 1.5px solid black;
    border-radius: 1em;
    padding: 1em;
    margin-bottom: 0; }
    #intro #intro-content #intro-text {
      min-width: 20em;
      max-width: 20em; }
      #intro #intro-content #intro-text li {
        margin-left: 1em;
        margin-bottom: 0.5em; }
      #intro #intro-content #intro-text .small {
        margin-top: 1.5em;
        font-size: 90%;
        line-height: 140%; }
    #intro #intro-content #intro-images {
      display: flex;
      max-width: 27em; }
      #intro #intro-content #intro-images a {
        margin-top: 0.75em;
        transition: transform 0.2s ease; }
        #intro #intro-content #intro-images a img {
          width: 100%;
          height: auto; }
      #intro #intro-content #intro-images a:hover {
        transform: scale(1.2); }

.page img {
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5);
  width: 100%;
  display: block; }

.page + .page {
  margin-top: 1.5em; }

#meta {
  font-size: 0.9em;
  padding-top: 0.75em;
  color: #222;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5em; }
  #meta #right {
    text-align: right;
    padding-left: 0.75em; }
  #meta #left {
    padding-right: 0.75em; }

#content {
  font-size: 1.1em; }
  #content p, #content ul {
    margin-bottom: 1em; }
  #content li {
    margin-left: 1em; }
  #content h1 {
    font-size: 1.5em;
    font-weight: 900;
    margin-bottom: 0.5em;
    margin-top: 1.5em; }
  #content h1.category {
    text-align: center;
    font-weight: 400; }
  #content img {
    width: 100%; }
  #content #pages {
    margin: 2em -0.75em;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; }
    #content #pages a {
      background: white;
      width: 20em;
      flex-shrink: 1;
      flex-grow: 1;
      transition: transform 0.2s ease;
      box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5);
      margin-bottom: 1.5em;
      margin-left: 0.75em;
      margin-right: 0.75em; }
      #content #pages a img {
        display: block; }
    #content #pages a:hover {
      transform: scale(1.2);
      z-index: 9;
      box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.8); }

#footer {
  padding-top: 1.5em;
  font-size: 1.1em; }
  #footer p {
    margin-bottom: 1em; }
  #footer #references {
    margin: 1.5em -1.5em;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly; }
    #footer #references a {
      width: 14em;
      margin: 1.5em;
      height: 5em;
      line-height: 5em;
      display: flex;
      flex-grow: 1;
      justify-content: center;
      align-items: center; }
    #footer #references img {
      max-width: 100%;
      max-height: 100%;
      display: inline-block;
      filter: grayscale(100%);
      transition: all 0.2s ease; }
    #footer #references a:hover img {
      filter: grayscale(0%);
      transform: scale(1.1); }
