@font-face {
  font-family:"Halo Dek";
  src:url("assets/Halo_Dek.ttf");
}

@font-face {
  font-family:"Alte Haas Grotesk";
  src:url("assets/Alte_Haas_Grotesk.ttf");
}

@font-face {
  font-weight:bold;
  font-family:"Alte Haas Grotesk";
  src:url("assets/Alte_Haas_Grotesk-Bold.ttf");
}

:root {
  --text:#fcfbf6;
  --accent:#8f4f3d;
  --background:#222022;
  --light-accent:#c88e7e;
  --background-accent:#282527;
}

* {
  box-sizing:border-box;
}

html, body {
  margin:0;
  scroll-behavior:smooth;
}

body {
  margin:0;
  color:var(--text);
  background-color:var(--background);
  font-family:"Alte Haas Grotesk", sans-serif;
}

a {
  transition:.5s ease;
  color:var(--accent);
  text-decoration:none;
}

a:hover {
  transition:.3s ease;
  text-decoration:none;
  color:var(--light-accent);
}

h1, h2, h3, h4, h5 {
  font-weight:normal;
  color:var(--accent);
  transition:.5s ease;
  font-family:"Halo Dek", sans-serif;
}

a:hover h1, a:hover h2, a:hover h3, a:hover h4, a:hover h5 {
  transition:.3s ease;
  text-decoration:none;
  color:var(--light-accent);
}

h1, h2 {
  width:100%;
  text-align:left;
  border-bottom:2px solid var(--accent);
}

h4 {
  margin:0;
  width:100%;
  font-size:1.5em;
  text-align:left;
}

h1 {
  margin-top:0;
  font-size:2.5em;
}

h2 {
  font-size:1.8em;
}

h4 {
  font-weight:100;
  padding-left:20px;
}

h5 {
  font-size:1.2em;
  margin-top:20px;
  margin-bottom:-12px;
}

ol {
  list-style-type:decimal;
}

ul {
  margin-top:5px;
  list-style-type:square;
}

li {
  padding-bottom:3px;
}

table {
  width:300px;
  border-spacing:0;
  background-color:#e7e9eb;
  border-radius:0 0 10px 10px;
  border:1px solid var(--accent);
  background-color:var(--background);
}

tbody {
  margin:3px 10px;
}

th {
  padding:5px 0;
  text-align:center;
  color:var(--background);
  border:2px solid var(--accent);
  background-color:var(--accent);
}

tr:nth-child(odd) {
  background-color:var(--background-accent);
}

td {
  text-align:left;
  padding:4px 8px;
  border-right:2px solid var(--accent);
}

td:nth-child(odd) {
  border-right:0;
  text-align:left;
  font-weight:600;
  vertical-align:top;
  border-left:2px solid var(--accent);
}

td ul {
  margin:0;
  padding-left:15px;
}

main {
  text-align:justify;
  padding:20px 20px 20px 80px;
  background-color:var(--background);
}

.sidenav {
  top:0;
  left:0;
  z-index:1;
  width:230px;
  height:100%;
  position:fixed;
  padding-top:30px;
  overflow-x:hidden;
  border-bottom:none;
  border-right:2px solid var(--accent);
  background-color:var(--background-accent);
}

.sidenav a {
  display:block;
  border-radius:7px;
  transition:.5s ease;
  text-decoration:none;
  margin:0 40px 5px 30px;
  padding:7px 0 7px 20px;
  background-color:var(--background);
}

.sidenav a:hover {
  transition:.3s ease;
  color:var(--background);
  background-color:var(--accent);
}

.sidenav p {
  padding:0 20px;
  text-decoration:none;
}

.sidenav h2 {
  margin-top:0;
  padding:0 30px;
  border-bottom:0;
  font-size:1.72em;
  text-decoration:none;
}

@media screen and (max-width:1350px) {

  .sidenav {
    width:100%;
    height:40px;
    position:static;
    overflow-x:scroll;
    border-right:none;
    white-space:nowrap;
    align-content:center;
    scrollbar-width:none;
    padding:10px 15px 0 15px;
    border-bottom:2px solid var(--accent);
  }
  
  .sidenav a {
    margin:0;
    display:inline;
    padding:3px 10px;
    border-radius:7px 7px 0 0;
  }
  
  .sidenav a:hover {
    border-bottom:1px solid var(--accent);
  }
  
  .sidenav .imagehere {
    display:none;
  }
  
  .sidenav br {
    display:none;
  }
  
  .sidenav p {
    display:none;
  }
  
  .sidenav h2 {
    display:none;
  }
  
  .sidenav hr {
    display:none;
  }
  
}

#container {
  margin:0 auto;
  max-width:1070px;
}

.characterprofile {
  float:right;
  width:300px;
  margin-left:auto;
  margin:0 0 30px 30px;
  border-radius:0 0 10px 10px;
  background-color:var(--background-accent);
}

.characterprofile #bottom {
  border-radius:0 0 10px 10px;
}

.charactermain-image {
  width:300px;
  height:350px;
  margin-left:auto;
  background-size:310%;
  border-radius:10px 10px 0 0;
  background-position:72% 22%;
  background-repeat:no-repeat;
  border:2px solid var(--accent);
}

#musicPlayer {
  padding:5px 8px;
  font-weight:normal;
  border-right:2px solid var(--accent);
}

#pausePlay {
  cursor:pointer;
  margin-left:5px;
  color:var(--accent);
}

#toc {
  float:left;
  width:200px;
  text-align:left;
  margin-right:auto;
  border-radius:10px;
  margin:0 40px 10px 0;
  border:2px solid var(--accent);
  background-color:var(--background-accent);
}

.pagedoll {
  float:left;
  width:140px;
  margin-right:auto;
  margin:0 20px 0 0;
  image-rendering:pixelated;
  background-color:var(--background);
}

#toc ol {
  padding-left:10%;
  list-style-type:upper-roman;
}

.gallery {
  padding:10px;
  overflow:hidden;
  background-color:rgba(0, 0, 0, 0);
}

.galleryimage {
  float:left;
  margin:10px;
  height:170px;
  min-width:170px;
  max-width:170px;
  position:relative;
  border-radius:10px;
  background-size:auto 100%;
  background-position:center;
  background-repeat:no-repeat;
  border:2px solid var(--accent);
}

.galleryimage p {
  left:0;
  bottom:0;
  margin:0;
  line-height:1em;
  position:absolute;
  transition:.5s ease;
  padding:3px 5px 0 2px;
  color:var(--background);
  border-radius:0 10px 0 7px;
  background-color:var(--accent);
  border-top:2px solid var(--accent);
  border-right:2px solid var(--accent);
}

.galleryimage span {
  right:0;
  bottom:0;
  line-height:1em;
  position:absolute;
  transition:.5s ease;
  padding:3px 2px 0 3px;
  color:var(--background);
  border-radius:10px 0 7px 0;
  background-color:var(--accent);
  border-top:2px solid var(--accent);
  border-left:2px solid var(--accent);
}

.galleryimage span:hover, .galleryimage p:hover {
  color:var(--accent);
  transition:.3s ease;
  background-color:var(--background);
}

footer {
  width:100%;
  height:40px;
  padding:10px;
  text-align:center;
  background-color:var(--background-accent);
}

.row:after {
  clear:both;
  content:"";
  display:table;
}

#top {
  border:0;
  right:30px;
  z-index:99;
  bottom:30px;
  cursor:pointer;
  position:fixed;
  color:var(--text);
  border-radius:7px;
  transition:.5s ease;
  padding:5px 8px 1px 8px;
  border:2px solid var(--accent);
  background-color:var(--background);
}

#top:hover {
  transition:.3s ease;
  background-color:var(--accent);
}

.outlink:after {
  content:"⤤";
  line-height:1em;
  padding-left:2px;
}

.help {
  cursor:help;
  text-decoration:dotted underline;
}

::selection {
  color:var(--background);
  background-color:var(--accent);
}

::-webkit-scrollbar {
  color:var(--accent);
}

::-webkit-scrollbar-track {
  background:var(--background);
}

::-webkit-scrollbar-thumb {
  background:var(--accent);
  border-radius:4px;
}

@media only screen and (max-width:1350px) {
  main {
    float:left;
    width:100%;
    margin-left:auto;
    margin-right:auto;
    padding:10px 20px;
  }
}

@media only screen and (max-width:550px) {
  main {
    padding:20px;
  }
  
  #toc {
    width:100%;
  }
  
  table, .characterprofile {
    float:left;
    width:100%;
    margin:10px 0 0 0;
  }
    
  .characterprofile {
    float:left;
    width:100%;
    margin:0 0 30px 0;
  }
    
  .charactermain-image {
    width:100%;
    margin:0 0 10px 0;
  }
}