:root {
  --bg: rgb(19, 19, 30);
  --sidebar-bg: rgb(14, 14, 22);
  --sidebar-fg: rgb(237, 237, 245);
  --sidebar-active: rgb(107, 138, 255);
  --sidebar-spacer: rgba(107, 138, 255, 0.08);
  --content-max-width: 820px;
  --page-padding: 15px;
  --searchbar-border-color: rgba(107, 138, 255, 0.15);
  --searchbar-bg: rgb(28, 28, 43);
  --searchbar-fg: rgb(237, 237, 245);
  --searchbar-shadow-color: transparent;
  --searchresults-header-fg: rgb(107, 138, 255);
  --searchresults-border-color: rgba(107, 138, 255, 0.1);
  --links: rgb(107, 138, 255);
  --icons: rgb(140, 140, 158);
  --icons-hover: rgb(237, 237, 245);
  --theme-popup-bg: rgb(28, 28, 43);
  --theme-popup-border: rgba(107, 138, 255, 0.15);
  --theme-hover: rgb(41, 41, 56);
  --quote-bg: rgba(107, 138, 255, 0.06);
  --quote-border: rgba(107, 138, 255, 0.3);
  --table-border-color: rgba(107, 138, 255, 0.1);
  --table-header-bg: rgb(28, 28, 43);
  --table-alternate-bg: rgba(28, 28, 43, 0.5);
}

.light,
.rust,
.coal,
.navy,
.ayu,
.nightingale {
  --bg: rgb(19, 19, 30);
  --fg: rgb(237, 237, 245);
  --sidebar-bg: rgb(14, 14, 22);
  --sidebar-fg: rgb(237, 237, 245);
  --sidebar-active: rgb(107, 138, 255);
}

body {
  background: rgb(19, 19, 30) !important;
  color: rgb(237, 237, 245) !important;
}

.sidebar {
  background: rgb(14, 14, 22) !important;
}

.sidebar .sidebar-scrollbox {
  background: rgb(14, 14, 22) !important;
}

.sidebar a {
  color: rgb(140, 140, 158) !important;
}

.sidebar a.active,
.sidebar a:hover {
  color: rgb(107, 138, 255) !important;
}

.content {
  background: rgb(19, 19, 30) !important;
}

.page-wrapper {
  background: rgb(19, 19, 30) !important;
}

.menu-bar,
.menu-bar.bordered {
  background: rgb(19, 19, 30) !important;
  border-bottom-color: rgba(107, 138, 255, 0.08) !important;
}

.menu-bar i,
.menu-bar .icon-button {
  color: rgb(140, 140, 158) !important;
}

.menu-bar i:hover,
.menu-bar .icon-button:hover {
  color: rgb(237, 237, 245) !important;
}

.menu-bar .icon-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: rgb(237, 237, 245) !important;
}

.content main {
  line-height: 1.5;
}

.content main h1 {
  margin-top: 0;
  margin-bottom: 12px;
}

.content main h2 {
  margin-top: 24px;
  margin-bottom: 8px;
}

.content main h3 {
  margin-top: 20px;
  margin-bottom: 6px;
}

.content main p {
  margin-top: 0;
  margin-bottom: 10px;
}

.content main ul,
.content main ol {
  margin-top: 0;
  margin-bottom: 10px;
}

table {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.sidebar .sidebar-scrollbox ol.chapter li.chapter-item {
  margin-top: 8px;
}

.sidebar .sidebar-scrollbox ol.chapter li.chapter-item ol.section li {
  margin-top: 8px;
}

a {
  color: rgb(107, 138, 255) !important;
}

a:hover {
  color: rgb(133, 163, 255) !important;
}

code {
  background: rgb(28, 28, 43) !important;
  color: rgb(237, 237, 245) !important;
  border-radius: 4px;
  padding: 2px 5px;
}

pre {
  background: rgb(28, 28, 43) !important;
  border: 1px solid rgba(107, 138, 255, 0.1);
  border-radius: 8px;
}

pre > code {
  padding: 0 !important;
}

table th {
  background: rgb(28, 28, 43) !important;
}

table td,
table th {
  border-color: rgba(107, 138, 255, 0.1) !important;
}

table tr:nth-child(2n) {
  background: rgba(28, 28, 43, 0.5) !important;
}

blockquote {
  border-left: 4px solid rgba(107, 138, 255, 0.3);
  background: rgba(107, 138, 255, 0.06);
  padding: 10px 20px;
  border-radius: 0 8px 8px 0;
}

.nav-chapters:hover {
  color: rgb(237, 237, 245) !important;
  background: rgb(28, 28, 43) !important;
}

#searchbar {
  background: rgb(28, 28, 43) !important;
  border-color: rgba(107, 138, 255, 0.15) !important;
  color: rgb(237, 237, 245) !important;
}

#theme-list {
  background: rgb(28, 28, 43) !important;
  border-color: rgba(107, 138, 255, 0.15) !important;
}

#theme-list > button:hover {
  background: rgb(41, 41, 56) !important;
}

pre.mermaid {
  background: transparent !important;
  border: none !important;
  text-align: center;
  padding: 24px 0 !important;
}

pre.mermaid svg {
  max-width: 100%;
  height: auto;
}

pre.mermaid .node rect,
pre.mermaid .node polygon {
  fill: rgb(28, 28, 43) !important;
  stroke: rgba(107, 138, 255, 0.3) !important;
  rx: 8;
  ry: 8;
}

pre.mermaid .node .label {
  color: rgb(237, 237, 245) !important;
  fill: rgb(237, 237, 245) !important;
}

pre.mermaid .edgeLabel {
  background: rgb(19, 19, 30) !important;
  color: rgb(140, 140, 158) !important;
  fill: rgb(140, 140, 158) !important;
}

pre.mermaid .edgeLabel rect {
  fill: rgb(19, 19, 30) !important;
  stroke: none !important;
}

pre.mermaid .flowchart-link {
  stroke: rgba(107, 138, 255, 0.4) !important;
}

pre.mermaid .marker {
  fill: rgba(107, 138, 255, 0.4) !important;
  stroke: rgba(107, 138, 255, 0.4) !important;
}
