body {
  margin: 0;
  font-family: sans-serif;
  background-color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

.flipbook-container {
  width: 90%;
  max-width: 1200px;
  height: 80vh;
  background: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  position: relative;
}

#book {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.page {
  display: flex;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.page.active {
  opacity: 1;
  pointer-events: auto;
}

.page-left {
  width: 50%;
  padding: 40px;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-align: center;
  line-height: 1.5;
  box-sizing: border-box;
}

.page-right {
  width: 50%;
  height: 100%;
}

.page-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cover specific */
.page.cover {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
}

.page.cover img {
  max-width: 80%;
  max-height: 70%;
  object-fit: contain;
  margin-bottom: 20px;
}

.page.cover h1 {
  font-size: 48px;
  margin: 0;
  text-align: center;
}

.controls {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
}

.controls button {
  padding: 10px 20px;
  font-size: 18px;
  cursor: pointer;
  background: #fff;
  border: none;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.controls button:hover {
  background: #f0f0f0;
}