@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");
}

/* Old-school MS Paint style scrollbar */
::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

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

::-webkit-scrollbar-thumb {
  background: #0000ff;
  border: 1px solid #ffffff;
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: #0000cc;
}

::-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 */
}

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.06em;
  position: relative;
  min-height: 100vh;
  padding-bottom: 100px; /* Add padding to ensure content isn't hidden behind fixed elements */
}

.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;
}

.header h1 {
  font-size: clamp(3rem, 10vw, 12rem); /* Minimum 3rem, scales with viewport, max 12rem */
  text-shadow: 0 0 10px white, 0 0 20px white;
}

.header h2,
.header h3 {
  font-size: clamp(2.5rem, 4vw, 5rem);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.7); /* slightly softer blur */
  text-shadow: 0 0 10px white, 0 0 20px white;
}

.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;
}

.section-link {
  display: flex;
  margin: 0.0002em;
  padding: 0.8em;
  font-size: 3.3em;
  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: border-radius 0.3s ease;
}

.section-link:hover {
  background-color: blue;
  color: white;
}

.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: "-";
}

.section-container {
  margin-bottom: 0.5em;
  position: relative;
}

.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.6;
  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);
}

.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.7;
}

/* Animation for section links */

.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: background-color 0.3s, color 0.3s;
}

.contact-info button:hover {
  background-color: blue;
  color: white;
}

.impressum {
  display: absolute;
  bottom: 0.1vh;
  margin: 0;
  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;
}

.impressum:hover {
  background-color: blue;
  color: white;
}

.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(0, 0, 255, 0.3);
}

.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;
}

/* 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;
}

/* Floating animation */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px); /* Reduced from -3px to -1px for subtler movement */
  }
  100% {
    transform: translateY(0);
  }
}

/* Apply floating animation to all elements */
body * {
  animation: float var(--float-duration, 6s) ease-in-out infinite; /* Increased from 3s to 6s for slower animation */
  animation-delay: var(--float-delay, 0s); /* Random delay for each element */
}

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

  .section-link {
    font-size: 2.5em;
  }

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

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

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

/* 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%;
}

.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: 1vw;
  z-index: 10;
  pointer-events: none;
  overflow: hidden;
  box-shadow: 0 0 5px blue;
  text-align: center;
}

.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: #ff4081;
  transform: scale(1.1);
  transition: transform 0.2s, color 0.2s;
}
