#fb-wrapper {
  width: 100%;
  height: 80vh;
  max-height: 680px;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
  padding-top: 28px;
}

#fb-wrapper:fullscreen,
#fb-wrapper:-webkit-full-screen,
#fb-wrapper:-moz-full-screen {
  height: 100vh;
  max-height: 100vh;
  padding-top: 0;
}

#fb-stage {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

#fb-spine {
  position: absolute;
  top: 0;
  left: calc(50% - 50px);
  width: 100px;
  opacity: 0.5;
  height: 100%;
  background: linear-gradient(to right,
    transparent              0%,
    rgba(0,0,0,0.08)        25%,
    rgba(0,0,0,0.30)        46%,
    rgba(0,0,0,0.50)        49%,
    rgba(255,255,255,0.07)  50%,
    rgba(0,0,0,0.40)        51%,
    rgba(0,0,0,0.18)        62%,
    transparent              85%
  );
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.15s ease;
}

#fb-loading {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  letter-spacing: 0.05em;
}

#fb-book {
  display: none;
  transform-origin: center center;
  transition: transform 0.2s ease;
}

.stf__parent,
.stf__wrapper,
.stf__block {
  background: #1a1a1a !important;
}

.fb-page {
  position: absolute !important;
  overflow: hidden;
  background: #fff;
}

.fb-page canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.textLayer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
  line-height: 1;
  text-size-adjust: none;
}

.textLayer span {
  color: transparent;
  position: absolute;
  white-space: pre;
  cursor: text;
  transform-origin: 0% 0%;
}

.textLayer ::selection {
  background: rgba(0, 100, 255, 0.25);
  color: transparent;
}

.annotationLayer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.annotationLayer a {
  position: absolute;
  display: block;
  cursor: pointer;
}

#fb-controls {
  display: none;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  width: 100%;
  justify-content: center;
  position: relative;
}

.fb-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 7px 18px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.2s;
}

.fb-btn:hover {
  background: rgba(255,255,255,0.18);
}

#fb-fullscreen {
  position: absolute;
  right: 20px;
  padding: 7px 12px;
  font-size: 16px;
}

#fb-page-num {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  min-width: 80px;
  text-align: center;
}

@media screen and (max-width: 700px) {
  #fb-spine {
    display:none !important;
  }
  .fb-page--active {
    transform: translate(-50%, -50%)
  }
  
}