@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');

/* ----------------- Base Reset ----------------- */
* { margin: 0; line-height: 1.5; box-sizing: border-box; }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { display: none; }

/* ----------------- Root Colors ----------------- */
:root {
  --off-white: #331C09;
  --green: #D5B57D;
}

/* ----------------- Global ----------------- */
body {
  font-family: "EB Garamond", serif;
  font-weight: 400;
  font-size: 18px;
  background-color: var(--off-white);
  color: var(--green);
}

a {
  text-decoration: none;
  color: var(--green);
}

/* ----------------- Header ----------------- */
header {
  width: 100%;
  position: sticky;
  top: 1.5rem;
  z-index: 9999;
}

.header-box {
  display: flex;
  align-items: center;
}

#logo {
  width: auto;
  height: auto;
  max-height: 45px;
  margin-left: 5rem;
  filter: drop-shadow(0 0 2px rgba(213, 181, 125, 0.654));
  transition: filter 0.3s ease, transform 0.3s ease;
}

#logo:hover {
  filter: drop-shadow(0 0 6px rgba(213, 181, 125, 0.8));
}

/* ----------------- Navigation ----------------- */
nav {
  display: flex;
  align-items: center;
  gap: 20rem;
  margin-right: 1rem;
  position: relative;
}

nav a {
  font-size: 20px;
  font-weight: 500;
  text-shadow: 0 0 8px rgba(213, 181, 125, 0.654);
  transition: all 0.3s ease;
}

nav a:hover {
  text-shadow: 0 0 15px rgb(213, 181, 125);
}

/* line + diamonds */
nav::before {
  content: "";
  position: absolute;
  bottom: -17px;
  left: 2.5%;
  width: 95%;
  height: 1px;
  background-color: var(--green);
}

nav::after,
nav span.end-diamond {
  content: "";
  position: absolute;
  bottom: -18.5px;
  width: 5px;
  height: 5px;
  background: var(--off-white);
  border: 1px solid var(--green);
  transform: rotate(45deg);
  transform-origin: center;
}

nav::after { left: 2.5%; }
nav span.end-diamond { right: 2.5%; }

/* ----------------- Main ----------------- */
main {
  width: 75%;
  margin: 4rem auto 0 auto; /* ⬅️ keeps ABOUT below nav */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 5rem;
}

h1 {
  text-align: center;
  font-size: 45px;
  font-weight: 600;
  color: var(--green);
}

/* ----------------- About Section ----------------- */
.about-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  text-align: center;
}

.about-image {
  width: 1000px;
  height: auto;
  border-radius: 25px;
  box-shadow: 0 0 15px rgba(213, 181, 125, 0.25);
  transition: transform 0.4s ease;
}

.about-text {
  max-width: 750px;
  color: var(--green);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 100;
}

/* ----------------- Gallery ----------------- */
.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  justify-items: center;
  width: 100%;
  max-width: 2000px;
}

.about-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.about-gallery img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

/* ----------------- Quotes ----------------- */
.quotes-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  flex-wrap: wrap;
}

.quote {
  flex: 1;
  max-width: 320px;
  color: var(--green);
}

.quote-text {
  font-style: italic;
  font-size: 16px;
  line-height: 1.7;
}

.quote-line {
  width: 60px;
  height: 1px;
  background-color: var(--green);
  margin: 1rem auto 1rem auto;
}

.quote-source {
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
}

/* ----------------- Footer ----------------- */
footer {
  width: 100%;
  background-color: var(--green);
  text-align: center;
  padding: 1.2rem 0;
  position: relative;
  margin-top: 0.75rem;
  box-shadow: 0 0 12px rgba(213, 181, 125, 0.654);
}

.footer-text {
  color: var(--off-white);
  font-family: "EB Garamond", serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 0 0 4px rgba(213, 181, 125, 0.5);
  opacity: 0.95;
}

/* ----------------- Fade-in Animation ----------------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------- Responsive ----------------- */
@media (max-width: 900px) {
  nav {
    gap: 3rem;
    justify-content: center;
  }

  .about-image {
    width: 90%;
  }

  .quotes-section {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
}

/* ---------------- Character Gallery ---------------- */
.character-gallery {
  margin-top: 0rem;
  text-align: center;
}

.character-gallery h2 {
  font-size: 32px;
  margin-bottom: 2rem;
  color: var(--green);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
  margin-top: 3rem;
}

/* ---- Card container ---- */
.card {
  background: transparent;
  width: 250px;
  height: 340px;
  perspective: 1000px;
}

.card-inner {
  transition: transform 0.8s ease; /* flip speed */
}

.card:hover .card-inner {
  transform: rotateY(180deg);
  transition-duration: 0.7s; /* keep nice long flip */
}

.card:not(:hover) .card-inner {
  transition-duration: 0.3s; /* faster return */
}

.card-front, .card-back {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* pushes image up, text down */
  padding: 1.5rem;
}

.card-text {
  margin-bottom: 1rem;
  text-align: center;
}

.card-text h3 {
  font-size: 20px;
  margin-bottom: 0.4rem;
  color: var(--off-white);
}

.card-text p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--off-white);
}

.card-image {
  width: 150px;      /* adjust to your preference */
  height: 150px;
  object-fit: cover;
  border-radius: 50%; /* circular portrait look */
  margin-top: 0rem;
  margin-bottom: 1.5rem;
}

.wirt .card-image {
  object-position: center 20%; /* shifts the image downward */
}

.beatrice .card-front {
  object-position: center 20%; 
}

.woodsman .card-front {
  object-position: scale(0.2) center 20%;
}

.greg-back .card-back { transform: translateY(15px); }

.auntiewhispers .card-back { object-position: center 20%; }

.sara .card-image { object-position: center 30%; }

.character-gallery h2 {
  font-size: 32px;
  color: var(--green);
  margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* ⬅️ now 4 cards per row */
  gap: 2rem;
  justify-items: center;
}

/* --- Card container --- */
.card {
  width: 280px;
  height: 340px;
  perspective: 1000px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.card:hover .card-inner {
  transform: rotateY(180deg);
}

/* --- Card faces --- */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  color: var(--off-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  backface-visibility: hidden;
}

.card-front h3, .card-back h3 {
  font-size: 22px;
  margin-bottom: 0.5rem;
}

.card-front p, .card-back p {
  font-size: 15px;
  line-height: 1.5;
}

.card-front.wirt { background-color: #D5B57D; }
.card-front.greg { background-color: #D5B57D; }
.card-front.beatrice { background-color: #D5B57D; }
.card-front.woodsman { background-color: #D5B57D; }
.card-front.beast { background-color: #D5B57D; }
.card-front.sara { background-color: #D5B57D; }
.card-front.auntie { background-color: #D5B57D; }
.card-front.frog { background-color: #D5B57D; }

/* --- Back of card --- */
.card-back {
  background-color: #D5B57D;
  transform: rotateY(180deg);
}
/* --- Responsive layout --- */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- Episodes Section ---------------- */
.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin-top: 3rem;
  max-width: 1100px; /* slightly wider for cinematic look */
  margin-left: -12rem; /* pushes entire section closer to left */
}

.episode-card {
  display: flex;
  align-items: center;
  gap: 4rem;
  background-color: transparent;
}

.episode-image {
  width: 480px;  /* bigger image width */
  height: 320px; /* proportional height */
  border-radius: 20px;
  object-fit: cover;
  flex-shrink: 0;
}

.episode-image:hover {
  transform: scale(1.03);
  transition: transform 0.4s ease;
}

.episode-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.episode-info h3 {
  font-size: 23px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.8rem;
}

.episode-info p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--green);
  max-width: 600px;
}

.episode-meta {
  margin-top: 0.8rem; /* space below main text */
  font-size: 15px;
  color: rgba(213, 181, 125, 0.85);
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.meta-separator {
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 900px) {
  .episodes-list {
    margin-left: auto;
    margin-right: auto;
  }

  .episode-card {
    flex-direction: column;
    text-align: center;
  }

  .episode-image {
    width: 90%;
    height: auto;
  }

  .episode-info {
    text-align: center;
  }
}

.episode-meta {
  margin-top: 0.8rem;
  font-size: 14px;
  color: rgba(213, 181, 125, 0.85);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-item:nth-child(5) { /* targets the star rating part */
  color: #d5b57d;
  text-shadow: 0 0 6px rgba(213, 181, 125, 0.4);
  letter-spacing: 0.5px;
}

.meta-separator {
  opacity: 0.5;
}

/* ----------------- Awards Page ----------------- */
.awards-section {
  text-align: center;
  color: var(--green);
  margin-top: 4rem;
  margin: 0;          /* remove extra top & bottom margin */
  padding: 0; 
}

.awards-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.awards-subtitle {
  font-size: 20px;
  font-style: italic;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* Full-width 3-column layout */
.awards-fullwidth {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100vw;
  margin-left: calc(-1 * (50vw - 50%)); /* stretch full width */
  height: 100vh;
}

/* Each panel */
.award-panel {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.award-panel:nth-child(1)::before {
  background: #C48A36;
}

.award-panel:nth-child(2)::before {
  background: #BF6521;
}

.award-panel:nth-child(3)::before {
  background: #012509;
}

/* The actual image inside the column */
.award-bg-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4; /* adjust for translucency */
  z-index: 1;
}

/* Text on top */
.award-content {
  position: relative;
  z-index: 2;
  max-width: 400px;
  text-align: left;
}

.award-content h3 {
  font-size: 22px;
  color: var(--green);
  margin-bottom: 1.5rem;
  text-align: center;
}

.award-content p {
  font-size: 16px;
  color: var(--green);
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

main {
  margin-bottom: 5rem;  /* ensures main touches footer */
  padding-bottom: 0;
}

footer {
  margin-top: 0rem;     /* removes any gap above footer */
}

/* Responsive */
@media (max-width: 900px) {
  .awards-fullwidth {
    grid-template-columns: 1fr;
    height: auto;
  }

  .award-panel {
    height: 60vh;
  }

  .award-content {
    text-align: center;
    max-width: 90%;
  }
}
