/* --------------------------------------------------------------
/* =SUPER GLOBAL
-------------------------------------------------------------- */
*, *:before, *:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  outline: 0 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  line-height: 1.6;
  padding: 0;
  margin: 0;
  font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Helvetica,Arial,sans-serif;
  background: #ffffff;
  color: #000000;
}
::selection {
  color: #000000;
  background: rgba(0,0,0,0.15);
}
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}
.row {
  display: flex;
}
.full-row-border-top {
  position: relative;
}
.full-row-border-top::before {
  content: "";
  background: rgba(0, 0, 0, 0.1);
  height: 1px;
  width: calc(100% - 30px);
  top: 0;
  left: 15px;
  position: absolute;
}
.col-50 {
  width: 50%;
  padding: 0 15px;
  max-width: 50%;
}
.col-25 {
  width: 25%;
  padding: 0 15px;
  max-width: 25%;
}
.col-75 {
  width: 75%;
  padding: 0 15px;
  max-width: 75%;
}
.col-100 {
  width: 100%;
  padding: 0 15px;
}
.right-padded-col {
  padding-right: 60px;
}
img.fluid-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
}
p {
  font-weight: 400;
  font-size: 24px;
  line-height: 140%;
  margin: 20px 0;
  letter-spacing: -0.03em;
}
.text-color-primary {
  color: #000000;
}
.text-color-secondary {
  opacity: 0.7;
}
.text-small {
  font-size: 14px;
}
.text-regular {
  font-size: 20px;
}
.text-large {
  font-size: 28px;
}
.hero {
  overflow: hidden;
  border-radius: 16px;
}
a {
  color: #000000;
  text-decoration: underline;
  cursor: pointer;
  outline: none;
}
a:hover {
  opacity: 0.5;
}
h1.hero-book-title {
  margin: 30% 0 0 0;
  font-size: 9vw;
  line-height: 100%;
  letter-spacing: -0.04em;
}
h2 {
  font-size: 28px;
  margin: 10px 0;
  letter-spacing: -0.04em;
}
.padded-section {
  padding: 8vh 0;
}
.large-padding-botton {
  padding-bottom: 8vh;
}
.large-padding-top {
  padding-top: 8vh;
}
.no-margin {
  margin: 0;
}
.badge {
  border: 1px solid #000000;
  color: #000000;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 18px;
}


/* --------------------------------------------------------------
/* =Nav
-------------------------------------------------------------- */
.nav {
  position: fixed;
  background: #ffffff;
  width: 340px;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 4;
  padding: 38px;
  overflow-y: auto;
  visibility: hidden;
  transform: translateX(-50px);
  opacity: 0;
  transition: all ease 0.2s;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}
.nav.active {
  visibility: visible !important;
  transform: translateX(0px);
  opacity: 1;
}
.nav__summary-head {
  padding: 12px 0;
  margin-top: 32px;
  font-size: 14px;
  border-top: 1px solid #000000;
}
.nav ul li a {
  text-decoration: none;
  font-size: 14px;
}
.nav ul li a:hover {
  text-decoration: underline;
}
.nav ul {
  list-style: none;
  padding: 4px 0;
  margin: 0;
}
.nav ul li {
  padding: 4px 0;
}
.nav ul li ul{
  padding-left: 12px;
}

/* --------------------------------------------------------------
/* =Display settings
-------------------------------------------------------------- */
.display-settings-panel {
 position: fixed;
 visibility: hidden;
 transform: translateX(50px);
 opacity: 0;
 background: #ffffff;
 width: 340px;
 top: 0;
 right: 0;
 height: 100%;
 z-index: 4;
 padding: 38px;
 overflow-y: auto;
 transition: all ease 0.2s;
 box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}
.display-settings-panel.active {
  visibility: visible !important;
  transform: translateX(0px);
  opacity: 1;
}
.display-setting-name {
  padding: 12px 0;
  margin-top: 32px;
  font-size: 14px;
  border-top: 1px solid #000000;
}
.display-setting-options {
  display: flex;
}
.display-setting-options__option {
  padding: 2px 12px;
  opacity: 0.5;
  border-radius: 20px;
  margin-right: 4px;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
}
.display-setting-options__option:hover {
  border: 1px solid #000000;
  opacity: .5;
}
.display-setting-options__option.active {
  border: 1px solid #000000;
  opacity: 1;
}

/* --------------------------------------------------------------
/* =Header stuff
-------------------------------------------------------------- */
header.book-header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 32px 0;
  z-index: 2;
  transition: all ease 0.2s;
  background: rgb(255,255,255);
}
.menu-button {
  display: inline-block;
  background: #000000;
  color: #ffffff;
  padding: 6px 24px;
  border-radius: 40px;
  font-size: 24px;
  float: left;
  margin-top: 8px;
  cursor: pointer;
  border: 1px solid #ffffff;
  transition: all ease 0.2s;
}
.header-book-title {
  display: inline-block;
  float: left;
  opacity: 0;
  line-height: 100%;
  font-size: 16px;
  margin-top: 10px;
  margin-left: 8px;
  font-weight: bold;
}
.display-settings-button {
  display: inline-block;
  background: #ffffff;
  background-image: url("img/settings-black.svg");
  background-position: center;
  background-repeat: no-repeat;
  height: 52px;
  width: 52px;
  color: #000000;
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  border-radius: 50%;
  float: right;
  margin-top: 8px;
  transition: all ease 0.2s;
}
.book-header.scrolled .header-book-title {
  opacity: 1;
}
.book-header.scrolled {
  padding: 20px 0;
}
.book-header.scrolled .menu-button {
  color: #ffffff;
  padding: 6px 16px;
  font-size: 14px;
  float: left;
  margin-top: 0;
  border: 1px solid #ffffff;
}
.book-header.scrolled .display-settings-button {
  height: 36px;
  width: 36px;
  margin: 0;
}
.mute-overlay {
  opacity: 0;
  visibility: hidden;
  transition: all ease 0.2s;
  background: #000000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}
.mute-overlay.active {
  opacity: 0.2;
  visibility: visible;
}

/* --------------------------------------------------------------
/* =Content manipulation
-------------------------------------------------------------- */
.book-content {
  padding-top: 70px;
}
.book-content.font-size-small p {
  font-size: 16px;
}
.book-content.font-size-medium p {
  font-size: 24px;
}
.book-content.font-size-very-large p {
  font-size: 30px;
}
.book-content.line-height-100 p {
  line-height: 100%
}
.book-content.line-height-140 p {
  line-height: 140%
}
.book-content.line-height-180 p {
  line-height: 180%
}
.book-content.centered-layout .col-50 {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
.book-content.2-col-layout .col-50 {
  width: 50%;
  padding: 0 15px;
  max-width: 50%;
}
.book-content.2-col-layout .row {
  display: flex;
}
.book-content.centered-layout .row {
  display: block;
  padding: 32px 0;
}


/* --------------------------------------------------------------
/* =Dark mode
-------------------------------------------------------------- */
body.dark-mode {
  background: #000000;
  color: #ffffff;
}
.dark-mode header {
  background: rgb(0,0,0);
  background: linear-gradient(180deg, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
}
.dark-mode .full-row-border-top::before {
  content: "";
  background: rgba(255, 255, 255, 0.3);
}
.dark-mode .mute-overlay.active {
  opacity: 0.8;
  visibility: visible;
}
.dark-mode .display-settings-panel, .dark-mode .nav {
  background: #222222;
}
.dark-mode .display-setting-name, .dark-mode .nav__summary-head {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.dark-mode .display-setting-options__option.active {
  border: 1px solid #ffffff;
}
.dark-mode a {
  color: #ffffff;
}

/* --------------------------------------------------------------
/* =SMARTPHONE
-------------------------------------------------------------- */
@media screen and (max-width: 1000px) {
  header h1 {
    font-size: 22px;
    margin-top: 8px;
    margin-left: 8px;
  }
  audio {
    display: block;
    width: 100%;
  }
  header.book-header {
    padding: 20px 0;
  }
  header.book-header.scrolled {
    padding: 10px 0;
  }
  .book-content {
    padding-top: 30px;
  }
  .right-padded-col {
    padding-right: 15px;
  }
  .menu-button {
    color: #ffffff;
    padding: 6px 16px;
    font-size: 14px;
    float: left;
    margin-top: 0;
    border: 1px solid #ffffff;
  }
  .display-settings-button {
    height: 36px;
    width: 36px;
    margin: 0;
  }
  .text-small {
    font-size: .8rem;
  }
  .text-regular {
    font-size: 1rem;
  }
  .text-large {
    font-size: 2rem;
  }
  .row {
    display: block;
  }
  .container {
    padding: 0 5px;
  }
  .col-50, .col-25, .col-75 {
    width: 100%;
    max-width: 100%;
  }
  h1.hero-book-title {
    margin: 0% 0 0 0;
    font-size: 22vw;
  }
  .nav {
    width: 300px;
    padding: 24px;
  }
  .nav ul li a {
    font-size: 12px;
  }
  .nav ul li ul {
    padding-left: 8px;
  }
  .display-settings-panel {
    bottom: 20px;
    left: 20px;
    width: calc(100% - 40px);
    height: auto;
    top: inherit;
    border-radius: 12px;
    padding: 24px;
  }
  .display-setting-name {
    margin-top: 20px;
  }
  .loading-overlay__text {
    margin-top: 50%
  }
}
