html,
body {
  font-family: "Popins", Arial, Sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
:root {
  --font-size: clamp(1rem, 1.2rem, 4rem);
  --link-color: #7fffe1;
  --link-border: #7fffe13e;
}
.about {
 margin-top: 20px;
 position: fixed;
 text-decoration: none;
 color: var(--text-primary);
 font-size: 2rem;
 right: 20px;
 bottom: 10px;
 padding: 10px;
}
body {
  margin: 0;
  background: var(--bg-primary);
  font-size: var(--font-size);
  color: var(--text-primary);
}

header {
  position: relative;
}
header h2 {
  font-size: var(--text-md);
  border-bottom: 2px solid var(--border-color);
  padding: 15px 0 0 0;
}
h1 {
  text-align: center;
}
details {
  margin-bottom: var(--space-xs);
  transition: all 0.9s ease;
}

details ul {
  list-style-position: inside;
  padding-left: 1rem;
  list-style: none;
}

summary {
  padding: var(--space-xs) var(--space-sm);
  background: var(--navBtn-bg);
  font-size: 1.2rem;
  cursor: pointer;
}
summary:hover {
  background: var(--hover-bg);
}
section,
#Introduction {
  background: var(--navBtn-bg);
  padding: var(--space-sm);
  margin: var(--space-md);
  border-radius: var(--radius-sm);
}
/*
hide section and show on link click
#hidden article section {
  display: none;
}
#hidden section.shown,
article.show {
  display: block;
}
  */

.example-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: var(--space-xs);
}

h2 {
  text-align: center;
  margin: var(--space-md) auto;
}
h3 {
  border-bottom: 1px solid;
  padding-left: 5px;
}
h4::before {
  content: "→";
  font-weight: 900;
  margin: var(--space-md);
}
nav#navbar {
  position: fixed;
  border-right: 3px solid var(--border-primary);
  margin-right: var(--space-sm);
  top: 0;
  left: 0;
  height: 100dvh;
  width: 250px;
  z-index: 2000;
  background: var(--bg-primary);
  transition: all 0.2s ease;
  overflow-y: auto;
}
#navbar a {
  display: block;
  text-decoration: none;
  font-size: 1.2rem;
  color: #9f9f9f;
  padding: 0 var(--space-sm);
  border-bottom: 2px solid var(--link-border);
}
#navbar a:hover {
  opacity: 0.5;
}
#navbar a:focus-within {
  color: var(--link);
}
#navbar a.nav-link.activeLink {
  color: var(--link);
}
#main-doc {
  margin-left: 250px;
  padding: var(--space-md) 5px;
  transition: all 0.5s ease;
}
pre span {
  color: rgba(0, 128, 0, 0.557);
}
code {
  font-family: monospace;
  background: #d3d3d3cb;
  font-size: 1.2rem;
    color: rgb(87, 3, 3);
  border-radius: var(--radius-sm);
  font-weight: 100;
  margin: 2px;
}
.attribute {
    color: #2600ff;

}
.menuIcon {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  top: var(--space-sm);
  left: var(--space-md);
  position: fixed;
  gap: 3px;
  z-index: 9990;
  background-color: var(--surface-primary);
  width: 35px;
  height: 35px;
  border-radius: var(--radius-sm);
  animation: slide 0.9s ease;
}
.menuIcon span {
  width: 24px;
  height: 4px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  margin: 0 auto;
}
.menuIcon:hover {
  opacity: 0.7;
}
@media (max-width: 800px) {
  nav#navbar.hide {
    left: -100%;
  }
  .menuIcon {
    display: flex;
  }
  nav#navbar {
    position: fixed;
    width: 90%;
    max-width: 350px;
    height: 100dvh;
    padding-bottom: 5px;
    z-index: 2;
  }
  #main-doc {
    margin: auto 4px;
    padding: 0;
  }
  
  #main-doc.adjust {
    margin-left: 2px;
  }
  section {
    margin: 0;
  }
}

pre {
  width: 90%;
  height: auto;
  background: #111;
  padding: 25px 4px;
  border-radius: 8px;
  margin: 4px auto;
  max-width: 600px;
}
pre code {
  overflow-x: auto;
  width: 80%;
  padding-left: 10px;
  margin: auto;
  display: block;
}

@keyframes slide {
  from {
    transform: translateX(-60px);
  }
}

footer {
  text-align: center;
  opacity: 0.2;
  background-color: #111;
  padding: 10px 0;
  margin-top: auto;
}
