* {
    box-sizing: border-box;
}

html {
    font-size: 18px;
    scrollbar-gutter: stable;
}


body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

header h1,
header h2 {
    margin-bottom: 0.2rem;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

nav ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

nav ol,
nav li {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
nav,
main,
footer,
.commentbox,
#disqus_thread {
    width: 90%;
    max-width: 42rem;
    padding: 1rem;
}

main {
    line-height: 1.6rem;
}

main img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
    margin-bottom: 1rem;
    max-width: 100%;
}

#latest_posts {
    list-style-type: none;
    font-size: 1.2rem;
    padding: 0;
}

pre {
    overflow: scroll;
}

#pagination {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.pagectrl {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pagenext {
    margin-left: auto;
}

.pageprev {
    margin-right: 1rem;
}

.pagectrl p {
    margin: 0;
}

footer {
    font-size: 0.8rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

footer p,
footer address,
footer aside {
    margin: 0;
    margin-inline: 0;
    margin: 0.1rem;
}

footer address {
    font-style: normal;
}

footer aside {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.lastupdate::after {
    content: " • ";
}

iframe {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}

.tagList {
    list-style-type: none;
    padding: 0.25rem;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tagList a {
    font-size: 1.5rem;
}

.tagList li {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.tagged {
    margin-top: 3rem;
}

.tagged h2 {
    font-size: 2rem;
}

img[src*='berrysprite.png'] {
    float: right;
    padding-right: 1rem;
}

/* CSS for Code Snippets */
code[class*="language-"],
pre[class*="language-"] {
	color: #f8f8f2;
	background: none;
	font-family: "CommitMono";
	text-align: left;
	white-space: pre;
	word-spacing: normal;
	word-break: normal;
	word-wrap: normal;
	line-height: 1.5;
	-moz-tab-size: 4;
	-o-tab-size: 4;
	tab-size: 4;
	-webkit-hyphens: none;
	-moz-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;
}

/* Code blocks */
pre[class*="language-"] {
	padding: 1em;
	margin: .5em 0;
	overflow: auto;
	border-radius: 0.3em;
}

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
	background: #2E3440;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
	padding: .1em;
	border-radius: .3em;
	white-space: normal;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
	color: #636f88;
}

.token.punctuation {
	color: #81A1C1;
}

.namespace {
	opacity: .7;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
	color: #81A1C1;
}

.token.number {
	color: #B48EAD;
}

.token.boolean {
	color: #81A1C1;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
	color: #A3BE8C;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
	color: #81A1C1;
}

.token.atrule,
.token.attr-value,
.token.function,
.token.class-name {
	color: #88C0D0;
}

.token.keyword {
	color: #81A1C1;
}

.token.regex,
.token.important {
	color: #EBCB8B;
}

.token.important,
.token.bold {
	font-weight: bold;
}

.token.italic {
	font-style: italic;
}

.token.entity {
	cursor: help;
}