body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Comic Neue", "Comic Sans MS", cursive, sans-serif;
  color: #FFFFFF;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 10, 10, 0.9);
  border-radius: 5px;
  backdrop-filter: blur(8px);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #1aff00, #00ff88);
  border-radius: 5px;
  border: 2px solid rgba(10, 10, 10, 1);
  box-shadow: 0 0 10px rgba(26, 255, 0, 0.5);
  transition: all 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #00ff88, #1aff00);
  box-shadow: 0 0 20px rgba(26, 255, 0, 0.8);
}

::-webkit-scrollbar-thumb:active {
  background: #1aff00;
  box-shadow: 0 0 25px rgba(26, 255, 0, 1);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #1aff00 rgba(10, 10, 10, 0.9);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#video-background {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -3;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -2;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.51);
  padding: 10px 0;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline;
  margin: 0 20px;
}

nav ul li a {
  color: #1aff00;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #ff0000;
}

section {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 50px 20px;
  position: relative;
  background: rgba(0, 0, 0, 0.72);
  margin: 0 auto;
  height: 100vh;
  width: 100%;
  overflow-y: auto;
  scroll-snap-align: start;
}

section div {
  width: 75%;
  max-width: 800px;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 10px;
  max-height: 244px;
  overflow-y: auto;
}

#play-music-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 15px;
  background-color: #1aff00;
  color: black;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  z-index: 10;
  font-weight: bold;
  font-size: 16px;
}

#nav-toggle {
  display: none;
  position: fixed;
  top: 10px;
  right: 15px;
  z-index: 200;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

#nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #1aff00;
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 0 6px rgba(26,255,0,0.6);
}

#nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#nav-toggle.open span:nth-child(2) { opacity: 0; }
#nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) {

  html {
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }

  #nav-toggle { display: flex; }

  /* Tint strip behind hamburger */
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: rgba(0, 0, 0, 0.75);
    z-index: 98;
    pointer-events: none;
  }

  nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 99;
    padding: 0;
    background: transparent !important;
    box-shadow: none !important;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.97);
    padding: 56px 0 16px 0;
    width: 100%;
    border-bottom: 1px solid #1aff0033;
    /* Dropdown animation */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.35s ease, opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
  }

  nav ul.open {
    max-height: 600px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  nav ul li {
    display: block;
    margin: 0;
    width: 100%;
    border-bottom: 1px solid #1aff0011;
  }

  nav ul li a {
    display: block;
    padding: 13px 20px;
    font-size: 15px;
  }

  section {
    display: flex !important;
    height: 100vh !important;
    padding: 55px 10px 115px 10px !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background: transparent !important;
  }

  section div {
    width: 96% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: calc(100vh - 200px) !important;
    padding: 16px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    text-align: center !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
    scrollbar-color: #1aff00 rgba(10,10,10,0.9) !important;
    /* Visible box */
    background: rgba(0, 0, 0, 0.82) !important;
    border: 1px solid rgba(26, 255, 0, 0.25) !important;
    border-radius: 10px !important;
  }

  section div::-webkit-scrollbar {
    width: 5px !important;
  }

  section div::-webkit-scrollbar-track {
    background: rgba(10,10,10,0.9) !important;
    border-radius: 5px !important;
  }

  section div::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1aff00, #00ff88) !important;
    border-radius: 5px !important;
    box-shadow: 0 0 6px rgba(26,255,0,0.6) !important;
  }

  section div h1 { font-size: 20px; margin-bottom: 10px; }
  section div h2 { font-size: 15px; margin-bottom: 8px; }
  section div p  { font-size: 13px; margin-bottom: 10px; }

  #music-select {
    position: fixed !important;
    bottom: 58px !important;
    right: 10px !important;
    left: 10px !important;
    width: calc(100% - 20px) !important;
    font-size: 13px !important;
    z-index: 13 !important;
  }

  #play-music-btn,
  #pause-music-btn {
    position: fixed !important;
    bottom: 10px !important;
    right: 10px !important;
    left: 10px !important;
    width: calc(100% - 20px) !important;
    text-align: center !important;
    font-size: 14px !important;
    padding: 12px !important;
    border-radius: 6px !important;
  }

  ::-webkit-scrollbar { width: 4px; }
}

@media (max-width: 400px) {
  section div { font-size: 12px; padding: 10px; }
  section div h1 { font-size: 17px; }
  nav ul li a { font-size: 14px; padding: 11px; }
}