* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Georgia, serif;
  line-height: 1.6;
  background: #fafafa;
  color: #333;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  font-size: 2.5em;
}

header p {
  font-size: 1.2em;
  color: #666;
}

.intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.author-pic {
  width: 150px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.books {
  max-width: 1200px;
  margin: 0 auto;
}

.books h2 {
  text-align: center;
  margin-bottom: 20px;
}

.book {
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  text-align: center;
}

.book img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.book h3 {
  font-size: 1.5em;
  margin: 10px 0;
}

.book a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: white;
  background: #d35400;
  padding: 10px 20px;
  border-radius: 4px;
}

.book a:hover {
  background: #a84300;
}

.contact {
  text-align: center;
  margin-top: 50px;
}

.contact input {
  padding: 10px;
  font-size: 1em;
  margin-right: 10px;
  width: 250px;
  max-width: 80%;
}

.contact button {
  padding: 10px 20px;
  font-size: 1em;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
}

.contact button:hover {
  background: #217dbb;
}

footer {
  text-align: center;
  margin-top: 40px;
  color: #777;
}

.author-image {
  text-align: center;
  margin: 20px 0;
}

.author-image img {
  width: 80px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0,0,0,0.15);
}

/* 📚 BOOKSHELF LAYOUT */
.bookshelf-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.book-card {
  background: white;
  width: 200px;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.2s ease;
}

.book-card:hover {
  transform: translateY(-5px);
}

.book-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
}

.book-card h3 {
  font-size: 1.1rem;
  margin: 10px 0 5px;
}

.book-card p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 10px;
}

.book-card .button {
  display: inline-block;
  padding: 8px 16px;
  background: #d35400;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.book-card .button:hover {
  background: #a84300;
}

.book-card .disabled {
  padding: 8px 16px;
  background: #ccc;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: not-allowed;
}

/* 📱 RESPONSIVE BOOK GRID */
@media (max-width: 768px) {
  .book-card {
    width: 45%;
  }
}

@media (max-width: 480px) {
  .book-card {
    width: 100%;
  }
}
