body {
  font-family: "Georgia", serif;
  background: #fef3c7;
  margin: 0;
  padding: 0;
}

#page-text {
  white-space: pre;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
}

.title {
  font-size: 2.5rem;
  color: #5c4033;
  margin-bottom: 1.5rem;
}

.book {
  background: #fffaf0;
  padding: 2rem;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#page-container {
  position: relative;
  min-height: 70vh;
  opacity: 1;
  transform: translateX(0);
  transition: all 0.3s ease-in-out;
}

.page-content {
  padding: 20px;
  position: relative;
  z-index: 1;
  opacity: 1;
  transform: translateX(0);
  transition: all 0.3s ease-in-out;
}

.page-transition {
  opacity: 0;
  transform: translateX(20px);
}

h2 {
  font-size: 1.8rem;
  color: #4b3b2a;
  margin-bottom: 1.5rem;
}

p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 1rem 0;
  color: #5c5248;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px solid #eee5d4;
}

button {
  padding: 10px 20px;
  background-color: #f59e0b;
  border: none;
  color: white;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

button:hover {
  background-color: #d97706;
  transform: translateY(-1px);
}

button:active {
  transform: translateY(1px);
}

#page-number {
  font-weight: bold;
  font-size: 1rem;
  color: #5c4033;
  min-width: 60px;
}

/* Animation corrections */
.page-enter-active {
  animation: pageIn 0.3s forwards;
}

.page-exit-active {
  animation: pageOut 0.3s forwards;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pageOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-20px);
  }
}
