:root {
      --bs-primary: #B70719;
    }
    body {
      background: #f8f9fa;
    }
    header {
      background-color: white;
      padding: 15px 0;
      border-bottom: 1px solid #ddd;
    }
    header img {
      max-height: 40px;
      margin-right: 10px;
    }
    .cover-thumb {
      width: 100%;
      height: 220px;
      object-fit: contain;
      background-color: #fff;
      border: 1px solid #ddd;
      border-radius: 6px;
    }
    .card-title {
      font-size: 1.1rem;
    }

    .btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #B70719;;
    --bs-btn-border-color: #B70719;;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #B70719;;
    --bs-btn-hover-border-color: #B70719;;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #B70719;;
    --bs-btn-active-border-color: #B70719;;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #B70719;;
    --bs-btn-disabled-border-color: #B70719;;
}

  

@media (max-width: 768px) {
  .flip-container {
    position: relative;
    width: 100vw;
    height: calc(100vh - 140px); /* Viewport minus Header/Footer */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

   #flipbook {
  visibility: hidden;
}

  #flipbook .page {
    width: 100vw !important;
    height: 100% !important;
    background: white;
  }

  #flipbook img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(183, 7, 25, 0.85);
    font-size: 36px;
    z-index: 10;
    padding: 0;
    height: 40px;
    width: 40px;
  }

  #prev {
    left: 5px;
  }

  #next {
    right: 5px;
  }

  #flipbook .page {
  width: 100%;
  height: 100%;
  background: white;
  overflow: hidden;
}

#flipbook img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
}
