/* ==================================================================
   INFO BANNER - Fully Responsive (Mobile + Desktop)
   ================================================================== */
#info-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96%;
  max-width: 440px;               /* Comfortable reading width on phones */
  max-height: 92vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  border: 0px solid rgba(249, 115, 22, 0.5);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-sizing: border-box;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0);
}

#info-banner.active {
  opacity: 1;
  visibility: visible;
}

/* Desktop ≥1024px → restore your original elegant right-side panel */
@media (min-width: 1024px) {
  #info-banner {
    left: auto;
    right: -29.2%;
    top: 1%;
    bottom: 1%;
    width: 29%;
    height: auto;
    min-height: 85%;
    max-width: none;
    max-height: none;
    transform: translateX(100%);
    border-radius: 20px 0 0 20px;
  }
  #info-banner.active {
    transform: translateX(-100%);
  }
}

@media (min-width: 1440px) {
  #info-banner { width: 35%; right: -35%; }
}

/* Scrollable area inside the banner */
#banner-content {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: #f97316 transparent;
}

#banner-content::-webkit-scrollbar {
  width: 6px;
}
#banner-content::-webkit-scrollbar-track {
  background: transparent;
}
#banner-content::-webkit-scrollbar-thumb {
  background: #f97316;
  border-radius: 3px;
}
#banner-content::-webkit-scrollbar-thumb:hover {
  background: #ea580c;
}

/* Close button - perfect on mobile & desktop */
/* Ensure close button is always visible and perfectly placed */
#close-btn {
  position: absolute;
  top: 1rem;          /* 16px from top */
  left: 1rem;         /* 16px from left */
  z-index: 10001;
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid rgba(249, 115, 22, 0.5);
}

#close-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.2);
  border-color: #f97316;
}

#close-btn img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1); /* makes it pure white */
}

/* On very large screens, you can make it slightly bigger if you want */
@media (min-width: 1280px) {
  #close-btn {
    width: 36px;
    height: 36px;
  }
  #close-btn img {
    width: 30px;
    height: 30px;
  }
}

/* Clean images & videos inside the banner */
#banner-content img {
  max-width: 35%;
  height: auto;
  border: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  margin: 0;
}

#banner-content video {
  width: 100%;
  max-height: 60vh;
  border-radius: 1rem;
  background: #000;
  margin: 1.5rem 0;
}

.extradescription-panel {
  padding-left: 1rem;
  border-left: 4px solid #f97316;
  margin: 1.8rem 0;
  line-height: 1.7;
}

/* ==================================================================
   YOUR ORIGINAL CODE BELOW — 100% UNTOUCHED & PRESERVED
   ================================================================== */

/* 5. Hide state (when loading is complete) */
.loaded #preloader-overlay {
    opacity: 0;
    visibility: hidden; /* Ensures it's gone from accessibility tree */
    pointer-events: none; /* Crucial: allows clicks and interaction with the canvas underneath */
}

/* ==================================================
   HAMBURGER MENU (Top-left, fixed position)
   ================================================== */
#hamburger-menu {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 40px;
  height: 35px;
  z-index: 9000;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px;
  border-radius: 5px;
  background: transparent;
  transition: transform 0.2s ease;
}

#hamburger-menu .bar {
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==================================================
   SIDE NAVIGATION (Vertical buttons on left)
   ================================================== */
#side-nav {
  position: fixed;
  left: -56px;
  top: 65%;                              /* LOWER on screen */
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6rem;                           /* BIG SPACING between buttons */
  z-index: 50;
  transition: transform 0.35s ease;
  padding: 0 0 2rem 0;                   /* Prevent touching bottom */
}

#side-nav > div {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* --- OPEN: Buttons 8px from edge --- */
#side-nav.is-open {
  transform: translateY(-50%) translateX(8px);
}

/* --- CLOSED: Buttons hidden, dot visible --- */
#side-nav.is-closed {
  transform: translateY(-50%) translateX(-45px);
}

#side-nav.is-closed > div {
  opacity: 0;
  pointer-events: none;
}

/* White dot when closed */
#side-nav.is-closed::before {
  content: "";
  position: absolute;
  right: -0.5rem;                        /* 8px inside screen */
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 5px white, 0 0 10px rgba(255, 255, 255, 0.5);
  z-index: 10;
}

#side-nav.is-open::before {
  opacity: 0;
}