body {
  color: #3c3836;
  background-color: #fbf1c7;
  font-family: Chalkboard SE;
  width: 90vw;
  margin: auto;
}

* {
  transition-duration: 1s;
}

h1,h2,h3,h4,h5,h6 {
  color: #fbf1c7;
  width: fit-content;
  padding: 0.7em;
  font-family: sans-serif;
}

h1:hover,h2:hover,h3:hover,h4:hover,h5:hover,h6:hover {
  transform: rotate(-3deg);
  filter: invert(100%);
  scale: 110%;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

h1 { background-color: #cc241d; }
h2 { background-color: #98971a; }
h3 { background-color: #d79921; }
h4 { background-color: #458588; }
h5 { background-color: #b16286; }

a:hover {
  transform: translateY(-5px);
  display: inline-block;
}

#content {
}

#content img {
  width: 40vw;
  height: auto;
}


/* header */
header {
  border-bottom: 1em solid #928374;
  height: 30vh;
  display: flex;
  margin-top: 2em;

  background-image: url("/assets/header.jpg");
  background-size: cover;
  background-position: center;
}

nav {
  align-content: center;
  height: fit-content;
  border-bottom: 10px solid black;
  height: 200px;
}

#nav-timeline > a {
  color: white;
  background-color: #076678;
  text-decoration: none;
  border-radius: 10px;

  text-orientation: mixed;
  writing-mode: vertical-rl;
  transform: translateX(40px) translateY(2.8em) rotate(220deg); /* pure jank */

  padding: 0.5em;
  height: 150px;
  margin: 1em;
  display: inline-block;
  transition-duration: 0.3s;
}

#nav-timeline > a:hover {
  color: #076678;
  background-color: white;
  transform: translateX(40px) translateY(2.8em) rotate(220deg) scale(150%);
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;

}

#nav-under {
  display: flex;
  margin-top: 1em;
  background-color: white;
  justify-content: space-around;
  border-radius: 0.4em;
}

@media (max-width: 1000px) {
  body {
    width: 100vw;
  }

  #nav-timeline > a {
    text-orientation: inherit;
    writing-mode: inherit;
    transform: none;
    height: inherit;
    margin: 0.3em;
  }

  #nav-timeline > a:hover {
    transform: none;
  }

  nav {
    border-bottom: 0px;
    height: fit-content;
  }

  #nav-under {
    flex-direction: column;
    width: fit-content;
  }

  header {
    height: fit-content;
  }
}
