@font-face {
  font-family: "Elvish";
  src: url(/assets/fonts/Elvish.ttf); 
}

@font-face {
  font-family: "Baynes";
  src: url(/assets/fonts/Baynes.ttf); 
}

@font-face {
  font-family: "Tolkien";
  src: url(/assets/fonts/Tolkien.ttf); 
}

@font-face {
  font-family: "Tolkienmess";
  src: url(/assets/fonts/TolkienMess.ttf); 
}

@font-face {
  font-family: "Toon";
  src: url(/assets/fonts/Toon.otf) format("opentype");
}

@font-face {
  font-family: "Messe"; 
  src: url(/assets/fonts/Messe.otf); 
}

@font-face {
  font-family: "Sleep"; 
  src: url(/assets/fonts/Sleep.otf); 
}

@font-face {
    font-family: "Germanic";
    src: url("/assets/fonts/Manic-Germanic.otf") format("opentype");
}

  html {
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: rgb(25, 25, 25);
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: rgb(248, 248, 248);
}

.title {
  text-transform: capitalize;
}

h1 {
  padding: 0;
  margin: 0;
  font-family: "Baynes";
}

h2 {
  padding: 0;
  margin: 0;
  font-family: "Tolkien";
  font-weight: 1;
}

h3 {
  padding: 0;
  margin: 0;
  font-weight: 3;
  font-family: "Tolkienmess";
}

h4 {
 padding: 0;
 margin: 0;
 font-family: 'Germanic';
 font-size: xx-large;
}

h5, h6 {
  padding: 0;
  margin: 0;
}

h1 { pointer-events: none; }

.center { text-align: center; justify-content: center; }

img { max-height: 100%; max-width: 100%; }

.mobile { display: none; }

/* MAIN STYLING */

#main {
  height: auto;
  width: auto;
  overflow-y: auto;
  background-color: #000000;
}

#main .container {
  background-color: #0f0f0f;
  padding: 1rem;
  margin: auto;
  max-width: 850px;
  color:#bbb
}

.columns {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: .5rem;
  margin: 1rem 0;
}

#featured {
  display: flex;
  justify-content: center;
  align-items: center;
}

#featured > img {
  width: 100%;
  object-fit: cover;
  border: 2px solid rgb(255, 0, 0);
}

#main a{
  color: #c55353;
  font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  text-decoration:none;
  font-weight: 1;
}

#main a:hover {
  color: #fff;
 text-decoration: none;
}

.columns .left {
  display: flex;
  justify-content: center;
  align-items: center;
}

.slash-list ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
}

.slash-list ul li a {
  display: inline;
  color: rgb(255, 0, 0);
  font-weight: bold;
}

.slash-list ul li:not(:last-child)::after {
    content: "/ ";
    padding: 0 8px;
}

#card-gallery {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  margin: 1rem 0;
  gap: .5rem;
}

#card-gallery .card {
  text-align: center;
  border: 1px solid black;
  width: clamp(200px, 25%, 400px);
  height: 150px;
  padding: .5rem;
}

#update-box { 
  max-height: 100px;
  /* max-width: 800px; */
  overflow-y: scroll;
  border: 1px solid black;
  background-color: black;
  margin: .75rem;
  scrollbar-width: thin;
  font-family: monospace;
}
#update-box ul { margin: .5rem 0; }

/* TWO-COLUMN STYLING */

.mini-title a { text-decoration: none; color: black; }

.two-col {
  display: grid;
  gap: 2em;
  grid-template-columns: 225px 1fr;
  grid-template-rows: 1fr;
  height: 100%;
}

.two-col aside {
  overflow-y: auto;
  padding: 1em;
  background-color: #272730;
  border-right: 1px solid black;
}

.two-col aside h2 {
  font-size: 2rem;
}

.two-col main {
  overflow-y: scroll;
  padding: 1em;
  margin-bottom: 2em;
}

.two-col .slash-list ul {
  justify-content: left;
}

/* NOVEL STYLING */

#novel {
  margin: 0; padding: 0;
  background: #1A1A1F;
  color:#E4DDCF;
}


#novel h1 {
  padding: 0;
  margin: 0;
  font-weight: 1;
  font-family: "Toon";
}

#novel .img-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1em;
  padding: 1em;
  border: 1px solid #DFB558;
}

#novel .img-gallery .item {
  height: 250px;
}

#novel .img-gallery .item img {
  height: 100%;
  width: auto;
  border: 1px solid black;
}

.novel-list dd {
  margin: 0.5rem 1rem;
}

#novel aside h2 {
  font-size: 1rem;
  font-weight: 1;
}

#novel aside a{
    color:#59D2B1;
  text-decoration: none;
  font-family: "Messe";
}


#novel nav ul {
  padding-left: 12px;
}

#novel a{
  color: #DFB558;
  font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  text-decoration:none;
  font-weight: 1;
}

#novel a:hover {
  color: #fff;
 text-decoration: none;
}


/* READING SECTION */

#reading {
  height: auto;
  width: auto;
  overflow-y: auto;
  background-color: #1A1A1F;
}

#reading .container {
  height: 100%;
  background-color:#272730;
  color:#E4DDCF
}

#reading .container main {
  margin: auto;
  padding: 0 0.25em;
  max-width: 72em;
}

#reading img {
  display: block;
  margin: auto;
}

#reading h1 {
  text-align: center;
  color:#DFB558;
}

#reading header, #reading footer {
  padding: 0 0;
  width: 100%;
}

#reading header {
  background-color: #1A1A1F;
}

#reading footer {
  background-color: #1A1A1F;
}

#reading nav {
  padding: 2px 1em;
}

#reading nav a {
  color: inherit;
  text-decoration: none;
}

#reading nav ul {
  list-style: none;
  display: flex;
  gap: .75em;
}

#reading header ul {
  justify-content: right;
}

#reading footer ul {
  justify-content: center;
}

#reading hr {
  width: 50%;
}

#reading .button {
  display: inline-block;
  outline: 0;
  appearance: none;
  padding: 0 12px;
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  background-color: rgb(249, 251, 250);
  border: 1px solid rgb(137, 151, 155);
  box-shadow: rgb(6 22 33 / 30%) 0px 1px 2px;
  color: rgb(61, 79, 88);
  font-size: 1.02rem;
  font-weight: 400;
  height: 30px;
  line-height: 30px;
  transition: all 150ms ease-in-out 0s;
}

#reading .button:hover {
  color: rgb(61, 79, 88);
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(93, 108, 116);
  box-shadow: inset 2px 2px 2px #bbb;
}

button {
  background-color: transparent;
  border: none;
  margin: 0;
  padding: 0;
  text-align: inherit;
  font: inherit;
  color: inherit;
  border-radius: 0;
  appearance: none;
}

/* ART STYLING */

.date-list ul li a {
  font-weight: normal;
}

.tag-list ul {
  list-style: none;
  padding: 0;
}
.tag-list li {
  padding: 2px 0;
}
.tag-list a {
  color: black;
}

/* ART GALLERY CARDS */
.gallery {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.gallery-card {
  width: 205px;
  height: 150px;
}

.gallery-card a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: var(--black);
  text-align: center;
}
.gallery-card a:hover {text-decoration: underline;}

.gallery-card figure {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
}

.gallery-card img {
  display: block;
  max-width: 90%;
  max-height: 120px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0 3px black;
}

.gallery-card figcaption {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.85rem;
}

.art-full {
  max-height: 600px;
}

.art-date {
  font-style: italic;
}

/* WIKI STYLES */


#wiki {
  background-color: #1A1A1F;
  color:#D5CFC3
}

#wiki .container {
  padding: 4em;
  background-color: #1A1A1F;
}

#wiki h1 {
  color: #FCF6E8;
  font-family: "toon";
  font-weight: 1;
}

#wiki h2 {
  color: #FCF6E8;
  font-family: Messe;
  font-weight: 1;
}

#wiki h3 {
  color:#b8b5b0;
  font-family: sleep;
  font-weight: 50;
}

#wiki a {
  color: #b64545;
  text-decoration: none;
}

#wiki a:hover {
  color: white;
}

.chara-cards {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1em;
}

.chara-cards .card {
  width: 100%;
  max-width: 200px;
  border: 3px solid #883333;
  border-radius: 8px;
  overflow: hidden;
}

.chara-cards .card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 3px solid #883333;
  color: inherit;
  text-decoration: none;
}

.chara-cards .card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.chara-cards .card .text {
  margin: auto 0 0;
  padding: 0.5em;
  background: black;
  text-align: center;
  font-family: Toon;
  font-size: 30px;
}

.wiki-quote {
  text-align: center;
}

.wiki-quote > span {
  display: block;
  margin-bottom: 0.5em;
}

.wiki-quote > span::before,
.wiki-quote > span::after {
  content: "“";
  padding: 0 0.5em;
  font-size: 1.25em;
  line-height: 0;
  font-family: serif;
  font-weight: bold;
  color: gray;
}

.wiki-quote > span::after {
  content: "”";
}

.wiki-quote > cite::before {
  content: "―";
  margin-right: 0.5em;
}

.wiki-table {
  text-align: left;
}

.wiki-table td:first-of-type {
  padding: 0;
}

.wiki-table th {
  padding-right: 1rem;
}

.wiki-caption {
  text-align: center;
  font-style: italic;
}

.wiki-gallery img {
  height: 250px;
  margin: .25em;
  border: 2.5px solid #883333;
}

.wiki-aside {
  float: right;
  border: 1px solid #883333;
  max-width: 300px;
  padding: 12px;
  height: fit-content;
  margin: 0 0 1em 1em;
  background-color: #272730;
}

.wiki-aside img {
  max-height: 350px;
}


/* MOBILE FIXES */

@media screen and (max-width: 650px) {
  .desktop { display: none; }
  .mobile { display: contents; }
  .mini-title a { text-decoration: underline; }

  .wiki-aside {
    float: none;
    width: 90%;
    margin: 0;
  }

  .two-col {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 0;
  }

  .two-col aside {
    border-right: none;
    border-bottom: 1px solid black;
    text-align: center;
    padding: 1em 1em 0.5em 1em;
  }

  .two-col .slash-list ul {
    justify-content: center;
  }

  .gallery-card {
    width: 150px;
  }

  .art-full,
   #reading img {
    max-width: 92%;
  }

  .chara-cards .card {
    max-width: 150px;
  }

  #reading header ul,
  #reading footer ul {
    justify-content: center;
    padding: 0;
  }

}
