 * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html,
    body {
      height: 100%;
    }

    body {
      font-family: Arial, sans-serif;
      background-color: #eee;
      color: #333;
    }

    #zoom-wrapper {
      width: 100%;
      min-height: 100vh;
      overflow: hidden;
      display: flex;
      align-items: stretch;
      justify-content: center;
      overflow-anchor: none;
      scroll-behavior: auto;
    }

    main {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 20px 0;
      width: 100%;
    }

    #scale-viewport {
      position: relative;
      width: 100%;
      height: max-content;
      display: flex;
      justify-content: center;
      align-items: center;
      flex: 1 1 auto;
      min-height: 100%;
    }

    #scale-viewport.align-top {
      align-items: flex-start;
    }

    #book-container {
      position: relative;
      transform-origin: top center;
      background-color: transparent;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 24px;
      width: max-content;
      will-change: transform;
    }

    .flip-book {
      width: 100%;
      height: auto;
      margin: 0 auto;
      display: block;
    }

    #book .page {
      width: 595px;
      height: 842px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #fff;
    }

    #book .page img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    #book .page-content {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
    }

    #book .page-image {
      flex: 1;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
    }

    #book .page.--left .page-image {
      box-shadow: inset -15px 0 25px -10px rgba(0, 0, 0, 0.4);
    }

    #book .page.--right .page-image {
      box-shadow: inset 15px 0 25px -10px rgba(0, 0, 0, 0.4);
    }

    #book .page.page-cover-top .page-image {
      box-shadow: rgba(38, 57, 77, 0.8) 0px 20px 30px -10px;
    }

    #book .page.page-cover-bottom .page-image {
      box-shadow: rgba(38, 57, 77, 0.8) 0px 20px 30px -10px;
    }

    .nav-button {
      position: relative;
      background-color: rgba(0, 0, 0, .3);
      border: none;
      padding: 1rem;
      cursor: pointer;
      z-index: 10;
      display: flex;
      justify-content: center;
      align-items: center;
      transition: background-color .3s ease, opacity .2s ease, visibility .2s ease;
      flex: 0 0 auto;
      visibility: visible;
      opacity: 1;
    }

    .nav-button.is-hidden {
      visibility: hidden;
      opacity: 0;
      pointer-events: none;
    }

    .nav-button:hover {
      background-color: rgba(0, 0, 0, .5);
    }

    .nav-button svg {
      width: 24px;
      height: 24px;
      fill: white;
    }

    #zoom-hint {
      position: fixed;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      background-color: rgba(0, 0, 0, .5);
      color: white;
      padding: 10px 20px;
      border-radius: 5px;
      font-size: 0.9rem;
      z-index: 20;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    #zoom-hint button {
      background: none;
      border: none;
      color: white;
      font-size: 1rem;
      cursor: pointer;
    }

    .hidden {
      display: none !important;
    }

    @media (max-width: 768px) {
      #book-container {
        gap: 0;
      }

      .nav-button {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
      }

      .nav-button.left {
        left: 10px;
      }

      .nav-button.right {
        right: 10px;
      }

      #zoom-hint {
        bottom: 10px;
        font-size: 0.8rem;
        padding: 8px 15px;
      }
    }

    .fixed-button {
      position: fixed;
      display: flex;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      z-index: 1000;
      flex-direction: column;
      align-items: flex-end;
    }

    .fixed-button a {
      display: flex;
      align-items: center;
      width: auto;
      max-width: 45px;
      padding: 17px;
      background: #831026;
      color: #fff;
      text-decoration: none;
      overflow: hidden;
      font-weight: normal;
      transition: max-width .6s ease, justify-content .6s ease;
      border-radius: 4px 0 0 4px;
      margin-bottom: 16px;
      box-sizing: content-box;
      will-change: max-width;
    }

    .fixed-button a .text-wrapper {
      min-width: 45px;
    }

    .fixed-button a .icon-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .fixed-button a .icon-wrapper svg {
      width: 30px;
      height: 30px;
    }

    .fixed-button a .icon-wrapper .small-text {
      font-size: 10px;
      margin-top: 4px;
      white-space: nowrap;
      transition: opacity .3s;
      opacity: 1;
    }

    .fixed-button a span {
      margin-left: 12px;
      white-space: nowrap;
      opacity: 0;
      transition: opacity 1s ease-in-out;
      font-size: 15px;
      color: #fff;
    }

    .fixed-button a:hover {
      max-width: 230px;
      justify-content: center;
    }

    .fixed-button a:hover .icon-wrapper .small-text {
      opacity: 0;
      display: none;
    }

    .fixed-button a:hover span {
      opacity: 1;
    }

    @media (max-width: 768px) {
      .fixed-button {
        display: none;
      }

      .fixed-button a {
        margin-right: 10px;
      }
    }

    #loader-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #fff;
      z-index: 2000;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
    }

    .loader {
      border: 5px solid #eee;
      border-top: 5px solid #831026;
      border-radius: 50%;
      width: 60px;
      height: 60px;
      animation: spin 1s linear infinite;
    }

    #loader-text {
      margin-top: 20px;
      font-size: .9rem;
      color: #000000;
      min-height: 1.5em;
      opacity: 0;
      transition: opacity 0.5s ease;
    }

    @media (max-width: 768px) {
      #zoom-hint {
        display: none !important;
      }
    }

    @keyframes spin {
      0% {
        transform: rotate(0deg);
      }

      100% {
        transform: rotate(360deg);
      }
    }

    #cover-sidebar {
      position: fixed;
      top: 0;
      right: -300px;
      width: 300px;
      height: 100%;
      background: #fff;
      box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
      transition: right 0.3s ease;
      z-index: 1500;
      overflow-y: auto;
    }

    #cover-sidebar.active {
      right: 0;
    }

    #cover-sidebar h3 {
      margin-bottom: 15px;
      background: #831026;
      color: #fff;
      padding: 20px;
    }

    #cover-sidebar p {
      color: #000;
      padding: 10px 20px;
    }


    #cover-sidebar .cover-sidebar-covers {
      padding: 20px;
    }

    .fixed-button a#coverButton {
      margin-bottom: 35px;
    }

    .cover-option {
      width: 100%;
      margin-bottom: 15px;
      cursor: pointer;
      transition: border 0.3s ease;
      text-align: center;
      padding: 15px;
      border: 2px solid #eee;
    }

    .cover-option:hover {
      border: 2px solid #831026;
      transform: scale(1.03);
    }

    .cover-option img {
      width: 100%;
      height: auto;
      display: block;
    }

    .cover-option .cover-title {
      font-size: 14px;
      margin-top: 8px;
      color: #333;
      font-weight: bold;
    }