@import url(https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600;1,700&display=swap);
@import url(https://use.typekit.net/ifj5wno.css);
:root {
  --content-width: 700px;
}

@media only screen and (max-width: 700px) {
  :root {
    --content-width: 100vw;
  }
}

.shorten .body,
.shorten::after {
  -webkit-mask-image: linear-gradient(to bottom, white, white 60%, #ffffff88 75%, #ffffff44 85%, transparent);
  mask-image: linear-gradient(to bottom, white, white 60%, #ffffff88 75%, #ffffff44 85%, transparent);
}

.body {
  font-family: 'Titillium Web', Arial, Helvetica;
  line-height: 1.3;
  white-space: pre-wrap;

  p {
    margin: 0;
  }

  img {
    display: block;
    max-width: var(--content-width);
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
  }

  img.inline {
    margin-left: 0;
    margin-right: 0;
    display: inline-block;
  }

  img.left {
    margin-left: 0;
    margin-right: 1em;
    float: left;
  }

  img.right {
    margin-left: 1em;
    margin-right: 0;
    float: right;
  }

  strong {
    font-size: 1.05em;
    color: var(--strong-color);
    font-weight: 400;
  }
}

.more {
  font-family: 'Titillium Web', Arial, Helvetica;
  visibility: collapse;
  a {
    color: var(--text-color);
  }
  position: absolute;
  background: black;
  bottom: 0;
  z-index: 1;
}

.shorten {
  .body {
    max-height: 250px;
    overflow: clip;
    text-overflow: clip;
  }
  .more {
    visibility: visible;
  }
}

.shorten::after {
  content: '';
  position: absolute;
  left: -0.5em;
  top: 0;
  width: 4;
  height: 100%;
  background-color: var(--button-light);
}

.dev-diary {
  background: linear-gradient(to right, black, black 65%, #00000088 75%, #00000044 85%, transparent);
  position: relative;
  font-size: 1.1em;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;

  .diary-header {
    background: linear-gradient(to bottom, var(--button-shadow), transparent);
    margin-bottom: 0.5em;
    padding: 0.5em;
  }

  .body {
    padding: 0.5em;
  }

  .title {
    font-family: 'Pirulen', sans-serif;
    font-size: 1.5em;
    color: var(--text-color);
  }

  .posted {
    font-family: 'Titillium Web', Arial, Helvetica;
    font-size: 0.85em;
    margin-bottom: 0.25em;
  }

  .edited {
    font-family: 'Titillium Web', Arial, Helvetica;
    font-size: 0.85em;
    margin-bottom: 0.25em;
  }
}

.encyclopedia-entry {
  background: linear-gradient(to right, black, black 65%, #00000088 75%, #00000044 85%, transparent);
  position: relative;
  font-size: 1.1em;
  padding: 0.5em;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;

  .title {
    font-family: 'Pirulen', sans-serif;
    font-size: 1.5em;
    color: var(--text-color);
    text-decoration: none;
  }

  .byline {
    font-family: 'Titillium Web', Arial, Helvetica;
    font-size: 0.85em;
    margin-bottom: 0.25em;
  }
}

.faq {
  background: linear-gradient(to right, black, black 65%, #00000088 75%, #00000044 85%, transparent);
  position: relative;
  font-size: 1.3em;
  padding-bottom: 0.5em;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

.question {
  padding-left: 0.25em;
  background: linear-gradient(to bottom, var(--button-shadow), transparent);
}

.answer-cell {
  display: flex;
  gap: 0.5em;
  align-items: begin;
  padding-top: 0.5em;
  padding-left: 0.25em;
  margin-bottom: 0.5em;
}

.answer {
  font-family: 'Titillium Web', Arial, Helvetica;
  line-height: 1.3;
  white-space: pre-wrap;

  p {
    margin: 0;
  }

  img {
    display: block;
    max-width: var(--content-width);
    object-fit: contain;
  }

  strong {
    font-size: 1.05em;
    color: var(--strong-color);
    font-weight: 400;
  }
}

.page-body {
  background: linear-gradient(to right, black, black 65%, #00000088 75%, #00000044 85%, transparent);
  position: relative;
  font-size: 1.1em;
  padding: 0.5em;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

.story {
  background: linear-gradient(to right, black, black 65%, #00000088 75%, #00000044 85%, transparent);
  position: relative;
  display: flex;
  flex-direction: column;
  font-size: 1.1em;
  padding: 0.5em;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;

  .title {
    font-family: 'Pirulen', sans-serif;
    font-size: 1.5em;
    color: var(--text-color);
    text-align: left;
  }

  .byline {
    font-family: 'Titillium Web', Arial, Helvetica;
    font-size: 0.85em;
    margin-bottom: 0.25em;
  }
}

:root {
  color-scheme: dark;
  --background-color: light-dark(#cacaca, #0d0d0d);
  --menu-color: light-dark(#bbbbbb, rgba(0, 0, 0, 0.65));
  --text-color: light-dark(#0d0d0d, #c2c2c2);
  --title-color: light-dark(#ffffff, #000000);
  --link-color: light-dark(#000000, #ffffff);
  --error-color: light-dark(#0d0d0d, #e63d3d);
  --error-border-color: light-dark(#0d0d0d, #8a2525);
  --blog-width: 95vw;

  --strong-color: #d06f00;
  --blog-width: 95vw;
}

:root {
  --header-height: 225px;
  --hero-height: 400px;
  --button-shadow: #472600;
  --button-light: #ac6400;
  --button-dark: #683800;
  --button-hover-shadow: #752b00;
  --button-hover-light: #d06f00;
  --button-hover-dark: #a93e00;
  --link-underline: #cc7700;
}

@media only screen and (min-width: 1920px) {
  :root {
    --hero-height: calc((100vw - 40px) * 400 / 1920);
  }
}

@media only screen and (max-width: 576px) {
  :root {
    --blog-width: 100vw;
  }
}

@media only screen and (min-width: 1200px) {
  :root {
    --blog-width: 1140px;
  }
}

body {
  margin: 0;
  font-family: Verdana, sans-serif;
  font-size: 1em;
  color: var(--text-color);
  background: var(--background-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

a {
  color: var(--link-color);
  text-decoration: underline;
  cursor: pointer;
}

.top-menu {
  width: calc(100vw - 20px);
  background: var(--menu-color);
  display: flex;
  margin-bottom: 1em;
}

.top-menu .content {
  width: var(--blog-width);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  grid-auto-flow: column;
}

.logo {
  cursor: pointer;
  height: 70px;
  width: 220px;
}

.logo img {
  background: -webkit-linear-gradient(
    top,
    var(--button-light) 0%,
    var(--button-dark) 93%,
    var(--button-shadow) 93%,
    var(--button-shadow) 100%
  );
  background: linear-gradient(
    to bottom,
    var(--button-light) 0%,
    var(--button-dark) 93%,
    var(--button-shadow) 93%,
    var(--button-shadow) 100%
  );
  box-shadow: 0px 5px 0px 0px rgba(0, 0, 0, 0.7);
}

.logo img:hover {
  background: -webkit-linear-gradient(
    top,
    var(--button-hover-light) 0%,
    var(--button-hover-dark) 93%,
    var(--button-hover-shadow) 93%,
    var(--button-hover-shadow) 100%
  );
  background: linear-gradient(
    to bottom,
    var(--button-hover-light) 0%,
    var(--button-hover-dark) 93%,
    var(--button-hover-shadow) 93%,
    var(--button-hover-shadow) 100%
  );
}

.navigation-options {
  align-self: stretch;
  margin-left: auto;
  display: grid;
  grid-auto-flow: column;
  align-items: flex-end;
  column-gap: 30px;
}

@media only screen and (max-width: 660px) {
  .navigation-options {
    margin-left: 0;
    margin-right: auto;
    grid-auto-flow: row;
    grid-template-columns: repeat(3, max-content);
    padding-right: 100px;
  }
}

@media only screen and (max-width: 450px) {
  .navigation-options {
    margin-left: 0;
    margin-right: auto;
    grid-auto-flow: row;
    grid-template-columns: repeat(2, max-content);
  }
}

.navigation-options > a {
  position: relative;
  text-decoration: none;
  box-sizing: border-box;
  font-family: 'Titillium Web', Arial, Helvetica;
  font-weight: 200;
  font-size: 1rem;
  color: var(--link-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: 300ms ease-in-out;
  margin-top: 10px;
  padding-bottom: 15px;
}

.navigation-options > a:hover,
.navigation-options > a.active {
  color: #ff8800;
}

.navigation-options > a.active {
  cursor: default;
}

.navigation-options > a::after {
  content: '';
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 0px;
  transition: 300ms ease-in-out;
  background-color: var(--link-underline);
}

.navigation-options > a:hover::after,
.navigation-options > a.active::after {
  top: calc(100% - 5px);
  height: 5px;
}

.auth {
  align-self: center;
}

.identity {
  margin-left: 1em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
}

.auth img {
  border-radius: 50%;
  height: 32px;
  width: 32px;
}

.auth iframe {
  color-scheme: light; /* fixes backgound color bug in dark mode */
}

.instructions {
  margin: 1em;
}

.content {
  width: var(--blog-width);
}

.content table {
  border-spacing: 1em;
}

.editor {
  width: var(--blog-width);
  display: grid;
  grid-template-columns: repeat(1, max-content auto);
  flex-direction: column;
  row-gap: 1em;
  column-gap: 0.75em;

  .value {
    display: flex;
    column-gap: 1em;
  }

  .list-value {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1em;
  }

  .error {
    color: var(--error-color);
    align-self: center;
  }

  .tag {
    display: flex;
    column-gap: 0.25em;
    align-items: center;
  }

  .tag img {
    width: 15px;
    height: 15px;
  }

  label {
    margin-left: auto;
    align-self: center;
  }

  input,
  select,
  textarea {
    font-family: Verdana, sans-serif;
    font-size: 1em;
    padding: 0.25em;
    font-size: 1em;
    flex-grow: 1;
  }
}

.formButtons {
  display: flex;
  gap: 1em;
}

.editor button {
  font-family: Verdana, sans-serif;
  font-size: 1em;
}

.editor textarea {
  min-height: 300px;
}

.editor input[type='checkbox'] {
  padding: 0;
  margin: 0;
  width: 1em;
}

.errored {
  border-color: var(--error-border-color);
}

.editor pre {
  padding: 0;
  margin: 0;
  background: var(--menu-color);
  display: block;
  position: fixed;
  bottom: 0;
  right: 0;
}

.previewer {
  display: flex;
  flex-direction: column;
  column-gap: 1em;
}

.delete {
  align-self: center;
}

.loader {
  font-size: 5px;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  animation: loading-spin 1.1s infinite ease;
}

@keyframes loading-spin {
  0%,
  100% {
    box-shadow:
      0em -2.6em 0em 0em #ffffff,
      1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2),
      2.5em 0em 0 0em rgba(255, 255, 255, 0.2),
      1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2),
      0em 2.5em 0 0em rgba(255, 255, 255, 0.2),
      -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2),
      -2.6em 0em 0 0em rgba(255, 255, 255, 0.5),
      -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.7);
  }
  12.5% {
    box-shadow:
      0em -2.6em 0em 0em rgba(255, 255, 255, 0.7),
      1.8em -1.8em 0 0em #ffffff,
      2.5em 0em 0 0em rgba(255, 255, 255, 0.2),
      1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2),
      0em 2.5em 0 0em rgba(255, 255, 255, 0.2),
      -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2),
      -2.6em 0em 0 0em rgba(255, 255, 255, 0.2),
      -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.5);
  }
  25% {
    box-shadow:
      0em -2.6em 0em 0em rgba(255, 255, 255, 0.5),
      1.8em -1.8em 0 0em rgba(255, 255, 255, 0.7),
      2.5em 0em 0 0em #ffffff,
      1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2),
      0em 2.5em 0 0em rgba(255, 255, 255, 0.2),
      -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2),
      -2.6em 0em 0 0em rgba(255, 255, 255, 0.2),
      -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
  }
  37.5% {
    box-shadow:
      0em -2.6em 0em 0em rgba(255, 255, 255, 0.2),
      1.8em -1.8em 0 0em rgba(255, 255, 255, 0.5),
      2.5em 0em 0 0em rgba(255, 255, 255, 0.7),
      1.75em 1.75em 0 0em #ffffff,
      0em 2.5em 0 0em rgba(255, 255, 255, 0.2),
      -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2),
      -2.6em 0em 0 0em rgba(255, 255, 255, 0.2),
      -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      0em -2.6em 0em 0em rgba(255, 255, 255, 0.2),
      1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2),
      2.5em 0em 0 0em rgba(255, 255, 255, 0.5),
      1.75em 1.75em 0 0em rgba(255, 255, 255, 0.7),
      0em 2.5em 0 0em #ffffff,
      -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2),
      -2.6em 0em 0 0em rgba(255, 255, 255, 0.2),
      -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
  }
  62.5% {
    box-shadow:
      0em -2.6em 0em 0em rgba(255, 255, 255, 0.2),
      1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2),
      2.5em 0em 0 0em rgba(255, 255, 255, 0.2),
      1.75em 1.75em 0 0em rgba(255, 255, 255, 0.5),
      0em 2.5em 0 0em rgba(255, 255, 255, 0.7),
      -1.8em 1.8em 0 0em #ffffff,
      -2.6em 0em 0 0em rgba(255, 255, 255, 0.2),
      -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
  }
  75% {
    box-shadow:
      0em -2.6em 0em 0em rgba(255, 255, 255, 0.2),
      1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2),
      2.5em 0em 0 0em rgba(255, 255, 255, 0.2),
      1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2),
      0em 2.5em 0 0em rgba(255, 255, 255, 0.5),
      -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.7),
      -2.6em 0em 0 0em #ffffff,
      -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
  }
  87.5% {
    box-shadow:
      0em -2.6em 0em 0em rgba(255, 255, 255, 0.2),
      1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2),
      2.5em 0em 0 0em rgba(255, 255, 255, 0.2),
      1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2),
      0em 2.5em 0 0em rgba(255, 255, 255, 0.2),
      -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.5),
      -2.6em 0em 0 0em rgba(255, 255, 255, 0.7),
      -1.8em -1.8em 0 0em #ffffff;
  }
}

.previewer {
  width: var(--blog-width);
}

