* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: #1a1a1a;
  color: #fff;
  overflow: hidden;
}

.container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.manga-viewer {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.3s ease-out;
}

.page {
  flex-shrink: 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000000;
}

.page img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.page-title {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
  font-size: 24px;
  font-family: "Zen Old Mincho", sans-serif;
}

.nav-buttons {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.nav-btn {
  padding: 8px 16px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.nav-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.page-info {
  position: fixed;
  top: 40px;
  right: 40px;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 10;
}

.back-btn {
  position: fixed;
  top: 40px;
  left: 40px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 14px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.back-btn::before {
  content: "←";
  margin-right: 5px;
}

.back-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

@media (min-width: 768px) {
  .manga-viewer {
    flex-direction: column;
  }

  .page {
    width: 100%;
    height: 100vh;
  }
}

@media (max-width: 767px) {
  .manga-viewer {
    flex-direction: row;
  }

  .page {
    width: 100vw;
    height: 100%;
  }
}
