body {
  font-family: 'Georgia', serif;
  background-color: #f0f0f0;
  color: #333;
  margin: 0;
  padding: 0;
}

nav {
  background-color: #1a1a1a;
  padding: 1rem 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  border-bottom: 2px solid #e63946;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

nav a {
  color: #f0f0f0;
  text-decoration: none;
  font-size: 1.1rem;
  font-family: 'Trebuchet MS', sans-serif;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #e63946;
}

.container {
  padding: 2rem;
}

.book-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.book {
  display: flex;
  width: 90%;
  max-width: 1200px;
  background: #fdf6e3;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  border: 8px solid #5e3a1c;
  border-radius: 15px;
  overflow: hidden;
  font-family: 'Garamond', serif;
}

.book .tabcontent {
  flex: 1;
  padding: 2rem;
  background: #fff8dc;
  border-right: 1px solid #ccc;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.6s ease-in-out;
}

.book .tabcontent:last-child {
  border-right: none;
}

.tabcontent.show {
  display: block;
  animation: turnPage 0.6s ease;
}

@keyframes turnPage {
  0% {
    transform: rotateY(90deg);
    opacity: 0;
  }
  100% {
    transform: rotateY(0deg);
    opacity: 1;
  }
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #e63946;
  text-shadow: 0 0 10px #000;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background-color: #5e3a1c;
  padding: 0.5rem;
  border-radius: 10px;
}

.tablinks {
  background-color: #1a1a1a;
  color: #f0f0f0;
  padding: 10px 20px;
  margin: 0 5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.tablinks:hover {
  background-color: #333;
}

.tablinks.active {
  background-color: #e63946;
  color: #fff;
}

.tabcontent {
  display: none;
  padding: 2rem;
  border: 1px solid #ddd;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tabcontent h2 {
  margin-top: 0;
}

.tabcontent p {
  margin: 1rem 0;
}
