@font-face {
  font-family: "Fixedsys Excelsior";
  src: url("fonts/fsex-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  font-family: "Fixedsys Excelsior", monospace;
  background: #ffffff;
  color: #0a0a0a;
}

html {
  overflow-y: scroll;
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: repeat(12, 1fr);
}

.logo {
  grid-row: 1;
  grid-column: 1 / 2;
  position: fixed;
  padding: 20px;
  font-size: 18px;
  white-space: nowrap;
}

.header-nav {
  position: absolute;
  padding: 20px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
}

.header-nav a {
  text-decoration: none;
  font-size: 18px;
  letter-spacing: -0.1px;
  line-height: 24px;
  opacity: 0.6;
  width: auto;
  color: #000000;
}

.header-nav a:hover {
  opacity: 1;
}

.header-nav a.active {
  opacity: 1;
}


.logo img {
  display: block;
  width: 80%;
  height: auto;
}

.page-title {
  grid-row: 1;
  grid-column: 4 / 10;
  padding-top: 20px;
  font-size: 24px;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.input {
  grid-row: 2;
  grid-column: 4 / 10;
  margin-top: 20px;
}

.bottom-links {
  grid-row: 3;
  grid-column: 4 / 10;
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 40px;
  padding-bottom: 20px;
  white-space: nowrap;
}

.bottom-links a {
  font-size: 18px;
  color: #0a0a0a;
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.bottom-links a:hover {
  color: rgba(0, 0, 0, 1);
}

.phase-section {
  margin-bottom: 1em;
}

.phase-title {
  font-family: "Fixedsys Excelsior";
  font-size: 24px;
  line-height: 24px;
  cursor: pointer;
  color: #aaa;
  text-align: left;
}

.phase-title.expanded {
  color: #000;
}

.lore-ref {
  color: #aaa;
  font-family: "Fixedsys Excelsior";
  font-size: 18px;
  cursor: pointer;
  display: block;
  margin-top: 0.5em;
  text-align: left;
}
.lore-ref.active {
  color: #000;
}
.lore-block {
  background: #eee;
  font-family: "Fixedsys Excelsior";
  font-size: 24px;
  line-height: 26px;
  padding: 1em;
  margin-top: 1em;
  margin-bottom: 2em;
  display: none;
  white-space: pre-wrap;
  text-align: left;
}
.visible {
  display: block;
}
img,
video {
  max-width: 100%;
}

@media (max-width: 480px) {
  body {
    overflow: scroll;
  }

  .logo {
    font-size: 16px;
    padding: 16px;
  }
  .page-title {
    font-size: 16px;
    grid-column: 3 / 11;
  }
  .side-left,
  .side-right {
    font-size: 14px;
    padding: 16px;
  }

  .bottom-links {
    padding-bottom: 16px;
  }
  .bottom-links a {
    font-size: 16px;
    margin-right: 12px;
  }

  .lore-block {
    margin-left: 1em;
    font-size: 15px;
  }
}