@import url('https://fonts.googleapis.com/css2?family=Koh+Santepheap&display=swap');

.font-koh {
  font-family: 'Koh Santepheap', serif;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #00ffaa transparent;

}

/* ===== GLOBAL SCROLLBAR (transparent style) ===== */
::-webkit-scrollbar {
  width: 8px;
  background: transparent;
  /* Transparent scrollbar track */
}

::-webkit-scrollbar-track {
  background: transparent;
  /* Transparent background */
}

::-webkit-scrollbar-thumb {
  background-color: #00ffaa;
  /* Neon color thumb */
  border-radius: 10px;
  border: 2px solid transparent;
  /* Optional: gap around thumb */
  background-clip: padding-box;
}

/* Hover effect on scrollbar thumb */
::-webkit-scrollbar-thumb:hover {
  background-color: #00ffcc;
}



body {
  margin: 0;
  font-family: "Share Tech Mono", monospace;
  background-color: #0a0a0a;
  color: #00ffcc;
  line-height: 1.6;
  background-image: radial-gradient(circle at top left, #1a1a1a, #000000);
}

header {
  background: linear-gradient(to right, #000000, #1f1f1f);
  padding: 1rem 1rem 1rem;
  text-align: center;
  border-bottom: 2px solid #00ffcc;
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

header h1 {
  font-size: 4rem;
  color: #ff0044;
  text-shadow: 0 0 5px #ff0044, 0 0 10px #ff0044;
  margin-bottom: -0.8rem;
}

.tagline {
  color: #ffffff;
  font-size: 1.5rem;
  margin-top: 0rem;
}

section {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
  animation: fadeIn 1.5s ease-in;
}

h2 {
  color: #ffcc00;
  margin-bottom: 1rem;
}

.features-box-wrapper {
  min-width: 90%;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.features-box,
.info-box {
  flex: 1;
  min-width: 280px;
  background: #111;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 2px rgba(0, 255, 204, 0.2);
}

.info-box code {
  background-color: #000;
  padding: 2px 6px;
  border-radius: 4px;
  color: #00ffaa;
}

.features-box ul {
  list-style: square;
  padding-left: 1.5rem;
}

.download {
  background-color: #111;
  border: 1px solid #00ffcc;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 2rem;
  text-align: center;
}

.download a {
  color: #00ffcc;
  text-decoration: none;
  display: inline-block;
  margin: 0.5rem 1rem;
  padding: 0.5rem 1rem;
  border: 1px solid #00ffcc;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.download a:hover {
  background-color: #00ffcc;
  color: #000;
}

.vog {
  height: 38.5px !important;
  min-width: 190px !important;
}

.gitlogo {
  position: absolute;
  margin-top: 0px;
  margin-left: 5px;
  width: 24px;
}

.dropdown-container {
  display: inline-flex;
  border: 1px solid #00ffcc;
  border-radius: 6px;
  overflow: hidden;
  margin: 1rem auto;
  background-color: #111;
  min-width: 414px !important;
}

.download-split-btn,
.dropdown-toggle {
  font-family: "Share Tech Mono", monospace;
  background-color: transparent;
  color: #00ffcc;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.download-split-btn-1 {
  font-family: "Share Tech Mono", monospace;
  background-color: transparent;
  color: #00ffcc;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.download-split-btn:hover,
.dropdown-toggle:hover {
  background-color: #00ffcc;
  color: #000;
}

.dropdown-toggle {
  border-left: 1px solid #00ffcc;
  width: 44px;
}

.dropdown-menu {
  position: absolute;
  background-color: #111;
  border: 1px solid #00ffcc;
  border-radius: 12px;
  /* more rounded */
  padding: 8px;
  margin-top: 2.35rem;
  margin-left: 2px;
  width: 205px !important;
  list-style: none;
  display: none;
  z-index: 999;
  box-shadow: 0 8px 16px rgba(0, 255, 204, 0.2);
  /* soft glow like iOS */
  max-height: 200px;
  /* maximum height */
  overflow-y: auto;
  /* scroll inside if too many */
  animation: dropdownFade 0.3s ease;
  /* animation */
}


.dropdown-menu li a {
  display: block;
  padding: 8px 20px !important;
  text-decoration: none;
  color: #00ffcc;
  transition: background 0.3s;
}

.dropdown-menu li a:hover {
  background-color: #00ffaa;
  ;
  color: #000;
}

.show-dropdown {
  display: block;
}

.dropdown-item {
  padding: 0;
  margin: 0;
  display: flex;
}

.vmain,
.gh-icon-btn {
  display: inline-block;
  padding: 12px 18px !important;
  font-size: 1.05rem;
  text-decoration: none;
  color: #00ffcc;
  background-color: #111;
  border: 1px solid #00ffcc;
  transition: background 0.3s;
  line-height: 1;
}

.vmain {
  min-width: 160px;
  flex: 1;
  white-space: nowrap;
  border-top-left-radius: 6px !important;
  border-bottom-left-radius: 6px !important;
  border-top-right-radius: 6px !important;
  border-bottom-right-radius: 6px !important;
}

.gh-icon-btn {
  margin-left: -17px !important;
  width: 44px;
  text-align: center;
  padding: 10px 0;
  border-top-left-radius: 0px !important;
  border-bottom-left-radius: 0px !important;
  border-top-right-radius: 6px !important;
  border-bottom-right-radius: 6px !important;
}

.gh-icon-btn img {
  width: 18px;
}

.vmain:hover,
.gh-icon-btn:hover {
  background-color: #00ffcc;
  color: #000;
}


.dropdown-item a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #00ffcc;
  font-size: 1rem;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.dropdown-item a:hover {
  background-color: #00ffaa;
  color: #000;
}


#selectedVersionText:hover {
  background-color: #00ffaa;
  /* Brighter neon */
  color: #000;
  border: 1px solid #00ffaa;
}

#selectedVersionText:hover #arrow {
  transform: rotate(180deg) scale(1.2);
  /* rotate + grow arrow slightly */
}


footer {
  text-align: center;
  padding: 1rem;
  color: #777;
  font-size: 0.9rem;
  background-color: #000;
  border-top: 1px solid #333;
}

footer a {
  color: #8d8a8a;
  text-decoration: none;
  font-family: font-koh !important;
  font-weight: bolder !important;
  font-size: 1.03rem;
  letter-spacing: 0.4px;
}

footer a:hover {
  text-decoration: underline;
}

.ascii-art-dual {
  margin-top: 3rem;
  padding: 1rem;
  display: flex;
  justify-content: center;
}

.ascii-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.ascii-left,
.ascii-right {
  font-family: monospace;
  font-size: 0.75rem;
  color: #ff0044;
  margin: 0;
  white-space: pre;
}

.how-to-use {
  background-color: #111;
  border: 1px solid #00ffcc;
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 700px;
  border-radius: 8px;
  color: #00ffcc;
}

.how-to-use h2 {
  color: #ffcc00;
  margin-bottom: 1rem;
}

.how-to-use code {
  background-color: #000;
  padding: 2px 6px;
  border-radius: 4px;
  color: #00ffaa;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #00ffcc #1a1a1a;
}

.glow-header {
  background: linear-gradient(to right, #342222, #392525);
  padding: 2rem 1rem;
  text-align: center;
  border-bottom: 2px solid #00ffcc;
  animation: pulse 4s infinite;
  position: relative;
}

.glow-header h1 {
  font-size: 4rem;
  color: #d7d4d5;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.glow-header .tagline {
  font-size: 1.2rem;
  color: #00ffcc;
  text-shadow: 0 0 5px #00ffcc;
  margin-top: 0;
}

@media (max-width: 600px) {
  .ascii-art-dual {
    display: none;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.spinner {
  display: inline-block;
  animation: spin 1s linear infinite;
}

.download-split-btn:hover {
  background-color: #00ffaa;
  color: #000;
  box-shadow: 0 0 5px #00ffaa, 0 0 10px #00ffaa;
  transition: all 0.3s ease;
}

.download-split-btn-1:hover {
  background-color: #424f4b;
  color: #000;
  transition: all 0.3s ease;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #00ffcc !important;
  width: 1px;
  user-select: none;
}


@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scrollable-list {
  max-height: 180px;
  /* Scroll starts after 3-4 items */
  overflow-y: auto;
  margin-bottom: 8px;
  padding: 8px 4px;
  /* 🆕 Add top-bottom padding */
  box-sizing: border-box;
  scroll-padding-top: 8px;
  /* 🆕 Helps clean scroll */
}

.all-versions-link {
  border-top: 1px solid #00ffcc;
  padding-top: 8px;
  text-align: center;
  margin-top: 8px;
}

.all-versions-link a {
  color: #00ffcc;
  text-decoration: none;
  font-size: 1rem;
}

.all-versions-link a:hover {
  color: #000;
  background-color: #00ffaa;
  border-radius: 8px;
  padding: 6px 10px;
  display: inline-block;
}

/* When a version is selected */
.version-selected {
  background-color: #00ffaa;
  color: #0a0a0a;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0, 255, 204, 0.3);
  transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.version-selected #arrow {
  color: #0a0a0a;
  transition: color 0.35s ease;
}


@keyframes bounceSelect {

  30% {
    transform: scale(0.90);
  }

  100% {
    transform: scale(1);
  }
}

/* Optional: when version selected, it gets a small bounce */
.bounce {
  animation: bounceSelect 0.4s ease;
}

/* 🛠️ SPIDYNAL Toast Notification (Centered at TOP) */
#spidynal-toast {
  visibility: hidden;
  width: fit-content;
  max-width: 90%;
  background-color: #111;
  color: #00ffcc;
  text-align: center;
  border-radius: 8px;
  padding: 14px 24px;
  position: fixed;
  z-index: 9999;
  left: 50%;
  top: 30px;
  /* Start position (hidden) */
  transform: translateX(-50%);
  font-size: 16px;
  box-shadow: 0 0 10px #00ffcc;
  opacity: 0;
  transition: opacity 0.5s ease, top 0.5s ease, visibility 0.5s ease;
  /* 👈 include visibility */
}

#spidynal-toast.show {
  visibility: visible;
  opacity: 1;
  top: 60px;
  /* End position (visible) */
}

.version-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.version-number {
  font-size: 16px;
  color: #ffffff;
}

.version-suffix {
  font-size: 12px;
  /* smaller size for suffix */
  color: #00ffcc;
  /* different color */

}

/* 🛠️ Hover Effect on Dropdown Items */
.dropdown-item a:hover .version-number,
.dropdown-item a:hover .version-suffix {
  color: #111;
  /* Change to desired hover color (e.g., black or dark color) */
}

/* Optionally, change background color on hover */
.dropdown-item a:hover {
  background-color: #00ffcc;
  /* Your accent color */
  border-radius: 6px;
}

.version-selected .version-number {
  color: #111 !important;
  /* dark color on selection */
}

.version-selected .version-suffix {
  color: #555 !important;
  /* slightly lighter dark color for suffix */
}

/* Fix alignment when version is selected */
.version-selected .version-item {
  flex-direction: row !important;
  /* horizontal alignment */
  gap: 6px;
  /* small gap between version and suffix */
  justify-content: center;
  align-items: baseline;
}

@media (max-width: 600px) {
  .dropdown-container {
    min-width: 90% !important;
    /* responsive width */
    flex-direction: column;
    align-items: center;
  }

  .download-split-btn,
  .download-split-btn-1 {
    width: 100% !important;
    min-width: unset !important;
    margin: 2px 0;
    /* space between buttons vertically */
  }

  .divider {
    width: 80%;
    height: 1px;
    margin: 4px auto;
  }

  .dropdown-menu {
    width: 90% !important;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
  }

  #selectedVersionText {
    padding: 10px 0.5rem !important;
  }

  #mainDownloadBtn,
  #mainGithubBtn {
    padding: 8px 0.5rem !important;
  }
}

@media (max-width: 600px) {
  html {
    max-width: 100% !important;
  }

  .dropdown-container {
    min-width: 80% !important;
    /* responsive width */
    flex-direction: column;
    align-items: center;
  }

  .download-split-btn,
  .download-split-btn-1 {
    width: 100% !important;
    min-width: unset !important;
    margin: 2px 0;
    /* space between buttons vertically */
  }

  .divider {
    width: 80%;
    height: 1px;
    margin: 4px auto;
  }

  .dropdown-menu {
    margin-top: 14% !important;
    width: 68.5% !important;
    left: 49.5%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
  }

  #selectedVersionText {
    padding: 10px 0.5rem !important;
  }

  #mainDownloadBtn,
  #mainGithubBtn {
    padding: 8px 0.5rem !important;
  }

  .download {
    max-width: 95% !important;
  }

  #spidynal-toast {
    margin-top: 15% !important;
    min-width: 85% !important;
  }

  .download-split-btn-1:hover {
    all: unset;
  }

  .download-split-btn {
    margin-top: 3%;
    width: 25px !important;
  }
}