
.main {
  font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size: 14px;
  position: relative;
  height: 100%;
  color: #ccc;
}
.main * {
  box-sizing: border-box;
}
.main .hidden, .main .cmd.hidden {
  display: none;
}
.main .fade {
  opacity: 1;
  visibility: visible;
  transition: opacity .15s ease-in;
}
.main .hidden.fade {
  display: block;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity .15s ease-out, visibility .15s step-end;
}
.main input {
  outline: none;
}

ul, li {
  font-size: 0;
}
li a, li .cmd {
  font-size: 14px;
}

a, .cmd {
  color: #ccc;
  text-decoration: none;
  cursor: pointer;
  transition: color .15s ease-in;
}
a:hover, .cmd:hover {
  color: #fff;
  transition: color .15s ease-out;
}
a:active, .cmd:active {
  text-shadow: 0 0 2px #fff;
}
a.active, .cmd.active {
  color: #fff;
}
a.disabled, .cmd.disabled {
  pointer-events: none;
  opacity: .7;
}

.hbtn a, .hbtn .cmd {
  font-size: 52px;
  color: #666;
}
.hbtn a:hover, .hbtn .cmd:hover {
  text-shadow: 0 0 1px #000;
}
.hbtn a:active, .hbtn .cmd:active {
  font-size: 50px;
}
.hbtn .active {
  color: #555;
}
.hbtn .disabled {
  color: #aaa;
  display: none;
}

.view {
  height: 100%;
  background: no-repeat 50%;
  background-size:cover;
}
.view .render {
  height: 100%;
}
.view.toolbar-en .render {
  height: calc(100% - 40px);
}
.view.toolbar-en.zoom-en .render {
  height: 100%;
}

@keyframes loader {
  0% { transform: scale(1.2) }
  100% { transform: scale(1) }
}
.loader-box {
  position: absolute;
  left: calc(50% - 25px);
  top: calc(50% - 25px);
  width: 50px;
  height: 50px;
  transform-origin: center;
  overflow: hidden;
  background: rgba(0, 0, 0, 0);
}
.loader {
  width: 100%;
  height: 100%;
  position: relative;
  transform: translateZ(0) scale(0.5);
  backface-visibility: hidden;
  transform-origin: 0 0;
}
.loader div {
  position: absolute;
  width: 35px;
  height: 35px;
  top: 10px;
  left: 10px;
  background: #353535;
  animation: loader 1s cubic-bezier(0,0.5,0.5,1) infinite;
  animation-delay: -0.3s;
  box-sizing: content-box;
}
.loader div:nth-child(2) {
  top: 10px;
  left: 55px;
  background: #666666;
  animation-delay: -0.2s;
}
.loader div:nth-child(3) {
  top: 55px;
  left: 10px;
  background: #9b9b9b;
  animation-delay: 0s;
}
.loader div:nth-child(4) {
  top: 55px;
  left: 55px;
  background: #d4d4d4;
  animation-delay: -0.1s;
}

.loading-progress {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.loading-progress .progress {
  background-color: #1a1a1a;
  width: 50px;
  height: 50px;
  margin: 0 auto;
  border-radius: 25px;
  padding: 5px;
  box-shadow: 0px 0px 3px #222;
  margin-bottom: 10px;
  position: relative;
}
.loading-progress .loader-box {
  transform: scale(.7);
}

.loading-progress .caption {
  background-color: #1a1a1a;
  border: 1px solid #444;
  padding: 7px 10px;
  border-radius: 5px;
  font-style: italic;
}

.page-loading {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  /* background-color: #1a1a1a;
  border-radius: 25px;
  box-shadow: 0px 0px 3px #222; */
}

.user-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.user-message .text {
  border: 1px solid transparent;
  padding: 7px 10px;
  border-radius: 5px;
}
.user-message .error {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

.pending-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.ctrls .prev, .ctrls .next {
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
}
.ctrls .prev {
  left: 20px;
}
.ctrls .next {
  right: 20px;
}

.tbox {
  text-align: center;
  position: absolute;
  width: 100%;
  bottom: 10px;
  pointer-events: none;
}

.toolbar {
  pointer-events: all;
  display: inline-block;
  background-image: linear-gradient(to bottom,#3c3c3c 0,#222 100%);
  background-repeat: repeat-x;
  padding: 3px;
  background-color: #3c3c3c;
  text-align: center;
  border-radius: 4px;
}
.toolbar ul, .toolbar li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.buttons {
  display: inline-block;
}
.buttons>li {
  display: inline-flex;
}
.buttons>li>a, .buttons>li>.cmd {
  padding: 10px;
}
.buttons>li>a.active, .buttons>li>.cmd.active {
  background-color: #222;
}
.buttons .active-hidden, .buttons .active-visible {
  width: 12px;
}
.buttons .active-hidden, .buttons .active .active-visible {
  display: inline-block;
}
.buttons .active-visible, .buttons .active .active-hidden {
  display: none;
}

.dropdown, .dropup {
  position: relative;
}
.dropdown .caret {
  display: inline-block;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #ccc;
}
.dropup .caret {
  display: inline-block;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #ccc;
}

.dropdown .v-menu {
  top: 100%;
}
.dropup .v-menu {
  bottom: 100%;
}
.v-menu {
  position: absolute;
  border: 1px solid #444;
  background-color: #1a1a1a;
  z-index: 10;
  min-width: 160px;
  right: 0;
  text-align: left;
  box-shadow: 3px 3px 3px #222;
}
.v-menu li .cmd {
  display: block;
  padding: 5px 10px;
  transition: background-color .15s ease-in;
}
.v-menu li .cmd .fa {
  color: #ccc;
}
.v-menu .divider {
  height: 1px;
  background-color: #444;
}
.v-menu .cmd:hover {
  background-color: #333;
  transition: background-color .15s ease-out;
}
.v-menu .active, .v-menu .cmd:active {
  background-color: #444;
}

.pages {
  padding: 0 10px;
  display: inline-block;
}
.pages .number, .pages .amount {
  width: 40px;
  padding: 3px 0;
  text-align: center;
  border: 0;
  color: #fff;
  background-color: rgba(56,56,56,.5);
  border-radius: 0;
  margin: 0;
  box-shadow: 0px -2px 2px 0px rgba(0, 0, 0, 0.05);
  transition: background-color .15s ease-in-out;
}
.pages .number {
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
  width: 41px;
  border-right: 1px solid rgba(35,35,35,.5);
  background-color: rgba(56,56,56,.5);
}
.pages .number:focus {
  background-color: rgba(35,35,35,.5);
}
.pages .amount {
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}

.float-wnd {
  position: absolute;
  border-radius: 4px 4px 0 0;
  z-index: 1;

  background-color: #1a1a1a;
  box-shadow: 3px 3px 3px #222;
}
.float-wnd .head {
  border-radius: 4px 4px 0 0;
  cursor: move;

  background-color: #3c3c3c;
  background-image: linear-gradient(to bottom,#3c3c3c 0,#222 100%);
  background-repeat: repeat-x;
  padding: 7px 10px;
  border: 1px solid #444;
  border-bottom: none;
  color: #fff;
  font-weight: bold;
}
.float-wnd .head .close {
  top: 5px;
  right: 8px;
  position: absolute;
}
.float-wnd .body {
  border: 1px solid #444;
  border-top: none;
}

.share {
  top: 50%;
  left: 50%;
  width: 300px;
  transform: translate(-50%, -50%);
}
.shareview {
  padding: 10px;
}
.share .link {
  padding: 5px;
  font-size: 12px;
  border: 1px solid #444;;
  border-radius: 2px;
  margin-bottom: 5px;
  word-break: break-all;
}
.share .btns {
  text-align: center;
}
.share .btn {
  display: inline-flex;
  padding: 10px;
}

.toc {
  top: 30px;
  left: 30px;
  width: 300px;
}

.h-menu {
  list-style: none;
  margin: 0;
  padding: 10px;
}
.h-menu>li {
  display: inline-flex;
}
.h-menu>li>a, .h-menu>li>.cmd {
  padding-right: 10px;
}

.tocview {
  max-height: calc(100vh - 175px);
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 10px;
}
.tocview::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
.tocview::-webkit-scrollbar-button {
  width: 0;
  height: 0;
}
.tocview::-webkit-scrollbar-thumb {
  background: #4a4a4a;
  border-radius: 2px;
}
.tocview::-webkit-scrollbar-thumb:hover {
  background: #5a5a5a;
}
.tocview::-webkit-scrollbar-thumb:active {
  background: #3a3a3a;
}
.tocview::-webkit-scrollbar-track {
  background: #2a2a2a;
  border-left: 2px solid #1a1a1a;
  border-right: 2px solid #1a1a1a;
}

.bookmarks {
  padding: 0 10px;
  overflow: hidden;
}
.bookmarks ul, .bookmarks li {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bookmarks .area {
  position: relative;
  transition: background-color .1s ease-in;
}
.bookmarks .area:hover {
  background-color: #333;
  transition: background-color .1s ease-out;
}
.bookmarks .area:active {
  background-color: #444;
}
.bookmarks .cmd {
  display: block;
  padding: 3px 0;
}
.bookmarks .level-0 .cmd {
  padding-left: 15px;
}
.bookmarks .level-0 .togle {
  left: 0px;
}
.bookmarks .level-1 .cmd {
  padding-left: 30px;
}
.bookmarks .level-1 .togle {
  left: 15px;
}
.bookmarks .level-2 .cmd {
  padding-left: 45px;
}
.bookmarks .level-2 .togle {
  left: 30px;
}
.bookmarks .level-3 .cmd {
  padding-left: 60px;
}
.bookmarks .level-3 .togle {
  left: 45px;
}
.bookmarks .level-4 .cmd {
  padding-left: 75px;
}
.bookmarks .level-4 .togle {
  left: 60px;
}
.bookmarks .cmd.togle {
  width: 13px;
  height: 20px;
  position: absolute;
  padding: 3px 4px;;
  top: 1px;
}
.bookmarks .togle::before {
  content: ' ';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 0px solid #222;
  transition: border 0.2s;
}
.bookmarks .togle:active::before {
  border: 9px solid #222;
  transition: border 0.05s;
}
.bookmarks .togle i {
  transform: rotateZ(0deg);
  transition: transform 0.2s;
}
.bookmarks .togle.minimized i {
  transform: rotateZ(90deg);
  transition: transform 0.2s;
}

.thumbnails {
  text-align: center;
}
.thumbnails .thumbnail {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.thumbnails .loading {
  position: relative;
}
.thumbnails .loading::after {
  content: ' ';
  position: absolute;
  width: 40px;
  height: 40px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-size: contain;
}
.thumbnails .item {
  display: inline-block;
  width: 130px;
  padding: 5px;
  transition: background-color .1s ease-in;
}
.thumbnails .item:hover {
  background-color: #333;
  transition: background-color .1s ease-out;
}
.thumbnails .item:active {
  background-color: #444;
}
.thumbnails .heading {
  margin-top: 3px;
  overflow: hidden;
}

.search {
  padding: 0 10px;
}
.search .inpQuery {
  padding: 3px;
}
.search .results {
  margin-bottom: 10px;
}
.search .result {
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
  border-bottom: dashed 1px #444;
  transition: background-color .1s ease-in;
}
.search .result:last-child {
  border-bottom: none;
}
.search .result:hover {
  background-color: #333;
  transition: background-color .1s ease-out;
}
.search .result:active {
  background-color: #444;
}
.search .result>a>div {
  overflow: hidden;
}
.search .hit {
  background-color: rgba(255,255,0,.15);
}
.search .query {
  padding: 10px;
}
.search .query input {
  width: 100%;
  color: #000;
}
.search .status {
  text-align: center;
  font-size: 12px;
}
