body {
  margin: 0;
  font-family: "Lora", serif;
}

img {
  width: 100%;
}

.hide {
  display: none;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  z-index: 25;
}

#app {
  position: relative;
}

.nav {
  background: #eee;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  width: 250px;
  -webkit-transform: translateX(-300px);
          transform: translateX(-300px);
  -webkit-transition: all 400ms ease;
  transition: all 400ms ease;
  margin-top: 45px;
  z-index: 50;
  overflow-y: auto;
}
.nav h1 {
  padding: 1rem;
}

@media (min-width: 800px) {
  .nav {
    width: 300px;
  }
}
.open {
  -webkit-transform: translateX(0);
          transform: translateX(0);
}

.nav-inner {
  padding: 1rem 1rem 3rem 2rem;
}

@media (min-width: 800px) {
  .nav-inner h2 {
    display: none;
  }
}
.nav-menu {
  list-style: none;
  padding: 0;
}

.nav-item {
  padding: 0.5rem 0;
}
.nav-item a {
  text-decoration: none;
  color: black;
  -webkit-transition: all 200ms ease;
  transition: all 200ms ease;
}
.nav-item a:hover {
  text-decoration: underline;
  color: rgba(0, 0, 0, 0.8);
}

#masthead {
  background-color: black;
  color: white;
  padding: 0.5rem 0;
  height: 30px;
  z-index: 100;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

.masthead-inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.nav-trigger {
  padding: 0 0 0 1rem;
}

@media (min-width: 800px) {
  .nav-trigger {
    position: absolute;
  }
}
.nav-icon {
  cursor: pointer;
  font-size: 1rem;
  margin: 0;
}
.nav-icon i {
  width: 10px;
}

@media (min-width: 800px) {
  .nav-icon:after {
    content: "Contents";
    margin-left: 0.7rem;
  }
}
.masthead-title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin: 0 auto;
}
.masthead-title h1,
.masthead-title h2 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 400;
}
@media (min-width: 600px) {
  .masthead-title h1,
  .masthead-title h2 {
    margin: 0;
    font-size: 1.3rem;
  }
}
.masthead-title h1 {
  margin-right: 0.5rem;
  text-transform: uppercase;
}
.masthead-title h2 {
  font-style: italic;
}

.settings-icons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

@media (min-width: 800px) {
  .settings-icons {
    position: absolute;
    right: 1rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
}
.bookmark-icon {
  padding: 0 1rem 0 0;
  cursor: pointer;
  margin: 0;
}

@media (min-width: 800px) {
  .bookmark-icon:after {
    content: "Bookmark";
    margin-left: 0.5rem;
  }
}
.more-icon {
  padding: 0 1rem 0 0;
  cursor: pointer;
  margin: 0;
}

@media (min-width: 800px) {
  .more-icon:after {
    content: "Settings";
    margin-left: 0.5rem;
  }
}
.more-menu {
  background-color: #eee;
  color: black;
  position: absolute;
  right: 0;
  top: 30px;
  list-style: none;
  padding: 0;
}
.more-menu li {
  padding: 1rem;
  cursor: pointer;
}

main {
  padding: 1rem;
  max-width: 800px;
  margin: 45px auto 2rem;
}
main p {
  line-height: 1.6;
}

.title-page {
  height: 90vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
}
.title-page h1,
.title-page h2 {
  margin: 0;
}

.book-title {
  font-size: 3rem;
  line-height: 1.2;
  padding-bottom: 1.5rem;
}

.book-author {
  font-size: 1.5rem;
  font-style: italic;
}

.chapter {
  padding-top: 4rem;
}

.chapter-title {
  margin: 0;
  margin: 4rem 0 3rem;
  text-align: center;
}

.mv-bar.mv-ui {
  background-image: url();
  position: fixed;
  width: 98%;
  top: 47px;
  left: 0;
  padding: 0 1rem;
}
