a {
    scroll-behavior: smooth;
  }
  body {
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.5s, color 0.5s;
}

#sidebar {
  transition: transform 0.6s ease, box-shadow 0.3s ease;
}

.glass {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.6);
}
      html {
        scroll-behavior: smooth;
      }
  
      .icon-small {
        font-size: 1.25rem;
      }
      
      [data-theme="light"] #sidebar {
        background-color: #ffffff;
        color: #1F2937;
        border-right: 1px solid #e5e7eb;
      }
      
      [data-theme="light"] #sidebar h2 {
        color: #1F2937;
      }
      
      [data-theme="light"] #sidebar a:hover {
        color: #3B82F6;
      }
      
      [data-theme="light"] #sidebar .border-b {
        border-color: #e5e7eb;
      }
  
      [data-theme="dark"] .list-disc,
      [data-theme="dark"] .list-disc li {
        color: #F9FAFB;
      }
      
      [data-theme="dark"] {
        background-color: #111827;
        color: #F9FAFB;
      }
  
      [data-theme="dark"] .bg-white,
      [data-theme="dark"] .bg-gray-100 {
        background-color: #1F2937;
      }
  
      [data-theme="dark"] .text-gray-800,
      [data-theme="dark"] .text-gray-700,
      [data-theme="dark"] .text-gray-500 {
        color: #E5E7EB;
      }
  
      [data-theme="dark"] .discord-btn:hover {
        background-color: #374151;
      }

      [data-theme="dark"] .discord-btn {
        background-color: #5865F2;
        color: white;
      }
      
      [data-theme="dark"] .discord-btn:hover {
        background-color: #4752C4;
      }
      
      [data-theme="light"] .discord-btn {
        background-color: #4F46E5;
        color: white;
      }
      
      [data-theme="light"] .discord-btn:hover {
        background-color: #4338CA;
      }
      
      [data-theme="light"] .discord-btn .fa-discord {
        color: white;
      }
      
      [data-theme="light"] .discord-btn .font-medium {
        color: white;
      }
  
      .discord-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        width: 100%;
        border-radius: 0.375rem;
        font-weight: 500;
        transition: background-color 0.3s, color 0.3s, transform 0.2s;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      }
  
      .discord-btn:hover {
        background-color: #4752C4;
      }
  
      .glass {
        backdrop-filter: blur(10px);
        background-color: rgba(255, 255, 255, 0.6);
      }
  
      [data-theme="dark"] .glass {
        background-color: rgba(31, 41, 55, 0.6);
      }
      .sidebar-link:hover {
    background-color: #374151;
    border-radius: 4px;
  }
  .sidebar-link.active {
    background-color: #1F2937;
  }
  button:hover, .discord-btn:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  }
  .card {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
  }
#content {
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

#content.show-content {
  display: block;
  opacity: 1;
}

#loading-screen {
  transition: opacity 0.8s ease-out;
}
.chapter-toggle .arrow {
  transition: transform 0.3s ease;
}

.chapter-toggle.open .arrow {
  transform: rotate(180deg);
}

.subheaders {
  display: none;
}

.subheaders.hidden {
  display: none;
}

.subheaders:not(.hidden) {
  display: block;
  transition: max-height 0.3s ease, padding 0.3s ease;
  max-height: 1000px;
  padding-left: 10px;
}

.subheaders a {
  padding: 5px 0;
  display: block;
  text-indent: 10px;
}

.chapter-link {
  padding: 5px 0;
}

.chapter-toggle a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chapter-toggle a .arrow {
  margin-left: auto;
}

.scrollbar-hidden::-webkit-scrollbar {
  display: none;
}

.scrollbar-hidden {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%
  );
  animation: vertical-shine 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes vertical-shine {
  0% {
    top: -100%;
  }
  100% {
    top: 100%;
  }
}
details div pre code {
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: pre-wrap;
}

@media (max-width: 640px) {
  .text-sm {
    font-size: 0.875rem;
  }
  .text-xs {
    font-size: 0.75rem;
  }
}

@keyframes explosion {
  0% {
      transform: scale(1) rotate(0deg);
      opacity: 1;
  }
  50% {
      transform: scale(1.5) rotate(180deg);
      opacity: 0.5;
  }
  100% {
      transform: scale(0) rotate(360deg);
      opacity: 0;
  }
}

.explosion-effect {
  animation: explosion 1s ease-out;
  transform-origin: center;
  pointer-events: none;
}

#update-box {
  background-color: #f3f4f6;
  color: #1f2937;
  border-color: #d1d5db;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

#update-box h3 {
  color: #111827;
}

#update-box p {
  color: #4b5563;
}

#update-box button i {
  color: #374151;
}

#update-box button:hover {
  background-color: #e5e7eb;
}

[data-theme="dark"] #update-box {
  background-color: #0f172a;
  color: #f9fafb;
  border-color: #1e293b;
  box-shadow: 0 4px 10px rgba(0,0,0,0.7);
}

[data-theme="dark"] #update-box h3 {
  color: #f9fafb;
}

[data-theme="dark"] #update-box p {
  color: #d1d5db;
}

[data-theme="dark"] #update-box button i {
  color: #d1d5db;
}

[data-theme="dark"] #update-box button:hover {
  background-color: #374151;
}

 #update-box button:hover {
  background-color: transparent !important;
  transform: none !important;
}