/* ----- Reset ----- */
* {
  margin: 0;
  padding: 0;
  border: none;
  box-sizing: border-box;
}

body.loading * {
  visibility: hidden;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-anchor: none;
}

body {
  background-color: #191919;
}

body > *:not(header):not(#hSpacer) {
  margin-top: 0;
}

body.no-anim .headerLeft.compact .siteLogo,
body.no-anim .headerLeft.compact .siteIcon {
  transition: none !important;
}

.bodyWrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bodyContainer {
  position: relative;
  flex: 1;
  overflow: hidden;
  overflow: clip;
}

.spacer {
  width: 100%;
  height: 2rem;
}

@font-face {
  font-family: 'SquaresBold';
  src: url('fonts/Squares Bold Free.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}
 
@font-face {
  font-family: 'BedsteadBold';
  src: url('fonts/bedstead-bold.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Polentical';
  src: url('fonts/Polentical\ Neon\ Regular.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Quantico';
  src: url('fonts/Quantico-Bold.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

h1, h2, h3 {
  font-family: 'SquaresBold', sans-serif;
  color: white;
}

p, .customSelect {
  font-family: 'Quantico', sans-serif;
  color: white;
}

.backgroundLines {
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.slashFill{
  font-family: 'SquaresBold', sans-serif;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  line-height: 1;
  text-align: center;
  align-self: center;
  font-kerning: none;
  font-variant-ligatures: none;
  min-height: 1rem;
  width: 100%;
  color: #212121;
  background-color: #212121;
}

.border {
  flex: 0 0 2px;
  align-self: stretch;
  background: #212121;
}

.slashFill,
.border {
  opacity: 1;
}

.filterFrame .slashFill,
.mapBody .slashFill {
  font-size: 0.75rem;
  letter-spacing: 5px;
  text-align: right;
}

.buttonOuter {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-self: center;
  align-items: center;
  margin-top:auto;
  width: fit-content;
  gap: .5rem;
}

.buttonBorder {
  position: relative;
  align-self: stretch;
  height: 6px;
  background: #212121;
  transition: transform 0.15s ease;
}

.buttonOuter:has(.buttonCore:hover) .buttonBorder:first-child {
  transform: translateY(-2px);
}

.buttonOuter:has(.buttonCore:hover) .buttonBorder:last-child {
  transform: translateY(2px);
}

.buttonInner {
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
}

.buttonCore {
  padding: 0.5rem 1rem;
  background-color: #222222;
  font-family: 'SquaresBold', sans-serif;
  font-size: 1rem;
  color: white;
  transition: color 150ms ease;
}

.buttonCore:hover {
  color: #FF8400;
}

/*////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/

/* ----- Header ----- */

#siteHeaderMount {
  display: block;      /* temporarily participates in layout */
  height: 4rem;        /* same as .siteHeader height */
}

#siteHeaderMount:has(#siteHeader) {
  display: contents;   /* once header exists, wrapper disappears */
  height: auto;
}

.siteHeader {
  position: sticky;
  display: flex;
  justify-content: center;
  line-height: 0;
  top: 0;
  height: 4rem;
  width: 100%;
  padding: 0 2rem;
  background-color: rgb(24, 24, 24);
  border-bottom: 1px solid #282828;
  z-index: 98;
  transition: background-color 300ms ease, border-bottom 300ms ease;
  user-select: none;
}

@supports ((-webkit-backdrop-filter: blur(5px)) or (backdrop-filter: blur(5px))) {
  .siteHeader {
    background-color: rgba(24, 24, 24, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    will-change: backdrop-filter;
  }
}

body.dropdown-active .siteHeader {
  border-bottom: none;
}

.headerWrapper {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
  max-width: 70rem;
}

/* ----- Left Section ----- */
 
.headerLeft {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.siteIcon {
  height: 2rem;
  transform: rotate(-90deg);
  transition: transform 150ms ease, opacity 150ms ease;
}

.siteLogo {
  height: 2rem;
  transition: transform 300ms ease;
}

.headerLeft.compact .siteIcon {
  opacity: 0;
  transform: rotate(-90deg) translateY(-3rem);
}

.headerLeft.compact .siteLogo {
  transform: translateX(-3rem);
}

/* ----- Middle Section ----- */

.headerMiddle.standard {
  position: absolute;
  display: flex;
  align-items: center;
  left: 50%;
  transform: translateX(-42.3%); /* -42.3% */
}

#menuButton {
  position: absolute;
  display: none;
  align-items: center;
  justify-content: center;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.headerMiddle.dropdown {
  position: absolute;
  display: none;
  flex-direction: column;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 0.5rem;
  z-index: 97;
}

/* ----- Visibility Control ----- */

#headerMiddleStandard {
  display: none;
}

#headerMiddleDropdown {
  display: flex;
}

body:not(.header-compact) #headerMiddleStandard {
  display: flex;
}

body.header-compact #menuButton {
  display: flex;
}

#headerMiddleDropdown {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 300ms ease, max-height 300ms ease;
}

body.dropdown-active #headerMiddleDropdown {
  opacity: 1;
  max-height: 500px;
}

body.dropdown-active .siteHeader,
body.dropdown-active .headerMiddle.dropdown {
  background-color: #161616;
  backdrop-filter: none;
  border-bottom: none;
  backdrop-filter: blur(5px);
  border-bottom: 1px solid #282828;
}

.visible-temp {
  display: flex !important;
}

/* ----- Navigation ----- */

.nav, .nav.column {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav.column {
  flex-direction: column;
}

.dropdown > .nav {
  position: relative;
}

.navWrapper {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 1rem;
}

.navIcon {
  width: 0.25rem;
  opacity: 0;
  transition: opacity 150ms ease, transform 150ms ease;
}

.nL { transform: rotate(90deg); order: 1; }
.nR { transform: rotate(-90deg); order: 3; }

.nav a {
  order: 2;
  font-family: 'SquaresBold', sans-serif;
  font-size: 1.5rem;
  color: white;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  transition: color 200ms ease;
}

.nav a:hover { color: #FF8400; }

.navWrapper a:hover ~ .nL {
  opacity: 1;
  transform: rotate(90deg) translateY(0.2rem);
}

.navWrapper a:hover ~ .nR {
  opacity: 1;
  transform: rotate(-90deg) translateY(0.2rem);
}

.headerMiddle.dropdown .navWrapper.m {
  padding-bottom: 0.5rem;
}

/* ----- Right Section (Social Icons) ----- */

.headerRight {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.socialLink {
  position: relative;
  height: 2rem;
  width: 2rem;
  display: inline-block;
}

.icon {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  transition: opacity 300ms ease;
  object-fit: contain;
  pointer-events: none;
}

.icon.default {
  opacity: 1;
  z-index: 1;
}

.icon.hover {
  opacity: 0;
  z-index: 2;
}

.socialLink:hover .default {
  opacity: 0;
}

.socialLink:hover .hover {
  opacity: 1;
}

/*////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/

/* Intro */

.introWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/*////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/

/* Footer */

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 4rem;
  flex-shrink: 0;
  background-color: #121212;
  border-top: 2px solid #282828;
  font-size: 0.75rem;
}