html {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Audiowide, sans-serif;
  background-color: #3C2D27;
}

html,
body {
  height: 100%;
}


*,
*:before,
*:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  font-weight: 500;
  color: white;
}

img {
  max-width: 100%;
}

.italic {
  font-style: italic;
}

.parent {
  overflow: hidden;
  position: relative;
}

/* Navbar */

#menu ul {
  margin: 0;
  padding: 0;
}

#menu .main-menu {
  display: none;
}

#tm:checked+.main-menu {
  display: block;
}

#menu input[type="checkbox"],
#menu ul span.drop-icon {
  display: none;
}

#menu li,
#toggle-menu,
#menu .sub-menu {
  border-style: solid;
  border-color: rgba(0, 0, 0, .05);
}

#menu li,
#toggle-menu {
  border-width: 0 0 1px;
}

#menu .sub-menu {
  background-color: #444;
  border-width: 1px 1px 0;
  margin: 0 1em;
}

#menu .sub-menu li:last-child {
  border-width: 0;
}

#menu li,
#toggle-menu,
#menu a {
  position: relative;
  display: block;
  color: white;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .125);
}

#menu,
#toggle-menu {
  background-color: rgb(30, 30, 30);
}

#toggle-menu,
#menu a {
  padding: 1em 2.2em;
}

#menu a {
  transition: all .125s ease-in-out;
  -webkit-transition: all .125s ease-in-out;
}

#menu a:hover {
  background-color: white;
  color: #3C2D27;
}

#menu .sub-menu {
  display: none;
}

#menu input[type="checkbox"]:checked+.sub-menu {
  display: block;
}

#menu .sub-menu a:hover {
  color: #444;
}

#toggle-menu .drop-icon,
#menu li label.drop-icon {
  position: absolute;
  right: 1.5em;
  top: 1.25em;
}

#menu label.drop-icon,
#toggle-menu span.drop-icon {
  border-radius: 50%;
  width: 1em;
  height: 1em;
  text-align: center;
  background-color: rgba(0, 0, 0, .125);
  text-shadow: 0 0 0 transparent;
  color: white;
}

#menu .drop-icon {
  line-height: 1;
}


@media only screen and (min-width: 52em) {

  #menu .main-menu {
    display: flex;
  }


  #toggle-menu,
  #menu label.drop-icon {
    display: none;
  }


  #menu ul span.drop-icon {
    display: inline-block;
  }



  #menu .sub-menu li {
    float: none;
  }



  #menu .sub-menu {
    border-width: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 13em;
    z-index: 3000;
  }

  #menu .sub-menu,
  #menu input[type="checkbox"]:checked+.sub-menu {
    display: none;
  }

  #menu .sub-menu li {
    border-width: 0 0 1px;
  }

  #menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
  }

  #menu li:hover>input[type="checkbox"]+.sub-menu {
    display: block;
  }
}

#menu li {
  background-color: rgb(30, 30, 30);
  border-width: 0 1px 0 0;
}

/* Headline */

.headline {
  padding: 1em 3em;
  font-size: 0.75rem;
  color: #C8C8C4;
  background-color: #35372F;
}

@media only screen and (min-width: 37.5em) {
  .headline {
    font-size: 1rem;
    padding: 1.05em 2.2em;
  }

}


/* Header */

.title {
  color: #C8C8C4;
  padding: 1.3em 1em;
  text-shadow: 3px 3px 3px black;
  font-size: 2.1rem;
}

@media only screen and (min-width: 37.5em) {
  .title {
    padding: 1.75em 2.2em;
    font-size: 2.4rem;
  }

}

/* Hero image */

.hero-image {
  color: white;
  background: #C04848;
  /* fallback for old browsers */
  background: url(images/palace-exterior.jpg);
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to left, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0)), url(images/palace-exterior.jpg);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  height: 300px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 30%;
}

@media only screen and (min-width: 37.5em) {
  .hero-image {
    height: 500px;
  }
}

/* Hero text */

.hero-text {
  text-align: right;
  color: rgba(255, 255, 255, .75);
}

.hero-text1 {
  font-size: 1rem;
  padding: 2em 2em 1em 2em;
}

.hero-text2 {
  font-size: 0.9rem;
  padding: 0em 3em 2em 2em;
}

@media only screen and (min-width: 37.5em) {
  .hero-text {
    width: 100%;
    position: absolute;
    right: 1em;
    max-width: 60ch;
  }

  .hero-text1 {
    font-size: 1.8rem;
  }

  .hero-text2 {
    font-size: 1.3rem;
    padding-right: 4em;
  }
}

/* Description */

.desc {
  color: rgba(255, 255, 255, .75);
  background-color: #3C2D27;
  display: block;
  padding: 3em;
  font-family: 'Saira', sans-serif;
  line-height: 230%;
  font-size: 0.9rem;
}

.desc-text {
  padding-bottom: 1.75em;
  text-align: center;
  margin: auto;
}

.desc-text:last-of-type {
  padding-bottom: 0.6em;
}

@media only screen and (min-width: 37.5em) {
  .desc-text {
    font-size: 1.1rem;
    max-width: 750px;
  }

}

/* About */

div.about {
  color: #C8C8C4;
  padding: 0em 2em;
  font-family: 'Saira', sans-serif;
  line-height: 180%;
  font-size: 1rem;
  max-width: 900px;
}

div.about p {

  padding: 1em 0;
}

div.about p:first-of-type {

  padding: 0 0;
}

div.about p:last-of-type {
  padding-bottom: 2em;
}

.book {
  width: 40%;
  margin: 0 auto;
  padding-top: 1.4em;
  padding-bottom: 1.1em;
}

.book img {
  transform: rotate(-2deg);
  box-shadow: 10px 10px 12px black;
}

@media only screen and (min-width: 37.5em) {
  div.about {
    padding: 0em 4em 2em 3.6em;
    font-size: 1.2rem;
  }

}

/* About page */

.about-img {
  /*-webkit-mask: linear-gradient(to left, #000 40%, #0000);
  mask: linear-gradient(#000, #0000);*/
  display: block;
  margin: auto;
  width: 100%;
  max-width: 800px;
  margin-top: 3em;
}

.about-img-container {
  background-color: #35372F;
}

/* Sources page */

.sources-ul {
  margin-left: 3em;
}

/* Palace page */

.bio-h2 {
  font-family: Audiowide;
  padding: 1em 0;
  font-size: 1.55rem;
  text-decoration: none;
}

.palace-img {
  width: 80%;
  margin: 0 auto;
  padding: 1em 0;
}

/* Appearances page */

h3.appearances {
  font-family: Audiowide, sans-serif;
  font-size: 1.5rem;
  padding: 2em 0 1em 0;
}

h3.appearances:first-of-type {
  padding: 0em 0 1em 0;
}

.year {
  font-size: 0.8rem;
  padding-left: 1em;
}

.app-book {
  width: 40%;
  padding-top: 2em;
  padding-bottom: 1.1em;
}

.app-book img {
  transform: rotate(-2deg);
  box-shadow: 10px 10px 12px black;
}

/* Bio */

.bio-section {
  color: #C8C8C4;
  font-family: 'Saira', sans-serif;
  line-height: 180%;
  max-width: 1300px;
}

.bio h2 {
  font-family: Audiowide;
  padding: 1em 0;
  font-size: 1.55rem;
  text-decoration: none;
}

div.bio p {
  padding: 1em 0;
  font-size: 1.1rem;
}

div.bio p:last-of-type {
  padding-bottom: 4em;
}

.bio-img {
  width: 100%;
}

.bio img {
  width: 60%;
  box-shadow: 10px 10px 12px black;
  height: auto;
  transform: rotate(-1deg);
  margin: 0 auto;
  display: block;
}

ul.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 75%;
  margin: 5em auto 3.5em auto;
  padding: 1.5em 2em 1em 2em;
  background-color: #35372F;
  box-shadow: 0 0 10px 10px #35372F;
}

.stat-header {
  list-style: none;
  font-family: Audiowide;
  padding-bottom: 0.75em;
  font-size: 1.025rem;
}

.stat-content {
  list-style: none;
  text-align: center;
  font-size: 0.9rem;
}

.bio-desc-div {
  padding: 0em 2em;
}

#bio-desc-p-one {
  font-size: 1.25rem;
  padding-bottom: 1em;
}

@media only screen and (min-width: 42.5em) {
  div.bio {
    display: flex;
    flex-direction: row-reverse;
  }

  .bio-left {
    width: 100%;
    padding-left: 1em;
  }

  div.bio p {
    font-size: 1.2rem;
    line-height: 180%;
  }

  .bio-right {
    width: 100%;
  }

  .stat-header {
    font-size: 1.125rem;
  }

  .stat-content {
    font-size: 1.05rem;
  }

  #bio-desc-p-one {
    font-size: 1.4rem;
    padding-bottom: 1em;
  }

}

/* Bottom image */

img.throne {
  /*-webkit-mask: linear-gradient(to left, #000 40%, #0000);
  mask: linear-gradient(#000, #0000);*/
  display: block;
  margin: auto;
  width: 100%;
  max-width: 1200px;
}

.throne-container {
  background-color: #35372F;
}

/* Footer */

footer {
  margin: 0 auto;
  padding: 2em 2em;
  width: 100%;
  color: #C8C8C4;
  background-color: rgb(30, 30, 30);
}

.footer-links {
  display: flex;
  list-style-type: none;
  gap: 3em;
  justify-content: center;

}

.tm {
  padding: 1.5em 2em 0em 1em;
  text-align: center;
  font-size: 0.5rem;
}

.social-links li {
  list-style-type: none;
  display: inline;
  padding: 0em 0.5em 0em 0.5em;
}

.social-links {
  padding-top: 0.5em;
  padding-bottom: 1em;
  text-align: center;
  font-size: 1.75rem;
}