.flip-book {
  position: relative;
  height: 100%;
}

.flip-book .view {
  text-align: center;
  height: 100%;
}

.flip-book .view .prev,
.flip-book .view .next {
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  z-index: 1;
}

.flip-book .view .prev {
  left: 20px;
}

.flip-book .view .next {
  right: 20px;
}

.flip-book .view .fnav a {
  font-size: 48pt;
  color: rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
}

.flip-book .view .fnav a:hover {
  cursor: pointer;
  color: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

.flip-book .view .fnav a:active {
  transform: scale(0.95);
}

.flip-book .view .fnav .hidden {
  display: none;
}

.flip-book .view .fnav .active {
  color: rgba(0, 0, 0, 0.6);
}

.flip-book .view .fnav .disabled {
  opacity: 0.3;
  pointer-events: none;
}

.flip-book .view .fnav .disabled:hover {
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.flip-book .view .loading-progress {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.flip-book .view .loading-progress.hidden {
  display: none;
}

.flip-book .loading-progress .progress {
  background-image: none;
  width: 50px;
  height: 50px;
  margin: 0 auto;
  border-radius: 30px;
  padding: 5px;
  box-shadow: 0px 0px 3px #fff;
  margin-bottom: 10px;
}

.flip-book .loading-progress .progress::after {
  content: " ";
  display: block;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-image: url("../images/light-loader.gif");
}

.flip-book .page-loading {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.flip-book .page-loading.hidden {
  display: none;
}

.flip-book .page-loading::after {
  content: " ";
  display: block;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-image: url("../images/light-loader.gif");
}

.flip-book .loading-progress .caption {
  border: 1px solid #fff;
  padding: 7px 10px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 10pt;
  border-radius: 5px;
  font-style: italic;
  color: #111;
}

.flip-book .controls {
  position: absolute;
  bottom: 15px;
  width: 100%;
}

.flip-book .controls .fnavbar {
  margin: 0 auto;
  opacity: 0.95;
  transition: all 0.3s ease;
  background-color: transparent;
}

.flip-book .controls .fnavbar:hover {
  opacity: 1;
  transition: all 0.2s ease;
}

.controls .ctrl.js-center {
  display: flex;
  justify-content: center;
}

.mobile-only {
  display: none !important;
}

.desktop-only {
  display: block !important;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block !important;
  }

  .desktop-only {
    display: none !important;
  }
}

.ctrl {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.ctrl ul {
  margin: 0;
  padding: 0;
}
.ctrl .fnavbar {
  text-align: center;
  background: rgba(255, 255, 255, 0.98);
  padding: 8px 0;
  overflow: visible;
  margin: 0 16px 16px 16px;
  display: inline-block;
}
.ctrl .fnavbar a {
  text-decoration: none;
  font-size: 14px;
}
.ctrl .fnavbar .fnav {
  font-size: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  text-align: left;
}
.ctrl .fnavbar .fnav li {
  font-size: 12pt;
  margin: 0;
  width: auto;
}
.ctrl .fnavbar .fnav .fnav-item {
  display: inline-block;
}
.ctrl .fnavbar .fnav .hidden {
  display: none;
}

.cmdFullScreen {
  display: none !important;
}

@media (max-width: 768px) {
  .prev {
    display: none !important;
  }

  .next {
    display: none !important;
  }
}

.ctrl .fnavbar .fnav .fnav-item > a {
  padding: 10px 12px;
  display: inline-block;
  color: rgba(0, 0, 0, 0.6);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  position: relative;
}
.ctrl .fnavbar .fnav > .active > a {
  color: rgba(0, 0, 0, 0.9);
  background: rgba(0, 0, 0, 0.05);
}
.ctrl .fnavbar .fnav .fnav-item > a:hover {
  color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
  background: rgba(0, 0, 0, 0.04);
}
.ctrl .fnavbar .fnav .fnav-item > a:active {
  transform: translateY(0);
  background: rgba(0, 0, 0, 0.08);
}
.ctrl .fnavbar .fnav > .disabled > a {
  color: rgba(0, 0, 0, 0.25);
  opacity: 0.5;
}
.ctrl .fnavbar .fnav > .disabled > a:hover {
  color: rgba(0, 0, 0, 0.25);
  cursor: not-allowed;
  background: transparent;
  transform: none;
}
.ctrl .fnavbar .fnav > .active {
  background: transparent;
}

.ctrl .fnavbar .fnav .dropdown,
.ctrl .fnavbar .fnav .dropup {
  position: relative;
}
.ctrl .fnavbar .fnav .dropdown .menu {
  top: 100%;
}
.ctrl .fnavbar .fnav .dropdown .caret {
  display: inline-block;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #777;
}
.ctrl .fnavbar .fnav .dropup .menu {
  bottom: 100%;
  right: 0;
}
.ctrl .fnavbar .fnav .dropup .caret {
  display: inline-block;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid rgba(0, 0, 0, 0.6);
  transition: border-color 0.2s ease;
}
.ctrl .fnavbar .menu {
  position: absolute;
  border: none;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 10;
  min-width: 180px;
  border-radius: 12px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 0 1px rgba(0, 0, 0, 0.1);
  padding: 6px;
  margin-bottom: 8px;
}
.ctrl .fnavbar .menu li {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 4px;
  transition: all 0.15s ease;
}
.ctrl .fnavbar .menu .divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.08);
  padding: 0;
}
.ctrl .fnavbar .menu .active {
  background-color: rgba(0, 0, 0, 0.08);
}
.ctrl .fnavbar .menu .active:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
.ctrl .fnavbar .menu li:hover {
  background-color: rgba(0, 0, 0, 0.05);
  cursor: pointer;
}
.ctrl .fnavbar .menu li a {
  color: rgba(0, 0, 0, 0.85);
  font-weight: 500;
}
.ctrl .fnavbar .menu .disabled a {
  color: rgba(0, 0, 0, 0.3);
  cursor: not-allowed;
}

.ctrl .fnavbar .menu .icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  text-align: center;
}

.ctrl .pages {
  padding: 4px 10px;
  display: inline-block;
  font-size: 0;
}

.ctrl .pages .number,
.ctrl .pages .amount {
  width: 50px;
  height: 28px;
  text-align: center;
  display: inline-block;
  font-size: 13px;
  border: 0;
  color: rgba(0, 0, 0, 0.85);
  background-color: rgba(0, 0, 0, 0.06);
  font-weight: 600;
  border-radius: 0;
  margin: 0;
  padding: 6px 4px;
  transition: all 0.2s ease;
}

.ctrl .pages .number {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  background-color: rgba(0, 0, 0, 0.08);
}

.ctrl .pages .number:focus {
  outline: none;
  background-color: rgba(0, 0, 0, 0.12);
}

.ctrl .pages .amount {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* floating window */

.flip-book .float-wnd {
  position: absolute;
  top: 50px;
  left: 16px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  width: 320px;
  z-index: 2;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 0 1px rgba(0, 0, 0, 0.1);
}

.flip-book .float-wnd.hidden {
  display: none;
}

.flip-book .float-wnd .header {
  border-radius: 16px 16px 0 0;
  background-color: transparent;
  padding: 16px 20px;
  border: none;
  font-size: 15px;
  cursor: move;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.flip-book .float-wnd .header .close {
  top: 6px;
  right: 16px;
  font-size: 16px;
  position: absolute;
  color: rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
  border-radius: 6px;
  padding: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flip-book .float-wnd .header .close:hover {
  color: rgba(0, 0, 0, 0.85);
  background: rgba(0, 0, 0, 0.05);
}
.flip-book .float-wnd .header .close:active {
  transform: scale(0.95);
  background: rgba(0, 0, 0, 0.1);
}

.flip-book .float-wnd .body {
  border: none;
  border-radius: 0 0 16px 16px;
}

/* toc */

.ctrl .toc {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.ctrl .toc a {
  text-decoration: none;
}

.ctrl .toc .hidden {
  display: none;
}

.ctrl .toc .toc-menu {
  padding: 8px 16px;
  display: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ctrl .toc .toc-menu ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 4px;
}
.ctrl .toc .toc-menu li {
  display: inline-block;
  padding: 0;
}
.ctrl .toc .toc-menu a {
  color: rgba(0, 0, 0, 0.5);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  display: block;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.ctrl .toc .toc-menu a:hover {
  color: rgba(0, 0, 0, 0.85);
  background: rgba(0, 0, 0, 0.04);
}
.ctrl .toc .toc-menu a:active {
  background: rgba(0, 0, 0, 0.08);
}
.ctrl .toc .toc-menu .active a {
  color: rgba(0, 0, 0, 0.9);
  background: rgba(0, 0, 0, 0.06);
}

.ctrl .toc .toc-view {
  padding: 10px 0;
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
}
.ctrl .toc .toc-view::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
.ctrl .toc .toc-view::-webkit-scrollbar-button {
  width: 0;
  height: 0;
}
.ctrl .toc .toc-view::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}
.ctrl .toc .toc-view::-webkit-scrollbar-thumb:hover {
  background: #ddd;
}
.ctrl .toc .toc-view::-webkit-scrollbar-thumb:active {
  background: #bbb;
}
.ctrl .toc .toc-view::-webkit-scrollbar-track {
  background: #eee;
  border-left: 2px solid #fff;
  border-right: 2px solid #fff;
}

.ctrl .bookmarks .white-space,
.ctrl .bookmarks .togle,
.ctrl .bookmarks .togle i {
  width: 18px;
  height: 18px;
}

.ctrl .bookmarks .white-space {
  display: inline-block;
}

.ctrl .bookmarks li {
  width: 10000px;
}

.ctrl .bookmarks .item .area {
  padding: 2px 0;
}

.ctrl .bookmarks .level-0 .area {
  padding-left: 5px;
}
.ctrl .bookmarks .level-1 .area {
  padding-left: 10px;
}
.ctrl .bookmarks .level-2 .area {
  padding-left: 15px;
}
.ctrl .bookmarks .level-3 .area {
  padding-left: 20px;
}
.ctrl .bookmarks .level-4 .area {
  padding-left: 25px;
}

.ctrl .bookmarks .item .area:hover {
  background-color: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
}

.ctrl .bookmarks .item .area:active {
  background-color: rgba(0, 0, 0, 0.08);
}

.ctrl .bookmarks .item a {
  color: #000;
  font-size: 14px;
}

.ctrl .bookmarks ul {
  list-style: none;
  padding: 0;
}

.ctrl .bookmarks .togle {
  display: inline-block;
  text-align: center;
  position: relative;
}

.ctrl .bookmarks .togle::before {
  content: " ";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 0px solid #f5f5f5;
  transition: border 0.2s;
}

.ctrl .bookmarks .togle:active::before {
  border: 12px solid #f5f5f5;
  transition: border 0.05s;
}

.ctrl .bookmarks .togle i {
  transform: rotateZ(0deg);
  transition: transform 0.2s;
}

.ctrl .bookmarks .togle.minimized i {
  transform: rotateZ(90deg);
  transition: transform 0.2s;
}

.ctrl .thumbnails .item a {
  color: #000;
  font-size: 14px;
}

.ctrl .thumbnails {
  padding: 10px 0;
  text-align: center;
}
.ctrl .thumbnails .thumbnail {
  height: 170px;
  margin-bottom: 5px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.ctrl .thumbnails .loading {
  position: relative;
}
.ctrl .thumbnails .loading::after {
  content: " ";
  position: absolute;
  width: 40px;
  height: 40px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-size: contain;
  background-image: url("../images/light-loader.gif");
}
.ctrl .thumbnails .item {
  display: inline-block;
  width: 128px;
  padding: 8px;
  border: 2px solid transparent;
  border-radius: 12px;
  transition: all 0.2s ease;
}
.ctrl .thumbnails .item:hover {
  border: 2px solid rgba(0, 0, 0, 0.1);
  background-color: rgba(0, 0, 0, 0.02);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.ctrl .thumbnails .heading {
  overflow: hidden;
  height: 20px;
}

.ctrl .search .result {
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 8px;
  margin: 4px 8px;
  transition: all 0.15s ease;
}

.ctrl .search .result:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.ctrl .search .results a {
  color: #000;
  font-size: 14px;
}

.ctrl .search .query {
  padding: 12px 16px;
}

.ctrl .search .query input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: rgba(0, 0, 0, 0.02);
}

.ctrl .search .query input:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.2);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ctrl .search .status {
  text-align: center;
  color: #333;
  font-size: 12px;
}