:root {
  --primary-color: #0284C7;
  --secondary-color: #04a0e8;
  --bg-color: #CDE8E5;
  --text-color: black;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-color);
}

header {
  background-color: white;
  color: var(--text-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo h1 {
  margin: 0;
}

.logo h1 a {
  text-decoration: none; 
  color: var(--text-color);
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li {
  margin-right: 20px;
}

nav ul li:last-child {
  margin-right: 0;
}

nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  padding: 8px 12px;
  transition: background-color 0.3s;
}

nav ul li a:hover {
  background-color: #f0f0f0;
  border-radius: 4px;
}

.signup-button, .modal-button {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  display: inline-block;
  font-size: 16px;
  margin: 20px 0;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 4px;
}

.signup-button:hover, .modal-button:hover {
  background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
}

main section {
  padding: 20px;
}

.book-list .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.book-list .search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.book-list .search-container input[type="text"] {
  padding: 10px;
  font-size: 16px;
  width: 50%;
}

.book-list .search-container button {
  padding: 10px;
  font-size: 16px;
}

.book-list .books {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.book-list .book {
  flex: 1 1 calc(25% - 20px);
  max-width: 250px; /* Add this line to set a maximum width */
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.book-list .book:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.book-list .book img {
  max-width: 100%;
  height: auto;
}

.book-list .book h3 {
  margin: 0;
  padding: 10px;
  font-size: 18px;
}

.book-list .book p {
  padding: 0 10px 10px;
}

.faqs .container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.faqs .faq {
  margin-bottom: 20px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  position: relative;
}
.modal-content .book-info img {
  max-width: 100%;
  max-height: 300px; 
  height: auto;
  margin-bottom: 10px;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.book-info {
  display: flex;
  gap: 20px;
}

.book-meta h2 {
  margin: 0;
}

.book-meta p {
  margin: 5px 0;
}

