body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  background: #f9f9f9;
}

nav {
  background: #222;
  padding: 10px;
  text-align: center;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

main {
  max-width: 800px;
  margin: auto;
  padding: 40px 20px;
}

section {
  margin-bottom: 80px;
}

.bannerimg {
  display: grid;
  place-items: center;
}

.bannerimg img {
  max-height: 300px;
  margin-bottom: 20px;
  margin-top: 15px;    
}

p { 
  text-align: justify;
}

a {
    color: #1c74a0;
}

h2 {
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
}

h3 {
    font-weight: 100;
    margin-top: 35px;
}

hr {
  margin-top: 19px;
  border: 1px solid #f0eeee;
}

.book-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
}

.book-card {
  display: flex;
  gap: 20px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 2px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  align-items: flex-start;
}

.book-cover {
  width: 140px;
  height: auto;
  border-radius: 2px;
  flex-shrink: 0;
  object-fit: cover;
}

.book-info {
  flex: 1;
}

.book-title {
  margin: 0;
  font-size: 1.4em;
}

.book-author, .book-release {
  margin: 4px 0;
  color: #555;
  font-style: italic;
}

.book-description {
  margin: 10px 0;
  text-align: justify;
}

.book-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 2px;
  text-decoration: none;
  color: white;
  background: #44403e;
  font-size: 0.9em;
  transition: background 0.2s ease;
}

.store-btn:hover {
  background: #44403e;
}

/* Mobile layout */
@media (max-width: 768px) {
  .book-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-cover {
    width: 70%;
  }

  .book-links {
    justify-content: center;
  }
}


.author-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.author-card {
  background: white;
  border: 1px solid #ccc;
  border-radius: 2px;
  width: 200px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.author-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 10px;
}

.author-name {
  margin: 0px 0px 3px 0px;
  font-size: 1.1em;
  color: #222;
}

.author-prns {
  margin: 4px 0 10px 0;
  color: #555;
  font-style: italic;
  text-align: center;
}

.author-bio {
  margin: 5px 0px 12px 0px;
}

.author-btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 2px;
  background: #44403e;
  color: white;
  text-decoration: none;
  font-size: 0.9em;
  transition: background 0.2s ease;
}

.author-btn:hover {
  background: #44403e;
}

/* Mobile layout */
@media (max-width: 768px) {
  .author-card {
    max-width: 50%;
  }
 
  .author-photo {
    object-fit: contain;
  }
    
}

