/* ==========================================================================
   JRPMC FLIPBOOK READER  -  3D page-turning PDF reader
   Journal of Rangpur Medical College
   ========================================================================== */

:root {
  --fb-navy: #0a2540;
  --fb-navy-deep: #061526;
  --fb-navy-soft: #12375f;
  --fb-green: #00762f;
  --fb-green-soft: #0d9488;
  --fb-gold: #d4af37;
  --fb-gold-soft: #f3dc8a;
  --fb-paper: #fbfaf6;
  --fb-ink: #0f172a;
  --fb-muted: #64748b;
  --fb-glass: rgba(9, 27, 48, 0.78);
  --fb-glass-line: rgba(255, 255, 255, 0.14);
  --fb-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fb-serif: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
  --fb-pw: 420px;
  --fb-ph: 594px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--fb-navy-deep);
  font-family: var(--fb-font);
  color: #e8eef7;
  -webkit-font-smoothing: antialiased;
}

body { overflow: hidden; }

button { font-family: inherit; }

/* --------------------------------------------------------------------------
   App shell
   -------------------------------------------------------------------------- */
.fb-app {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 700px at 50% 28%, rgba(18, 55, 95, 0.95) 0%, rgba(10, 37, 64, 0.9) 45%, rgba(6, 21, 38, 1) 100%);
  position: relative;
}

/* faint clinical grid + vignette to give the "reading room" atmosphere */
.fb-app::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.fb-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 60px;
  padding: 0 18px;
  background: linear-gradient(180deg, rgba(6, 21, 38, 0.96), rgba(6, 21, 38, 0.72));
  border-bottom: 1px solid var(--fb-glass-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex: 0 0 auto;
}

.fb-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--fb-gold), transparent);
  opacity: 0.7;
}

.fb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
  text-decoration: none;
  color: inherit;
}

.fb-brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #fff;
  padding: 2px;
  object-fit: contain;
  flex: 0 0 auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.fb-brand-text { min-width: 0; line-height: 1.25; }

.fb-brand-journal {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fb-gold-soft);
}

.fb-brand-title {
  display: block;
  font-family: var(--fb-serif);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.fb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  min-width: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--fb-glass-line);
  background: rgba(255, 255, 255, 0.07);
  color: #e8eef7;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.fb-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.fb-btn:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-1px); }
.fb-btn:active { transform: translateY(0) scale(0.96); }
.fb-btn:focus-visible { outline: 2px solid var(--fb-gold); outline-offset: 2px; }
.fb-btn[disabled] { opacity: 0.35; cursor: default; pointer-events: none; }
.fb-btn.is-active { background: rgba(212, 175, 55, 0.22); border-color: rgba(212, 175, 55, 0.6); color: var(--fb-gold-soft); }

.fb-btn-icon { padding: 0; width: 40px; }

.fb-btn-primary {
  background: linear-gradient(135deg, var(--fb-green), #059669);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 118, 47, 0.4);
}

.fb-btn-primary:hover { background: linear-gradient(135deg, #048a37, #10b981); box-shadow: 0 8px 22px rgba(16, 185, 129, 0.45); }

/* --------------------------------------------------------------------------
   Body: info panel + reader
   -------------------------------------------------------------------------- */
.fb-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  position: relative;
}

.fb-info {
  flex: 0 0 auto;
  width: 340px;
  background: #ffffff;
  color: var(--fb-ink);
  overflow: hidden;
  position: relative;
  z-index: 20;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.35);
}

.fb-app.info-closed .fb-info { width: 0; box-shadow: none; }

.fb-info-inner {
  width: 340px;
  height: 100%;
  overflow-y: auto;
  padding: 26px 24px 30px;
}

.fb-chip {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fb-green);
  background: #e7f6ee;
  border: 1px solid #b7e4cb;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.fb-info h1 {
  font-family: var(--fb-serif);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--fb-navy);
  margin: 0 0 12px;
}

.fb-info .fb-authors { font-size: 14px; line-height: 1.6; color: #334155; margin: 0 0 6px; font-weight: 500; }
.fb-info .fb-date { font-size: 12.5px; color: var(--fb-muted); margin: 0 0 18px; }

.fb-info .fb-notice {
  background: #fff7e6;
  border: 1px solid #f0d999;
  color: #7a5b00;
  font-size: 13px;
  line-height: 1.55;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 18px;
}

.fb-info .fb-notice a { color: #7a5b00; text-decoration: underline; }

.fb-info h2 {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fb-muted);
  margin: 0 0 8px;
  font-weight: 800;
}

.fb-info .fb-abstract-text {
  font-size: 13.5px;
  line-height: 1.75;
  color: #334155;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 6px;
}

.fb-info-actions { display: grid; gap: 10px; margin-top: 22px; }

.fb-info-actions .fb-btn { height: 44px; border-radius: 12px; width: 100%; }

.fb-info-actions .fb-btn-ghost {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #0f172a;
}

.fb-info-actions .fb-btn-ghost:hover { background: #e2e8f0; }

.fb-tips {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0f9ff, #ecfdf5);
  border: 1px solid #d5eadf;
  font-size: 12.5px;
  line-height: 1.7;
  color: #35506b;
}

.fb-tips strong { color: var(--fb-navy); display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.fb-tips kbd {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
  color: #0f172a;
}

/* --------------------------------------------------------------------------
   Reader / stage
   -------------------------------------------------------------------------- */
.fb-reader {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.fb-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  overflow: hidden;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: grab;
}

.fb-stage.is-zoomed { overflow: auto; touch-action: pan-x pan-y pinch-zoom; cursor: default; }
.fb-stage.is-dragging { cursor: grabbing; }

.fb-wrap {
  margin: auto;
  position: relative;
  padding: 26px 60px 96px;
  flex: 0 0 auto;
}

.fb-app.is-single .fb-wrap { padding: 16px 12px 90px; }

.fb-book {
  position: relative;
  width: calc(var(--fb-pw) * 2);
  height: var(--fb-ph);
  will-change: transform;
}

.fb-app.is-single .fb-book { width: var(--fb-pw); }

/* opening entrance */
.fb-book.is-entering { animation: fbBookIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes fbBookIn {
  0% { opacity: 0; filter: blur(6px); }
  100% { opacity: 1; filter: blur(0); }
}

/* the perspective must sit on the direct parent of the leaves */
.fb-book-inner {
  position: absolute;
  inset: 0;
  perspective: calc(var(--fb-pw) * 4.6);
  perspective-origin: 50% 40%;
}

/* soft floor shadow */
.fb-floor {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -34px;
  height: 46px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(9px);
  pointer-events: none;
}

/* hard-cover boards */
.fb-board {
  position: absolute;
  top: -9px;
  bottom: -9px;
  width: calc(var(--fb-pw) + 26px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(160deg, #164a7a 0%, #0a2540 60%, #061526 100%);
  box-shadow:
    0 30px 60px -14px rgba(0, 0, 0, 0.7),
    0 10px 22px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(212, 175, 55, 0.35);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.fb-board.r { left: calc(50% - 6px); border-radius: 3px 11px 11px 3px; opacity: 0; }
.fb-board.l { right: calc(50% - 6px); border-radius: 11px 3px 3px 11px; opacity: 0; }
.fb-book.has-left .fb-board.l { opacity: 1; }
.fb-book.has-right .fb-board.r { opacity: 1; }

.fb-app.is-single .fb-board.r { left: -13px; }
.fb-app.is-single .fb-board.l { display: none; }

/* stack of page edges */
.fb-stack {
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: var(--w, 0px);
  pointer-events: none;
  transition: width 0.4s ease;
  background: repeating-linear-gradient(90deg, #faf7f0 0 1px, #d6cfbf 1px 2px);
}

.fb-stack.r { left: calc(50% + var(--fb-pw) - 1px); border-radius: 0 3px 3px 0; box-shadow: 2px 0 4px rgba(0, 0, 0, 0.25); }
.fb-stack.l { right: calc(50% + var(--fb-pw) - 1px); border-radius: 3px 0 0 3px; box-shadow: -2px 0 4px rgba(0, 0, 0, 0.25); }
.fb-app.is-single .fb-stack.r { left: calc(var(--fb-pw) - 1px); }
.fb-app.is-single .fb-stack.l { display: none; }

/* leaves */
.fb-leaf {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--fb-pw);
  height: var(--fb-ph);
  transform-origin: left center;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.fb-app.is-single .fb-leaf { left: 0; }
.fb-leaf.is-moving { will-change: transform; }

.fb-face {
  position: absolute;
  inset: 0;
  background: var(--fb-paper);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.fb-face.fb-front { border-radius: 2px 6px 6px 2px; }
.fb-face.fb-back { transform: rotateY(180deg); border-radius: 6px 2px 2px 6px; }

/* paper tone + subtle grain for blank sides */
.fb-face.fb-blank {
  background:
    radial-gradient(circle at 30% 20%, #ffffff 0%, #f3efe4 100%);
}

.fb-paper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.fb-paper canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fb-face.is-ready .fb-paper canvas { opacity: 1; }

/* shimmer placeholder while a page renders */
.fb-face:not(.is-ready) .fb-paper::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, transparent 20%, rgba(0, 118, 47, 0.06) 45%, transparent 70%) 0 0 / 250% 100%,
    repeating-linear-gradient(180deg, transparent 0 26px, rgba(15, 23, 42, 0.05) 26px 28px);
  animation: fbShimmer 1.6s linear infinite;
}

@keyframes fbShimmer { to { background-position: -250% 0, 0 0; } }

.fb-face:not(.is-ready)::before {
  content: attr(data-page);
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--fb-serif);
  font-size: 34px;
  font-weight: 600;
  color: rgba(10, 37, 64, 0.16);
}

.fb-face.is-error::after { content: 'This page could not be displayed'; }

/* dynamic lighting + spine hinge */
.fb-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--shade, 0);
  z-index: 3;
}

.fb-front .fb-shade { background: linear-gradient(90deg, #120a02 0%, rgba(18, 10, 2, 0.55) 100%); }
.fb-back .fb-shade { background: linear-gradient(270deg, #120a02 0%, rgba(18, 10, 2, 0.55) 100%); }

.fb-face::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 9%;
  pointer-events: none;
  z-index: 2;
}

.fb-front::after { left: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.08) 45%, transparent); }
.fb-back::after { right: 0; background: linear-gradient(270deg, rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.08) 45%, transparent); }

/* soft page edge highlight on the outside */
.fb-front::before, .fb-back::before { z-index: 4; }

/* shadow cast by a turning leaf onto the page below */
.fb-cast-clip {
  position: absolute;
  top: 0;
  height: 100%;
  width: var(--fb-pw);
  overflow: hidden;
  pointer-events: none;
}

#fbCastRClip { left: 50%; }
#fbCastLClip { left: calc(50% - var(--fb-pw)); }
.fb-app.is-single #fbCastRClip { left: 0; }
.fb-app.is-single #fbCastLClip { left: calc(-1 * var(--fb-pw)); }

.fb-cast {
  position: absolute;
  top: 0;
  height: 100%;
  opacity: 0;
}

/* --------------------------------------------------------------------------
   Side arrows
   -------------------------------------------------------------------------- */
.fb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--fb-glass-line);
  background: var(--fb-glass);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  opacity: 0.0;
  transition: opacity 0.3s ease, transform 0.25s ease, background 0.2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fb-arrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fb-reader:hover .fb-arrow { opacity: 0.85; }
.fb-arrow:hover { background: rgba(0, 118, 47, 0.85); transform: translateY(-60%) scale(1.08); opacity: 1 !important; }
.fb-arrow[disabled] { opacity: 0 !important; pointer-events: none; }
.fb-arrow.prev { left: 18px; }
.fb-arrow.next { right: 18px; }

/* --------------------------------------------------------------------------
   Floating toolbar
   -------------------------------------------------------------------------- */
.fb-toolbar {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--fb-glass);
  border: 1px solid var(--fb-glass-line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: calc(100% - 24px);
}

.fb-toolbar .fb-btn { height: 38px; min-width: 38px; background: transparent; border-color: transparent; }
.fb-toolbar .fb-btn:hover { background: rgba(255, 255, 255, 0.14); }
.fb-toolbar .fb-btn.is-active { background: rgba(212, 175, 55, 0.22); }

.fb-sep { width: 1px; height: 22px; background: var(--fb-glass-line); margin: 0 4px; flex: 0 0 auto; }

.fb-pager { display: flex; align-items: center; gap: 12px; min-width: 0; }

.fb-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  min-width: 118px;
  text-align: center;
  color: var(--fb-gold-soft);
  font-variant-numeric: tabular-nums;
}

.fb-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 190px;
  height: 5px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(90deg, var(--fb-gold) var(--fill, 0%), rgba(255, 255, 255, 0.2) var(--fill, 0%));
}

.fb-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--fb-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s;
}

.fb-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

.fb-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--fb-gold);
}

.fb-zoom-label { font-size: 12px; font-weight: 700; min-width: 42px; text-align: center; color: #cfe0f3; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Hint + loader + error
   -------------------------------------------------------------------------- */
.fb-hint {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  z-index: 35;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--fb-glass);
  border: 1px solid var(--fb-glass-line);
  font-size: 12.5px;
  color: #dbe7f5;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}

.fb-hint.show { opacity: 1; transform: translateX(-50%) translateY(6px); }
.fb-hint .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fb-gold); animation: fbPulse 1.6s ease-in-out infinite; }

@keyframes fbPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
  50% { box-shadow: 0 0 0 8px rgba(212, 175, 55, 0); }
}

.fb-loader {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: radial-gradient(800px 500px at 50% 40%, rgba(18, 55, 95, 0.96), rgba(6, 21, 38, 0.98));
  transition: opacity 0.6s ease, visibility 0.6s;
}

.fb-loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }

.fb-loader-book { width: 74px; height: 56px; position: relative; perspective: 500px; }

.fb-loader-book i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 34px;
  height: 52px;
  background: linear-gradient(90deg, #f6f1e4, #fff);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0 4px 4px 0;
  transform-origin: left center;
  animation: fbFlipLoad 1.8s ease-in-out infinite;
}

.fb-loader-book i:nth-child(2) { animation-delay: 0.3s; }
.fb-loader-book i:nth-child(3) { animation-delay: 0.6s; }

@keyframes fbFlipLoad {
  0% { transform: rotateY(0deg); opacity: 1; }
  55% { transform: rotateY(-170deg); opacity: 1; }
  100% { transform: rotateY(-180deg); opacity: 0; }
}

.fb-loader-title { font-family: var(--fb-serif); font-size: 18px; color: #fff; text-align: center; padding: 0 20px; }
.fb-loader-sub { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fb-gold-soft); }

.fb-loader-bar { width: 220px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.fb-loader-bar span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--fb-gold), var(--fb-green-soft)); transition: width 0.3s ease; }

.fb-error { text-align: center; max-width: 380px; padding: 0 20px; color: #ffd9d9; font-size: 14px; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Classic viewer
   -------------------------------------------------------------------------- */
.fb-classic { display: none; flex: 1 1 auto; min-height: 0; background: #d4d4d8; }
.fb-classic iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }

.fb-app.view-classic .fb-stage,
.fb-app.view-classic .fb-toolbar,
.fb-app.view-classic .fb-arrow,
.fb-app.view-classic .fb-hint { display: none; }

.fb-app.view-classic .fb-classic { display: block; }
.fb-app.view-classic .fb-reader { background: #d4d4d8; }

/* --------------------------------------------------------------------------
   Fullscreen
   -------------------------------------------------------------------------- */
.fb-app:fullscreen { background: radial-gradient(1100px 700px at 50% 28%, #12375f 0%, #0a2540 45%, #061526 100%); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .fb-info { position: absolute; top: 0; bottom: 0; left: 0; }
  .fb-app:not(.info-closed) .fb-info { width: min(340px, 88vw); }
  .fb-info-inner { width: min(340px, 88vw); }
}

@media (max-width: 820px) {
  .fb-header { padding: 0 10px; gap: 8px; height: 54px; }
  .fb-header .fb-btn .fb-btn-text { display: none; }
  .fb-header .fb-btn { padding: 0; width: 40px; }
  .fb-brand img { width: 32px; height: 32px; }
  .fb-brand-title { font-size: 13px; }
  .fb-arrow { display: none; }
  .fb-toolbar { bottom: 10px; padding: 6px 8px; gap: 2px; }
  .fb-slider { width: 110px; }
  .fb-label { min-width: 84px; font-size: 11.5px; }
  .fb-zoom-group { display: none !important; }
  .fb-hint { font-size: 11.5px; padding: 8px 14px; }
}

@media (max-width: 520px) {
  .fb-slider { display: none; }
  .fb-sep.opt { display: none; }
  .fb-brand-journal { display: none; }
  .fb-brand-title { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .fb-book.is-entering { animation: none; }
  .fb-loader-book i { animation: none; }
  .fb-hint .dot { animation: none; }
}
