@font-face {
  font-family: "PPNeueBit-Bold";
  src: url("PPNeueBit-Bold.otf") format("opentype");
}

@font-face {
  font-family: "PPPangaia-Bold";
  src: url("PPangaia-Bold.otf") format("opentype");
}

/* Updated scrollbar to use new color scheme */
::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

::-webkit-scrollbar-track {
  background: #ffffff;
  border: 1px solid #0000aa;
}

::-webkit-scrollbar-thumb {
  background: #c6ff00; /* use hover background */
  border: 1px solid #ffffff;
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
  background: #c6ff00;
}

::-webkit-scrollbar-corner {
  background: #ffffff;
}

::-webkit-scrollbar-button {
  background: #ffffff;
  border: 1px solid #0000aa;
  height: 16px;
  width: 16px;
}

::-webkit-scrollbar-button:vertical:start:decrement {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpolygon points='8,4 13,10 3,10' fill='%230000ff'/%3E%3C/svg%3E");
}

::-webkit-scrollbar-button:vertical:end:increment {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpolygon points='8,12 13,6 3,6' fill='%230000ff'/%3E%3C/svg%3E");
}

::-webkit-scrollbar-button:horizontal:start:decrement {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpolygon points='4,8 10,3 10,13' fill='%230000ff'/%3E%3C/svg%3E");
}

::-webkit-scrollbar-button:horizontal:end:increment {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpolygon points='12,8 6,3 6,13' fill='%230000ff'/%3E%3C/svg%3E");
}

/* Firefox scrollbar (uses a different approach) */
* {
  scrollbar-width: auto;
  scrollbar-color: #ffffff #0000ff;
}

/* Retro cursor */
body {
  cursor: url("retro-cursor.png"), auto; /* Replace 'retro-cursor.png' with your cursor image */
}

/* Optional: Add a hover effect for links */
a,
.section-link,
button {
  cursor: url("retro-pointer.png"), pointer; /* Replace 'retro-pointer.png' with a pointer image */
}

html, body {
  height: 100%;
  margin: 0;
  overflow: scroll; /* Forces the scrollbar to always appear */
}

body {
  margin: 0;
  /* Removed overflow: hidden to allow scrolling */
  font-family: "PPNeueBit-Bold", monospace;
  font-size: 4;
  color: black;
  background-size: cover;
  line-height: 0.09em;
  position: relative;
  min-height: 100vh;
  padding-bottom: 100px; /* Add padding to ensure content isn't hidden behind fixed elements */
  overflow-x: hidden;
}

.hello {
  position: absolute;
  font-size: 1.5vw;
  padding: 0.6vw;
  z-index: 1;
  border-radius: 1vw;
  border: 0.1em solid blue;
  background-color: white;
  line-height: 1;
}
.hello:hover {
  background-color: blue;
  color: white;
}

.hello p {
  margin: 0.3em 0;
}

.container {
  position: relative;
  padding: 1vw;
  font-size: 20;
  z-index: 1;
  margin-left: 1vw;
}

/* Updated outline from white to neon green/yellow, made it thicker and wider */
.header h1 {
  letter-spacing: 0.8vw;
  margin-left: 3vw;
  text-align: justify;
  line-height: 0.01vh;
  font-size: clamp(4rem, 13vw, 18rem);
  color: black;
  text-shadow:
    -10px -10px 0 #c6ff00, 10px -10px 0 #c6ff00, -10px 10px 0 #c6ff00, 10px 10px 0 #c6ff00,
    -15px -15px 0 #c6ff00, 15px -15px 0 #c6ff00, -15px 15px 0 #c6ff00, 15px 15px 0 #c6ff00,
    -20px -20px 0 #c6ff00, 20px -20px 0 #c6ff00, -20px 20px 0 #c6ff00, 20px 20px 0 #c6ff00,
    -25px -25px 0 #c6ff00, 25px -25px 0 #c6ff00, -25px 25px 0 #c6ff00, 25px 25px 0 #c6ff00;
}

/* Applied same thick neon outline to sub headers */
.header h2,
.header h3 {
  letter-spacing: 1vw;
  line-height: .05;
  margin-left: 2vw;
  font-size: clamp(2.5rem, 4vw, 5rem);
  color: black;
  text-shadow:
    -10px -3px 0 #c6ff00, 3px -3px 0 #c6ff00, -3px 3px 0 #c6ff00, 3px 3px 0 #c6ff00,
    -4px -4px 0 #c6ff00, 4px -4px 0 #c6ff00, -4px 4px 0 #c6ff00, 20px 4px 0 #c6ff00,
    -5px -5px 0 #c6ff00, 5px -5px 0 #c6ff00, -5px 5px 0 #c6ff00, 5px 20px 0 #c6ff00;
}

.header h2 {
  line-height: 0.05;
  margin-left: 2vw;
  font-size: clamp(1rem, 4vw, 5rem);
  color: black;
  text-align: justify; /* Justify the text to spread it evenly */
  letter-spacing: 0.221em; /* Adjust spacing between letters */
  text-shadow:
    -3px -3px 0 #c6ff00, 20px -3px 0 #c6ff00, -3px 3px 0 #c6ff00, 3px 3px 0 #c6ff00,
    -4px -4px 0 #c6ff00, 20px -4px 0 #c6ff00, -4px 4px 0 #c6ff00, 4px 4px 0 #c6ff00,
    -5px -5px 0 #c6ff00, 20px -5px 0 #c6ff00, -5px 5px 0 #c6ff00, 5px 5px 0 #c6ff00;
}

.background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

.section-links {
  display: flex;
  flex-direction: column;
  margin-top: 2vh;
  position: relative;
  z-index: 1;
}

/* Added neon accent color on hover and subtle floating effect */
.section-link {
  display: flex;
  margin: 0.0002em;
  padding: 0.8em;
  font-size: 6vh;
  color: blue;
  text-decoration: none;
  border-radius: 1em;
  border: 0.1em solid blue;
  background-color: white;
  line-height: 0.2;
  margin-left: 2vw;
  margin-right: 2vw;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-link:hover {
  background-color: #c6ff00;
  color: black;
  border-color: #c6ff00;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(198, 255, 0, 0.3);
}

.section-link.active {
  border-radius: 1em 1em 0 0;
  border: 0.1em solid blue;
}

.section-link::after {
  content: "+";
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.section-link.active::after {
  content: "-";
}

/* Added gentle floating animation to section containers */
.section-container {
  margin-bottom: 0.5em;
  position: relative;
  transition: transform 0.3s ease;
  animation: gentle-float 8s ease-in-out infinite;
}

/* Each container gets a unique delay for varied floating effect */
.section-container:nth-child(1) {
  animation-delay: 0s;
}
.section-container:nth-child(2) {
  animation-delay: 1.5s;
}
.section-container:nth-child(3) {
  animation-delay: 3s;
}
.section-container:nth-child(4) {
  animation-delay: 4.5s;
}
.section-container:nth-child(5) {
  animation-delay: 6s;
}

.section-container:hover {
  transform: translateY(-2px);
  animation-play-state: paused; /* Pause floating on hover */
}

.section-content {
  background-color: white;
  border-radius: 0 0 1em 1em;
  border: 0.25em solid blue;
  border-top: none;
  margin: -0.5em 2vw 1em 2vw;
  padding: 0 1.5em;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  line-height: 0.8;
  transform: translateY(-20px);
  transition: max-height 0.6s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.5s ease, transform 0.5s ease, padding 0.6s
    cubic-bezier(0.215, 0.61, 0.355, 1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.section-content.active {
  display: block;
  max-height: none; /* Changed from 70vh to allow full content height */
  opacity: 1;
  transform: translateY(0);
  padding: 1.5em;
  overflow-y: visible; /* Changed from auto to allow content to expand */
}

.section-content h2 {
  color: blue;
  font-size: 2em;
  margin-top: 0;
  margin-bottom: 0.5em;
}

.scrollable-content {
  font-size: 2em;
  line-height: 0.9;
}

/* Animation for section links */

/* Updated contact buttons with neon accent */
.contact-info {
  position: fixed;
  bottom: 0.1vw;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  z-index: 5;
}

.contact-info button {
  margin: 0;
  padding: 0.6em 1.2em;
  font-size: 1.3em;
  color: blue;
  text-decoration: none;
  border-radius: 1em;
  border: 0.1em solid blue;
  background-color: white;
  font-family: "PPNeueBit-Bold", monospace;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-info button:hover {
  background-color: #c6ff00;
  color: black;
  border-color: #c6ff00;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(198, 255, 0, 0.3);
}

.impressum {
  margin-bottom: 620vh;
  bottom: 1vh;
  padding: 0.4em;
  font-size: 1em;
  color: blue;
  text-decoration: none;
  border-radius: 1em;
  border: 0.1em solid blue;
  background-color: white;
  font-family: "PPNeueBit-Bold", monospace;
  cursor: pointer;
  transition: all 0.3s ease;
}

.impressum:hover {
  background-color: #c6ff00;
  color: black;
  border-color: #c6ff00;
  transform: translateY(-2px);
}

.bottom-left-image {
  position: fixed;
  bottom: 2.5vh;
  left: 9mm;
  height: 40vh;
  max-width: 300%;
  z-index: -1;
  filter: invert(100%) brightness(3);
}

.bottom-left-image:hover {
  filter: invert(1%) brightness(1.5);
}

/* Simple Gallery styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em;
}

.gallery-item {
  text-align: center;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 0.5em;
  border: 0.08em solid blue;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(198, 255, 0, 0.4);
  border-color: #c6ff00;
}

.gallery-item p {
  margin-top: 0.5em;
  font-size: 0.9em;
  color: blue;
}

/* Mobile adjustments for gallery */
@media screen and (max-width: 700px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Event specific styles */
.event {
  margin-bottom: 2em;
  padding-bottom: 1em;
  border-bottom: 1px dotted blue;
}

.event h3 {
  color: blue;
  margin-bottom: 0.3em;
}

.event p {
  margin: 0.3em 0;
}

/* Added styles for event images and past events differentiation */
.event-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 0.5em;
  border: 0.08em solid blue;
  margin-bottom: 0.5em;
}

.past-events {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 2px dashed blue;
}

.past-events-title {
  color: blue;
  font-size: 1.5em;
  margin-bottom: 1em;
  opacity: 0.8;
}

.past-event {
  opacity: 0.7;
  filter: grayscale(20%);
}

.past-event h3 {
  color: rgba(0, 0, 255, 0.7);
}

.upcoming-events {
  margin-bottom: 1em;
}

/* Animation classes */
.popup-visible {
  display: flex;
}

.popup-scaled {
  transform: scale(1);
}

/* Random symbols */
.random-symbol {
  position: absolute;
  font-size: 2vw;
  z-index: 1;
  transition: all 0.5s ease;
}

/* Removed universal floating animation and added specific gentle floating to collapsible sections */
/* Floating animation - gentle like a leaf in water */
@keyframes gentle-float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(2px, -3px) rotate(0.5deg);
  }
  50% {
    transform: translate(-1px, 2px) rotate(-0.3deg);
  }
  75% {
    transform: translate(-3px, -1px) rotate(0.4deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

/* Mobile styles */
@media screen and (max-width: 700px) {
  .hello {
    font-size: 4vw;
  }

  .section-link {
    font-size: 10vw;
  }

  .popup-content {
    width: 90%;
    padding: 1em;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* Adjust fixed elements for better mobile experience */
  .contact-info {
    font-size: 1em;
    margin-bottom: 2vh;
  }

  .header h1 {
    margin-top: 10vh;
    margin-left: 5vw;
  }

}


/* Container for the image overlay */
.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;

  background: url("ear-still.png") no-repeat center center;
  background-size: cover;

  /* Mask base setup */
  mask-image: radial-gradient(circle 80px at center, transparent 0%, black 100%);
  -webkit-mask-image: radial-gradient(circle 80px at center, transparent 0%, black 100%);

  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;

  mask-position: 0 0;
  -webkit-mask-position: 0 0;

  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
}

/* Updated bouncer with neon accent colors */
.ascii-bouncer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border: 0.15em solid blue;
  border-radius: 50%;
  width: 8vw;
  height: 8vw;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "PPNeueBit-Bold", monospace;
  color: blue;
  font-size: 0.1vw;
  z-index: 10;
  pointer-events: none;
  overflow: hidden;
  box-shadow: 0 0 5px blue;
}

.ascii-bouncer {
  font-family: monospace;
  font-size: 1.2rem;
  text-align: center;
  user-select: none;
  pointer-events: none;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.ascii-bouncer.bounce-react {
  color: #c6ff00;
  border-color: #c6ff00;
  transform: scale(1.1);
  transition: transform 0.2s, color 0.2s, border-color 0.2s;
  box-shadow: 0 0 15px rgba(198, 255, 0, 0.5);
}
