/* css/mainstyle.css — FINAL: BLACK MENU + FULL STAR VISIBILITY + OPACITY CONTROL */

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


html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: 'Ethnocentric', 'Arial Narrow', sans-serif;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  image-rendering: crisp-edges;
}

/* LOAD ETHNOCENTRIC FONT — PERFECT CYBERPUNK LOOK */
@font-face {
  font-family: 'Ethnocentric';
  src: url('../assets/fonts/ethnocentricrg.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ethnocentric';
  src: url('../assets/fonts/ethnocentricrgit.otf') format('opentype');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}


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

/* APPLY ETHNOCENTRIC TO EVERYTHING */
* {
  font-family: 'Ethnocentric', 'Orbitron', sans-serif;
}

/* Make sure dialogue box uses it too */
#dialogueBox,
#mobileMenu,
.menu-content,
.dialogue-content,
.highlight {
  font-family: 'Ethnocentric', sans-serif !important;
}

/* BLUE HIGHLIGHT — GLOW BLUE → WHITE ON HOVER */
.highlight {
  color: #0088ff;
  font-weight: 900;
  text-shadow: 
    0 0 20px #0088ff,
    0 0 40px rgba(0,136,255,0.6);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  display: inline-block;
}

/* HOVER — TURNS PURE WHITE + INTENSE GLOW */
.highlight:hover {
  color: #0088ff;
  text-shadow: 
    0 0 30px white,
    0 0 60px white,
    0 0 90px rgba(255,255,255,0.8);
  transform: scale(1.05);
}

canvas#spaceCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0; /* Canvas behind everything */
}

/* Breathing glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: breathe 12s infinite ease-in-out;
  z-index: 1;
}

@keyframes breathe {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}
/* BURGER MENU — ALWAYS VISIBLE + EPIC HOVER EFFECT */
#burgerMenu {
  position: fixed;
  top: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  cursor: pointer;
  z-index: 100000;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* HOVER — DEEP BLUE BACKGROUND + WHITE GLOW */
#burgerMenu:hover {
  background: #000;
  box-shadow: 
    0 0 30px rgba(0, 0, 153, 0.9),
    0 0 60px rgba(255, 255, 255, 0.6);
  transform: scale(1.12);
}

/* THE 3 LINES */
#burgerMenu span {
  display: block;
  width: 36px;
  height: 4px;
  background: white;
  margin: 4px 0;
  border-radius: 4px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 2px 8px rgba(255,255,255,0.4);
}

/* HOVER — LINES GET STRONGER GLOW */
#burgerMenu:hover span {
  background: white;
  box-shadow: 0 0 20px white;
}

/* ACTIVE (OPEN) STATE — X ANIMATION */
#burgerMenu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}
#burgerMenu.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-30px);
}
#burgerMenu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* EXTRA GLOW WHEN MENU IS OPEN + HOVERED */
#burgerMenu.active:hover {
  box-shadow: 
    0 0 40px rgba(0, 0, 153, 1),
    0 0 90px rgba(255, 255, 255, 0.8);
  transform: scale(1.15);
}

/* MENU PANEL — FULLY SEE-THROUGH TO STARS */
#mobileMenu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 420px;
  height: 100vh;

  /* CHANGE THIS ONE NUMBER — 0.0 = 100% transparent, 0.9 = almost solid */
  background: rgba(0, 0, 0, 0.2); /* ← YOU CONTROL THIS (0.1 to 0.9) */

  /* Heavy blur so stars look dreamy behind it */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(30px);

  /* Soft white outer glow — kept exactly as you wanted */
  border-left: 1px solid rgba(255,255,255,0.4);
  box-shadow: -40px 0 120px rgba(255,255,255,0.4);

  z-index: 99999;
  transition: right 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 90px 50px 50px;
  overflow-y: auto;
  pointer-events: auto;
}

#mobileMenu.active {
  right: 0;
}

/* Close button */
.close-menu {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: 3px solid white;
  color: white;
  font-size: 46px;
  font-weight: 100;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.4s ease;
 /*  display: flex; */
    display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(255,255,255,0.5);
}

.close-menu:hover {
  background: rgba(255,255,255,0.15);
  transform: scale(1.15);
  box-shadow: 0 0 60px rgba(255,255,255,0.8);
}

/* Menu content */
.menu-content h2 {
  color: white;
  font-size: 42px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 0 0 40px rgba(255,255,255,0.9);
  letter-spacing: 3px;
}

.menu-content ul { list-style: none; padding: 0; }
.menu-content li { margin: 25px 0; text-align: center; }

.menu-content a {
  color: white;
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  display: block;
  padding: 15px;
  border-radius: 12px;
  transition: all 0.4s ease;
}

.menu-content a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,0.2);          /* reduced from 30px */
  background: rgba(255, 255, 255, 0.06);               /* less bright fill */
  transform: translateY(-6px);
  
  border: 1px solid rgba(255, 255, 255, 0.4);          /* softer border */
  border-radius: 20px;
  
  /* MUCH SOFTER, MORE ELEGANT GLOW */
  box-shadow: 
    0 8px 20px rgba(255, 255, 255, 0.12),   /* reduced spread & opacity */
    0 0 20px rgba(255, 255, 255, 0.08);     /* very subtle outer glow */
  
  transition: all 0.4s ease;
}

@media (max-width: 480px) {
  #burgerMenu { top: 20px; right: 20px; }
  .menu-content h2 { font-size: 36px; }
  .menu-content a { font-size: 24px; }
}