@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');

.site-header {
     top: 0;
height: 20%; /* Set a fixed height for the header */
  width: 1000px;
margin-left: 270px;
}

body {
  font-family: 'Inter', sans-serif;
  margin-left: 100px;
  background: #fff;
  color: #000;
}


.fixed-return {
  position: fixed;
  top: 80%;
  left: 100px;
  transform: translateY(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 30px; /* adjust as needed */
  text-decoration: none;
  color: black
}


footer {
  font-family: 'Merriweather', serif;
  font-size: 10px;
   position: fixed;
            bottom: 0;
            width: 100%;
            height: 50px;
 
  color:  #A9A9A9;
}

.menu {
  margin-top: 40px;
}

/* Remove bullets and reset margins/padding */
.menu ul,
.menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Main menu items */
.menu > ul > li {
  margin-bottom: 25px;
}

.menu > ul > li > a {
  font-size: 22px;
  font-weight: 700;
  color: black;
  text-decoration: none;
  cursor: pointer;
  display: block;
  padding: 6px 0;
}



@keyframes pulseOuterGlowLavender {
  0%, 100% {
    text-shadow:
      0 0 2px rgba(111, 81, 147, 0.3),
      0 0 5px rgba(111, 81, 147, 0.2),
      0 0 15px rgba(111, 81, 147, 0);
  }
  50% {
    text-shadow:
      0 0 8px rgba(111, 81, 147, 0.7),
      0 0 12px rgba(111, 81, 147, 0.5),
      0 0 15px rgba(111, 81, 147, 0.3);
  }
}

.menu a:hover {
  animation: pulseOuterGlowLavender 3s infinite ease-in-out;
  color: #E6E6FA; 
}


.menu-label {
  cursor: default;         /* shows default arrow cursor, not pointer */
  color: black;            /* same color as links */
  font-size: 22px;
  font-weight: bold;
  user-select: none;       /* optional: prevent text selection */
  display: inline-block;
  padding: 4px 0;
}


/* Submenu container */
.submenu {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 2s ease, opacity 2s ease;
  margin-left: 20px
  margin-bottom: 5px;
}

/* Show all submenus when hovering over the parent <li> with class "has-submenu" */
.has-submenu:hover .submenu {
  max-height: 1000px; /* large enough to show all nested submenus */
  opacity: 1;
}

/* Style all submenu list items — including non-links */
.submenu li {
  font-size: 16px;
  font-weight: 500;
  color: #000;
  padding: 4px 0;
  padding-left: 10px;
  cursor: default; /* not a link, so default cursor */
}

/* Override for actual links inside submenu items */
.submenu li a {
  color: #000;
  text-decoration: none;
  display: block;
  font-weight: 500;
}

/* Optional: subtle hover effect only for real links */
.submenu li a:hover {
  color: #444;
}

/* Hover colors */
.menu a:hover,
.submenu li a:hover {
  color: #0077cc;
  text-decoration: underline;
}

.page-wrapper {
  display: flex;
  max-width: 1000px;
  gap: 40px; /* optional spacing between menu and content */
  align-items: flex-start; /* align top edges */
}

.menu {
  width: 250px; /* fix sidebar width */
  /* keep your existing menu styling */
}

.content {
  flex: 1; /* take remaining space */
  /* keep your existing content styling */
}
 main.release-container {
      flex: 1;
      max-width: 500px;
      margin-left: 0px;
      padding-top: 40px;
      padding-bottom: 40px;
      font-size: 12px;
    }

    .release-item {
      margin-bottom: 50px;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 1s ease, transform 1s ease;
    }

    .release-item.visible {
      opacity: 1;
      transform: translateY(0);
    }

a {
  text-decoration: none;
  color: black;
  transition: color 0.3s ease;
}

a:hover {
  color: grey;
}

    .release-image {
      width: 100%;
      height: auto;
      object-fit: cover;
      display: block;
      margin-bottom: 12px;
  
    }

    iframe {
        border:none;
      width: 100%;
      height: 120px;
     
   
    }
    
    
    
    
    
    /* General fade-in for content */
.content-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.content-fade.visible {
  opacity: 1;
  transform: translateY(0);
}



#single-fading-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: auto; /* IMPORTANT: Changed to auto to allow clicks to pass through this container */
    z-index: -1;
    overflow: hidden;
}

.fading-image {
    position: absolute; /* Positioned within its parent wrapper (the dynamically created fixed div) */
    height: 70px; /* Fixed height as requested */
    width: auto; /* Maintain aspect ratio */
    opacity: 0; /* Start hidden (will be animated by JS) */
    transition: opacity 3s ease-in-out; /* 3-second fade transition for both fade-in and fade-out */
}

/* Ensure the link inside is also clickable, explicitly */
.fading-image + a { /* Targets an <a> tag immediately following an element with .fading-image if applicable */
    pointer-events: auto; /* Ensure the anchor itself is clickable */
}
/* If the image is *inside* the anchor, target the anchor directly */
.fading-image-wrapper a { /* Assuming a wrapper or direct link around the image, if not already handled by JS */
    pointer-events: auto;
}



/* Corruption Styles for Images (used by releases-funhouse-effects.js) */
.release-image.corrupted-blur {
    filter: blur(6px) brightness(1); /* Severe blur and slight darkening */
}

.release-image.corrupted-offset {
    transform: translate(30px, 40px); /* Severe offset */
}

/* Mouse Trail */
.mouse-trail-particle {
    position: fixed;
    background-color: rgba(138, 43, 226, 0.1); /* Subtle bluish-purple, very transparent */
    border-radius: 50%;
    width: 6px;
    height: 6px;
    opacity: 0;
    pointer-events: none; /* Crucial: ensures trail doesn't block clicks */
    transform: scale(0);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out; /* Smooth disappearance */
    z-index: 999; /* On top of most things */
}
.mouse-trail-particle.active {
    opacity: 0.5; /* Fade in */
    transform: scale(1);
}

/* Micro Movements */
.micro-movable {
    transition: transform 0.05s ease-out; /* Very quick transition for micro-movements */
}

/* Fixed Return Button */
.fixed-return {
    position: fixed;
    top: 80%;
    left: 100px;
    transform: translateY(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 30px;
    text-decoration: none;
    color: black;
    z-index: 100; /* Ensure return button is always on top */
}

/* Funhouse Return Button specific style */
.funhouse-return {
    color: #8A2BE2; /* Bluish-purple */
    animation: funhouseWobble 2s infinite alternate ease-in-out;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

@keyframes funhouseWobble {
    0% { transform: translateY(-50%) rotate(0deg); }
    25% { transform: translateY(-50%) rotate(2deg); }
    50% { transform: translateY(-50%) rotate(-2deg); }
    75% { transform: translateY(-50%) rotate(1deg); }
    100% { transform: translateY(-50%) rotate(0deg); }
}

/* Glitch Effect for Text (used by releases-funhouse-effects.js) */
.glitch-effect {
    position: relative;
    white-space: nowrap; /* Keep words on one line for better glitch effect */
    /* Original text color is visible by default */
}

.glitch-effect::before,
.glitch-effect::after {
    content: attr(data-text); /* Use the data-text attribute for pseudo-element content */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit; /* Inherit background from the parent (body/word's background) */
    overflow: hidden;
    color: #000; /* Display glitch layers in black for white background */
}

.glitch-effect::before {
    left: -2px;
    text-shadow: 1px 0 #FF00FF; /* Using magenta */
    animation: glitch-split 0.1s steps(2, start) infinite alternate-reverse;
}

.glitch-effect::after {
    left: 2px;
    text-shadow: -1px 0 #00FFFF; /* Using cyan */
    animation: glitch-split 0.1s steps(2, start) infinite alternate;
}

/* Keyframes for splitting effect on pseudo-elements (this is the main glitch motion) */
@keyframes glitch-split {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    20% {
        transform: translate(-5px, 2px);
        opacity: 0.8;
    }
    40% {
        transform: translate(5px, -3px);
        opacity: 1;
    }
    60% {
        transform: translate(-3px, 1px);
        opacity: 0.7;
    }
    80% {
        transform: translate(2px, -4px);
        opacity: 0.9;
    }
    100% {
        transform: translate(0, 0);
        opacity: 1;
    }
}


/* Base background for all pages, potentially overridden by body classes */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0; /* Starts invisible */
    z-index: -2;
    pointer-events: none;
    transition: opacity 2s ease; /* Smooth transition for background changes */
    animation: fadeInBackground 2s forwards; /* Initial fade in */
}

/* Keyframes for initial background fade-in animation */
@keyframes fadeInBackground {
    from { opacity: 0; }
    to { opacity: 0.2; } /* Fade to 20% opacity */
}

/* NEW: Dedicated Funhouse Releases Page Background */
body.corrupted-funhouse-page::before {
    background-image: url('images/jester-subtle-pattern.png'); /* A very subtle, abstract jester pattern for the funhouse page */
    opacity: 0.08; /* Slightly more visible than the subtle one for regular corrupted pages */
    filter: grayscale(0.9) hue-rotate(200deg) contrast(1.2); /* More intense grayscale, color shift, and contrast */
    animation: fadeInBackground 2s forwards, subtleBackgroundShift 30s infinite alternate linear; /* Also add a subtle shift */
}

@keyframes subtleBackgroundShift {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}