html,
body {
  font-family: "Popins", Arial, Sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
:root {
  --bg: #1e1e1e;
  --text-color: #f5f5dc;
  --font-size: clamp(1rem, 1.2rem, 4rem);
  --border-color: #696969;
  --details-bg: #2e2e2e;
  --summary-bg: #3b3b3b;
  --summary-hover: var(var(--details-bg));
  --link-color: #7fffe1;
  --link-border: #7fffe13e;
}
body {
  margin: 0;
  background: var(--bg);
  font-size: var(--font-size);
  color: var(--text-color);
}
header {
  position: relative;
}
header h1 {
  border-bottom: 2px solid var(--border-color);
  padding: 15px 0 0 10px;
}
details {
  background: var(--details-bg);
  margin-bottom: 4px;
}

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

summary {
  background: var(--summary-bg);
  font-size: 1.2rem;
  padding: 3px 15px;
  cursor: pointer;
}
summary:hover {
  background: var(--summary-hover);
}
section,
#Introduction {
  background: var(--details-bg);
  padding: 15px 8px;
  margin: 14px;
  border-radius: 12px;
}
#hidden article section {
  display: none;
}
#hidden section.shown,
article.show {
  display: block;
}
h2 {
  text-align: center;
  margin: 20px auto;
}
h3 {
  border-bottom: 1px solid;
  padding-left: 5px;
}
h4::before {
  content: "→";
  font-weight: 900;
  margin: 12px 4px;
  border-radius: 50%;
}
nav#navbar {
  position: fixed;
  border-right: 3px solid var(--border-color);
  margin-right: 10px;
  top: 0;
  left: 0;
  height: 100vh;
  width: 250px;
  z-index: 2000;
  background: var(--bg);
  transition: all 0.2s ease;
  overflow-y: auto;
}
#navbar a {
  display: block;
  text-decoration: none;
  font-size: 1.2rem;
  color: var(--link-color);
  padding: 0 10px;
  border-bottom: 2px solid var(--link-border);
}
#navbar a:hover {
  opacity: 0.5;
}
#navbar a:focus-within {
  color: yellow;
}
#navbar details ul li a.nav-link.activeLink {
  color: yellow;
}
#main-doc {
  margin-left: 250px;
  padding: 20px 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: 5px;
  font-weight: 100;
  margin: 2px;
  padding: 2px;
}
.attribute {
  color: #2600ff;
}
@media (max-width: 800px) {
  .menuIcon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    top: 10px;
    left: 15px;
    position: fixed;
    gap: 3px;
    z-index: 9990;
    background-color: #696969;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    animation: slide 0.9s ease;
  }
  .menuIcon span {
    width: 24px;
    height: 4px;
    background: #ffffff;
    border-radius: 2px 5px;
    margin: 0 auto;
  }
  .menuIcon:hover {
    opacity: 0.7;
  }
  #main-doc.adjust {
    margin-left: 2px;
  }
  nav#navbar.hide {
    top: -100%;
  }
  nav#navbar {
    position: fixed;
    width: 100%;
    height: 80dvh;
    padding-bottom: 5px;
    z-index: 2;
  }
  #main-doc {
    margin: auto 4px;
    padding: 0;
  }

  section {
    margin: 0;
  }
}

pre {
  width: 90%;
  height: auto;
  background: #111;
  padding: 25px 4px;
  border-radius: 8px;
  margin: 4px auto;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}
pre code {
  overflow-x: auto;
  text-align: center;
  width: 80%;
  margin: auto;
  display: block;
}

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

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