body {
  font-family: 'Quicksand', Arial, sans-serif;
  background: linear-gradient(135deg, #555555 0%, #d86800 100%);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

header, footer {
  width: 100%;
  background: rgba(44, 62, 80, 0.92);
  color: #fff;
  padding: 16px 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(48, 48, 48, 0.08);
}

header nav h1, header nav a, footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
}

header nav h1 {
  margin: 0;
}

footer {
  margin-top: 40px;
  font-size: 1rem;
}

footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 24px;
  justify-content: center;
}

footer nav ul li {
  display: inline;
}

footer a:hover {
  text-decoration: underline;
  color: #ffd700;
}

main, body > img, body > h1, body > p, body > h4 {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

img {
  margin: auto;
  max-width: 400px;
  max-height: 460px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(44, 62, 80, 0.18);
  border: 4px solid #fff;
  background: #eee;
  display: block;
}

h1 {
  font-size: 2rem;
  color: #cacaca;
  margin: 24px 0 12px 0;
  letter-spacing: 1px;
}

p {
  color: #ffffff;
  font-size: 1.1rem;
  margin: 0 0 16px 0;
}

h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 24px;
}

.book-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 32px;
}

.book-card {
  position: relative;
  width: 220px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.13);
  transition: transform 0.2s, box-shadow 0.2s;
}

.book-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.22);
}

.book-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  border-radius: 14px 14px 0 0;
  border: none;
  box-shadow: none;
}

.book-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(44, 62, 80, 0.82);
  color: #fff;
  padding: 12px;
  box-sizing: border-box;
  text-align: center;
}

.book-info h3 {
  margin: 0 0 6px 0;
  font-size: 1.15rem;
}

.book-info p {
  margin: 0;
  font-size: 0.97rem;
}


.borrow-btn {
  display: inline-block;
  margin: 18px auto 0 auto;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #b98f1b 60%, #8d560e 100%);
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.13);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.borrow-btn:hover {
  background: linear-gradient(90deg, #555555 0%, #4e4e4e 100%);
  transform: scale(1.06);
  color: #ffd700;
}
