/* Pure Black Background */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  overflow: hidden;
}

.manga-reader {
  position: relative;
  width: 100vw;
  height: 100vh;
}

/* Scrolling Container */
.manga-pages {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
}

/* Individual Pages */
.page {
  scroll-snap-align: center;
  flex: 0 0 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Natural Image Sizing with Border */
.page img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1); /* subtle border */
}

/* Red Text Navigation */
.text-nav {
  position: fixed;
  bottom: 30px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 5%;
  font-family: 'Times New Roman', serif;
}

.nav-btn {
  color: #ff3355;
  font-size: 1.1rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  background: transparent;
  border: none;
  padding: 8px 0;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-btn:hover {
  color: #ff6b8b;
  text-decoration-thickness: 2px;
}

.nav-btn:disabled {
  color: #5a1a1a;
  text-decoration: none;
  cursor: not-allowed;
}

/* Hide scrollbar */
.manga-pages::-webkit-scrollbar {
  display: none;
}

/* Stacked Images Container */
.stacked-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px; /* Space between images */
}

/* Equal Image Sizing */
.stacked-images img {
  width: 789; /* Adjust to your preferred size */
  height: 306; /* Makes a square, adjust as needed */
  object-fit: contain; /* Prevents distortion */
}

/* Keep your existing manga-reader styles */
.page {
  /* Your existing page styles */
  display: flex;
  justify-content: center;
  align-items: center;
}