@font-face {
  font-family: "AventaBold";
  src: local("AventaBold"),
    url(/fonts/Aventa-Bold.ttf) format("truetype");
}
@font-face {
  font-family: "AventaThin";
  src: local("AventaThin"),
    url(/fonts/Aventa-Thin.ttf) format("truetype");
}
@font-face {
  font-family: "AventaMedium";
  src: local("AventaMedium"),
    url(/fonts/Aventa-Medium.ttf) format("truetype");
}
@font-face {
  font-family: "AventaLight";
  src: local("AventaLight"),
    url(/fonts/Aventa-Light.ttf) format("truetype");
}

*,
h1 {
  font-family: "AventaLight";
  font-weight: 100;
}

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

a {
  color: black;
  font-family: AventaMedium;
  padding: 0vh 2vw;
}

img {
  width: 90%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ===== route transition ===== */
.fade-wrapper {
  animation: fade-in 0.5s ease-in-out;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===== graphics background canvas ===== */
.graphics-canvas {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
}

/* ===== navigation ===== */
nav ul > li {
  font-size: 1em;
  text-align: right;
  list-style: none;
  padding: 1.5vh 0;
  display: flex;
  justify-content: flex-end;
}

.diamond-container {
  display: flex;
  gap: 10px;
}

/* ===== diamond ===== */
.diamond {
  width: 0.3em;
  height: 0.3em;
  transform: rotate(45deg) skew(17.5deg, 17.5deg) translateX(0.35em);
  background: #fad326;
  border: solid #d5453a 3px;
  display: inline-block;
}

/* ===== site title ===== */
.site-title {
  font-family: AventaBold, Arial, sans-serif;
  font-weight: bold;
  color: white;
  text-shadow: #00000027 0px 4px 24px;
}

/* ===== back prompt ===== */
.back-prompt {
  text-align: right;
  margin: 2vh 0vw;
  display: flex;
}

/* ===== page top ===== */
.page-top {
  display: flex;
  justify-content: end;
}

/* ===== divider ===== */
@keyframes expand {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

.divider {
  height: 2px;
  animation-timing-function: ease-in-out;
  animation-name: expand;
  animation-duration: 1.5s;
  animation-fill-mode: forwards;
  content: "";
  background: black;
  display: inline-block;
}

.divider-container {
  display: flex;
  justify-content: center;
}

/* ===== welcome screen ===== */
.screen {
  background: rgba(255, 255, 255, 0.6);
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
}

.message {
  font-family: AventaBold, sans-serif;
  width: 80vw;
  margin: auto;
  margin-top: 40vh;
}

.message-content {
  opacity: 1;
  text-align: center;
}

.message-button {
  margin-top: 10vh;
  padding: 5px;
  float: right;
  display: flex;
  align-self: center;
  cursor: pointer;
}

/* ===== credits ===== */
.credit {
  text-align: center;
  margin: 3vh 0;
}

.credit-name {
  font-family: AventaMedium;
  font-size: 1.2em;
}

#special-thanks {
  text-align: center;
}

/* ===== mobile css ===== */
@media (max-width: 480px) {
  h1 {
    font-size: 1.5em;
    text-align: center;
  }

  .page-title {
    margin: 5vh 0vw;
  }

  nav {
    position: absolute;
    bottom: 2vh;
    right: 5vw;
  }

  a {
    padding: 0vh 2vw;
  }

  .site-title {
    font-size: 5em;
    line-height: 1.25em;
    text-align: center;
  }

  .author-liner {
    font-family: AventaThin;
    writing-mode: sideways-lr;
    position: absolute;
    font-size: 0.9em;
    top: 2vh;
    right: 3vw;
  }

  p {
    line-height: 1.25em;
  }
}

/* ===== desktop css ===== */
@media (min-width: 480px) {
  h1 {
    font-size: 3em;
    text-align: center;
    font-family: AventaMedium;
  }

  nav {
    position: absolute;
    bottom: 10vh;
    right: 25vw;
  }

  a {
    padding: 0vh 0.5vw;
  }

  .site-title {
    font-size: 7em;
    line-height: 1.25em;
    margin-left: auto;
    text-align: center;
    margin-top: 10vh;
  }

  .author-liner {
    writing-mode: sideways-lr;
    position: absolute;
    font-size: 1.5em;
    bottom: 5vh;
    right: 1vw;
  }

  .content-page {
    width: 39vw;
    margin: auto;
  }
}
