/* Reset some default styles */
body, h1, h2, h3, p, ul, li {
  margin: 0;
  padding: 0;
}

/* Basic styling */
body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #EE3E38;
  line-height: 1.6;
}

header {
  background-color: #EE3E38;
  color: #fff;
  padding: 1em 0;
  text-align: center;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.search-container {
  display: flex;
  justify-content: center; /* Center the content horizontally */
  align-items: center; /* Center the content vertically */
  margin-top: 20px;
}

#searchInput {
  padding: 8px;
  width: 70%;
  border: solid;
  border-color: #EE3E38;
}

button[type="submit"] {
  padding: 8px 20px;
  background-color: #EE3E38;
  color: #fff;
  border: solid;
  cursor: pointer;
}

/* Book listing */
.book-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.book-card {
  width: 200px;
  /* Remove fixed height */
  /* height: 300px; */
  background-color: #f0f0f0;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  margin: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.book-card img {
  width: 150px; /* Adjust the width as needed */
  height: 200px; /* Adjust the height as needed */
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
}

.book-card h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.book-card p {
  font-size: 14px;
  margin-bottom: 5px;
}

.book-card a {
  margin-top: auto; /* Push the button to the bottom of the card */
  background-color: #EE3E38;
  color: #fff;
  padding: 5px 10px;
  font-size: 14px;
  text-decoration: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.book-card a:hover {
  background-color: #C0392B; /* Change the hover color as needed */
}
