:root {
    --bg: #0b1120;
    --bg-alt: #0f172a;
    --bg-alt-2: #141c31;
    --border-color: #1e293b;
    --text: white;
    --link: silver;
    --font-size: 16px;
    font-size: var(--font-size);
    height: 100%;
    --grainy: url("data:image/svg+xml,%3C!-- svg: first layer --%3E%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.465' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'%3E%3C/feColorMatrix%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E%0A");
}

/* Fonts */
@font-face {
    font-family: 'publicsans';
    src: url('/Fonts/PublicSans-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'publicsans';
    src: url('/Fonts/PublicSans-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'publicsans';
    src: url('/Fonts/PublicSans-Light.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'publicsans';
    src: url('/Fonts/PublicSans-LightItalic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

* {
    font-family: publicsans, monospace;
}

a {
    color: var(--link);
    text-decoration: none;
}

body {
    background: var(--bg);
    background-blend-mode: multiply;
    background-image: var(--grainy);
    background-size: 50%;
    color: var(--text);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
}

img {
    display: block;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

main,
footer {
    background-image: url("/grid.svg");
    background-repeat: repeat;
    background-size: auto;
}

header {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    text-transform: uppercase;
}

header h1 a {
    color: var(--text);
}

header h1 {
    margin: 0;
}

footer {
    text-align: center;
    clear: both;
    min-width: 90%;
    margin-top: auto;
    padding-bottom: 1rem;
    min-height: 5rem;
}

.tag-selector h3 {
    margin: 0;
}

.tag-selector ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* In lists if tags are enable and there are tags will display a tag list on the right hand side. */
.list-items {
    display: flex;
    padding-bottom: 3rem;
}

/* single item */
.list-items :nth-child(1):nth-last-child(1) {
    margin: auto;
}

/* two items */
.list-items :nth-child(1):nth-last-child(2),
.list-items :nth-child(2):nth-last-child(1) {
    margin-left: auto;
}

.card {
    border: 1px solid var(--border-color);
    background-color: var(--bg-alt-2);
    padding: 1rem;
    margin: 1rem;
    background-blend-mode: multiply;
    background-image: var(--grainy);
    background-size: 50%;
}

article {
    height: 100%;
    margin: auto;
}

article section {
    border-bottom: 1px solid var(--border-color);
}

article .header {
    background-image: url("/graph.svg");
    background-repeat: no-repeat;
    background-size: 12000px 700px;
    background-position: center center;
    display: flex;
    align-items: center;
    flex-direction: column;
}

article .header .textbox {
    margin-top: 6em;
    margin-bottom: 16em;
    max-width: 700px;
}

article .header .textbox h1,
article .header .textbox h3 {
    margin: 0;
}

article section#two {
    padding: 2rem 0;
    background-color: var(--bg-alt);
}

article section#three {
    border-bottom: none;
    min-height: 300px;
    padding: 2rem 1rem;
}

article section#three .centrecolumn {
    flex-direction: column;
    max-width: 550px;
}

article section#three .centrecolumn h1 {
    margin: 0;
}

article section#three .centrecolumn form {
    padding-top: 1rem;
}

article .centrecolumn {
    overflow: hidden;
    height: auto;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
}

article .information {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

article .information * {
    max-width: 800px;
}

article form {
    max-width: 900px;
    margin: 1px;
}

article form * {
    font-size: var(--font-size);
    width: 100%;
    outline: none;
    color: var(--text);
    background: transparent;
	outline: solid 1px var(--text);
	border: none; /* Remove the border */
    box-sizing: border-box;
    padding: 0.5rem;
}

article form textarea {
    resize: unset;
    height: 10rem;
}

article h1,
article h2,
article h3,
article h4 {
    text-align: center;
}

article h1 {
    font-size: 3.5rem;
}

article h1~h2,
article h2~h3,
article h1~h3 {
    font-weight: normal;
}

article h2 {
    font-size: 2.5rem;
}

article h3 {
    font-size: 1.75rem;
}

article h4 {
    font-size: 1.1rem;
}

article h1:first-of-type {
    margin-top: 0;
}

article div.post-date {
    padding: 0;
}

article table {
    border-color: var(--text);
    border-collapse: collapse;
    margin: 0 auto;
}

article table td,
article table th {
    border: 1px solid;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

article table th {
    font-size: 1.1rem;
}

article pre code {
    padding: 1em;
    border: 1px solid;
}

article pre {
    display: flex;
    justify-content: center;
}

article ul,
article ol {
    display: table;
    margin-left: auto;
    margin-right: auto;
}

article ul ul,
article ol ol,
article ol ul,
article ul ol {
    display: block;
}

article blockquote {
    margin-top: 1rem;
    margin-bottom: 1rem;
    margin-left: 5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--text);
}

.list-items ul {
    padding-left: 0;
}

/* For TAGLIST.HTML */
.taglist {
    text-align: center;
    clear: both;
    padding-bottom: 1rem;
}

/* For NEXTPREV.HTML */
#nextprev {
    /* The container for both the previous and next articles. */
    display: flex;
}

#prevart {
    margin-right: auto;
    text-align: left;
}

#nextart {
    margin-left: auto;
    text-align: right;
}

#nextart,
#prevart {
    max-width: 33%;
}

/* Single Posts date published and date modified if two dates are different */
.post-date {
    opacity: 0.5;
    padding-bottom: 1rem;
}
