@font-face {
    font-family: 'Norse';
    src: url('/assets/font/norse_bold.otf') format('opentype'),
    url('/assets/font/norse_bold.woff') format('woff'),
    url('/assets/font/norse_bold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
    --text-font: Tahoma, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    background: #fff;
    font-family: var(--text-font);
    letter-spacing: 0.03rem;
    margin: 0 0 0 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    counter-reset: h1 0;
}

aside {
    display: block;
    background-color: #f5e6c4;
    margin: 1%;
    font-size: 0.8rem;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 0 15px 5px rgba(64, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

/* Main Article / Post */
article {
    margin: 20px;
    flex: 1;
    max-width: 1600px;
}

h1 {
    margin-bottom: 20px;
    font-family: var(--text-font);
    font-size: 2rem;
    color: rgb(51, 51, 51);
    font-weight: bold;
    text-align: left;
    counter-reset: h2 h3;
    
}

h1:not(:first-of-type) {
    counter-increment: h1;
}
h1:not(:first-of-type):not(:last-of-type):before {
    content: counter(h1) ". ";
}

h2 {
    font-family: var(--text-font);
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 15px;
    counter-increment: h2;
    counter-reset: h3;
}

h2::before {
    content: counter(h1) "." counter(h2) " "; 
}

h3 {
    font-family: var(--text-font);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    counter-increment: h3;
}

h3::before {
    content: counter(h1) "." counter(h2) "." counter(h3) " ";
}

article img {
    max-width: 100%;
}

/* Header */
header {
    padding: 10px;
    background-color: #000000;
    background-image: url("/assets/img/header.jpg");
    color: #ffffff;
}

header .site-name {
    text-align: center;
    font-family: Norse, sans-serif;
    font-size: 3rem;
    padding-top: 10px;
    padding-bottom: 5px;
    letter-spacing: 2px;

}

header .site-description {
    font-family: var(--text-font);
    font-size: 0.7rem;
    text-align: center;
    color: #8a8a8a;
    font-style: italic;
    display: none;
}

header .social-links {
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

header img.social-image {
    width: 32px;
    height: 32px;
    margin-right: 20px;
}

/* Footer */
footer {
    width: 100%;
    /* min-height: 2rem; */
    position: relative;
    padding: 20px;
    margin: 0;
    background-color: #000000;
    color: #ffffff;
    white-space: normal;
}

footer .tag-header {
    text-align: center;
    font-family: Verdana, sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    padding-top: 10px;
    padding-bottom: 10px;
}

p {
    font-family: var(--text-font);
    letter-spacing: 0.03rem;
    line-height: 1.4em;
}

ul li {
    padding-bottom: 0.2em;
    padding-top: 0.2em;
    margin-bottom: 0.2em;
    margin-top: 0.2em;
    /* line-height: 1.4em; */
}

blockquote {
    font-style: italic;
    color: #000000;
    padding: 5px 35px;
    margin: 10px;
    position: relative;
}

blockquote::before {
    content: "»";
    font-size: 2em;
    color: #ccc;
    position: absolute;
    top: 10px;
    left: 10px;
}

blockquote::after {
    content: "«";
    font-size: 2em;
    color: #ccc;
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Table */
table {
    max-width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid black;
}

th {
    background-color: black;
    color: white;
    padding: 10px;
}

td {
    padding: 10px;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Code */
code {
    /* inline code*/
    font-family: monospace;
    background-color: #eeeeee;
    border-radius: 0.2em;
    color: black;
    padding: 2px 3px;
}

pre {
    /* Code blocks */
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    background-color: #eeeeee;
    padding: 5px;
    border-radius: 0.4em;
    border: 1px solid black;
    display: inline-block;
}

pre code {
    font-family: monospace;
    color: black;
    line-height: 1.4em;
    font-size: 0.95em;
    overflow-x: auto;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
    display: inline-block;
    width: 120ch;
    max-width: 100%;
}

@media only screen and (max-width: 768px) {
    pre code {
        display: inline-block;
        max-width: 100%;
        width: 100%;
        white-space: pre;
        font-size: 0.9em;
    }
    pre {
        /* Code blocks */
        width: 100%;
        margin-top: 1em;
        margin-bottom: 1em;
        background-color: #eeeeee;
        padding: 5px;
        border-radius: 0.2em;
        border: 1px solid black;
        display: inline-block;
        font-size: 0.8em;
    }

}


/* Page lists */
div.page-list {
    display: flex;
    flex-direction: column;
}

div.page-list-entry {
    border-top: 1px solid black;
    padding-top: 10px;
    padding-bottom: 10px;
}

div.page-list-text {

}

.page-list img {
    width: 5.8rem;
    height: 5.8rem;
    margin-right: 10px;
    margin-bottom: 0.1rem;
    margin-top: 0.1rem;
    border: 1px solid maroon;
    float: left;
}

.page-list a {
    font-weight: bold;
    font-size: 1.4rem;
    line-height: 2rem;
    text-decoration: none;
    color: black;
    break-after: left;
}

.page-list a:hover {
    font-weight: bold;
    text-decoration: none;
    color: red;
}

page-list p {
    font-weight: normal;
    font-family: var(--text-font);
    letter-spacing: 0.03rem;
    font-size: 1rem;
}

p.page-list-metadata {
    padding: 0;
    margin: 0;
    font-family: var(--text-font);
    line-height: 1rem;
    letter-spacing: 0.03rem;
    font-size: 0.8rem;
    color: #8a8a8a;
}

div.categories {
    justify-content: center;
    display: flex;
    margin: 0 auto;
    width: 100%;
}

ul.categories {
    list-style: none; /* Remove default bullets */
    font-family: Norse, sans-serif;
    font-size: 1.5rem;
    padding: 2px;
    width: fit-content;
    margin-top: 3px;
    margin-bottom: 3px;
    border-top: 1px solid #a9bcbc;
    border-bottom: 1px solid #a9bcbc;
}

ul.categories li {
    display: inline;
}

ul.categories li::before {
    margin-right: 5px;
    content: '·';
}

ul.categories li:last-child::after {
    margin-right: 5px;
    margin-left: 5px;
    content: '·';
}

ul.categories a {
    text-decoration: none;
    color: #FFFFFF;
}

ul.categories a:hover {
    text-decoration: none;
    color: red;
}

/* Metadata about posts */
.metadata {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    float: right;
    padding: 0;
    margin-left: 10px;
}

.metadata-element {
    display: flex;
    align-items: center;
    justify-content: left;
    width: 200px;
    margin-bottom: 10px;
    padding: 0;
}

.metadata-tags {
    display: none;
}

.metadata-image {
    width: 200px;
    height: 200px;
    border: 1px solid maroon;
}

img.metadata-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.metadata a {
    text-decoration: none;
    color: black;
}


/* Tags */

ul.tags {
    /* This forms the border of the tags*/
    display: inline-block;
    text-align: center;
    margin: 0;
    padding: 0;
    border-bottom: 1px white solid;
    background-image: repeating-linear-gradient(
            to bottom,
            white 0px,
            white 1px,
            transparent 1px,
            transparent 20px
    );
}

.tags li {
    display: inline-block;
    margin: 0;
    padding: 0;
    line-height: 20px;
    vertical-align: center;
    text-align: center;
}

ul.tags li::after {
    content: ':';
    margin-right: 5px;
    margin-left: 5px;
    white-space: nowrap;
}

ul.tags li:first-child::before {
    content: ':';
    margin-right: 5px;
    white-space: nowrap;
}

a.tag {
    text-decoration: none;
    color: #000;
    font-family: Norse, sans-serif;
    font-size: 17px;
}

a.tag:hover {
    text-decoration: none;
    color: red;
}


a.tag-bucket-10 {
    color: #666666;
}

a.tag-bucket-9 {
    color: #777777;
}

a.tag-bucket-8 {
    color: #888888;
}

a.tag-bucket-7 {
    color: #999999;
}

a.tag-bucket-6 {
    color: #989898;
}

a.tag-bucket-5 {
    color: #aaaaaa;
}

a.tag-bucket-4 {
    color: #bbbbbb;
    font-weight: bold;
}

a.tag-bucket-3 {
    color: #cccccc;
}

a.tag-bucket-2 {
    color: #e8e8e8;
}

a.tag-bucket-1 {
    color: #ffffff;
}

a.tag-active {
    /* The tag that is current for the page you are on */
    color: yellowgreen;
}

