body {
    background-image: url("/css/background.png");
}

div.page {
    max-width: 800px;
    overflow-x: auto;
    margin: auto;
    font-family: Arial, Helvetica, sans-serif;
    background-color: white;
    border: thin solid black;
    padding: 0rem 1rem 1rem 1rem;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

.page > header {
    padding-left: 5px
}

ul {
    list-style-type: '– ';
}

table {
    width: 100%;
    border-collapse: collapse;
}

table, th, tr, td {
    padding: 5px;
}

tr {
    border-bottom: 1px solid black;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Header (title + subtitle) */
header > h1 {
    font-size: 1.4rem;
    font-weight: lighter;
}

header > h2 {
    font-size: 1.1rem;
    font-weight: lighter;
}

/* Navigation menu */

nav {
	padding: 5px 30px 5px 30px;
}

nav a {
    color: darkblue;
    text-decoration: none;
    font-weight: normal;
    /*padding: 10px;*/
    margin-right: 20px;
    white-space: nowrap;
}

nav a:hover {
    text-decoration: underline;
}

nav a:visited {
    color: darkblue;
}

/* Main matter */

main {
    /*border-left: 1px solid grey;
    border-right: 1px solid grey;*/
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 30px;
    line-height: 1.5em;
}

h1.recent {
    font-weight: lighter;
    font-size: 1.1rem;
    font-variant: small-caps;
}

main h1.title,
main > article > h2,
main > article > h3,
main > article > h4 {
    line-height: 1em;
}

main h1.title {
    font-size: 1.5rem;
}

main > ul.posts > li > a {
    font-size: 1rem;
    color: blue;
}

main > ul.posts > li > a:visited {
    color: darkblue;
}

main > ul.posts blockquote {
    border-left: 3px solid lightgrey;
    padding-left: 10px;
    margin-left: 20px;
    font-size: 0.9rem;
}

main > ul.posts li {
    list-style: none;
    margin-bottom: 10px;
}

h2.year {
    font-size: 1em;
}

span.date {
    font-size: 0.8rem;
    font-weight: lighter;
}

article figcaption {
	text-align: center;
	font-style: italic;
}

article pre, article .code {
    border-top: 2px solid darkgrey;
    border-bottom: 2px solid darkgrey;
    overflow-x: auto;
    text-align: left;
    line-height: 1.2em;
    font-variant-ligatures: none;
	background-color: #fdf6e3  !important;
	font-family: Fira Code, Hack, Source Code Pro, Roboto Mono, monospace;
	font-size: 0.9rem;

	padding: 1em;
	margin: 0 -1em;

	padding-top: 10px;
	padding-bottom: 10px;
}

.monospace {
	font-family: Fira Code, Hack, Source Code Pro, Roboto Mono, monospace;
}

article img {
    max-width: 100%;
}

article figure img {
    display: block;
    margin: auto;
    margin-bottom: 10px;
}

article a.anchor {
    color: black;
    text-decoration: none !important;
}


article a.anchor h2::before,
article a.anchor h3::before,
article a.anchor h4::before {
    visibility: hidden;
    content: "# ";
	margin-left: -2ch;
}

article a.anchor h2:hover::before,
article a.anchor h3:hover::before,
article a.anchor h4:hover::before {
    visibility: visible;
    content: "# ";
	margin-left: -2ch;
}

.send-comment {
    margin-top: 30px;
    font-size: .7rem;
}

details > summary {
    font-weight: bold;
    font-size: 0.8em;
    cursor: pointer;
}

div.box {
	padding-left: 10px;
	padding-top: 5px;
	padding-bottom: 5px;
}

div.box.warning {
	border-left: 2px solid orange;
	background-color: #fff1cd;
}

div.box.warning .warning-title {
	color: orange;
	font-weight: bold;
}

div.box.warning .warning-sign {
	background-color: orange;
	color: white;
}

/* Footer */

footer {
    margin-top: 70px;
    font-weight: lighter;
    font-size: 0.7rem;
    margin-bottom: 10px;
    margin-left: 10px;
}

/* Links page */
ul.links {
	list-style: none;
}

ul.links span.date a {
	color: black;
	text-decoration: none;
}

ul.links li p {
	margin-left: -20px;
}

ul.links > li {
	border-bottom: 2px dotted black;
    margin-bottom: 10px;
}
