@import url('https://fonts.googleapis.com/css?family=Inconsolata');
@import url('https://fonts.googleapis.com/css?family=Alegreya+Sans+SC');
/*
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300&family=VT323&display=swap');
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@200;300&display=swap');
@import url('http://fonts.googleapis.com/css?family=Cousine:400,700');*/

/* TODO convert all color styling to use these variables for consistency */
:root{
--headerhighlight: red;
--hovercolor:yellow;
--bordercolor:rgb(255,0,0,0.8);
--borderwidth: 3px;
--borderstyle: dotted;
--customgray: #667;
}

html {
	/*
	 * TODO:
	 * Als ik dit doorzet, moet ik background:white ongedaan maken in dark mode
	background: url("http://wohgame.com/images/02.jpg?crc=3872992552") 0 0 no-repeat,
	url("http://www.peterburr.org/2013_images/dirtscraper.png")0 500px no-repeat,
	url("https://neauoire.github.io/neauismea/05.png") 0 1000px no-repeat,
	url("http://www.peterburr.org/2013_images/03B-2.png") 1500px no-repeat,
	url("https://neauoire.github.io/neauismea/0G.png") 0 2000px no-repeat,
	url("https://neauoire.github.io/neauismea/02.png") 0 2500px no-repeat,
	url("http://www.peterburr.org/2013_images/shape-collective.jpg") 0 2500px no-repeat,
	url("http://www.peterburr.org/2013_images/03B-2.png") 0 3000px repeat-y;
	background-size: cover;
	background-image: url("/images/noodle_dots.png");
	 */
	/* contain is chaotischer */
	background-size: contain;
    /*background-color: #202020;*/
}

body, li p {
	background: white;
	font-family: 'Inconsolata', sans-serif;
	text-align: justify;
	font-size: 17px;
	margin-top: 10px;
	margin-bottom: 10px;
}

h1,h2,h3,h4,h5,h6,header,header.a {
	text-transform: lowercase;
	font-family: 'Alegreya Sans SC', sans-serif;
}

h1 {
	display: inline-block;
    width: 100%;
	font-size: 170%;
	line-height: 1.1;
	margin-top: 0.2em;
	margin-bottom: 1em;
	border: solid;
	border-width: 3px;
	border-color: transparent transparent black transparent;
    border-radius: 60% 35% / 15% 25%;
	padding: 1em 1em 1.5em 1em;
    text-align: center;
	-moz-hyphens: none;
	-webkit-hyphens: none;
	-o-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

h2 {
	border-bottom-style: var(--borderstyle);
	border-width: var(--borderwidth);
	border-color: var(--bordercolor);
    padding-bottom: 5px;
    margin-bottom: 0.4em;
}

h2, h3, h4, h5, h6 {
    margin: 0.4em 0em 0.4em 0em;
}

/* Markdown-like headers */
h1::before { color: var(--headerhighlight); content: '# '; }
h2::before { color: var(--headerhighlight); content: '## '; }
h3::before { color: var(--headerhighlight); content: '### '; }
h4::before { color: var(--headerhighlight); content: '#### '; }
h5::before { color: var(--headerhighlight); content: '##### '; }
h6::before { color: var(--headerhighlight); content: '###### '; }

.remove-frame {
    border: none !important;
}

h1.remove-frame::before {
    content: none!important;
}

::selection {
	background: var(--hovercolor);
	color: black;
}

/**
 * Table of content
 */
#toc {
  line-height: 1em;
  font-size: .8em;
  padding-bottom: 1em;
  display: block;
  overflow: hidden;
  width: 70%;
  margin: auto;
  margin-bottom: 2.5em;
  border: dotted black 2px;
  border-color: black transparent;
}

#TableOfContents {
  overflow-x: auto;
  word-wrap: normal;
  word-break: normal;
  text-align: left;
}

#TableOfContents ul {
  list-style-type: none;
}

#TableOfContents a code{
  font-size: 11px;
  padding: 2px 3px;
  font-weight: 100;
}

.switch {
	position: relative;
	display: inline-block;
	width: 30px;
	height: 17px;
	margin-right: 10px;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	-webkit-transition: 0.4s;
	transition: 0.4s;
}

.slider:before {
	position: absolute;
	content: "";
	height: 13px;
	width: 13px;
	left: 2px;
	bottom: 2px;
	background-color: white;
	-webkit-transition: 0.4s;
	transition: 0.4s;
}

input:checked + .slider {
	background-color: #2196F3;
}

input:focus + .slider {
	box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
	-webkit-transform: translateX(13px);
	-ms-transform: translateX(13px);
	transform: translateX(13px);
}

.highlighttable td,th{padding:0;border:0;}td.code{width:95%;}

/*
 * Comments
 */

.post-comments {
  margin-top: 60px;
}

.post-comment {
  background-color: #eee;
  padding: 20px;
  margin-top: 20px;
}

.post-comment-reply {
  background-color: #eee;
  padding: 20px;
  margin-top: 20px;
  margin-left: 4em;
}

.post-comment-header {
  margin-bottom: 20px;
}

.post-comment-avatar {
  display: inline-block;
  vertical-align: middle;
  border-radius: 50%;
}

.post-comment-info {
  display: inline-block;
  border-bottom: 1px;
  margin-left: 20px;
  margin-bottom: 0;
  vertical-align: middle;
}

.post-comment-field {
  display: block;
  font: inherit;
  padding: 10px;
  margin-top: 20px;
  outline-color: #F76C5E;
  width: 95%;
}

.post-new-comment {
	padding: 10px;
}

/*
 * Record collection columns on PC
 */
.records {
    max-width: 30%;
    padding-bottom: 1em;
}

/*
 * Other
 */

.btn {
  border: 2px solid #F76C5E;
  background-color: #F76C5E;
  color: white;
  display: inline-block;
  font: inherit;
  padding: 20px;
  min-width: 100px;
  -webkit-appearance: none;
}

.btn:hover {
  border: 2px solid #F76C5E !important;
  background-color: white;
  color: #F76C5E;
  text-decoration: none;
}

.dialog {
  display: none;
  position: fixed;
  background-color: rgba(238, 238, 238, 1);
  padding: 25px;
  padding-top: 20%;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
}

.dialog:target {
  display: block;
}

.author-portret {
	padding: 10px;
	max-width: 150px;
	display: inline;
	float: right;
	text-align: center;
	font-weight: 400;
	font-style: italic;
	color: #666665;
	outline: 0;
	z-index: 300;
	font-size: 70%;
}

#display_light {
	display: inline;
}

#display_dark {
	display: none;
}

.ansi-header {
	display:block;
	line-height:1vw;
	font-size: 1vw;
	font-weight:bold;
	white-space:pre;
	font-family: monospace;
	color: black;
}

.unfold {
	max-height: 25px;
	overflow: hidden;
	-webkit-transition: max-height 1.2s;
	transition: max-height 1.2s;
	transition-timing-function: ease-in-out;

}

.unfold:hover {
	max-height: 500px;
}

.post-mentions {
    padding-top: 15px;
    margin-top: 10px;
    border-bottom: 1px solid #AEADAD;
    font-size: 16px;
}
.post-mentions ul {
    list-style:none;
    padding:0;
    margin-left: 0;
}

.webring {
    text-align: center;
    margin: 1rem;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 95%;
}

.hover-box:hover {
	border-left: 3px solid var(--bordercolor);
    margin-left: -10px;
    padding-left: 7px;
}

.micro {
	margin: 0px;
	text-align: left;
}

/* TESTING ZONE with Tufte style Sidenotes */
/*
<label for="sidenote-{{.Page.File.UniqueID}}-{{ $sidenoteDomIdSuffix }}" class="margin-toggle sidenote-number"></label>
<input type="checkbox" id="sidenote-{{.Page.File.UniqueID}}-{{ $sidenoteDomIdSuffix }}" class="margin-toggle"/>
<span class="sidenote">{{ .Inner }}</span>
*/
/*
 * Idea behind my footnotes: show them by default on desktop.
 * On small screens, instead show a checkbox with the side note counter and hide the original side note.
 * Clicking the checkbox opens the side note below the current line.
*/

.sidenote,
.marginnote {
    float: right;
    clear: right;
    margin-right: -60%;
    width: 50%;
    margin-top: 0.3rem;
    margin-bottom: 0;
    padding-right: 1rem;
    line-height: 1.3;
    vertical-align: baseline;
    position: relative;
}

.sidenote-number {
    counter-increment: sidenote-counter;
    transform: translate(-0.5rem, -0.5rem);
    margin-left: -0.5rem;
}

.sidenote-number:after,
.sidenote:before {
    position: relative;
    vertical-align: baseline;
}

.sidenote-number:after {
    content: "^" counter(sidenote-counter);
    top: -0.5rem;
}

.sidenote:before {
    content: "[" counter(sidenote-counter) "]:"; /* WHY SPACE? */
    font-size: 1rem;
}

label.sidenote-number {
    display: inline;
}

/* Only display number for side notes, not for margin notes */
label.margin-toggle:not(.sidenote-number) {
    display: none;
}

/* I only want the toggle to show on mobile devices.
 * And only the number to show on desktop.*/
input.margin-toggle {
    display: none;
}

/* Adjusting checkbox styling */
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  /* For iOS < 15 to remove gradient background */
  background-color: #fff;
  /* Not removed via appearance */
  margin: 0;
  font: inherit;
  color: currentColor;
  width: 1em;
  border: 0.15em solid currentColor;
  /*transform: translate(-1.75em, -0rem) scale(0.9);*/
  transform: scale(0.9);
}

input[type="checkbox"]::before {
  transition: 120ms transform ease-in-out;
  width: 1em;
  height: 1em;
  content: counter(sidenote-counter);
  padding: 0.1rem;
}

input[type="checkbox"]:checked::before {
  content: "X";
}



@media all {
	html {
		font-size: 18px;
	}
	body > * {
		font-size: 100%;
		margin-left: 7.5rem;
		margin-right: 7.5rem;
	}
}
@media all and (max-width:840px){
	html {
		font-size: 17px;
	}
	body > * {
		margin-left: 5.5rem;
		margin-right: 5.5rem;
	}
	.author-portret {
		max-width: 123px;
	}

}
@media all and (max-width:760px){
	body > * {
		margin-left: 2.5rem;
		margin-right: 2.5rem;
	}
	.author-portret {
		max-width: 111px;
	}

    .sidenote,
    .marginnote {
        display: none;
    }

    /* I only want the toggle to show on mobile devices */
    input.margin-toggle {
        display: inline;
    }

    label.sidenote-number {
        /*display: none;*/
        /*Display is none prevents the sidenote number from incrementing!*/
        visibility: hidden;
    }

    .margin-toggle:checked + .sidenote,
    .margin-toggle:checked + .marginnote {
        display: block;
        float: left;
        left: 1rem;
        clear: both;
        width: 95%;
        margin: 1rem 2.5%;
        vertical-align: baseline;
        position: relative;
        content: "X";
    }
}

@media all and (max-width:580px){
	html {
		font-size: 16px;
	}
	body > * {
		margin: 0.7rem 1.5rem 0 1.5rem;
	}
	.author-portret {
		max-width: 85px;
	}

    .records {
        /* switch to two column */
        max-width: 45%;
        padding-bottom: 1em;
    }
}


/* reset */
* {
	margin-left: 0; /* was margin: 0; before */
	padding: 0;
}

html {
	height: 100%;
}

body {
	padding: 0rem 0em 0rem 0em;
	margin-left:auto;
	margin-right:auto;
	width:100%;
	max-width:1000px;
	min-height: 100%;
	text-rendering: optimizeLegibility;
	-moz-font-feature-settings: 'kern=1';
	-moz-font-feature-settings: 'kern' 1;
	-webkit-font-feature-settings: 'kern' 1;
	-o-font-feature-settings: 'kern' 1;
	-ms-font-feature-settings: 'kern' 1;
	font-feature-settings: 'kern' 1;

	text-rendering: optimizeLegibility;
	-moz-font-feature-settings: 'liga=1';
	-moz-font-feature-settings: 'liga' 1;
	-webkit-font-feature-settings: 'liga' 1;
	-o-font-feature-settings: 'liga' 1;
	-ms-font-feature-settings: 'liga' 1;
	font-feature-settings: 'liga' 1;
}

div.content {
	display: block;
	padding: .5rem 0 .5rem 0;
}

header {
	display: block;
	padding: 0.5rem 0 0.5rem 0;
	/*border-bottom: 0.10em solid black;*/
}

footer {
	font-size: 0.84rem;
    border-top: 1px solid var(--customgray);
	display:block;
	padding: .5rem 0 .5rem 0;
    margin-top: 1rem;
    color: var(--customgray);

}

@media all and (max-width:520px) {
	div.content {
		padding: 0;
	}
}

aside {
	font-size: 0.84rem;
	line-height: 1.40;
	color: var(--customgray);
}

aside em {
	font-size: 0.7rem;
}


p {
	margin-bottom: 1em;
	line-height: 1.45;
}

ul,ol {
	margin-bottom: 0;
	padding-left: 1em;
}

/*
 * Add top margin to paragraphs starting directly after lists
 * My original solution was to have only margin-bottom on ul:list-child
 * but that also creates margin after the last element of sub lists
 * Is div needed here? I didn't test this.
 */
ul + *, ol + * {
    margin-top: 1em;
}

ul, ol {
	line-height: 1.5em;
	margin-left: 1em;
	list-style-type: lower-greek;
    list-style: "- ";
}

ul > li > ul, ul > li > ol, ol > li > ol, ol > li > ul {
    list-style: "+ ";
}

li:hover {
    list-style: "> ";
}

table {
	margin-bottom: 1.5em;
	border-collapse: collapse;
	width: 95%;
}

table tr + tr {
	border-top: 1px solid #ccc;
}
table td + td {
	border-left: 1px solid #ccc;
}

table td {
	padding: 0.4em;
	text-align: center;
	-moz-hyphens: none;
	-webkit-hyphens: none;
	-o-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;
}

table th {
	font-weight: normal;
	text-transform: uppercase;
	font-size: 95%;
	padding: 0.3rem 0.5rem 0.3rem 0.5rem;
	line-height: 1.05;
}

img {
	width: 100%;
}

a {
	text-decoration: none;
	color: inherit;
	/*display: inline-block;  enables transforms on links */
	/*
	-moz-transition-property: background;
	-webkit-transition-property: background;
	transition-property: background;
	-moz-transition-duration: 0.2s;
	-webkit-transition-duration: 0.2s;
	transition-duration: 0.2s;
	*/
	border:solid 1px transparent; /* set this to prevent horizontal shifting on hover */
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;         /* Opera/IE 8+ */
	line-height: 1;
}

p a, blockquote a {
	text-decoration: underline;
}

.addendum {
    text-align: center;
    margin-bottom: 1em;
    font-size: .8em;
}

.preview {
    max-width: 80%;
}

.preview a {
	/*text-decoration: underline;*/
}

div.nav a:active div {
	background: #cacaca;
}

hr {    border: 0;
        border-top: 1px grey dashed;
        margin-bottom: 8px;}

/*
a:active {
	color: #777;
}
*/

a:hover, a:hover h4 {
	/*
	background: black;
	color: white;
	*/
	background: var(--hovercolor);
	color: black;
	text-decoration: none;
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;         /* Opera/IE 8+ */
	border:solid 1px black;
	-moz-transition-property: color;
	-webkit-transition-property: color;
	transition-property: color;
	-moz-transition-duration: .01s;
	-webkit-transition-duration: .01s;
	transition-duration: .01s;
	line-height: 1;
}


code {
	border:dotted 1px #41403E;
	font-size: 85%;
	margin-bottom: 20px;
	background-color: white;
	/*background-color: white !important;*/
	-moz-hyphens: none;
	-webkit-hyphens: none;
	-o-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;
}

figcaption {
	font-weight: 400;
	font-style: italic;
	font-size: 0.7em/1.52;
	line-height: 1.3;
	color: #666665;
	outline: 0;
	z-index: 300;
	text-align: center;
}

blockquote {
	border-left: var(--borderwidth) solid var(--bordercolor);
	margin: 0.7em 10px;
	padding: 0.7em 20px;
}

blockquote p {
	display: inline;
}
