:root {
  --bg-dark: #0d0d0d;
  --text-light: #e0e0e0;
  --accent-violet: rgba(0, 255, 0, 0.3);
  --accent-cyan: rgba(0, 255, 0, 0.3);
  --panel-gray: #2e2e2e;
  --hover-glow: 0 0 8px rgba(0, 255, 0, 0.3);
  --font-main: 'Comic Sans MS', cursive, sans-serif;
  --border-radius: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: var(--font-main);

  scroll-behavior: smooth;
  text-align: center;

}

/* Static VHS Noise */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  animation: vhsLinesMove 0.3s linear infinite;
  opacity: 0.3;
}
@keyframes vhsLinesMove {
  0% { background-position: 0 0; }
  100% { background-position: 0 4px; }
}



/* === SIDEBAR === */
.sidebar {
  width: 260px;
  background-color: #191919;
  border-right: 2px solid var(--accent-violet);
  box-shadow: inset -2px 0 4px rgba(0,0,0,0.5);
  color: var(--text-light);
  padding-top: 30px;
}
.sidebar h2 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--accent-violet);
}

/* Navigation Links */
.nav-link {
  color: var(--text-light);
  background-color: transparent;
  border: none;
  padding: 10px 18px;
  border-radius: var(--border-radius);
  margin: 8px 0;
  transition: all 0.3s ease;
}
.nav-link:hover {
  background-color: rgba(0, 255, 255, 0.1);
  box-shadow: var(--hover-glow);
}

/* === MAIN CONTENT === */
.main {
  flex: 1;
  padding: 30px;
}
.content {
  max-width: 1000px;
z-index: 5;
border: 2px solid var(--accent-cyan);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.05);
}

/* === HEADER === */
.header {
  padding: 12px 24px;
  background-color: #191919;
  border-bottom: 2px solid var(--accent-cyan);
  box-shadow: 0 2px 10px rgba(138, 43, 226, 0.1);
  z-index: 100;
}
.header-stuff h1 {
  font-size: 24px;
  color: var(--accent-violet);
}

/* === FOOTER === */
.footer {
  background: #191919;
  padding: 50px 20px;
  border-top: 2px solid var(--accent-cyan);
  box-shadow: 0 2px 10px rgba(138, 43, 226, 0.1);
}
.footer .social-links a {
  color: var(--accent-cyan);
  margin: 0 10px;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.footer .social-links a:hover {
  transform: scale(1.1);
  text-shadow: var(--hover-glow);
}
.dropdown {
  position: relative;
  display: inline-block;
  z-index: 20;
}

/* Items (Dropdown Menu) */
.items {
  background-color: #102818; /* deeper dark green */
  border-radius: 18px;
  border: 2px solid rgba(0, 255, 0, 0.3);
  box-shadow:
    0 0 12px rgba(0, 255, 0, 0.1),
    0 0 30px rgba(0, 255, 0, 0.05),
    inset 0 0 10px rgba(0, 255, 100, 0.1);
  backdrop-filter: blur(6px);
  animation: dropdownFade 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 0;
  width: 240px;
}


@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown:hover .items,
.dropdown:focus-within .items {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Links inside dropdown */
.items a {
  color: #d0f7ce;
  text-decoration: none;
  font-family: 'Special Elite', cursive;
  font-size: 14px;
  padding: 10px 20px;
  transition: all 0.25s ease;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.items a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(100, 255, 100, 0.07);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}

.items a:hover::before,
.items a:focus-visible::before {
  opacity: 1;
}

.items a:hover,
.items a:focus-visible {
  color: #caff73;
  background-color: #1c3212;
  box-shadow: 0 0 6px rgba(128, 255, 100, 0.2);
  outline: none;
  z-index: 1;
}

/* Dropdown Buttons (activators) */
.dropdown-btn, .dropdown-btn-h, .nav-link {
  all: unset;
  display: block;
  width: 90%;
  margin: 10px auto;
  padding: 12px 18px;
  font-family: 'Special Elite', cursive;
  font-size: 14px;
  color: #d8d6cc;
  background: linear-gradient(90deg, #203220, #1e3826);
  border: 1px solid rgba(80, 255, 80, 0.1);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  position: relative;
}

.dropdown-btn:hover,
.dropdown-btn:focus-visible,
.dropdown-btn-h:hover,
.dropdown-btn-h:focus-visible, .nav-link {
  background: #2a4c22;
  color: #8fbf3f;
  box-shadow: 0 0 8px rgba(0, 255, 34, 0.2);
  outline: none;
}

/* === BACKGROUND === */
.background {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url('/Enigmatic-Website/MEDIA/Default.ico') center/cover no-repeat;
  filter: blur(8px) brightness(0.4);
  animation: zoomRotate 60s infinite linear;
}
@keyframes zoomRotate {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.05) rotate(1deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* === SCROLL TO TOP === */
#myBtn {
  position: fixed;
  bottom: 20px;
  right: 30px;
  background: var(--panel-gray);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--border-radius);
  padding: 12px;
  font-size: 18px;
  box-shadow: var(--hover-glow);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
}
#toggleSidebarBtn {
  position: fixed;
  top: 0;
  left: 16px;
  z-index: 100;
  background: var(--panel-gray);
  color: var(--accent-cyan);
  box-shadow: var(--hover-glow);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--border-radius);
  padding: 5px 16px;
  font-family: 'Comic Sans', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
#myBtn.show {
  opacity: 1;
  pointer-events: auto;
}
#myBtn:hover {
  background: var(--accent-violet);
  color: white;
}

/* Nested sidebar dropdown colors */
.sidebar .dropdown-content {
  background-color: #0f210d;
  border-radius: 30px;
}

.sidebar .dropdown-content .dropdown-content {
  background-color: #1c421b;
  border-radius: 30px;
}

.sidebar .dropdown-content .dropdown-content .dropdown-content {
  background-color: #255d1f;
  border-radius: 30px;
}

.sidebar .dropdown-content .dropdown-content .dropdown-content .dropdown-content {
  background-color: #326e29;
  border-radius: 30px;
}