@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Montserrat:wght@300;400;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Montserrat', sans-serif;
  color: #f5f1e8;
  line-height: 1.7;
  background:
    linear-gradient(rgba(10, 20, 15, 0.85), rgba(10, 20, 15, 0.85)),
    url("images/background.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

/* NAV */
nav {
  background-color: rgba(8, 20, 15, 0.9);
  padding: 15px;
  text-align: center;
}
nav a {
  color: #d4af37;
  margin: 0 15px;
  text-decoration: none;
  font-weight: 600;
}
nav a:hover { text-decoration: underline; }

/* HERO HEADER */
.hero {
  text-align: center;
  padding: 110px 20px 95px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(8, 20, 15, 0.75), rgba(8, 20, 15, 0.88)),
    url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.7rem;
  color: #d4af37;
  letter-spacing: 1px;
  text-shadow: 0 0 22px rgba(0,0,0,0.5);
}
.hero p {
  margin-top: 12px;
  opacity: 0.9;
}

/* SECTIONS */
section {
  max-width: 900px;
  margin: auto;
  padding: 60px 20px;
}

.card {
  background-color: rgba(19, 40, 32, 0.95);
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.15);
}

h2 {
  font-family: 'Playfair Display', serif;
  color: #d4af37;
  margin-bottom: 14px;
}

/* CHARACTER LIST */
.character-list a {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #f5f1e8;
  text-decoration: none;
  margin: 15px 0;
  padding: 15px;
  background-color: rgba(28, 58, 46, 0.9);
  border-radius: 12px;
  transition: 0.3s ease;
}
.character-list a:hover {
  background-color: rgba(40, 85, 65, 0.9);
  transform: translateX(6px);
}
.character-list img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #d4af37;
}

/* HOME ABOUT LAYOUT */
.about-grid {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.book-cover {
  width: 220px;
  border-radius: 12px;
  border: 2px solid #d4af37;
  transform-style: preserve-3d;
  animation: fadeUp 0.9s ease both;
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Tilt on hover */
.book-cover:hover {
  transform: perspective(900px) rotateY(-10deg) rotateX(6deg) translateY(-4px);
  box-shadow: 0 28px 60px rgba(0,0,0,0.45);
}

/* Quote box */
.quote-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 4px solid #d4af37;
  background: rgba(8, 20, 15, 0.45);
  border-radius: 10px;
  font-style: italic;
}
.quote-box span {
  display: block;
  margin-top: 8px;
  font-style: normal;
  opacity: 0.85;
  font-size: 0.95rem;
}

/* Fade-in animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CHARACTER PAGE IMAGE */
.character-image {
  max-width: 250px;    /* limit width */
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
  margin: 0 auto 25px; /* center horizontally */
  border: 2px solid #d4af37;
}


/* FOOTER */
footer {
  text-align: center;
  padding: 40px;
  background-color: rgba(8, 20, 15, 0.9);
  font-size: 0.9rem;
  opacity: 0.85;
}

/* MOBILE */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.6rem; }
}

/* FOOTER CLEANUP */
footer {
  text-align: center;
  padding: 50px 20px;
  background-color: rgba(8, 20, 15, 0.9);
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Works Cited button */
.footer-link {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 22px;
  border: 1.5px solid #d4af37;
  border-radius: 30px;
  color: #d4af37;
  text-decoration: none;
  font-weight: 600;
  transition: 0.25s ease;
}

.footer-link:hover {
  background-color: #d4af37;
  color: #08140f;
}

