
tech-stack-list {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.4rem;
}

nav:has(a[href="/rss.xml"]) {
  border-bottom: 1px solid var(--color-alt-white);
  font-family: var(--ff-type);
}

nav:has(a[href="/rss.xml"]) ul {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  gap: 10ch;
  list-style: none;
  padding: 0;
  margin: 0;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

nav:has(a[href="/rss.xml"]) ul li::marker {
  content: none;
}

nav:has(a[href="/rss.xml"]) a {
  color: var(--color-alt-white);
}

nav:has(a[href="/rss.xml"]) a:hover {
  color: light-dark(black, white);
}

buttons-88x31 {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  background-color: light-dark(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3));
  border: var(--glass-border-b);
  box-shadow: 4px 5px 5px rgba(0, 0, 0, 0.5);
  padding: 1rem;
  border-radius: 10px !important;
  margin: 20px 0;
}

buttons-88x31 img {
  border-radius: 2px;
}

buttons-88x31 a:not(div a):hover {
  outline: 1px solid white;
  border-radius: 2px;
}

tech-stack-icons {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 40px 20px 20px 20px;
  flex-wrap: wrap;
}

tech-stack-icons img {
  width: 50px;
  box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  height: 50px;
}

tech-stack-icons a:hover img,
tech-stack-icons a:focus-visible img {
  border-radius: 12px;
  filter: brightness(1.15);
  box-shadow: 0 0 5px 1px rgba(255, 255, 255, 0.1);
}

tech-stack-icons a:focus-visible {
  border-radius: 12px;
}

/* Mobile Adaptations */
@media screen and (max-width: 768px) {
  /* Navigation adjustments */
  nav:has(a[href="/rss.xml"]) ul {
    gap: 3ch;
  }

  /* Reduce padding on buttons container */
  buttons-88x31 {
    padding: 0.75rem;
    margin: 15px 0;
    gap: 4px;
  }

  /* Tech stack icons stay same size on mobile */
  tech-stack-icons {
    gap: 4px;
    margin-top: 15px;
  }

  /* Hide pointing hand on mobile (no hover state) */
  img[src="/SRC/asset/icon/pointing-hand.png"] {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  /* Keep navigation horizontal with tighter spacing */
  nav:has(a[href="/rss.xml"]) ul {
    gap: 1.5ch;
    flex-wrap: wrap;
  }

  /* Further reduce button container padding */
  buttons-88x31 {
    padding: 0.5rem;
    margin: 10px 0;
  }

  /* Reduce transform scale on small screens */
  img[src="/SRC/btn.gif"] {
    transform: scale(1.05);
  }

  img[src="/SRC/btn.gif"]:hover {
    transform: scale(1.1);
  }
}

/* Tablet landscape adjustments */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  nav:has(a[href="/rss.xml"]) ul {
    gap: 6ch;
  }
}

section:has(code) {
  margin-block: 20px 0;
}

section:has(code) ul {
  margin-block: 20px 30px;

  li {
    margin-top: 10px;
  }
}
#newgrounds-webring {
  user-select: none;
}

#newgrounds-webring .background {
  overflow: auto;
  border-bottom: 5px solid black;
}

magic-spell {
  color: light-dark(orangered, slateblue);
  font-weight: bold;
}

.settings {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  background-color: light-dark(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3));
  border: var(--glass-border-b);
  box-shadow: 4px 5px 5px rgba(0, 0, 0, 0.5);
  padding: 1rem;
  border-radius: 10px !important;
  margin: 20px 0;
  font-family: var(--ff-jb-mono);

  h3 {
    margin-top: 0;
  }
}

h3 {
  font-family: var(--ff-alagard);

}

tech-stack-list ul {
  display: block;
  margin-inline: auto;
  width: fit-content;
}