/* ===============================
   FONTS
=============================== */
@font-face {
  font-family: "optiamadeussolid";
  src: url("../fonts/optiamadeus-solid-webfont.woff") format("woff"),
    url("../fonts/optiamadeus-solid-webfont.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

/* ===============================
   GLOBAL STYLES
=============================== */
* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: #95acb5;
  font-family: sans-serif;
  overflow-x: hidden;
  overflow-y: scroll;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  width: 100%;
  padding: 0;
  margin: 0;
}

/* ===============================
   HEADER / MENU BAR
=============================== */
.header-section {
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

.header-section .header-container {
  width: 100%;
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.header-section .menu {
  display: flex;
  gap: 80px;
  flex-wrap: nowrap;
}

.header-section .menu a {
  color: #000000;
  text-decoration: none;
  font-size: clamp(1rem, 1.2vw, 3.125rem);
  font-weight: 500;
  transition: color 0.3s ease;
}

.header-section .menu a:hover {
  color: #95acb5;
}

/* ===============================
   VOLUME BUTTON
=============================== */
.header-section .volume-controls {
  display: flex;
  align-items: center;
}

.header-section .volume-btn {
  background: #fff;
  border: 2px solid #000000;
  color: #000000;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  width: clamp(45px, 6vw, 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.4rem, 2vw, 3.125rem);
  cursor: pointer;
  transition: all 0.3s ease;
}

.header-section .volume-btn:hover {
  background: #000000;
  color: #fff;
  transform: scale(1.1);
}

/* ===============================
   HEADER IMAGE
=============================== */
.header-section .image-container {
  width: 100%;
  aspect-ratio: 2 / 1;
  background-image: url(../photos/lorelaiandrory.jpeg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  position: relative;
}

.logo {
  margin: 0;
  text-indent: -9999px;
  width: 50%;
  aspect-ratio: 800 / 390;
  position: absolute;
  left: 50%;
  bottom: -50%;
  transform: translate(-50%, -50%);
  background-image: url(../photos/gilmoregirlslogo.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  z-index: 5;
}

 /* ===============================
    ABOUT SECTION
=============================== */
.about-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.about-section .about-image {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: cover;
  display: block;
  margin-top: 400px;
  border-radius: 0;
  transition: margin-top 0.3s ease;
  z-index: 1;
}

/* ===============================
   CHARACTER GALLERY
=============================== */
.characters-section {
  width: 100%;
  height: fit-content;
  display: flex;
  flex-flow: column wrap;
  gap: 40px;
  overflow-x: auto;
  padding-block: 10em 8em;
  padding-inline: 4em; /* equals 64px */
    background-color: #95acb5;
}

.section-title {
  width: 100%;
}
/* start */
.characters-scroll {
  width: 100%; /* Full width of the site */
  display: flex; /* Enable flexbox */
  gap: 30px; /* Space between cards */
  overflow-x: auto; /* Enable horizontal scrolling */
  scroll-behavior: smooth;
  padding: 2em 1em;
}

.characters-scroll::-webkit-scrollbar {
  height: 8px;
}

.characters-scroll::-webkit-scrollbar-thumb {
  background-color: #95acb5;
  border-radius: 4px;
}

.character-card {
  position: relative;
  flex: 0 0 calc(25% - 22.5px); /* Show 4 cards, accounting for gap, Or use: flex: 0 0 calc(33.333% - 20px); for 3 cards */
  cursor: pointer;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.character-card img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.character-card:hover {
  transform: scale(1.05);
}

.character-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 15px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.character-card:hover .character-info {
  opacity: 1;
  transform: translateY(0);
}

.character-info h3 {
  margin: 0 0 5px 0;
  font-size: 1.5rem; /* Adjusted from 3.125rem for better sizing */
}

.character-info p {
  font-size: 0.9rem; /* Adjusted from 2rem for better sizing */
  line-height: 1.2;
}
/** end ai generated */
.character-card:hover {
  transform: scale(1.05);
}

.character-card:hover .character-info {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   TV VIDEO SECTION
=============================== */
.video-container {
  background-color: #95acb5;
  width: 100%;
  height: fit-content;
  position: relative;
}

.banner {
  width: 60%;
  aspect-ratio: 1000 / 171;
  max-width: 90%;
  position: relative;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  margin-top: 60px;  /* Add this line */
  margin-bottom: 20px;
}

.tv-container {
  position: relative;
  width: 70%;
  max-width: 1000px;
  aspect-ratio: 4 / 3;
  margin: auto;
}

.tv-screen {
  position: absolute;
  top: 8%;
  left: 10%;
  width: 75%;
  height: 80%;
  background: #000;
}

.tv-frame {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  pointer-events: none;
  width: 100%;
  height: 100%;
  background-image: url("../photos/tv.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.carousel-contain {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.video-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  color: white;
  font-size: 24px;
  text-align: center;
  padding: 20px;
}

.video-slide video {
  width: 120%;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(45deg, #1a1a1a, #2d2d2d);
}

.tv-controls {
  position: absolute;
  width: 160%;
  height: fit-content;
  bottom: 42%;
  left: -27.1%;
  display: flex;
  z-index: 20;
  pointer-events: none;
  justify-content: space-between;
  align-items: center;
}

.control-btn {
  width: 5vw;
  height: 5vw;
  border-radius: 50%;
  background-color: #133d61;
  border: none;
  color: #fff;
  font-size: 3vw;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.control-btn:hover {
  background: #c96304;
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.4);
}

.control-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.video-quote {
  font-family: sans-serif;
  color: white;
  text-align: center;
  font-size: 4vw;  /* Fixed: removed the $ */
  padding-bottom: 40px;  /* Adds space below the quote */
}

/* ===============================
   MAP SECTION
=============================== */
.map-container {
  font-family: "Georgia", serif;
  background-color: #95acb5; 
  margin: 0;
  width: 100%;
  display: flex;
  flex-flow: column wrap;
}

.page-header {
  text-align: center;
  margin-top: -20px;
}

.page-header h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  font-weight: normal;
  letter-spacing: 2px;
}

.map-container .container {
  display: flex;
  align-items: stretch;
  gap: 40px;
  width: 100%;
  padding: 3em;
  margin: 0 auto;
  
}

.map-section {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background: white;
  overflow: hidden;
  padding:2rem;
  border: 8px solid #2c3e50
 /*put border here;*/
}

.map-header {
  background-color: white;
  padding: 12px 30px;
  border-radius: 25px;
  margin-bottom: 20px;
  border: 3px solid #2c3e50;
  font-size: 1.2rem;
  font-weight: bold;
  color: #2c3e50;
  text-align: center;
}

.map-placeholder {
  width: 100%;
  height: fit-content;
  border: none;
  /* border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); */
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.map-placeholder img {
  display: block;
}
/* ===============================
   CAROUSEL SECTION
=============================== */
.carousel-section {
  display: flex;
  flex: 2 2 0;
  flex-direction: column;
}

.carousel-container {
  background-color: white;
  border: 8px solid #2c3e50;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 100%;
  display: flex;
  flex-direction: column;
}

.carousel-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}

.carousel-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  padding: 40px;
  overflow-y: auto;
  max-height: 600px;
  min-height: 600px;
}

.carousel-slide.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  gap: 20px; /* Space between title, images, and description */
}

.slide-title {
  font-size: 2rem;
  color: #2c3e50;
  margin: 0 0 10px 0;
  font-weight: normal;
  letter-spacing: 1px;
  text-align: center;
  flex-shrink: 0; /* Prevent title from shrinking */
}

.slide-images {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0; /* Prevent images from being squished */
  max-height: 300px; /* Limit image container height */
  max-width: 100%;
}

.slide-image {
  flex: 1 1 0;
  height: 100%;
  max-height: 300px; /* Match container max-height */
  width: calc(50%);
  object-fit: cover; /* Changed from cover to contain to show full image */
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.slide-description {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  text-align: center;
  margin: 0;
  flex-shrink: 0; /* Prevent description from being cut off */
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 25px 40px;
  background-color: #f9f9f9;
  border-top: 2px solid #e0e0e0;
  flex-shrink: 0;
}

.nav-button {
  background-color: #2c3e50;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: bold;
}

.nav-button:hover {
  background-color: #1a252f;
}

.carousel-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  border: 2px solid #2c3e50;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #2c3e50;
}
/* ===============================
   FOOTER
=============================== */
footer {
  background-color: #2c3e50;
  color: white;
  padding: 60px 40px 30px;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.cta-section {
  margin-bottom: 40px;
  font-family: "optiamadeussolid";
}

.cta-section h2 {
  font-size: 46px;
  font-weight: 300;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.cta-section p {
  font-size: 16px;
  margin-bottom: 25px;
  font-family: sans-serif;
  opacity: 0.95;
}

.netflix-button {
  display: inline-block;
  background: #95acb5;
  color: white;
  text-decoration: none;
  padding: 16px 42px;
  font-size: 30px;
  font-weight: bold;
  border-radius: 4px;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.netflix-button:hover {
  background: #828282;
  transform: translateY(-2px);
}

.divider {
  width: 100px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  margin: 40px auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  font-family: sans-serif;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.social-links a {
  color: white;
  font-size: 28px;
  opacity: 0.8;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.copyright {
  font-size: 14px;
  opacity: 0.7;
  margin-top: 20px;
  font-family: sans-serif;
}

.coffee-quote {
  font-style: italic;
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 30px;
  font-family: sans-serif;
}

/* ===============================
   MEDIA QUERIES
=============================== */
@media (max-width: 1024px) {
  .characters-section {
    padding: 4em 2em;
  }
  .character-card {
    flex: 0 0 calc(33.333% - 20px);
  }

  .map-container .container {
    display: flex;
    flex-flow: column wrap;
    gap: 40px;
    width: 100%;
    padding: 2rem;
    margin: 0 auto;
  }

  .map-section {
    width: 100%;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
  }

  .map-header {
    background-color: white;
    padding: 12px 30px;
    border-radius: 25px;
    margin-bottom: 20px;
    border: 3px solid #2c3e50;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
  }

  .map-placeholder {
    width: 100%;
    height: auto;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .carousel-section {
    flex: none;
  }

  .carousel-slide {
    padding: 30px;
    max-height: 600px;
    min-height: 600px;
  }

  .slide-title {
    font-size: 1.5rem;
  }

  .slide-image {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .character-card {
    flex: 0 0 calc(50% - 20px);
    padding: 1rem;
  }

  .cta-section h2 {
    font-size: 28px;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
}
