:root {
    --bg: white;
    --text: #222;
    --highlight: #C0F6FF;
    --highlight2: #FFD8A6;
    --secondary-bg: #F4F4F4;
	--code-text: #555;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #222;
		--text: white;
		--highlight: #C0F6FF;
		--highlight2: #FFD8A6;
		--secondary-bg: #444444;
		--code-text: #EEE;
	}

	h1 {
		color: var(--bg) !important;
	}
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: sans-serif;
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
    padding-bottom: 3rem;
}

p, a {
    line-height: 1.3em;
    letter-spacing: 0.25px;
    font-weight: lighter;
}

a, a:visited, a:active {
    color: var(--text);
    text-decoration: none;
    font-weight: normal;
    font-style: italic;
}

a:hover {
    text-decoration: underline;
}

.image {
	text-align: center;
	font-size: 0;
	padding: 50px 10px;
}

.image img {
	max-width: 500px;
	width: 90%;
	border: 2px solid var(--highlight2)
}

.green {
	color: green;
	font-weight: bold;
}

.link-p {
    margin: 0.2em;
}

code {
    background: var(--secondary-bg);
    border: 1px solid var(--code-text);
    border-left: 3px solid var(--highlight);
    color: var(--code-text);
    page-break-inside: avoid;
    font-family: monospace;
    font-size: 15px;
    margin-bottom: 1.6em;
    max-width: 100%;
    overflow: auto;
    padding: 1em 1.5em 1.7em;
    display: block;
    word-wrap: break-word;
}

span.inline-code {
	background-color: var(--secondary-bg);
	border: 1px dotted var(--code-text);
    font-family: monospace;
	padding: 0 0.25em;
	font-size: 1.06em;
	display: inline-block;
}

.link-block::before {
    content: '\279c';
    margin-right: 0.5em;
}

.link-block.back::before {
    transform: scaleX(-1);
}

.link-block.home::before {
    content: '\2604';
}

h1 {
    background-color: var(--highlight);
    color: var(--text);
    padding: 5px;
}

h1, h2, h3 {
    font-family: monospace;
    display: inline-block;
}

h2 {
    margin-top: 2em;
    padding-bottom: 0.25em;
    border-bottom: 2px solid var(--highlight);
}

h3 {
    margin-top: 1.5em;
    border-bottom: 2px solid var(--highlight);
}

div[role="image"]:first-child {
    font-weight: bold;
    text-align: center;
    font-size: 1.3em;
}

hr {
    border: 0;
    height: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    margin: 2em 0;
}

ul {
    list-style: none;
}

li {
    margin-bottom: 0.4em;
    border-left: 3px solid var(--highlight2);
    padding-left: 0.75em;
}

