@font-face {
  font-family: 'JetBrainsMonoNL-Thin';
  src: url('fonts/JetBrainsMonoNL-Thin.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* small-screen adjustments */
@media (max-width: 768px) {
  #splash {
    padding: 1rem;
  }

  #splash h1, #splash h2, #splash h4, #splash p {
    max-width: 95%;
  }


  #opencall-page .content-container {
    padding: 2rem 1.5rem 3rem;
  }
}

@font-face {
  font-family: 'Lohengrin';
  src: url('fonts/Lohengrin.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --heading-font: 'Lohengrin', serif;
  --body-font: 'JetBrainsMonoNL-Thin', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* -------- CORE LAYOUT (replace existing html, body rules) -------- */
html, body {
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* allow per-layer scrolling, prevent horizontal scroll */
  overflow-x: hidden;
  /* do NOT set overflow-y here; let the layers control vertical scrolling */
  background: #000;
  font-family: 'Inter', sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

/* -------- FEED (must remain full-screen, no scroll) -------- */
#feed {
  /* make feed cover the viewport and prevent scrolling inside it */
  position: fixed;
  inset: 0;                /* top:0; right:0; bottom:0; left:0; */
  width: 100%;
  height: 100%;
  overflow: hidden;        /* no scrolling for feed */
  background: #000;
  display: none; 
  -webkit-overflow-scrolling: none;
}

.post {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(0);
  transition: transform 0.6s ease, opacity 0.6s ease;
  z-index: 0;
}

.post.active {
  opacity: 1;
  z-index: 2;
}

.post.exit-up {
  transform: translateY(-100%);
  opacity: 0;
  z-index: 1;
}

.post.exit-down {
  transform: translateY(100%);
  opacity: 0;
  z-index: 1;
}

.post.forward-start {
  transform: translateY(100%);
  opacity: 1;
  z-index: 2;
}

.post.backward-start {
  transform: translateY(-100%);
  opacity: 1;
  z-index: 2;
}

.post img,
.post video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay */
.overlay {
  position: absolute;
  bottom: 4vh;
  left: 3vw;
  max-width: 80%;
  background: rgba(0,0,0,0.4);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  z-index: 3;
}

.overlay h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  font-family: var(--heading-font);
}

.overlay h3 {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.8;
  margin-bottom: 0.3rem;
  font-family: var(--body-font);
}

.overlay p {
  font-size: 0.9rem;
  line-height: 1.3;
  opacity: 0.75;
  font-family: var(--body-font);
}


.header-logo {
  height: 60px; 
  width: auto;
  display: block;
  margin-bottom: 2rem;
}


/* Splash */


/* -------- SPLASH (should scroll on small screens) -------- */
#splash {
  position: fixed;         /* layer that sits on top when visible */
  inset: 0;
  background: #000;
  color: #fff;
  z-index: 10;
  transition: opacity 0.6s ease;
  padding: 6rem 2rem 2rem;

  /* enable touch/native-like scrolling for this layer */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain; /* keep scrolling contained to this element */
}

/* make its inner container flow naturally (avoid forcing unexpected heights) */
#splash .content-container {
  max-width: 80%;
  margin: 0 auto;
  padding: 2rem;
  font-family: var(--body-font);
  /* avoid min-height:100vh here if you want scrolling to work naturally */
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* top-aligned so content can scroll */
  text-align: center;
}

#splash .header-logo {
  position: fixed;
  top: 2rem;
  left: 2rem;
  height: 60px;
  width: auto;
  z-index: 11;
}

.button {
  background-color: #555555;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  margin: 4px 2px;
  /*cursor: pointer;*/
  font-family: var(--body-font);
}

.opencall-button {
  background: transparent !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  text-shadow: 0 0 8px #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.opencall-button:hover {
  background: transparent !important;
  border: 2px solid #ff00ff !important;
  color: #ffffff !important;
  text-shadow: 0 0 12px #ff00ff;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
}

#splash h1 {
  font-size: 2rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  font-family: var(--heading-font);
  text-align: center; 
  width: 100%; 
  max-width: 90%; 
}

#splash h2, h4 {
  padding-bottom: 1rem;
  font-family: var(--body-font);
  text-align: center;
  width: 100%;
  max-width: 90%;
}

#splash h2 {
  color:#ee00ff
}

#splash p {
  opacity: 0.7;
  margin-bottom: 2rem;
  padding: 0 1rem;
  font-family: var(--body-font);
  text-align: center;
  width: 100%;
  max-width: 90%;
  line-height: 1.6; 
}

/* -------- OPEN CALL (also scrollable) -------- */
#opencall-page {
  position: fixed;
  inset: 0;
  background: #000;
  color: #fff;
  z-index: 20;

  /* scrolling enabled specifically for this layer */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

/* its inner container shouldn't force full viewport height either */
#opencall-page .content-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0.5rem 1rem 3rem;
  font-family: var(--body-font);
  min-height: auto;
}

#opencall-page .header-logo {
  margin-bottom: 4rem; 
}

#opencall-page h1 {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: 0.05em;
}

#opencall-page h3 {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  margin: 2rem 0 1rem 0;
  color: #fff;
}

.text-content {
  line-height: 1.6;
  margin-bottom: 3rem;
}

.text-content p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.text-content ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.text-content li {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

#opencall-page .button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

a.button {
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.submit-button {
  background: transparent !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  text-shadow: 0 0 8px #ff00ff;
  box-shadow: 0 0 12px rgba(255, 0, 255, 0.6);
  transition: all 0.3s ease;
}

.submit-button:hover {
  background: transparent !important;
  border: 2px solid #ff00ff !important;
  color: #ffffff !important;
  text-shadow: 0 0 12px #ff00ff;
  box-shadow: 0 0 20px rgba(255, 102, 255, 0.8);
}

.back-button {
  background: transparent !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  text-shadow: 0 0 5px #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.back-button:hover {
  background: transparent !important;
  border: 2px solid #ababab !important;
  color: #616161 !important;
  text-shadow: 0 0 5px #616161;
  box-shadow: 0 0 8px rgba(171, 171, 171, 0.4);
}
.page.hidden {
  display: none;
}

.external-link {
  color: #ee00ff;
  text-decoration: underline;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.external-link:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  #splash {
    padding: 1rem; 
  }
  
  #splash h1, #splash h2, #splash h4, #splash p {
    max-width: 95%; 
  }
  
#opencall-page .content-container {
  min-height: 100vh;
  padding: 2rem 2rem 3rem;
}
  
  #opencall-page h1 {
    font-size: 2rem;
  }
  
  #opencall-page .button-group {
    flex-direction: column;
    align-items: center;
  }
  
  #opencall-page .button-group .button {
    width: 200px;
  }
}



.snake-scales-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999; 
  mix-blend-mode: screen;
  overflow: hidden;
}

.snake-scale {
  position: absolute;
  pointer-events: none;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: radial-gradient(circle, 
    #ff00ff 0%,
    rgba(255, 0, 255, 0.3) 40%,
    transparent 70%
  );
  filter: blur(2px) drop-shadow(0 0 8px #ff00ff);
  opacity: 0.8;
  animation: scaleFade 3s ease-out forwards;
}

.scale-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(ellipse, 
    rgba(255, 0, 255, 0.4) 0%,
    rgba(255, 0, 255, 0.2) 50%,
    transparent 80%
  );
  filter: blur(8px);
  opacity: 0.6;
  animation: glowFade 2s ease-out forwards;
}


@keyframes scaleFade {
  0% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
  }
  50% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1.2) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5) rotate(360deg);
  }
}

@keyframes glowFade {
  0% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2);
  }
}