body {
  background: mediumaquamarine;
  font-size: 1rem;
  font-family: "century gothic", "lucida sans", verdana, sans-serif;
  min-width: 300px;
  max-width: 900px;
  margin: auto;
  overflow-x: visible;
}

* {
  box-sizing: border-box;
}

.bottom-nav a, .button a {
  text-decoration: none;
  background-color: transparent;
}

a {
  color: cornflowerblue;
}

a:visited {
  color: cornsilk;
  background-color: transparent;
}

div {
  margin: 5px;
  padding: 5px;
}

.grade-ul{
  margin-left:25px;
}

.bookmark {
  margin-bottom: 50px;
}

.flex-center {
  justify-content: center;
}
.flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}
.flex-align-center {
  align-content: center;
}
.flex-child {
  text-align: center;
  margin: 5px;
}

.no-underline {
  text-decoration: none;
}

.img-control {
  width: 100%;
  max-width: 200px;
}
.smaller {
  font-size: x-small;
}
.bold {
  font-weight: bold;
}

.framed {
  border: 7px royalblue inset;
}

figure {
  margin: auto;
}
#red-jade-large {
  position: fixed;
  z-index: -1;
  bottom: 0;
  max-width: 900px;
  margin: 0 auto;

}

.book-number {
  text-align: center;
  color: cornsilk;
  padding-top: 0;
}

.book-number-move-up {
  position: relative;
  top: -30%;
}

#header-img {
  width: 100%;
  height: auto;

}

#header-img-hide {
  width: 100%;
  height: auto;
  visibility: hidden;
}

.header-gap {
  height: 50px;
  width: 50px;

}

.hidden {
  display: none;
}

#header-small {
  position: fixed;
  height: 50px;
  width: 101%;
  background-color: black;
  top: -8px;
  left: -8px;
  z-index: 100;
}

#header-small-buffer {
  height: 50px;
  width: 100%;
  background-color: black;
}

#header{
  font-size:1.4em;
  text-align:center;
  border-bottom: black 1px solid;
  position: fixed;
  background-color: #ddaa66;
  width:100%;
  top:0;
  left:0;
  z-index:100;
  font-weight: bolder;
}

.bottom-navigation {
  align-items: center;
}

#red-jade-scroll-percent {
  position: fixed;
  z-index: -1;
  left: 33px;
  top: 0;
  width: 134px;
  height: 50px;
}

#red-jade-scroll-percent-image {
  width: 134px;
  height: 50px;
}

.bottom-nav {
  text-align: center;
  vertical-align: middle;
  padding: 1px;
  border-radius: 10px;
}

.bottom-nav:hover {
  padding: 0;
  border: 1px white solid;
  border-radius: 10px;
}

.no-buffer {
  margin: 0;
  padding: 0;
}

.side-buffer {
  padding: 0 20px;
  margin: 0
}

.space-before {
  margin-top: 10px;
}

.flex {
  display: flex;
  justify-content: space-around;
}


.overflow-y {
  overflow-y: scroll;
}

.flex-keep {
  display: flex;
  flex-wrap: nowrap;
}

.wrap {
  flex-wrap: wrap;
}

.center {
  text-align: center;
}

.left {
  text-align: left;
}


.img-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.float-right {
  float: right;
}

.float-left {
  float: left;
}

.display-none {
  display: none;
}

.column {
  flex-direction: column;
}

.align-center {
  align-items: center;
}

.black-bkg {
  width: 100%;
  height: auto;
}

.character-class-button {
  width: 100px;
  height: 35px;
  line-height: 25px;
  border-radius: 15px;
  text-align: center;
  background: cornflowerblue;
  color: cornsilk;
}

.selected {
  /*background-color: #13499f;*/
  background-color: transparent;
}

.table-header {
  background-color: #13499f;
  color: cornsilk;
}

.bestiary-table {
  border-collapse: collapse;
  width: 100%;
}

.bestiary-table td {
  padding: 3px;
  border-bottom: 1px solid cornsilk;
}

.button {
  background-color: cornflowerblue;
  color: cornsilk;
  border-radius: 100%;
}

.button a, .button a:visited {
  color: cornsilk;
  text-decoration: none;
}

#character-class-description {
  height: 255px;
  border: 1px cornflowerblue dotted;
  border-radius: 25px;
  padding: 10px;
}

.filler {
  height: 250px;
  width: 100%;
}

section:nth-child(odd) {
  color: #d8e4fa;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 5px;
  /*margin: 3px 0;*/
  border-radius: 5px;
}

section:nth-child(even) {
  color: cornsilk;
  background-color: rgba(0, 0, 0, 0.7);
  /*background-color: #24385b;*/
  padding: 5px;
  margin: 5px;
  border-radius: 5px;
  box-shadow: 0 0 20px 6px #13499f;
}

.current {
  background-color: #13499f;
}

.rounded {
  border-radius: 20px;
  overflow: hidden;
  margin: 2px;
}

.w250 {
  max-width: 250px;
  height: auto;
}

.w440 {
  max-width: 440px;
  height: auto;
}

.w200 {
  max-width: 200px;
  height: auto;
}

.w170 {
  max-width: 170px;
  height: auto;
}

.w500 {
  max-width: 500px;
  height: auto;
}

.w33 {
  width: 33%
}

.w20 {
  width: 20%;
}

.w30 {
  width: 30%;
}

.w900 {
  width: 100%;
  max-width: 900px;
}

.w100 {
  width: 100%;
}

.h400 {
  height: 400px;
  max-height: 400px;
  overflow: hidden;
}

.icon {
  width: 40px;
  height: 40px;
}

.h250 {
  max-height: 250px;
}

.h300 {
  max-height: 300px;
}

.h25 {
  height: 25px;
}

.h50 {
  height: 50px;
}

.h110 {
  height: 110px;
}

.flex-grow3 {
  width: 60%;
}

.flex-grow2 {
  width: 40%;
}

.half {
  width: 48%;
}


.chapter-ul {
  list-style: none;
 margin-left: 0;
 padding-left: 5.2em;
 text-indent: -5.2em;
}

.chapter-ul li{
  padding-bottom:5px;
}

.monospace {
  font-family: "Courier New", Consolas, monospace;
}

footer {
  text-align: center;
  font-weight: bolder;
  font-size: 0.9rem;
  background: mediumaquamarine;
  color: cornsilk;
}

.excerpt {
  height: 200px;
  min-width: 200px;
  overflow-y: scroll;
}

.reverse {
  flex-direction: column-reverse
}

.row-reverse {
  flex-direction: row-reverse
}

.no-top-margin {
  margin-top: 0;
}

img {
  border-radius: 5px;
}

a#artists-link {
  text-decoration: none;
}

#artists-table td {
  padding: 10px 20px;
}

/*scrollbars*/
::-webkit-scrollbar {
  width: 12px;
  background: transparent;
  border-radius: 12px;
}

::-webkit-scrollbar-button {
  width: 12px;
  background: transparent;
}

::-webkit-scrollbar-track {
  width: 12px;
  background: black;
  border-radius: 6px;
}

::-webkit-scrollbar-track-piece {
  width: 12px;
  background: black;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  width: 12px;
  background: #24385b;
  border-radius: 6px;
}

::-webkit-scrollbar-corner {
  width: 12px;
  background: #24385b;
}

::-webkit-resizer {
  width: 12px;
  background: #24385b;
}

/*menu bar*/
.hamburger-container {
  display: inline-block;
  cursor: pointer;
  z-index: 101;
}

.bar1, .bar2, .bar3 {
  width: 30px;
  height: 4px;
  background-color: #ddaa66;
  margin: 2px 0;
  transition: 0.4s;
  padding: 0;
}

/* Rotate first bar */
.change .bar1 {
  -webkit-transform: rotate(-45deg) translate(-3px, 6px);
  transform: rotate(-45deg) translate(-3px, 6px);
}

/* Fade out the second bar */
.change .bar2 {
  opacity: 0;
}

/* Rotate last bar */
.change .bar3 {
  -webkit-transform: rotate(45deg) translate(-3px, -7px);
  transform: rotate(45deg) translate(-3px, -7px);
}

/*dropdown list*/
/* Dropdown Button */
.dropbtn {
  /*background-color: #3498DB;*/
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

/* Dropdown button on hover & focus */
.dropbtn:hover, .dropbtn:focus {
  background-color: #24385b;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 8px 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd
}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {
  display: block;
}


/**************************************/
/* styling for the navigation sidebar */
/**************************************/

#body { /* page body wrapper so nav bar floats correctly */
  margin-left: 150px;
  padding: 10px;
}

#nav-note { /* on small screen, note appears to scroll down */
  display: none;
}

#nav-note a{
  color:white;
}

.navhead { /* headings in nav */
  text-align: center;
  color: #aa66dd;
}

nav {
  background-color: mediumaquamarine;
  font-size: 0.9em;
  float: left;
  min-width: 150px;
  max-width: 150px;
  margin-top: 50px;
}

nav > ul {
  list-style-type: none;
  margin: 5px;
  padding: 5px;
}

nav > ul > li > a > button {
  width: 100%;
  background-color: #ddaa66;
  color: black;
  margin: 2px 0;
  border-radius: 10px;
  padding:5px;
}

nav > ul > li.selected > a > button /* current page button highlight */
{
  background-color: #dd6699;
  color: #ddaa66;
}

nav > ul > li.subcategory.selected > a > button /* current page button highlight */
{
  background-color: #dd6699;
  color: #ddaa66;
  width: 80%;
  font-size: 0.8em;
  margin-left: 10%;
}

nav > ul > li.subcategory > a > button {
  width: 80%;
  background-color: #aa66dd;
  font-size: 0.8em;
  margin-left: 10%;
}

nav > ul > li > a > button:hover {
  color: #aa66dd;
  background-color: #ddaa66;
}


/*
***************************
styling for smaller screens
***************************
*/

@media screen and (max-width: 600px) {
  .flex {
    flex-wrap: wrap;
  }

  .half, .flex-grow2, .flex-grow3 {
    width: unset;
  }

  .small-swap {
    flex-direction: column-reverse;
  }

  .small-hide {
    display: none;
  }

  .small-flex-none {
    display: block;
  }

  .small-float-left {
    float: left;
  }

  .small-float-right {
    float: right;
  }

  .small-width-100 {
    width: 100%;
    height: auto;
  }


  .icon {
    width: 26px;
    height: 26px;
    margin-top: 12px;
  }

  /*
  #header-small-title {
    height: auto;
  }

  #header-small-author {
    height: auto;
  }
  */
  #body {
    margin-left: 0;
    padding: 10px;
  }


  nav {
    float: none;
    max-width: 100%;
    width: 100%;
    margin-top: 0;
  }

  #nav-note {
    display: block;
    margin-top: 50px;
    font-size: 0.8em;
    background-color: darkred;
    color: white;
    text-align: center;
    border-radius:5px;
  }

  #nav-note a {
    text-decoration: none;
  }

}


/* The animation code */
/*
@keyframes anim-up {
  0% {
    margin-top: 100px;
  }
  100% {
    margin-top: 3px;
  }
}

!* The element to apply the animation to *!
.animate-up {
  animation-name: anim-up;
  animation-duration: 0.75s;
  animation-timing-function: ease-in;
}

*/


