/* Modal details flexbox layout */
.modal-details-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  margin-top: 0.5rem;
  box-sizing: border-box;
}

.modal-detail {
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  padding: 1rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 120px;
  max-width: 320px;
  margin-bottom: 0;
  box-sizing: border-box;
}

#modalDetailDescription {
  min-width: 180px;
}

@media (max-width: 900px) {
  .modal-details-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }
  .modal-detail {
    min-width: 0;
    max-width: 100%;
  }
}
@font-face {
  font-family: 'OpenDyslexic';
  src: url('opendyslexic-0.91.12/OpenDyslexic-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Apply dyslexic font when the class is set on the html element */
html.dyslexic-font, html.dyslexic-font body, html.dyslexic-font * {
  font-family: 'OpenDyslexic', Inter, Segoe UI, system-ui, Arial, sans-serif !important;
}

/* Record heading style */
.main-heading {
  text-align: center;
  width: 100%;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Centered card in presentation section */
.centered-card {
  margin-left: auto;
  margin-right: auto;
  max-width: 520px;
  display: flex;
  justify-content: center;
  width: auto;
  min-width: 280px;
  padding: 2rem 2rem;
  background: var(--card);
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(2,6,23,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

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

.card-text {
  max-width: 420px;
  text-align: center;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
}
:root {
  --bg: #0f1724;
  --card: #0f1a2b;
  --muted: #9aa4b2;
  --accent: #fff;
  --accent-2: #c0c0c0;
  --glass: rgba(255, 255, 255, 0.03);
  --max-width: 1100px;
  color-scheme: dark;
}

* {
  box-sizing: border-box
}

html, body {
  height: 100%;
  margin: 0;
  font-family: Inter, Segoe UI, system-ui, Segoe UI Emoji, Arial;
  background: linear-gradient(180deg, var(--bg), #071029);
  color: #e6eef8;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Header */
.site-header {
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(12, 18, 30, 0.6), rgba(12, 18, 30, 0.3));
  position: sticky;
  top: 0;
  z-index: 40
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.brand {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.1rem
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  font-size: 1.4rem
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1rem
}

.main-nav a:hover {
  color: #fff
}

.header-controls {
  display: flex;
  align-items: center;
  gap: .6rem
}

.lang-switch {
  display: flex;
  gap: .25rem;
  margin-right: .6rem
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: .25rem .5rem;
  border-radius: 8px;
  cursor: pointer
}

.lang-btn.active {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #001;
  border: 0
}

/* Hero */
.hero {
  padding: 10rem 0;
  background: linear-gradient(90deg, rgba(124, 77, 255, 0.08), rgba(0, 194, 255, 0.04));
  border-bottom: 1px solid rgba(255, 255, 255, 0.03)
}

.hero-title {
  font-size: 2.2rem;
  margin: 0 0 .5rem
}

.hero-sub {
  margin: 0 0 1.2rem;
  color: var(--muted)
}

.hero-actions .btn {
  margin-right: .6rem
}

/* Panels */
.panel {
  padding: 1rem 0
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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


/* Record grid cell (e.g. GSport League and Synergie Rocket League Boost Cup) */
.record-grid-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: auto;
  min-width: 0;
  max-width: 100%;
  padding: 1rem 1rem;
  margin: 0;
  box-sizing: border-box;
  background: var(--card);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.6);
}

/* Record grid cell image */
.record-grid-cell img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}

.muted {
  color: var(--muted)
}

/* Helper class for small text */
.small {
  font-size: .9rem
}

.calendar-panel .calendar-embed {
  margin-top: 1rem;
}

.iframe-wrap {
  padding: 6px;
  border-radius: 8px;
}

.iframe-wrap iframe {
  width: 100%;
  min-height: 600px;
  border-radius: 8px;
}

/* Contact form card */
.contact-card {
  background: var(--card);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.6);
  display: flex;
  flex-direction: column;
}

.grid-contact {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.contact-card input, .contact-card textarea {
  width: 100%;
  padding: .5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  margin-bottom: .5rem
}

.form-actions {
  display: flex;
  gap: .5rem
}

.btn {
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  text-decoration: none;
  color: #001;
  border: 0;
  font-weight: 600
}

/* Transparent secondary button (used for Reset button) */
.btn.outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

/* Other ways to reach us card */
.other-ways-card {
  background: var(--card);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.6);
}

.other-ways-card a {
  color: var(--muted);
  text-decoration: underline;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

/* footer nav bar */
.footer-nav {
  display: flex;
  align-items: center;
}

/* footer nav anchor links */
.footer-nav a {
  color: var(--muted);
  margin-left: 1rem;
  text-decoration: none;
}

/* footer note */
.footer-note-wrap {
  padding: 0 0 1rem;
}

.footer-note {
  color: var(--muted);
  font-size: .95rem;
  text-align: center
}

.footer-note .heart {
  color: #ff5c7c;
  margin: 0 .25rem;
}

/* Center h3 headers in record section */
/* we do not want to also centralize the h3 headers inside of the cells*/
.container > h3[data-i18n^="record."] {
  text-align: center;
  width: 100%;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

/* Event modal styles */
/* Modal overlay styles */
.event-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}
.event-modal[style*="display: flex"] {
  display: flex !important;
}
/* Dynamic modal styles */
.dynamic-modal {
  background: var(--card);
  border-radius: 8px;
  width: fit-content;
  min-width: 0;
  max-width: 90vw;
  max-height: 90vh;
  padding: 2rem 2rem;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: modalIn .3s cubic-bezier(.2,.9,.3,1);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: auto;
}

.modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 1rem;
}
.modal-img {
  display: block;
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.modal-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.modal-details {
  display: flex;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}
.modal-detail {
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.modal-label {
  font-weight: 600;
  margin-top: 0.5rem;
  color: var(--muted);
}
.modal-value {
  margin-bottom: 0.5rem;
  word-break: break-word;
}

@media (max-width: 1200px) {
  .dynamic-modal {
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    padding: 1rem 1rem;
    width: 100%;
  }
  .modal-details {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
  }
}

@media (max-width: 900px) {
  .dynamic-modal {
    max-width: calc(100vw - 4px);
    max-height: calc(100vh - 4px);
    padding: 1.2rem 0.5rem;
    width: 100%;
  }
  .modal-details {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .modal-img {
    max-width: 120px;
    width: 100%;
    margin-bottom: 1rem;
  }
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.90); }
  to { opacity: 1; transform: none; }
}
.event-modal-content button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.event-modal-content img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.event-modal-content h3 {
  margin-top: 0;
}

/* responsive */
@media (max-width:900px) {
  .grid {
    grid-template-columns: 1fr
  }

  .container {
    padding: 0.5rem;
  }

  .card {
    padding: 1rem;
  }

  .grid-contact {
    grid-template-columns: 1fr
  }

  .main-nav {
    display: none;
    position: absolute;
    right: 12px;
    top: 64px;
    background: var(--card);
    padding: .8rem;
    border-radius: 8px
  }

  .nav-toggle {
    display: block
  }

  .iframe-wrap iframe {
    min-height: 420px
  }
}

/* reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: all .6s cubic-bezier(.2, .9, .3, 1)
}

.reveal.visible {
  opacity: 1;
  transform: none
}

.social-icons {
  display: flex;
  gap: .6rem;
}

.muted.small {
  opacity: .9
}

/* small tweaks */
label {
  display: block;
  font-size: .9rem;
  margin-bottom: .2rem;
  color: var(--muted)
}

/* Accessibility focus */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 3px solid rgba(124, 77, 255, 0.12);
  outline-offset: 2px;
  width: auto;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  flex: 0 1 auto;
  margin: 0;
}