body {
  font-size: 16px;
  font-family: "Roboto Condensed", serif;
  min-height: 100vh;
}
body.books {
  background: url(../img/bg-1.jpg) no-repeat center bottom;
  background-size: cover;
}
.hide {
  display: none;
}

header {
  background: #eeeeeeaa;
  padding: 5px 0;
  margin: 0 0 5px;
  border-bottom: 3px double #000;
  position: sticky;
  top: 0;
  z-index: 98;
}
h1 {
  text-align: center;
}

.reader h1 {
  padding-left: 60px;
  text-align-last: left;
}

.container {
  position: relative;
}
.top-nav {
  list-style: none;
  padding: 0;
  margin: 3px 0 0 40px;
}
.top-nav li {
  margin: 10px;
  padding: 10px;
}
.top-nav li a {
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  color: #00182d;
  display: block;
}
#epub-reader {
  width: 100%;
  height: calc(100vh - 65px);
  border: 1px solid #ccc;
}

span#progress {
  font-size: .65em;
  opacity: .7;
  color: #00259a;
  margin-left: 15px;
}

input[type="range" i]#progress-bar {
  height: 5px;
  overflow: hidden;
  width: 100%;
  position: absolute;
  bottom: -6px;
}

.book {
  position: relative;
  margin-bottom: 15px;
}

.back-to-books {
  position: absolute;
  top: 13px;
  right: 5px;
}
button#next {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 80%;
  cursor: pointer;
  text-indent: -9999px;
  background: none;
  border: none;
}

button#prev {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 80%;
  cursor: pointer;
  text-indent: -9999px;
  background: none;
  border: none;
}

button#toggle-toc {
  position: absolute;
  top: 13px;
  left: 10px;
  border: none;
  background: none;
  cursor: pointer;
  transition: all .5s;
}

#settings-menu {
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  max-width: 350px;
  position: absolute;
  right: 0;
  z-index: 99;
}

#settings-menu h3 {
  margin-bottom: 1px;
  padding-bottom: 8px;
  text-align: center;
  border-bottom: 1px solid #ccc;
}
#settings-menu select {
  border: none;
}
#zoom-slider {
  margin: 5px auto 10px;
  height: 3px;
  width: 100%;
}
#settings-menu label {
  width: 120px;
  text-align: right;
  display: inline-block;
  white-space: nowrap;
  margin-top: 7px;
}
#zoom-val {
  margin-right: -25px;
  margin-left: 5px;
}
#settings-button {
  position: absolute;
  top: 10px;
  right: 40px;
  z-index: 100;
  background: none;
  border: none;
  width: 31px;
  height: 31px;
  text-align: center;
  cursor: pointer;
}

.hover-scale i,
.hover-scale i::before {
  transition: all .5s;
}

.hover-scale:hover i {
  transform: scale(1.3);
}

#settings-button.active i::before {
  content: "\f00d";
}

#toc {
  max-height: 300px;
  overflow-y: auto;
  width: 200px;
  position: absolute;
  background: white;
  padding: 10px;
  border: 1px solid #ccc;
  z-index: 99;
}

#toc button {
  width: 100%;
  padding: 5px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

#toc button:hover {
  background: #f0f0f0;
}

.remove {
  cursor: pointer;
  margin-left: 10px;
  color: #ff4444;
}

.remove:hover {
  color: #cc0000;
}

/* Светлая тема (по умолчанию) */
body.light-theme {
  background-color: #fff;
  color: #000;
}

/* Темная тема */
body.dark-theme {
  background-color: #333;
  color: #fff;
}

/* Сепия */
body.sepia-theme {
  background-color: #f4ecd8;
  color: #5a4a42;
}