/* ============================
   CSS Variables (for easy theme updates)
   ============================ */
:root {
  --primary-color: #00ffff;
  --accent-color: #ff66cc;
  --hover-bg: rgba(255, 255, 255, 0.2);
  --overlay-bg: rgba(0, 0, 0, 0.6);
  --menu-bg: rgba(0, 0, 0, 0.85);
  --text-shadow-hl: 0 0 8px;
  --text-shadow-l: 0 0 4px;
  --font-family: 'Share Tech Mono', monospace;
}

/* ============================
   Reset & Base Styles
   ============================ */
body {
  margin: 0;
  padding: 0.5rem;
  font-family: var(--font-family);
  font-size: 0.85rem;
  background-color: #0d0d0d;
  color: #f5f5f5;
}

/* ============================
   Menu Toggle Button
   ============================ */
#menu-toggle {
  position: fixed;
  top: 20px;        
  left: 25px;        
  background: var(--overlay-bg);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 40px;
  cursor: pointer;
  z-index: 1000;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}
#menu-toggle:hover {
  background: var(--hover-bg);
}

/* ============================
   Menu Panel
   ============================ */
#menu-panel {
  position: fixed;
  top: 10%;              
  left: -260px;         
  width: 240px;
  height: 80vh;           
  background: var(--menu-bg);
  color: #fff;
  padding: 20px;
  box-shadow: 3px 0 15px rgba(0, 0, 0, 0.5);
  z-index: 999;
  backdrop-filter: blur(5px);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 12px;    
  transition: left 0.4s ease;
  box-sizing: border-box;
}

/* Slide-in when open */
#menu-panel.open {
  left: 0;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
  #menu-panel {
    width: 80%;
    left: -100%;     
    top: 10%;
    height: 80vh;
    border-radius: 12px;
    transition: left 0.4s ease;
  }
  #menu-panel.open {
    left: 10%;        
  }
  #menu-toggle {
    left: 15px;       
    top: 15px;
  }
}


/* Styles for menu content */
#menu-panel h3 {
  margin-top: 0;
  font-size: 1.5em;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
}
#menu-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#menu-panel li {
  margin: 10px 0;
}
#menu-panel a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.3em;   
  line-height: 1.5;
}
#menu-panel a:hover {
  color: #fff;
  text-decoration: underline;
}


/* ============================
   Starfield Canvas
   ============================ */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* behind everything */
  pointer-events: none; /* pass-through clicks */
}

/* ============================
   Main Slide Container
   ============================ */
.reveal {
  position: relative;
  z-index: 1;
  font-size: 100%;
  max-width: 100vw;
  max-height: 100vh;
  overflow: visible !important;
}

/* ============================
   Slides Layout
   ============================ */
.slides {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 95vh;
  padding-bottom: 2rem;
}

/* ============================
   Slide Titles and Content
   ============================ */
.reveal h1,
.reveal h2 {
  font-size: 1.8rem;
  margin: 0.2rem 0 0.5rem;
  color: var(--accent-color);
  text-shadow: var(--text-shadow-hl) #ff66cc;
}

.reveal p {
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 180%;
  margin: 0.8rem auto;
  color: #ffffff;
  text-shadow: var(--text-shadow-l) #00ffff;
}

/* ============================
   Images (Hero & Comic)
   ============================ */
.intro-img {
  width: 100%;
  max-width: 400px;
  max-height: 45vh;
  height: auto;
  display: block;
  margin: 2rem auto 3rem auto;
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  box-shadow: 0 0 10px var(--accent-color);
  object-fit: contain; 
}

.hero-img {
  width: 80%;
  max-width: 300px;
  max-height: 35vh;
  display: block;
  margin: 2rem auto 3rem auto;
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  box-shadow: 0 0 10px var(--accent-color);
  object-fit: contain;
}

/* ============================
   Universal Image Overlay 
   ============================ */
#zoom-overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 2000;
  overflow: hidden; 
  transition: opacity 0.3s ease;
}

#zoom-overlay.show {
  display: flex;
  opacity: 1;
}

#zoom-container {
  position: relative;
  overflow: auto;         
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 0 35px rgba(0, 255, 255, 0.3);
  background: rgba(0,0,0,0.2);
}

/* zoomed image itself */
#zoomed-img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  transform: scale(1);
  cursor: grab;
}

/* close button */
#zoom-close {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease;
  z-index: 2001;
}
#zoom-close:hover {
  opacity: 0.6;
}

/* zoom controls bottom-left */
#zoom-controls {
  position: fixed;
  bottom: 30px;
  left: 30px;
  display: flex;
  gap: 16px;
  z-index: 2001;
}

#zoom-controls button {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 24px;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
#zoom-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* responsive adjustments */
@media (max-width: 800px) {
  #zoom-controls {
    bottom: 20px;
    left: 20px;
  }
  #zoom-controls button {
    font-size: 20px;
    padding: 6px 10px;
  }
}

.reveal section img {
  cursor: zoom-in;
  transition: transform 0.3s ease;
}


/* ============================
   Fullscreen Button
   ============================ */
#fullscreen-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1002;
  padding: 0.4rem 1rem;
  font-size: 1rem;
  background: var(--primary-color);
  border: none;
  border-radius: 8px;
  color: #111;
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-color);
  transition: background 0.3s, box-shadow 0.3s;
}
#fullscreen-btn:hover {
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 0 12px var(--primary-color);
}

/* ============================
   Navigation Buttons
   ============================ */
.navigate-left,
.navigate-right {
  position: fixed !important;
  bottom: 3.5rem !important;
  font-size: 1.1rem !important;
  width: 1.3rem !important;
  height: 1.3rem !important;
  color: #ffe100 !important;
  text-shadow: 0 0 8px #ffcc00;
  transition: text-shadow 0.3s;
  pointer-events: auto;
  z-index: 1001;
}

/* Positions */
.navigate-left {
  left: 2rem !important;
}
.navigate-right {
  right: 2rem !important;
}

/* Hover glow effect */
.navigate-left:hover,
.navigate-right:hover {
  color: #ffffff !important;
  text-shadow: 0 0 15px #ffcc00;
}

/* ============================
   Footer
   ============================ */
footer {
  position: fixed;
  bottom: 0.3rem;
  width: 100%;
  text-align: center;
  font-size: 1rem;
  color: #ffffff;
  text-shadow: 0 0 15px #ff66cc;
  z-index: 1001;
}

/* ============================
   Responsive adjustments
   ============================ */
@media screen and (max-width: 768px) {
  .reveal p {
    font-size: 2rem;
    line-height: 1.6;
    max-width: 80%;
    margin: 1rem auto;
  }
}

