:root {
    --code: rgba(26, 15, 21, 0.7);
    --code-bg: rgba(255, 60, 160, 0.1);
    --accent-1: #3df2ff;
    --accent-2: #fff94d;
    --accent-3: #3dff9b;
    --accent-4: #ff3ddb;
    --accent-5: #1f6feb;
    --accent-6: #ff9bad;
    --accent-7: #66a8ff;
}

body {
    line-height: 2;
}

.vertical-overflow h2 {
    padding: 0;
    background: var(--bg-opague);
    border-bottom: 1px solid var(--text);
    z-index: 2;
}

.vertical-overflow h2.sticky-active {
    position: sticky;
    top: -1px;
}

h1 {
    font-size: 28px;
    font-weight: 500;
    padding: 0;
    border-bottom: 1px solid var(--text);
}

h2 {
    font-size: 22px;
    font-weight: 450;
    padding: 0;
}

h3 {
    font-size: 18px;
    font-weight: 400;
    padding: 0;
}

p {
    color: var(--text);
}

strong {
    font-weight: 600;
}

sub {
    /* This is a placeholder fix for a long term issue I'll fix later. */
    display: block;

    color: var(--subtext);
    font-style: italic;
}

li::marker {
    color: var(--accent-1);
}

.table-container {
    position: relative;
}

.table-scroll {
    overflow-x: auto;
}

table, th, td {
    border: 1px solid var(--subtext);
}

table {
    border-collapse: collapse;
}

.table-container thead th {
    position: sticky;
    z-index: 1;
    background: var(--bg);
    font-weight: 600;
}

th, td {
    padding: 10px;
    text-align: left;
}

tr td:nth-child(1) {
    color: var(--accent);
}
tr td:nth-child(2) {
    color: var(--accent-1);
}
tr td:nth-child(3) {
    color: var(--accent-2);
}
tr td:nth-child(4) {
    color: var(--accent-3);
}
tr td:nth-child(5) {
    color: var(--accent-4);
}
tr td:nth-child(6) {
    color: var(--accent-5);
}
tr td:nth-child(7) {
    color: var(--accent-6);
}
tr td:nth-child(8) {
    color: var(--accent-7);
}

.content {
    height: 90%;
    width: 80%;
}

.vertical-overflow {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

code {
	background: var(--code) !important;
	padding: 2px 4px;
	border-radius: 4px;
	border: 1px solid var(--code);
    color: var(--accent-6);
}

code a, a code {
    color: var(--accent);
}
code a:hover, a code:hover {
    color: var(--text);
}

code:hover {
	border: 1px solid var(--accent);
    background: var(--code-bg) !important;
}

code.block {
	display: inline-block;
	width: max-content;
	padding: 10px;
}

pre {
    overflow-x: auto;
    overflow-y: hidden;
    color: var(--text);
}

pre code.hljs {
    display: block;
    overflow-x: auto;
    padding: 1em
}

code.hljs {
    padding: 3px 5px
}

/* Code block theming */
.hljs {
    color: var(--text);
    background: #0d1117
}

.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_ {
    color: var(--accent);
}

.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_ {
    color: var(--accent-6);
}

.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable {
    color: var(--accent-1);
}

.hljs-meta .hljs-string,.hljs-regexp,.hljs-string {
    color: var(--accent-2)
}

.hljs-built_in,.hljs-symbol {
    color: var( --accent-4);
}

.hljs-code,.hljs-comment,.hljs-formula {
    color: var(--subtext);
}

.hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag {
    color: var(--accent-3);
}

.hljs-subst {
    color: #c9d1d9
}

.hljs-section {
    color: var( --accent-5);
    font-weight: 600
}

.hljs-bullet {
    color: var( --accent-7);
}

.hljs-emphasis {
    color: #c9d1d9;
    font-style: italic
}

.hljs-strong {
    color: #c9d1d9;
    font-weight: 600
}

.hljs-addition {
    color: #aff5b4;
    background-color: #033a16
}

.hljs-deletion {
    color: #ffdcd7;
    background-color: #67060c
}
