body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: url('booksbkg.jpeg') center/cover no-repeat fixed;
  color: #3b2a0b;
}

.page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

/* Two-column layout */
.main-content {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

/* LEFT COLUMN */
.left-column {
  flex: 2;
  min-width: 350px;
}

/* --- Bookcase styling --- */
.bookcase {
  background: rgba(230, 200, 150, 0.85);
  border: 10px solid #80582c;
  border-radius: 8px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
  padding: 20px;
}

/* Each shelf section */
.shelf-section {
  margin-bottom: 50px;
}

.shelf-section h2 {
  margin-bottom: 10px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.15);
  padding-bottom: 5px;
  font-size: 1.2rem;
}

/* Books aligned on shelf */
.shelf {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
  padding: 10px;
}

.book {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  text-align: center;
}

.book img {
  width: 100px;
  height: 150px;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  margin-bottom: 8px;
}

.book:hover {
  transform: translateY(-6px);
}

.book p {
  font-size: 0.9rem;
  color: #3b2a0b;
  margin: 0;
}

/* --- Shelf board directly under books --- */
.wood-shelf {
  height: 14px;
  background: linear-gradient(to bottom, #b38345 0%, #80582c 100%);
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  border-radius: 0 0 8px 8px;
  margin-top: -5px;
}

/* RIGHT COLUMN */
.right-column {
  flex: 1;
  min-width: 250px;
  background-color: rgba(255,255,255,0.75);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  height: fit-content;
}

.tags {
  margin-bottom: 30px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-btn {
  background: #dcb67a;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.3s;
}

.tag-btn:hover {
  background: #cfa56a;
}

.tag-btn.active {
  background: #a77c3b;
  color: white;
}

.sidesection {
	margin-bottom:30px;
}

.book-of-month,
.author-of-month {
  text-align: center;
  margin-bottom: 30px;
}

.book-of-month img,
.author-of-month img {
  width: 120px;
  border-radius: 6px;
  margin-bottom: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

/* FOOTER */
footer {
  margin-top: 50px;
  width: 100%;
  text-align: center;
}

footer img {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-top: 3px solid rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 900px) {
  .shelf {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .main-content {
    flex-direction: column;
  }

  .right-column {
    margin-top: 30px;
  }

  .shelf {
    grid-template-columns: repeat(2, 1fr);
  }

  .book img {
    width: 90px;
    height: 130px;
  }
}
