@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Poppins:wght@300;400;500;700&family=Questrial&display=swap');
@import url(fa-all.min.css);
@import url(animate-v0.0.1.css);

:root {
  --s1: 1rem;
  --primary-bg: #212121;
  --text-color: #fff8e7;
  --barn: #592b2b;
  --barn-800: #3c1f1f;
  --barn-900: #2b1515;
  --barn-950: #1f0f0f;
  --accent: #ecd9b8;
  --button-bg: #fff1d6;
  --button-text: #4a1c1c;
  --berry: #a82530;
  --stitch: rgba(236, 217, 184, 0.35);
  --nav-h: 4.75rem;
}

html {
  min-height: 100vh;
}

/* Global font smoothing to reduce graininess on script fonts */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--barn);
  margin: 0;
  padding: 0;
  overflow-y: auto;
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

/* A fixed layer stays steady on iOS and on long pages, where background-attachment: fixed does not. */
body:not(.animated-portal-bg)::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url(/images/background-26-d.webp) center / cover no-repeat;
}

.apply {
  margin: 0;
  padding: 0;
  overflow-y: auto;
}

h1, h2, h3, h4, p {
  color: var(--text-color);
  margin: 0;
}

h1 {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2.25rem, 1.75rem + 2.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.3;
}

h2 {
  font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
  font-family: 'Questrial', sans-serif;
  font-weight: 400;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.6rem, 1.4rem + 1vw, 2.25rem);
  font-family: 'Questrial', sans-serif;
  font-weight: 400;
  line-height: 1.25;
}

h4 {
  font-size: clamp(1.35rem, 1.25rem + 0.5vw, 1.75rem);
  font-family: 'Questrial', sans-serif;
  font-weight: 400;
  line-height: 1.3;
}

p {
  font-size: 1.125rem;
  font-weight: 400;
  font-family: 'Poppins', sans-serif;
}

a {
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  display: block;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  padding: 1em;
  text-decoration: none;
  color: var(--text-color);
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

hr {
  border: 0.5px solid var(--text-color);
  width: 85%;
  margin: 1em auto;
}

.logo {
  width: 80px;
  padding: 0.3em;
  cursor: pointer;
}

.body-content {
  margin-top: 1rem;
}

.main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 2.5rem;
  box-sizing: border-box;
}

.main-account {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 1rem) 1rem 2rem;
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 1rem) 1rem 2rem;
  box-sizing: border-box;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.section {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 1rem;
  box-sizing: border-box;
}

.section-header {
  max-width: 42rem;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.section-header h2 {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
  line-height: 1.35;
}

.section-header p {
  margin-top: 0.5rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.steps > li {
  list-style: none;
  font-size: 1rem;
}

.steps h3 {
  font-size: 1.4rem;
  margin: 0.75rem 0 0.4rem;
}

.steps p {
  font-size: 1.0625rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px dashed var(--accent);
  border-radius: 50%;
  font-weight: 600;
  color: var(--accent);
}

.criteria-list {
  padding: 0.75rem clamp(1.5rem, 4vw, 2.5rem);
}

.criteria-item + .criteria-item {
  border-top: 1px dashed var(--stitch);
}

.criteria-item summary {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 3rem;
  padding: 0.85rem 0;
  cursor: pointer;
  list-style: none;
}

.criteria-item summary::-webkit-details-marker {
  display: none;
}

.criteria-item summary::after {
  content: '+';
  margin-left: auto;
  padding-left: 0.5rem;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--accent);
}

.criteria-item[open] summary::after {
  content: '\2212';
}

.criteria-item summary svg {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
}

.criteria-item summary h3 {
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
}

.criteria-item summary:hover h3 {
  color: var(--accent);
}

.criteria-body {
  padding: 0 0 1.5rem;
  max-width: 44rem;
}

.criteria-body p, .criteria-body li {
  font-size: 1.0625rem;
}

.criteria-body p + p, .criteria-body p + ul, .criteria-body ul + p {
  margin-top: 0.75rem;
}

.criteria-body ul {
  margin: 0;
  padding-left: 1.4em;
}

.criteria-body li {
  list-style: disc;
  padding: 0.2em 0;
}

.criteria-body li::marker {
  color: var(--accent);
}

.criteria-body a {
  display: inline;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.apply-panel [hidden] {
  display: none;
}

.apply-start {
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
}

.apply-start p + p {
  margin-top: 0.75rem;
}

.apply-start a {
  display: inline;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.apply-start .button {
  margin-top: 1.5rem;
}

.apply-message {
  font-family: 'Pacifico', cursive;
  font-size: 1.75rem;
}

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

#applyForm:focus {
  outline: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) minmax(0, 2fr);
  gap: 1rem;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 1rem;
}

.contact-info h3 {
  font-size: 1.4rem;
}

.contact-info.prose > * + * {
  margin-top: 0;
}

.contact-form {
  min-height: 24rem;
}

@media screen and (max-width: 800px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.page {
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.page--wide {
  max-width: 64rem;
}

.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.75rem;
}

.page-logo {
  width: 7.5rem;
  height: auto;
  margin-bottom: 0.5rem;
}

.eyebrow {
  font-family: 'Questrial', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.divider {
  display: block;
  width: 11rem;
  max-width: 70%;
  height: auto;
  margin: 0.75rem auto 0;
}

.panel {
  background: rgba(43, 21, 21, 0.92);
  border: 1px solid rgba(236, 217, 184, 0.2);
  border-radius: 16px;
  outline: 1px dashed var(--stitch);
  outline-offset: -9px;
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.prose {
  text-align: left;
  overflow-wrap: anywhere;
}

.prose.panel {
  max-width: 50rem;
  margin: 1rem auto 0;
}

.prose > * + * {
  margin-top: 1em;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 1.75em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 1.4em;
  margin-bottom: 0;
}

.prose li {
  list-style: disc;
  font-size: 1.0625rem;
  padding: 0.2em 0;
}

.prose li::marker {
  color: var(--accent);
}

.prose a:not(.button) {
  display: inline;
  padding: 0;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.menu, .menu-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  background: rgba(31, 15, 15, 0.95);
  border-bottom: 1px dashed var(--stitch);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 90;
  box-sizing: border-box;
}

.menu {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: 0 1.5rem;
}

.menu > :first-child {
  justify-self: end;
}

.menu > :last-child {
  justify-self: start;
}

.menu h1, .menu h3, .menu h4 {
  margin: 0;
}

.menu-mobile {
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.25rem;
}

.menu-brand-name {
  font-family: 'Pacifico', cursive;
  font-size: 1.65rem;
  line-height: 1.2;
  color: var(--text-color);
  white-space: nowrap;
}

a.menu-brand, a.menu-mobile-brand {
  padding: 0;
  min-width: 0;
}

a.menu-brand:hover .menu-brand-name,
a.menu-mobile-brand:hover .menu-brand-name {
  color: var(--accent);
}

.menu-toggle-btn, .mm-close-btn {
  flex: none;
  background: rgba(255, 248, 231, 0.06);
  border: 1px solid rgba(236, 217, 184, 0.35);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-color);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.menu-toggle-btn:hover, .menu-toggle-btn:active,
.mm-close-btn:hover, .mm-close-btn:active {
  background: rgba(236, 217, 184, 0.15);
  color: var(--accent);
}

.menu nav {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu ul {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  display: inline;
  font-size: 1rem;
  padding: 0;
}

.menu nav a {
  display: inline-block;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  white-space: nowrap;
}

.menu nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0.2rem;
  left: 50%;
  background-color: var(--accent);
  transition: width 0.2s ease;
  transform: translateX(-50%);
}

.menu nav a:hover::after,
.menu nav a[aria-current]::after {
  width: 60%;
}

.menu nav a[aria-current] {
  color: var(--accent);
}

.menu nav a.menu-cta-inline {
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  margin-left: 0.25rem;
}

.menu nav a.menu-cta-inline::after {
  display: none;
}

.menu nav a.menu-cta-inline:hover {
  background: var(--berry);
  color: var(--text-color);
}

.slide-out {
  top: 5em;
  right: 0;
  position: fixed;
  z-index: 1;
  width: 30em;
  height: 90vh;
  overflow-y: scroll;
  background-color: var(--primary-bg);
  padding: 1rem;
}

#opening {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  align-content: center;
  text-align: center;
  min-height: 100vh;
}

#welcome {
  width: 30em;
}

#hello {
  margin-bottom: 0.5em;
}

#welcome h4 {
  font-size: 1.3em;
}

#welcome h3, #welcome h4 {
  margin: 0.5em 0;
}

#checkin {
  width: 30em;
}

#start {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-content: center;
  text-align: center;
}

.center-content {
  margin: 0em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-content: center;
  text-align: center;
}

.welcome-container {
  width: 90%;
  max-width: 50rem;
  margin: 0 auto;
  flex-shrink: 0;
  line-height: 0;
}

.welcome-image {
  width: 100%;
  height: auto;
  display: block;
}

.season-text {
  margin-top: 0.75rem;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  text-align: center;
}

.season-subtext {
  margin-top: 0.25rem;
  font-size: 1rem;
  text-align: center;
  opacity: 0.85;
}

.with-sidebar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin: 3em 6em;
}

.with-sidebar > :first-child {
  flex-basis: 25em;
  flex-grow: 1;
}

.with-sidebar > :last-child {
  flex-basis: 0;
  flex-grow: 999;
  min-inline-size: 50%;
}

.small-sidebar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin: 3em 6em;
}

.small-sidebar > :first-child {
  flex-basis: 18rem;
  flex-grow: 1;
}

.small-sidebar > :last-child {
  flex-basis: 0;
  flex-grow: 999;
  min-inline-size: 62%;
}

.side-by-side {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin: 3em 6em;
}

.side-by-side > :first-child {
  flex-grow: 1;
}

.side-by-side > :last-child {
  flex-basis: 0;
  flex-grow: 999;
  min-inline-size: 50%;
}

li {
  list-style: none;
  color: var(--text-color);
  font-size: 1.125rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  padding: 0.35em;
}

.paragraph h4 {
  margin-top: 0;
}

.paragraph li {
  list-style: circle;
  font-size: 1.0625rem;
  padding: 0.25em;
}

#forms {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  align-content: center;
  text-align: center;
  margin: 4em 0 8em;
  min-height: 100vh;
}

#index-menu h2 {
  line-height: 0.6em;
  font-weight: 100;
}

#index-menu h3 {
  font-size: 1.3em;
  font-weight: 100;
}

#user-data {
  display: flex;
  cursor: default;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-content: center;
  text-align: center;
  height: 100vh;
}

#user-data h1 {
  font-size: 3.5em;
  line-height: 0.2em;
}

#user-data a {
  font-size: 1.5em;
  line-height: 0.5em;
}

#ITwo {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}

#info {
  width: 25em;
  display: block;
}

#info h2 {
  font-size: 2.2em;
}

#info a {
  font-size: 1.18em;
  font-weight: 500;
  padding: 0.7em;
  font-family: 'Poppins', sans-serif;
}

#info a:hover {
  background-color: #00313d;
  color: var(--text-color);
  border-radius: 2px;
}

#info-mobile h2 {
  font-size: 2.2em;
}

#info-mobile a {
  font-size: 1.18em;
  font-weight: 500;
  padding: 0.7em;
  font-family: 'Poppins', sans-serif;
}

#info-mobile a:hover {
  background-color: #00313d;
  color: var(--text-color);
  border-radius: 2px;
}

#small-menu {
  display: none;
}

#dates {
  width: 25em;
  display: block;
}

#dates h2 {
  font-size: 2.2em;
}

#dates ul {
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
  text-align: left;
}

#dates li {
  font-size: 1.05em;
  font-weight: 700;
  padding: 0.4em;
  margin-bottom: 1em;
}

#dates-mobile h2 {
  font-size: 2.2em;
}

#dates-mobile ul {
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
  text-align: left;
}

#dates-mobile li {
  font-size: 1.05em;
  font-weight: 700;
  padding: 0.4em;
  margin-bottom: 1em;
}

#thecolumn {
  text-align: left;
  text-indent: 3em;
  padding-bottom: 5%;
}

input[type=text],
input[type=email],
input[type=tel],
input[type=password],
input[type=date],
input[type=number],
select,
textarea {
  width: 100%;
  max-width: 400px;
  padding: 14px 20px;
  margin: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-sizing: border-box;
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: #ecd9b8;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(236, 217, 184, 0.2);
  transform: translateY(-1px);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

label {
  font-size: 1em;
  font-family: 'Poppins', sans-serif;
}

.nav {
  padding-top: 0.35em;
}

.nav a {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
}

.indexnav {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.indexnav li {
  display: inline;
}

.indexnav a {
  display: inline-block;
  padding: 10px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 24px;
  border: none;
  font-family: 'Poppins', sans-serif;
}

.indexnav a:hover {
  color: #00313d;
}

.account-menu {
  border: 0.7px solid var(--text-color);
  background-image: url(/images/white.png);
  background-position: center;
  background-size: cover;
  backdrop-filter: blur(25px);
  border-radius: 5px;
  margin: 0.75em auto;
  max-width: fit-content;
}

.account-menu nav {
  list-style: none;
}

.account-menu li {
  display: inline;
}

.account-menu a {
  display: inline-block;
  padding: 0.5em;
  font-size: 1.35rem;
  color: #1F4C3F;
  font-family: 'Poppins', sans-serif;
}

.account-menu a:hover {
  color: #FEE38C;
}

.video-wrapper {
  position: relative;
}

.video-wrapper > video {
  width: 100%;
  vertical-align: middle;
  z-index: auto;
}

.video-wrapper > video.has-media-controls-hidden::-webkit-media-controls {
  display: none;
}

.video-overlay-play-button {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 10px calc(50% - 50px);
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  opacity: 0.95;
  cursor: pointer;
  background-image: linear-gradient(transparent, #000);
  transition: opacity 150ms;
}

.video-overlay-play-button:hover {
  opacity: 1;
}

.video-overlay-play-button.is-hidden {
  display: none;
}

.close {
  position: fixed;
  top: 10px;
  right: 28px;
  z-index: 5;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform, fill;
}

.close:hover {
  fill: #b92a2a;
  transform: scale(1.1) rotate(90deg);
}

.back {
  position: fixed;
  top: 10px;
  left: 28px;
  z-index: 5;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform, fill;
}

.back:hover {
  fill: #2a84b9;
  transform: scale(1.1) translateX(-3px);
}

footer {
  align-self: flex-end;
  justify-content: center;
  color: var(--text-color);
  text-align: center;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  background: rgba(31, 15, 15, 0.95);
  border-top: 1px dashed var(--stitch);
  padding: 2rem 1rem;
  width: 100%;
  box-sizing: border-box;
}

.footer-sponsors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 4rem;
}

.footer-sponsor {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo-festival {
  width: 190px;
  height: auto;
}

.footer-logo-tca {
  width: 110px;
  height: auto;
}

footer .copyright {
  margin: 0;
  padding: 0;
  list-style: none;
}

footer li {
  display: inline-block;
  padding: 0;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

footer li a {
  padding: 0.75rem 0.5rem;
  opacity: 0.85;
}

footer li a:hover {
  opacity: 1;
}

footer img {
  opacity: 0.95;
}

.button, .button-legal {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 3rem;
  font-size: 1.0625rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  padding: 0.6em 1.75em;
  background: rgba(255, 248, 231, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(236, 217, 184, 0.5);
  color: var(--text-color);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.button:hover, .button-legal:hover {
  background: var(--text-color);
  border-color: var(--text-color);
  color: var(--barn);
  transform: translateY(-2px);
}

.button:active, .button-legal:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--button-bg);
  border-color: var(--button-bg);
  color: var(--button-text);
  font-weight: 700;
}

.button-primary:hover {
  background: var(--berry);
  border-color: var(--berry);
  color: var(--text-color);
}

.button-legal {
  margin: 0.5em;
}

svg {
  fill: var(--text-color);
}

body.is-legal {
  background: #c3d8c7 center / cover;
  overflow: auto;
}

.is-legal {
  color: #000000;
  fill: #000000;
}

#loading {
  stroke: #000000;
}

#mobile-toggle {
  display: none;
}

.list-link {
  padding-top: 1rem;
}

.list-link a {
  font-size: 1.5rem;
  padding: 0.5rem;
  font-family: 'Poppins', sans-serif;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2em 0;
  background: rgba(33, 33, 33, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

th, td {
  padding: 1.2rem 1.5rem;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 1rem;
}

th {
  background: rgba(0, 0, 0, 0.2);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

/* Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.waivers table {
  max-width: 100%;
  width: 100%;
}

.waivers td, .waivers th {
  padding-left: 1.8rem;
  padding-right: 1.8rem;
  font-size: 1em;
}

/* Modal Overlay */
.modal-overlay {
  visibility: hidden; /* Hidden by default */
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(33, 33, 33, 0.75); /* Dark semi-transparent overlay */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0s linear 0.4s;
  will-change: opacity;
}

/* Modal active state */
.modal-overlay.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0s linear 0s;
}

/* Modal Box */
.modal-box {
  background-color: rgba(33, 33, 33, 0.65); /* Made more transparent for glassmorphism */
  background-position: center;
  background-size: cover;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15); /* More subtle border */
  border-radius: 12px; /* Slightly rounder */
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5em 2em;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); /* Springy effect */
  will-change: transform;
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

/* Modal Close Button */
.modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 2.2em;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform, background-color, color;
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #b92a2a;
  transform: scale(1.1) rotate(90deg);
}

/* Modal Title */
.modal-title {
  font-family: 'Questrial', sans-serif;
  font-size: 2.4em;
  margin: 0 0 0.8em 0;
  text-align: center;
}

/* Modal Content */
.modal-content p {
  font-size: 1.3em;
  line-height: 1.6;
  margin: 1em 0;
}

/* Optional: Responsive adjustment */
@media screen and (max-width: 480px) {
  .modal-box {
    width: 95%;
    padding: 2em 1.5em;
  }
  
  .modal-title {
    font-size: 2.1em;
  }
}

.info-modal-overlay {
  visibility: hidden;
  display: flex;
  position: fixed;
  inset: 0;
  padding: 1rem;
  box-sizing: border-box;
  background-color: rgba(20, 10, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.info-modal-overlay.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.25s ease, visibility 0s linear 0s;
}

/* The box never scrolls, so the title and close button stay put while the body scrolls. */
.info-modal-box {
  display: flex;
  flex-direction: column;
  background-color: var(--barn-900);
  border: 1px solid rgba(236, 217, 184, 0.25);
  border-radius: 16px;
  width: 100%;
  max-width: 52rem;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.info-modal-overlay.active .info-modal-box {
  transform: translateY(0);
}

.info-modal-header {
  flex: none;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px dashed var(--stitch);
}

.info-modal-title {
  grid-column: 2;
  font-family: 'Pacifico', cursive;
  font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2rem);
  line-height: 1.3;
  text-align: center;
}

.info-modal-close {
  grid-column: 3;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.info-modal-close:hover {
  background-color: rgba(236, 217, 184, 0.15);
  color: var(--accent);
}

.info-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
}

.info-modal-box [hidden] {
  display: none;
}

.info-modal-footer {
  flex: none;
  display: flex;
  justify-content: center;
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  border-top: 1px dashed var(--stitch);
  background: transparent;
  text-transform: none;
}

.info-modal-body::-webkit-scrollbar {
  width: 10px;
}

.info-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 248, 231, 0.05);
}

.info-modal-body::-webkit-scrollbar-thumb {
  background: rgba(236, 217, 184, 0.35);
  border-radius: 5px;
}

.modal-intro {
  text-align: center;
}

.info-modal-body .divider {
  margin-bottom: 1.5rem;
}

@media screen and (max-width: 680px) {
  .info-modal-overlay {
    padding: 0;
  }

  .info-modal-box {
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }
}

@media screen and (max-width: 950px) {
  #info, #dates {
    display: none;
  }
  #welcome, #info-mobile, #dates-mobile {
    width: max-content;
  }
  #small-menu {
    display: block;
  }
  #t-hide {
    display: none;
  }
  body:not(.animated-portal-bg)::before {
    background-image: url(/images/background-26-m.webp);
  }
  .menu {
    display: none;
  }
  .menu-mobile {
    display: flex;
  }
  .menu-brand-name {
    font-size: clamp(1.1rem, 5.2vw, 1.5rem);
  }
  .slide-out {
    top: 4.6em;
    width: 100%;
  }
  .with-sidebar, .small-sidebar, .side-by-side {
    margin: 1em 1.8em;
  }
  .body-content {
    margin: 1rem 0.5em 0 0.5em;
  }
  .waivers td, .waivers th {
    font-size: 0.7em;
    padding-left: 6px;
    padding-right: 6px;
  }
}

@media screen and (max-width: 700px) {
  :root {
    --nav-h: 4.25rem;
  }
}

.mm {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  background-color: var(--barn-950);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-sizing: border-box;
}

.mm-header {
  flex: none;
  height: var(--nav-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.25rem;
  border-bottom: 1px dashed var(--stitch);
  box-sizing: border-box;
}

.mm-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem calc(2rem + env(safe-area-inset-bottom));
  max-width: 28rem;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.mm-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 1rem;
}

.mm-nav-item {
  display: block;
  padding: 1.1rem 0.5rem;
  text-align: center;
  font-family: 'Questrial', sans-serif;
  font-size: 1.6rem;
  border-bottom: 1px dashed rgba(236, 217, 184, 0.22);
}

.mm-nav-item[aria-current] {
  color: var(--accent);
}

.mm-footer {
  width: 100%;
  margin-top: auto;
  padding-top: 2rem;
}

.mm-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem;
  background: var(--button-bg);
  color: var(--button-text);
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  box-sizing: border-box;
}

.mm-cta-btn:hover, .mm-cta-btn:active {
  background: var(--berry);
  color: var(--text-color);
}

/* The portal, confirmation and Showcase menus still use this simpler markup. */
.mm > h2, .mm > a, .mm > svg {
  align-self: center;
  text-align: center;
}

.mm.scale-in-ver-top {
  padding-top: 4.5rem;
}

.mm > h2 {
  font-size: 2rem;
}

.mm > a {
  font-size: 1.4rem;
}

.mm-close {
  position: fixed;
  top: 20px;
  right: 28px;
  z-index: 105;
}

@media screen and (max-width: 480px) {
  p {
    font-size: 1.0625rem;
  }
  .nav a {
    display: block;
  }
  .with-sidebar {
    margin: 0.6em;
  }
  #m-hide {
    display: none;
  }
  #mobile-toggle {
    display: flex;
  }
  .indexnav li {
    display: block;
  }
  .indexnav a {
    display: block;
    padding: 16px;
    border-bottom: none;
  }
  footer li {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Cognito Forms Custom Theming based on Advanced CSS Guide */
:root .cog-cognito {
  --font-family: 'Poppins', sans-serif;
  --border-radius: 8px;
  
  --input__background-color: rgba(255, 255, 255, 0.05);
  --input__border-color: rgba(255, 255, 255, 0.2);
  --input__border-width: 1px;
  --input__color: #ffffff;
  --input__padding-h: 20px;
  --input__padding-v: 14px;
  
  --highlight: #ecd9b8;
  --highlight-reverse: #000000;
  --negative: #ff6b6b;
  --negative-reverse: #ffffff;
  
  --button__background-color: transparent;
  --button__border-color: rgba(255, 255, 255, 0.3);
  --button__color: #ffffff;
  --button__border-radius: 8px;

  --label__color: #ffffff;
  --text-color: #ffffff;
}

/* Specific overrides using BEM selectors from the guide */
.cog-cognito .cog-label {
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
}

.cog-cognito .el-input__inner,
.cog-cognito .el-textarea__inner,
.cog-cognito .el-radio__inner,
.cog-cognito .el-checkbox__inner {
  font-family: 'Poppins', sans-serif !important;
  color: #ffffff !important;
}

.cog-cognito .cog-button--primary {
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.0)) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  border-radius: 8px !important;
  padding: 0.8em 2.5em !important;
}

.cog-cognito .cog-button--primary:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), #ffffff) !important;
  border: 1px solid #ffffff !important;
  color: #2b1515 !important;
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25) !important;
}

.cog-cognito .cog-header h1,
.cog-cognito .cog-section__heading {
  color: #ffffff !important;
  font-family: 'Questrial', sans-serif !important;
}

.cog-cognito .cog-error-message {
  color: #ff6b6b !important;
}
