body {
  background: #f2e9d0;
  font-family: "Georgia", serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

.book {
  position: relative;
  width: 900px;
  height: 1400px;
  perspective: 2000px;
}

.page {
  width: 100%;
  height: 100%;
  background: #fffaf0;
  border: 1px solid #ccc;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  position: absolute;
  transform-origin: left;
  transition: transform 1s ease;
  backface-visibility: hidden;
}

.page .content {
  padding: 40px;
}

.page:nth-child(1) {
  z-index: 10;
}

.page:nth-child(2) {
  z-index: 9;
}

.page:nth-child(3) {
  z-index: 8;
}

.page:nth-child(4) {
  z-index: 7;
}

.page:nth-child(5) {
  z-index: 6;
}

.page:nth-child(6) {
  z-index: 5;
}

.page:nth-child(7) {
  z-index: 4;
}

.page:nth-child(8) {
  z-index: 3;
}

.page:nth-child(9) {
  z-index: 2
}

.page:nth-child(10) {
  z-index: 1;
}


.page.flipped {
  transform: rotateY(-180deg);
}

.controls {
  margin-top: 20px;
}

button {
  background: #b89b6b;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #a38258;
}

/* Для адаптации на телефонах */
@media (max-width: 700px) {
  .book {
    width: 90%;
    height: 60vh;
  }

  .page .content {
    padding: 20px;
  }
}

table {
  border-collapse: collapse;
  width: 100%;
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-size: 15px;
}

th,
td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

th {
  background-color: #0078D7;
  color: white;
  text-transform: uppercase;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

tr:hover {
  background-color: #e6f0ff;
}