/* Theme Toggle Styles */
.theme-toggle {
  position: fixed;
  bottom: 60px;
  right: 15px;
  z-index: 1000000;
  background: var(--branding);
  color:black;
  border: 2px solid black;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 255, 224, 0.5),
              0 0 20px rgba(0, 255, 224, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  outline: none;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 255, 224, 0.7),
              0 0 25px rgba(0, 255, 224, 0.5);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

/* Animation */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.theme-toggle.animate {
  animation: pulse 0.5s ease;
}

        
/* CSS: use visibility/opacity so animations run */
  #helpOverlay {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%) perspective(1000px);
    width: 97%;
    max-width: 600px;
    height: auto;
    max-height:85%;
    background: var(--backgroung);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--branding);
    border-radius: 10px 10px 0 0;
    z-index: 9999;
    overflow-x: hidden;
    overflow-y:auto;
    opacity: 5;
    pointer-events: none;/*
    box-shadow: 0 -20px 50px rgba(150, 201, 61, 0.3);*/
  }

  /* Particle Background */
  .particle-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
  }

  /* Mind-Blowing Animations */
  #helpOverlay.show {
    animation: cosmicReveal 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: auto;
  }

  @keyframes cosmicReveal {
    0% {
      opacity: 0;
      transform: translateX(-50%) translateY(100%) rotateX(80deg) scale(0.7);
    }
    20% {
      opacity: 0.8;
      transform: translateX(-50%) translateY(20%) rotateX(30deg) scale(1.1);
    }
    40% {
      transform: translateX(-50%) translateY(-5%) rotateX(-10deg) scale(0.95);
    }
    60% {
      transform: translateX(-50%) translateY(0) rotateX(5deg) scale(1.02);
    }
    100% {
      opacity: 1;
      transform: translateX(-50%) translateY(0) rotateX(0) scale(1);
    }
  }

  #helpOverlay.hide {
    animation: cosmicExit 0.8s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
  }

  @keyframes cosmicExit {
    0% {
      opacity: 1;
      transform: translateX(-50%) translateY(0) rotateX(0);
    }
    100% {
      opacity: 0;
      transform: translateX(-50%) translateY(100%) rotateX(80deg);
    }
  }

  /* Enhanced Content Styling */
  .help-content {
    padding: 30px;
    color: var(--light-text);
    height: 100%;
    overflow-y: auto;
  }

  .help-content h3 {
    font-size: 1.4rem;
    margin: 15px 0;
    background: linear-gradient(to right, var(--branding), #00b09b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
  }

  .help-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
  }

  /* Futuristic Close Button */
  .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
  }

  .close-btn:hover {
    background: rgba(255, 107, 107, 0.4);
    transform: rotate(90deg);
  }

  
  li {
      margin-bottom:9px;
  }

  ol, ul {
    line-height:1rem; 
    padding-left: 20px;
    font-size:0.85rem;
  }