:root {
  --text-color: #837191;
  --main-bg-color: #f3f0f5;
  --banner-color: #524959;
  --banner-text-color: #a096a8;
  --border-color: #9d8da6;
  --subsection-border-color: #d3c7d9;
  --comment-border-color: #9f92a6;
  --heading-color: #9f92a6;
  --link-color: #584961;
  --subtle: #cdcacf;
  --tag-color: #a7a3a8;
  --highlight: #d6ccdb;
  
  --th-color: #6f5f78;
  --td-odd-color: #d6ccdb;
  --td-even-color: white;
  
  --purpie: #9b83a8;
}

@font-face {
    font-family: 'NomnomNami';
    src: url('/font/NomnomNami.ttf');
}
@font-face {
    font-family: 'NomnomNami2';
    src: url('/font/NomnomNami2.ttf');
}
@font-face {
    font-family: 'Doka';
    src: url('/font/Doka_Regular.ttf');
}
@font-face {
    font-family: 'Doka';
    src: url('/font/Doka_Bold.ttf');
    font-weight: bold;
}
body {
  font-family: 'doka';
  font-size: 12px;
  margin: 0;
  color: var(--text-color);
  text-transform: lowercase;
  }

html {scroll-behavior: smooth;}
details > summary {cursor: pointer;}
* {box-sizing: border-box;}
::selection {background:#d1d1d1;
  color: black;}
main a {color: var(--link-color);}
main a:visited {color: var(--subtle);}
main a:hover {color: var(--link-color);}
a:hover {
  color: var(--link-color);
  text-decoration: none;
}
header, footer {
  background: var(--banner-color);
  color: var(--banner-text-color);
}
header h1 {
  margin: 0;
  padding: 12px 24px;
  max-width: 900px;
}
header a {
  text-decoration: none;
  color: var(--banner-text-color);
}
header a:visited, 
header a:hover {color: var(--banner-text-color);}
main {
  width: 900px;
  max-width: 100%;
  background: var(--main-bg-color);
  border: 3px solid var(--border-color);
  border-radius: .25em;
  margin: 20px auto;
  padding: 12px 48px;
}
li {margin-bottom: 4px;}
.icon {
  height: 32px;
  width: 32px;
  border-radius: .2em;
  display: inline-block;
  vertical-align: text-bottom;
  margin-right: 8px;
  image-rendering: pixelated;
}
.character-name {
  background-color: var(--heading-color);
  padding: .5em;
  font-size: 24px;
}
main h2,
main h3 {
  background-color: var(--heading-color);
  padding: .4em .5em;
}
main h4 {border-bottom: 2px dashed var(--subsection-border-color);}
dt {font-weight: bold;}
dd {margin-bottom: 8px;}
main img,
.bio img {
  max-width: 100%;
  display: block;
  margin: auto;
}
.bio {
  float: right;
  border: 2px solid var(--border-color);
  margin-left: 16px;
  max-width: 280px;
  /*bg color isnt shown unless your portrait image is transparent*/
  background: white;
}
.bio::after {
  content: "";
  clear: both;
  display: table;
}
.bio table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
}
.bio th,
.bio td {
  padding: 0.4em;
  vertical-align: top;
}
.bio th {
  background: var(--th-color);
  color: white;
}
.bio td {
  font-size: small;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.bio td:first-of-type {
  font-weight: bold;
  width: 35%;
}
.bio tr:nth-child(odd) {background: var(--td-odd-color);}
.bio tr:nth-child(even) {background: var(--td-even-color);}
.quote {
  border-left: 6px solid var(--heading-color);
  padding: .5em 1em;
  font-style: italic;
}
.spoilers {
  background: var(--highlight);
  border: dashed 2px #ea426d80;
  margin: .5em 2px;
  padding: .5em;
}
.spoilers summary {
  color: #ea426d;
  font-weight: bold;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(var(--pages), minmax(150px, 1fr));
  grid-template-rows: auto 1fr;
  column-gap: 1rem;
}
.gallery-page {
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: subgrid;
  grid-column: 1 / -1;
  grid-row: 1 / span 3;
}
.gallery-page::details-content {
  grid-row: 2;
  grid-column: 1 / -1;
  padding: 1rem;
}
.gallery-page:not([open])::details-content {display: none;}
.gallery-page > summary {
  grid-column: var(--n) / span 1;
  grid-row: 1;
  display: grid;
  padding: .5rem;
  border: 2px solid var(--heading-color);
  text-align: center;
}
.gallery-page[open] > summary {
  background: var(--tag-color);
  font-weight: bold;
}
.gallery-page > summary:hover {
  background: var(--highlight);
  border: 2px solid var(--subtle);\
}
.gallery-page a,
.gallery-page details,
.gallery-page summary {z-index: 1;}

.img-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.img-gallery details > summary,
.img-gallery figure {
  margin: 10px;
  max-width: 200px;
  border: 2px solid var(--border-color);
  background: white;
}
.img-gallery details > summary:hover,
.img-gallery figure:hover {
  border: 2px solid var(--link-color);
}
.img-gallery img {
  width: 200px;
  height: 200px;
}
.img-gallery figcaption {
  font-size: small;
  text-align: center;
  margin: auto;
  padding: 4px 20px;
  background: var(--heading-color);
  color: var(--text-color);
}
.img-gallery a {text-decoration: none;}
.img-gallery details > summary {
  background: var(--heading-color);
  padding: 40px;
  list-style-type: none;
  text-align: center;
  font-weight: bold;
}
.img-gallery details[open] > summary {display:none;}
.comment {
  border: 2px solid var(--comment-border-color);
  border-radius: .3em;
  padding: .5em 1em;
  margin-bottom: 10px;
}
.reply {margin-left: 20px;}
.reply summary {
  text-decoration: underline;
  list-style-type: none;
  color: var(--subtle);
}
.reply summary:hover {
  color: var(--subtle);
  text-decoration: none;
}
.reply[open] summary {display:none;}
.user {font-weight:bold;}
.user small {font-weight: normal; margin-left: 8px;}
.grey {background: var(--grey)!important;}
nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  padding: 0;
}
nav a {color: var(--subtle);}
nav a:hover {color: var(--subtle);}
nav li {padding-left: 4px;}
nav li:after {content: " /"}
footer {
  width: 100%;
  position: fixed;
  bottom: 0;
  font-size: 12px;
  opacity: 50%;
  padding: 6px;
  text-align: center;
  z-index: 2;
}
@media only screen and (max-width: 800px) {
  h1 {font-size: 24px; padding-inline: 12px;}
  main {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding-inline: 1.5em;
  }
  .bio {
    float:none;
    max-width: 100%;
    width: 280px;
    margin: 0 auto;
  }
  .gallery-grid {grid-template-columns: repeat(var(--pages), minmax(60px, 1fr));}
}