:root {
  --red-color: #c16e70;
  --blue-color: #6ca6c1;
  --orange-color: #dc9e82;
  --cream-color: #f2f3d9;
  --black-color: #141217;
  --success-color: lightseagreen;
  --showcase-grid: 2px;
  --showcase-grid-sm: 1px;
  --footer-height: 3.5rem;
}

/* Global */
body {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 14px;
  line-height: 1.5;
  padding: 0;
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
  background-color: var(--black-color);
}

body.catalyst {
  background-color: var(--cream-color);
}

iframe {
  border: unset;
  overflow: hidden;
}

#content-wrapper {
  height: max-content;
  min-height: 100vh;
  display: flex;
  flex-flow: column nowrap;
  overflow-x: hidden;
}

.red-text {
  color: var(--red-color);
}

.blue-text {
  color: var(--blue-color);
}

.orange-text {
  color: var(--orange-color);
}

.h-line {
  width: 30%;
  border-color: var(--orange-color);
  margin: 2rem auto 2rem auto;
}

.h-line.catalyst {
  border-color: var(--blue-color);
}

/* Links */
a {
  color: var(--red-color);
  text-decoration: none;
}

.reference {
  font-style: italic;
}

a:hover {
  color: var(--orange-color);
}

.catalyst {
  a {
    color: var(--blue-color);
  }

  a:hover {
    filter: brightness(0.5);
  }
}

.header-wrapper {
  width: 100%;
  height: 4rem;
}

.navigation-bar {
  padding: 1rem;
  width: 60%;
  max-width: 1000px;
  margin: 0 auto 0 auto;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  color: var(--cream-color);

  .brand {
    font-weight: 600;
    font-size: 1.25rem;
  }

  nav {
    font-size: 1rem;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 1rem;
  }
}

.navigation-bar.catalyst {
  color: var(--black-color);
}

/* Homepage */
#homepage {
  width: 100%;
  height: 100%;
  background-color: var(--black-color);
}

#homepage.catalyst {
  background-color: var(--cream-color);
}

#homepage-photo {
  display: flex;
  width: 100%;
  height: 338px;
  justify-content: center;
  z-index: 1;

  svg {
    position: absolute;
    width: 400px;
    height: 462px;
    z-index: 1;

    #photo-border {
      fill: var(--cream-color);
    }

    #photo-border.catalyst {
      fill: var(--black-color);
    }
  }
}

#homepage-about {
  width: 100vw;
  height: 100%;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 2rem;
  background-color: var(--cream-color);
  color: var(--black-color);

  #about-content {
    width: 60%;
    max-width: 1000px;

    h1,
    h2 {
      text-align: center;
    }

    .github-chart {
      width: 100%;
      display: flex;
      flex-flow: column nowrap;
      align-items: center;

      img {
        filter: contrast(0.6);
      }

      a {
        padding: 3px;
        margin: 0;
        font-size: xx-small;
      }
    }

    #recent-activity {
      display: flex;
      flex-flow: row nowrap;
      justify-content: space-between;
      gap: 1rem;
      padding-top: 2rem;
      width: 100%;

      .ra-wrapper {
        border-radius: 5px;
        width: 100%;
      }

      .ra-title {
        margin: 0;
        padding: 0;
        text-align: center;
      }
    }
  }
}

#homepage-about.catalyst {
  background-color: var(--black-color);
  color: var(--cream-color);
}

/* Fancy Article Lists */
.article-fancy-list {
  display: flex;
  flex-flow: column nowrap;
  margin-top: 1rem;
}

.article-fancy-list-item {
  margin: 1rem 0rem;
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
}

.article-fancy-list-item-date {
  padding: 1rem 1rem 1rem 0rem;
  margin-right: 1rem;
  width: 100px;
  border-right: 3px solid var(--black-color);
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  opacity: 75%;

  .article-date,
  .article-year {
    text-align: center;
    font-weight: bolder;
    font-size: small;
    text-transform: uppercase;
  }

  .article-year {
    font-size: large;
  }
}

.article-fancy-list-item-body {
  width: 100%;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
}

.article-fancy-list-item-header {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;

  a {
    font-size: x-large;
    font-weight: bold;
    text-align: left;
  }
}

.badge-bar {
  display: flex;
  flex-flow: row wrap;
  gap: 0.25rem;

  div {
    background-color: var(--black-color);
    color: var(--cream-color);
    border: 2px solid var(--orange-color);
    border-radius: 15px;
    padding: 0.1rem 0.5rem;
    font-size: x-small;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: baseline;
    gap: 0.25rem;
  }
}

/* Articles */
.article {
  width: 100%;
  height: 100%;
  padding: 2rem;
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-start;
  align-items: center;
  background-color: var(--cream-color);
  color: var(--black-color);

  .article-title {
    text-align: center;
    width: 60%;
    margin: 0;
    padding: 0;
  }

  .article-subtitle {
    text-align: center;
    width: 60%;
    margin: 0;
    padding: 0;
    font-style: italic;
  }

  .article-body {
    width: 60%;
    max-width: 1000px;

    .article-speech-block {
      margin-left: 1rem;
      display: flex;
      flex-flow: column nowrap;
      gap: 0.5rem;
    }
  }

  > .badge-bar {
    margin: 1rem 0;
  }

  img {
    width: 90%;
    max-width: 1000px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--black-color);
    border-radius: 15px;
  }

  img.no-border {
    border: unset !important;
  }

  /* For lists with a header/title on each bullet, which looks better with spacing. */
  ul.header-list,
  ol.header-list {
    li {
      margin-bottom: 1rem;
    }
  }
}

.article.catalyst {
  background-color: var(--black-color);
  color: var(--cream-color);
}

.archivist-notes {
  h3 {
    text-align: center;
  }

  div {
    font-style: italic;
    margin-bottom: 1rem;
  }
}

/* Wiki */
.wiki-info-block {
  border: 1px solid var(--orange-color);
  border-radius: 5px;
  margin: 1rem 0 2rem 0;

  .wiki-info-grid {
    display: grid;
    margin: 1rem 3rem;
    grid-template-columns: 1fr 3fr 1fr 3fr 1fr 3fr;
    justify-items: center;
    align-items: center;
    gap: 0.5rem;

    .wiki-info-data {
      justify-self: left;
    }
  }
}

/* SLIDESHOW */
.slideshow-container {
  border: 1px solid var(--black-color);
  border-radius: 15px;
  width: 90%;
  max-width: 1000px;
  position: relative;
  margin: auto;
  background-color: rgba(0, 0, 0, 0.8);

  img {
    border-radius: 15px;
    max-width: 1000px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}
.mySlides1,
.mySlides2 {
  display: none; /* Hide by default. */
}
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  text-shadow: 1px 1px #1f1f1f;
}
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 0.5em 0;
  position: absolute;
  bottom: 8px;
  width: 100%;
  max-width: inherit;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.7);
  word-wrap: break-word;
}
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
  text-shadow: 1px 1px #1f1f1f;
}
.active,
.dot:hover {
  background-color: #717171;
}
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}
@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* Legacy Task Progress Markers */
.article .task-pass,
.article .task-fail,
.article .task-prog,
.article .task-stag,
.article .task-canned {
  padding-left: 0.5rem;
  margin-bottom: 0.25rem;
}

.article .task-pass::marker {
  color: var(--success-color);
  font-family: FontAwesome;
  content: "\f00c";
}

.article .task-fail::marker {
  color: var(--red-color);
  font-family: FontAwesome;
  content: "\f00d";
}

.article .task-prog::marker {
  color: var(--blue-color);
  font-family: FontAwesome;
  content: "\e098";
}

.article .task-stag::marker {
  color: var(--orange-color);
  font-family: FontAwesome;
  content: "\e097";
}

.article .task-canned::marker {
  color: var(--red-color);
  font-family: FontAwesome;
  content: "\f2ed";
}

/* Media Queries */
@media (max-width: 1200px) {
  .header-wrapper {
    width: 100%;
    height: 6rem;
  }

  .navigation-bar,
  #homepage-about > #about-content > #recent-activity {
    flex-flow: column nowrap;
    align-items: center;
    margin: auto;
  }

  .github-chart > img {
    width: 350px;
  }

  #homepage-photo {
    width: 100%;
    height: 200px;
    svg {
      transform: scale(0.5) translate(0px, -170px);
    }
  }

  #homepage-about {
    padding-top: 4rem;
  }

  .article-fancy-list-item {
    flex-flow: column nowrap;
    margin-bottom: 0;

    a {
      font-size: medium;
    }

    .badge-bar {
      margin: 0;
    }

    .article-fancy-list-item-date {
      padding: 0;
      margin-bottom: 0.25rem;
      border-right: none;
      flex-flow: row nowrap;
      justify-content: flex-start;
      gap: 4px;
      .article-date,
      .article-year {
        font-size: small;
        font-weight: 600;
        text-transform: none;
      }
    }
  }

  .article {
    padding: 1rem 0;

    .article-title,
    .article-subtitle,
    .article-body {
      width: 80%;
    }

    img {
      width: 100%;
    }
  }

  .slideshow-container {
    width: 100%;

    img {
      width: 100%;
    }
    .text {
      font-size: x-small;
    }
    .numbertext {
      font-size: x-small;
    }
  }
}

/* Character Colors */
.storyteller {
  color: var(--blue-color);
  font-style: italic;
}

.tadgh {
  color: var(--orange-color);
}

.crow {
  color: darkorchid;
}

.bast {
  color: #91b3ce;
}

.valka {
  color: silver;
}

.asmodeus {
  color: #a23e48;
}

.arin {
  color: royalblue;
}

.regulus {
  color: #b5a642;
}

.annabell {
  color: #8a60a8;
}

.protocite {
  color: rgb(135, 211, 195);
}

.lockette {
  color: rgb(58, 169, 159);
}

.ms-m {
  color: rgb(139, 126, 200);
}

.flay {
  color: silver;
}

.fury {
  color: rgb(135, 133, 128);
}

.harvest {
  color: rgb(236, 139, 73);
}
