/* Buttons */
.visit-button {
  display: inline-block;
  padding: 8px 20px;
  background: #653728;
  color: #fff;
  font-weight: semi-bold;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 20px;
}

.visit-button:hover {
  background-color: #ece5d2;
  color: #653728;
  border: 1px solid #653728;
  transition: ease-in-out 0.5s;
}

.read-now-btn{
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #653728;
  color: #ece5d2;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}
.read-now-btn:hover{
  background-color: #965a46;
}

.apply-now{
  width: 300px;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #653728;
  color: #ece5d2;
  padding: 10px 10px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}
.apply-now:hover{
  background-color: #965a46;
}

/* Cards */
.genre-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  background-color: #ece5d2;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  text-align: center;
  transition: transform 0.3s;
  text-decoration: none;
  color: #653728;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.card p{
  text-align: center;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: #000000 0px 3px 5px 0px;
}

/* Book Cards */
.B-book-card {
  width: 160px;
  height: 230px;
  background: linear-gradient(145deg, #f4f1e6, #ece5d2);
  border-radius: 4px 8px 8px 4px;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #653728;
  border: 0.5px solid #e2cdc5;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.B-book-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 12px;
  background: linear-gradient(to right, #d9c9b8, #ece5d2);
  border-right: 1px solid rgba(0,0,0,0.1);
}

.B-book-card:hover {
  transform: rotateY(-3deg) scale(1.02);
  box-shadow: 8px 8px 20px rgba(0,0,0,0.4);
}

.B-label {
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0.8;
  font-weight: 500;
  letter-spacing: 1px;
}

.B-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  flex-grow: 1;
}

.B-author {
  font-size: 14px;
  font-style: italic;
  opacity: 0.9;
  margin-top: 4px;
}

.B-read-now {
  font-size: 14px;
  text-decoration: none;
  color: #653728;
  opacity: 0.95;
  font-weight: 500;
  transition: color 0.2s ease;
}

.B-read-now:hover {
  color: #8b4b35;
  text-decoration: underline;
}

/* Go to Top Button */
#goTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #653728;
  color: #ece5d2;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
  visibility: hidden;
  font-size: 30px;
}

#goTopBtn:hover {
  background-color: #ece5d2;
  color: #653728;
  border: 1px solid #653728;
  transition: ease-in-out 0.5s;
}

#goTopBtn.show {
  opacity: 1;
  visibility: visible;
}

/* Share button */
.share-btn {
  font-size: 22px;
  display: flex;
  justify-content: right;
  margin-right: 10px;
  text-decoration: none;
  margin: 10px;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.share-btn i{
  background-color: #653728;
  color: #ece5d2;
  padding: 10px 11px;
  border-radius: 50%;
}
.share-btn i:hover{
  color: #653728;
  background:transparent;
  border: 1px solid #653728;
  transition: ease-in-out 0.5s;
}