/* General body and layout styling */
body {
  margin: 0;
  padding: 0;
  background: url('../Background.png') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Georgia', serif;
  color: #5a4e4b;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100vh;
}

/* Overlay for romantic feel */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(250, 235, 215, 0.7);
  z-index: -1;
}

/* Header styling */
header {
  text-align: center;
  padding: 50px 20px;
  background: rgba(0, 0, 0, 1);
  width: 100%;
}

header img {
  display: block;
  margin: 0 auto;
  width: 50vw;
  max-width: 1000px;
}

header p {
  font-size: 22px;
  color: #FF99CC;
  margin-top: 10px;
}

/* Author Bio Section */
.author-bio {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  min-height: 100vh; /* Make sure the bio takes at least the full height of the viewport */
  text-align: center;
  max-width: 1000px;
  margin: 20px auto;
}

.author-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 800px;
  background-color: #603B3C; /* Partially transparent background */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.author-photo {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  border: 3px solid black;
}

.author-info {
  flex-grow: 1;
  text-align: center; /* Center the text */
}

.author-info-item {
  margin-bottom: 15px;
}

.author-info-item strong {
  display: block;
  font-size: 18px;
  color: #e06b8d;
}

.author-info-item p {
  font-size: 16px;
  margin: 5px 0 0;
  color: #FFFFFF;
}

.bio-summary, .recommended-books {
  text-align: center;
  margin-top: 30px;
}

.bio-summary h3, .recommended-books h3 {
  font-size: 24px;
  color: #ff99cc;
}

.bio-summary p, .recommended-books p {
  font-size: 18px;
  color: #ffffff;
}

/* Button container (mirroring the button style of other pages) */
.button-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

a button {
  background-color: rgb(5, 154, 144, 1);
  color: #f4f0e6;
  padding: 15px 30px;
  font-size: 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Garamond', serif;
  min-width: 150px;
  height: 60px;
  text-align: center;
}

a button:hover {
  background-color: #d1537a;
}

/* Footer styling */
footer {
  padding: 30px;
  text-align: center;
  background-color: #000000;
  border-top: 2px solid #FFFFFF;
}

footer p {
  color: #FFFFFF;
}

footer a {
  color: #FFFFFF;
  text-decoration: none;
}

footer a:hover {
  color: #d1537a;
}

/* Responsive adjustments */
@media only screen and (max-width: 768px) {
  .author-details {
    text-align: center;
  }

  .bio-summary, .recommended-books {
    text-align: center;
  }
}
