/* ===============================
   QUEEN'S FILM SOCIETY — HEADER POLISH
   Safe to paste as-is. Tweak variables.
   =============================== */

:root{
  /* Brand tokens */
  --qfs-dark: #1F272B;         /* existing header bg */
  --qfs-gold: #E0C46F;         /* existing utility strip bg */
  --qfs-cream: #EFE2A1;        /* tagline */
  --qfs-white: #FFFFFF;
  --qfs-gold-deep:#C4A54E;     /* hover/darker gold */
  --qfs-maroon:#500000;        /* optional accent for active links */
  --qfs-shadow: 0 8px 20px rgba(0,0,0,.25);
  --qfs-radius: 999px;         /* pills */
  --qfs-gap: 12px;
  --qfs-menu-size: 17px;
}

/* 1) Utility bar — make links look like CTAs, right-aligned */
.qfs-utility-tabs{
  display: flex;
  justify-content: flex-end;
  gap: var(--qfs-gap);
  padding: 8px 16px;
  background: linear-gradient(0deg, var(--qfs-gold), var(--qfs-gold));
  border-bottom: 1px solid rgba(0,0,0,.08);
  position: relative;
  z-index: 20;
}
.qfs-utility-tabs a{
  color: var(--qfs-dark);
  background: var(--qfs-white);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--qfs-radius);
  padding: 6px 12px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}
.qfs-utility-tabs a:hover,
.qfs-utility-tabs a:focus{
  background: var(--qfs-cream);
  border-color: rgba(0,0,0,.2);
  transform: translateY(-1px);
  outline: none;
}

/* 2) Main header block — sticky with backdrop blur and shadow */
.zoneHeader2{
  position: sticky;
  top: 0;
  z-index: 1000;
}
.zoneHeader2 > .WaPlaceHolder{
  /* keep your dark base, add translucency for blur effect */
  background: rgba(31,39,43,.92) !important;
  backdrop-filter: saturate(130%) blur(6px);
  -webkit-backdrop-filter: saturate(130%) blur(6px);
  box-shadow: var(--qfs-shadow);
}

/* 3) Logo area — scale nicely and reduce excess padding */
#id_Br8mDIe .gadgetStyleBody{
  padding: 14px 10px 8px 10px !important;
}
#id_Br8mDIe img{
  height: auto;
  max-height: 88px;    /* keep header compact */
  width: auto;
  display: block;
}

/* 4) Tagline styling — cleaner type and spacing */
#id_C8YeKBE .gadgetStyleBody{
  padding-top: 14px !important;
}
#id_C8YeKBE p{
  margin: 0;
  font-size: 18px;
  letter-spacing: .3px;
  color: var(--qfs-cream);
}

/* 5) Login link — de-emphasize but keep discoverable */
#id_SAIIAhF .loginContainer .loginLink{
  color: #cfd6db;
  text-decoration: none;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background-color .12s ease, color .12s ease;
}
#id_SAIIAhF .loginContainer .loginLink:hover,
#id_SAIIAhF .loginContainer .loginLink:focus{
  background: rgba(255,255,255,.08);
  color: var(--qfs-white);
  outline: none;
}

/* 6) Horizontal menu — spacing, active state, underline animation */
#id_yOhi7Wr .menuInner{
  overflow: visible !important; /* allow underline animation to show */
  padding: 0 12px;
}
#id_yOhi7Wr ul.firstLevel{
  display: flex;
  gap: 4px;
  align-items: center;
}
#id_yOhi7Wr .firstLevel > li .item > a{
  display: inline-block;
  color: #E9EEF1;
  text-decoration: none;
  padding: 14px 14px;
  font-size: var(--qfs-menu-size);
  font-weight: 700;
  letter-spacing: .2px;
  position: relative;
  border-radius: 8px;
  line-height: 1;
  transition: background-color .12s ease, color .12s ease;
}
#id_yOhi7Wr .firstLevel > li .item > a::after{
  content:'';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;
  background: linear-gradient(90deg, var(--qfs-gold), var(--qfs-gold-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
  border-radius: 2px;
}
#id_yOhi7Wr .firstLevel > li .item > a:hover::after,
#id_yOhi7Wr .firstLevel > li.sel .item > a::after{
  transform: scaleX(1);
}
#id_yOhi7Wr .firstLevel > li.sel .item > a{
  color: var(--qfs-white);
  background: rgba(255,255,255,.04);
}

/* 7) Dropdown (phantom / overflow) styling */
#id_yOhi7Wr .firstLevel > li.phantom > .item > a{
  font-size: 22px; /* burger icon size */
  padding: 10px 12px;
}
#id_yOhi7Wr .firstLevel > li.phantom .secondLevel{
  background: var(--qfs-dark);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  box-shadow: var(--qfs-shadow);
  padding: 6px 0;
  margin-top: 8px;
}
#id_yOhi7Wr .secondLevel li .item > a{
  display: block;
  padding: 10px 14px;
  color: #E9EEF1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .12s ease;
}
#id_yOhi7Wr .secondLevel li .item > a:hover{
  background: rgba(255,255,255,.06);
}

/* 8) Tighten the header row table without breaking WA layout */
#id_TFZ8bNB .WaLayoutTable{
  width: 100%;
}
#id_TFZ8bNB .WaLayoutItem{
  vertical-align: middle;
}
#id_9Ip28fz{ width: 38% !important; } /* logo column */
#id_5y9lmpy{ width: 62% !important; } /* nav/utility column */

/* 9) Small screens — stack and keep actions tappable */
@media (max-width: 900px){
  .qfs-utility-tabs{
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
  }
  #id_Br8mDIe img{
    max-height: 70px;
    margin: 4px auto;
  }
  #id_C8YeKBE p{
    text-align: center;
    font-size: 16px;
    padding: 6px 8px;
  }
  #id_yOhi7Wr .firstLevel > li .item > a{
    padding: 12px 10px;
    font-size: 16px;
  }
}

/* 10) Motion sensitivity */
@media (prefers-reduced-motion: reduce){
  * { transition: none !important; }
  #id_yOhi7Wr .firstLevel > li .item > a::after{ transition: none !important; }
}


/* General Styles */

* {
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

.film-title {
    color: #521011;
    font-weight: bold;
    font-size: 1.5em;
    margin-top: 20px;
}

.titleH4 {
    background-color: transparent;
    font-family: 'Ubuntu', 'Arial', sans-serif;
    font-style: normal;
    text-decoration: none;
    margin: .56em 0;
    color: #424b50;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.167;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
}

.qfsbutton {
  background-color: #e0c46f; 
  border: 3px solid black;
  border-radius: 12px;
  color: black;
  padding: 15px 32px;
  text-align: center;
  vertical-align: middle;
  height: 150px;
  text-decoration: none;
  display: inline-block;
  font-size: 28px;
  margin: auto;
}

.cheat-sheet-gadget .gadgetTitleH4 {
  font-size: 1.5em !important;
  line-height: 1.5 !important;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  display: block;
}


/* Container holding all cards */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Flexible columns */
    gap: 20px;
    margin: 20px;
    background-color: #fceae8;
    padding: 20px;
    border-radius: 10px;  
    border: 1px solid #000000;
}

/* Individual card styling */
.card {
    background-color: #ffffff !important;
    border: 2px solid #000000;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 650px;
}

/* Container for the movie poster */
.poster-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.movie-poster {
    max-width: 100%;
    height: auto;
    max-height: 250px; /* Adjusted max height for better fit */
    border-radius: 10px;
    border: 1px solid #000000;
}

/* Container for title and date */
.title-date-container {
    text-align: center; /* Center title and date */
    margin-bottom: 10px; /* Space below the date */
}

.visionsoftexascontent h3 {
    font-family: 'Ultra', serif;
    font-weight: normal;
    color: #000000;
    font-size: 18px; /* Reduced font size */
    margin-bottom: 5px; /* Reduce space below title */
}

.visionsoftexascontent {
    background-color: #b3cefe;
    border-radius: 28px;
    border: 1px solid #000000;
}

.visionsoftexascontent h4 {
    font-family: 'Ultra', serif;
    font-weight: normal;
    color: #000000;
    font-size: 16px; /* Reduced font size */
}

/* Container for the description */
.description-container {
    flex: 1; /* Allow description to take up remaining space */
    font-size: 14px; /* Reduced font size */
    line-height: 1.4; /* Adjusted line height for better spacing */
    margin-bottom: 10px; /* Space below description */
}

/* Showtime buttons styling */
.showtimes {
    display: flex;
    justify-content: space-around; /* Adjusted to space buttons evenly */
    gap: 10px;
    margin-top: 10px;
}

.showtimes a {
    flex: 1;
    font-size: 14px; /* Reduced button text size */
    padding: 10px 15px; /* Adjusted padding for buttons */
}

.visionsoftexasbutton {
    background-color: #000000;
    border-radius: 28px;
    border: 1px solid #1b0505;
    display: inline-block;
    cursor: pointer;
    color: #FFFFFF !important;
    font-family: Arial, sans-serif;
    font-size: 14px;
    padding: 10px 20px;
    text-decoration: none;
    text-shadow: 0px 1px 0px #fceae8;
    height: 45px; /* Fixed height for consistency */
    line-height: 23px; /* Match line-height to image height for centering */
    vertical-align: middle;
}

.visionsoftexasbutton img {
    height: 23px; /* Set image height */
    vertical-align: middle; /* Align the image with the text */
    margin-left: 5px; /* Optional: Add some space between text and image */
}

.visionsoftexasbutton:hover {
    background-color: #fceae8; /* Lighter red for better contrast */
    color: #ffffff; /* Keep text white for readability */
    border-color: #921111; /* Adjusted border color for better visibility */
}

.visionsoftexasbutton:active {
	position: relative;
	top: 1px;
}

/* Responsive Design */

/* No need for complex media queries since grid adjusts automatically */

.flex-table {
  display: flex;
  flex-direction: column;
}

.flex-row {
  display: flex;
}

.flex-cell {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
}

.flex-cell:first-child {
  background-color: #f2f2f2;
}


.boxActionContainer input.typeButton.registerButton { 
    background-color: #ffc403 !important;
    color: #000 !important; /* Optional: makes text more readable on yellow */
}

.board-poster-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* left-aligns content */
  margin-bottom: 10px;
}

.board-name {
  font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: bold;
  color: #521011;
  margin-bottom: 3px;
}

.board-bio p {
  font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 1em;
}

.board-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px; /* Ensures no more than 3 full-width cards */
  margin: 0 auto;     /* Center the container horizontally */
  padding: 20px;
}

.board-photo {
  width: 160px;
  height: 225px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto 10px;
}

.board-title {
  font-style: italic;
  font-size: 1rem;
  text-align: center;
  color: #444;
  margin-bottom: 5px;
}

.board-profile:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

@media (max-width: 768px) {
  .board-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.qfs-tab-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1em auto;
  gap: 1em;
}

.qfs-utility-tabs {
  display: flex;
  justify-content: center;
  gap: 2em;
  background-color: #000;
  padding: 0.5em 0;
  font-family: 'Open Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid #ccc;
}

.qfs-utility-tabs a {
  color: #fff;
  text-decoration: none;
  padding-bottom: 0.25em;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease-in-out;
}

.qfs-utility-tabs a:hover {
  color: #fff79a;
  border-bottom: 3px solid #fff79a;
}

/* Use this class to mark the selected/active tab */
.qfs-utility-tabs a.active {
  background-color: #fff;
  color: #000;
  padding: 0.25em 0.5em;
  border-radius: 2px 2px 0 0;
  border-bottom: 3px solid #fff;
}

@keyframes simpleMarqueeFlash {
  0% {
    box-shadow:
      0 0 8px 4px yellow,
      10px 0 8px 4px red,
      -10px 0 8px 4px yellow,
      0 10px 8px 4px red,
      0 -10px 8px 4px yellow;
  }
  100% {
    box-shadow:
      0 0 8px 4px red,
      10px 0 8px 4px yellow,
      -10px 0 8px 4px red,
      0 10px 8px 4px yellow,
      0 -10px 8px 4px red;
  }
}

.simple-marquee {
  animation: simpleMarqueeFlash 1s infinite alternate;
  border: 4px solid black;
  border-radius: 10px;
}

/* ======= SEATING CHART STYLES ======= */
  #seating-chart .screen {
    background: #e0c46f;
    color: #000;
    padding: 0.75em 1em;
    border-radius: 0 0 30px 30px;
    margin: 0 auto 2em;
    width: 60%;
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-align: center;
  }

  #seating-chart .seating {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    justify-content: center;
    margin: auto;
    max-width: 750px;
  }

  #seating-chart .row {
    display: grid;
    grid-template-columns: 2em 48px repeat(8, 48px) 2em;
    align-items: center;
    gap: 0.5em;
  }

  #seating-chart .row-label {
    font-weight: bold;
    font-size: 0.9em;
    text-align: center;
    white-space: nowrap;
    width: auto;
    min-width: 2em;
  }

  #seating-chart .spacer {
    width: 48px;
    height: 48px;
  }

  #seating-chart .seat {
    display: inline-block;
    background: #fff;
    border: 2px solid #003366;
    color: #003366;
    font-weight: 600;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1;
    cursor: pointer;
    transition: background 0.3s;
    width: 48px;
    height: 48px;
  }

  #seating-chart .seat:hover {
    background-color: #e6f0ff;
  }

  #seating-chart .seat.unavailable {
    background-color: #ccc;
    color: #666;
    border-color: #999;
    pointer-events: none;
    cursor: not-allowed;
  }

  #seating-chart .seat.accessible::after {
    content: " \267F";
    font-size: 0.8em;
  }

  #seating-chart .seat.selected {
  background-color: #003366;
  color: #fff;
  border-color: #001a33;
}

#seating-chart .seat:focus {
  outline: 2px solid #ffcc00;
  outline-offset: 2px;
}

/* ----- Visions of Texas: responsive hero + CTAs ----- */
.vof-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  text-align: center;
}

.vof-logo {
  width: min(100%, 620px);
  height: auto;
}

.vof-cta {
  display: flex;
  flex-wrap: wrap;            /* allow buttons to wrap on phones */
  justify-content: center;
  gap: 12px;                  /* replaces &nbsp; */
  width: 100%;
  max-width: 980px;
}

/* Let buttons size naturally instead of fixed height */
.visionsoftexasbutton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;               /* remove fixed 45px */
  min-height: 44px;           /* accessible tap target */
  line-height: 1.2;
  padding: 10px 18px;         /* same visual feel */
  white-space: normal;        /* allow wrapping on long labels */
}

/* Improve hover contrast on the lighter bg */
.visionsoftexasbutton:hover {
  color: #000 !important;
}

/* Cards & small-screen tweaks */
@media (max-width: 480px) {
  .card-container {
    margin: 10px;
    padding: 12px;
    gap: 14px;
  }
  .card {
    min-height: unset;        /* avoid overly tall cards on phones */
    padding: 12px;
  }
  .visionsoftexascontent h3 { font-size: 16px; }
  .visionsoftexascontent h4 { font-size: 14px; }

  /* Stack showtime buttons when tight */
  .showtimes {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  /* Posters: ensure no overflow, handle double-image cards gracefully */
  .poster-container { gap: 8px; flex-wrap: wrap; }
  .poster-container img { max-width: 100%; height: auto; }
  .poster-container img + img {
    /* second image in a double-poster row stacks on XS screens */
    width: 100%;
  }
}

/* Slightly reduce grid min size so 320px devices + margins don’t overflow */
@media (max-width: 360px) {
  .card-container { 
    grid-template-columns: 1fr; 
  }
}

/* ===============================
   QFS — MENU BAR TUNE-UP
   Overrides for #id_yOhi7Wr
   =============================== */

/* Bar container */
#id_yOhi7Wr{
  position: relative;
  z-index: 1100;                 /* above content */
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(0,0,0,.35);
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
}

/* Inner spacing + horizontal scroll safety on smaller widths */
#id_yOhi7Wr .menuInner{
  padding: 0 12px;
  overflow-x: auto;              /* allow scroll instead of wrapping weirdly */
  overflow-y: visible;
  scrollbar-width: thin;         /* FF */
}
#id_yOhi7Wr .menuInner::-webkit-scrollbar{
  height: 8px;
}
#id_yOhi7Wr .menuInner::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.18);
  border-radius: 8px;
}

/* First level layout */
#id_yOhi7Wr ul.firstLevel{
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;           /* keep items on one line */
}

/* Items */
#id_yOhi7Wr .firstLevel > li .item > a{
  display: inline-block;
  padding: 12px 14px;            /* tighter than before so it doesn’t collide with content */
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .15px;         /* reduce the heavy tracking look */
  text-transform: uppercase;     /* keep the tab feel */
  color: #EDE7C8;                /* warm cream for contrast */
  text-decoration: none;
  border-radius: 8px;
  line-height: 1;
  position: relative;
  transition: background-color .12s ease, color .12s ease, transform .12s ease;
}

/* Hover/Focus underline + mild lift */
#id_yOhi7Wr .firstLevel > li .item > a::after{
  content:'';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg,#E0C46F,#C4A54E);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .16s ease;
  border-radius: 2px;
}
#id_yOhi7Wr .firstLevel > li .item > a:hover,
#id_yOhi7Wr .firstLevel > li .item > a:focus{
  color: #FFFFFF;
  background: rgba(255,255,255,.06);
}
#id_yOhi7Wr .firstLevel > li .item > a:hover::after,
#id_yOhi7Wr .firstLevel > li .item > a:focus::after{
  transform: scaleX(1);
}

/* Active/selected tab */
#id_yOhi7Wr .firstLevel > li.sel .item > a{
  color: #FFFFFF;
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 -2px 0 #E0C46F; /* subtle active line */
}
#id_yOhi7Wr .firstLevel > li.sel .item > a::after{
  transform: scaleX(1);
}

/* Burger/overflow ("phantom") button */
#id_yOhi7Wr .firstLevel > li.phantom > .item > a{
  font-size: 22px;
  padding: 8px 12px;
  color: #F4E7B0;
}

/* Dropdown panel styling */
#id_yOhi7Wr .firstLevel > li.phantom .secondLevel{
  background: #1F272B;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(0,0,0,.35);
  padding: 6px 0;
  margin-top: 8px;
}
#id_yOhi7Wr .secondLevel li .item > a{
  display:block;
  padding: 10px 14px;
  color:#EDE7C8;
  text-decoration:none;
  white-space:nowrap;
  transition: background-color .12s ease, color .12s ease;
}
#id_yOhi7Wr .secondLevel li .item > a:hover{
  background: rgba(255,255,255,.06);
  color:#FFFFFF;
}

/* Reduce top/bottom collision with content under the menu */
#id_yOhi7Wr + *{
  margin-top: 8px;               /* gentle spacer below menu bar */
}

/* Compact on narrow screens */
@media (max-width: 900px){
  #id_yOhi7Wr .firstLevel > li .item > a{
    padding: 11px 12px;
    font-size: 15px;
  }
}

/* Motion preference */
@media (prefers-reduced-motion: reduce){
  #id_yOhi7Wr *{ transition: none !important; }
}
