/* Base font settings */
body {
  font-family: "EB Garamond", serif;
  font-optical-sizing: auto;
  line-height: 1.6;
  color: #333;
  background-color: #ffefff;
}

.book-tracker {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1,
h2,
h3 {
  font-family: "EB Garamond", serif;
  font-weight: 600;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

.collections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.book-shelf {
  background: #eff3ea;
  padding: 20px;
  border-color: #000;
  border: 4px solid #afc8ad;
  border-radius: 8px;
}

.book-card {
  background: #d9dfc6;
  padding: 15px;
  margin: 10px 0;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.book-card img {
  width: 50%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

.book-card h3 {
  margin-top: 0.8em;
  font-weight: 600;
}

.book-card p {
  font-size: 1.1rem;
  color: #d9dfc6;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: white;
  padding: 20px;
  max-width: 500px;
  margin: 50px auto;
  border-radius: 8px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input,
select,
button {
  font-family: "EB Garamond", serif;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1.1rem;
}

button {
  background: #a294f9;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

button:hover {
  background: #cdc1ff;
}

.search-container {
  margin: 20px 0;
  position: relative;
}

#searchInput {
  width: 100%;
  padding: 12px;
  font-size: 1.2rem;
  background-color: #f2f1eb;
  border: 4px solid #afc8ad;
  border-radius: 8px;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #f5efff;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
}

.search-result-card {
  display: flex;
  padding: 15px;
  border-bottom: 1px solid #eee;
  gap: 15px;
}

.search-result-card img {
  width: 80px;
  height: 120px;
  object-fit: cover;
}

.book-info {
  flex: 1;
}

.book-info h3 {
  margin-top: 0;
  font-size: 1.3rem;
}

.description {
  font-size: 1.1em;
  color: #666;
  margin: 8px 0;
  line-height: 1.5;
}

.shelf-select {
  margin-top: 10px;
  font-size: 1.1rem;
}
