/*
Theme Name: Pepsite
Theme URI: http://pepijndevos.nl/
Description: The latest theme for Pepijndevos.nl
Version: 1.0
Author: Pepijn de Vos, Pepijn Goorden
Author URI: http://pepijndevos.nl/
*/
:root{
    --background: #FFF;
    --text: #151515;
    --grey: lightgray;
    --theme: #227;
    --theme-light: rgba(240, 240, 247, 1); 

    --main-width: 620px; /* used to set the max-width of the main column of text */
    --body: Lora;
    --fringe: Hind;
}

* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Heading';
    src: url('CharlemagneStd-Bold.otf');
}

@font-face {
  font-family: 'Subheading';
  src: url(reeniebeanie.woff2) format('woff2');
}

@font-face {
  font-family: 'Newsreader';
  src: url(Newsreader.ttf);
}

@font-face {
    font-family: 'Rowan';
    src: url(Rowan.ttf);
}

@font-face {
    font-family: 'Lora';
    src: url(Lora.woff2);
}

@font-face {
  font-family: 'Hind';
  src: url(Hind.woff2) format('woff2');
}

header, footer, article, section, aside {
    display: block;
}

body, html {
    padding: 0;
    margin: 0;
    min-height: 100%;
    font-family: var(--body);
    background: var(--background);
    color: var(--text);
}

body {
    background: url("bottom.png") no-repeat 600px bottom, url("repeat.png") repeat-y 624px bottom;
}


aside {
  position: fixed;
  bottom: 0;
  left: 900px;
  padding-top: 120px;
  padding-bottom: 220px;
  min-height: 100%;
  box-sizing: border-box;
  max-height: calc(100% + 120px);
  font-family: var(--fringe);
}

aside #chain {
    position: absolute;
    top: 0;
    left: 2em;
    user-select: none;
}

article, header, footer, .giscus {
    max-width: var(--main-width);
    padding: 1em 60px;
    text-align: center;
    background: url("sep.png") no-repeat center 85px;
}

#wheel-img {
    position: fixed;
    opacity: 0.75;
    top: 100px;
    left: -600px;
    z-index: -1;
    animation: spin 200s steps(3600) infinite;
}

@keyframes spin { 100% { transform:rotate(360deg); } }

.alignleft {
    float: left;
    margin-right: 5px;
}

.alignright {
    float: right;
    margin-left: 5px;
}

.pagination {
    max-width: var(--main-width);
    padding: 0 60px;
    text-align: center;
    margin-top: 2em;
    display: flex;
    justify-content: space-between;
    font-family: var(--fringe);
}

.pagination a {
    font-weight: 600;
    text-align: right;
    padding: 0em 1em;
}

.pagination a:first-child {
    text-align: left;
}

/* ipython */

.cell .output_subarea {
  overflow: hidden;
}


.cell .prompt {
  float: left;
  margin-left: -60px;
  width: 60px;
  text-align: right;
}


#search {
    padding: 7.5px 10px;
    width: 100%;
    margin: 1em 0em;
    font-size: 16px;
    background: var(--theme-light);
    color: var(--text);
    border: solid 1px var(--text);
}

footer {
    margin-top: 120px;
    font-family: Heading;
}

.meta {
    margin-top: 1.5em;
    text-align: left;
    font-family: var(--fringe);
}

.published-time {
    font-weight: 600;
}

.tags {
    margin-top: 1em;
}

.tag {
    background: #000;
    color: lightgrey;
    padding: 4px 8px;
    margin-right: 5px;
    margin-bottom: 8px;
    display: inline-block;
    font-weight: 400;
}

nav a {
    margin-bottom: 0.35em;
    display: block;
}

#drawer-contents {
    padding: 1.5em;
    background: var(--background);
}




/* TYPOGRAPHY */

section {
    text-align: left;
    line-height: 1.5em;
}

h1, h2, h3, h1 a, h2 a, h3 a {
    color: inherit;
    text-align: center;
    font-family: Heading, serif;
    text-decoration: none;
}

h4 a {
    color: inherit;
}

h2, h3, h4 {
    margin: 2em 0em 1.2em 0em;
    scroll-margin-top: 1.5em;
    padding-bottom: 0px;
    line-height: 1.2em;
}

aside h4 {
    margin-top: 1.5em;
}

h1 {
    font-size: 2.4em;
    line-height: 1.2em;
    margin-bottom: 0.75em;
}

header span {
    display: block;
    text-align: center;
    margin: 0 auto;
    font-size: 25px;
    line-height: 1em;
    font-family: Subheading, cursive;
}

a {
    color: var(--theme);
    text-decoration: none;
    font-weight: 600;
}

p a, li a{
    text-decoration: underline;
    text-decoration-thickness: 0.5px;
    text-underline-offset: 2px;
    font-weight: 500;
}

a.strong {
    font-weight: bold;
}

article img {
    border: none;
    max-width: 100%;
}

iframe{
    width: 100%;
}

pre {
    border: 2px solid var(--grey);
    white-space: pre;
    overflow: scroll;
    padding: 1em;
    line-height: 1.2em;
    font-weight: normal;
    background: var(--theme-light);
}

/* for long one-liners that should wrap instead */
pre.noscroll{
    white-space: pre-wrap;
    overflow: visible;
}

blockquote {
  margin: 1.5em 0em;
  padding: 0em 1.5em;
  font-style: italic;
}

blockquote:before {
  color: #aaa;
  content: '“';
  font-size: 4em;
  position: absolute;
  margin-top: 0.05em;
  margin-left: -0.65em;
  font-family: serif;
}

blockquote p:first-child {
/*  display: inline;*/
    margin-top: 0em;
}

figure.highlight {
  margin: 0;
}

.gist {
    font-size: 80%;
}

del {
    color: red;
}

ins {
    color: green;
}

li{
    margin: 0em 0em 0.5em 0em;
}

li p {
    margin: 0;
    padding: 0;
}

p{
    margin: 1.2em 0em;
}

.larger {
    font-size: 1.2em;
}

.smaller {
    font-size: 0.8em;
}


@media (prefers-color-scheme: dark) {

    :root{
        --background: #151515;
        --text: lightgray;
        --theme: rgb(224, 141, 46);
        --theme-light: rgba(36, 30, 23, 1); 
        --grey: grey;
    }

    #wheel-img {
        filter: invert() brightness(0.2);
    }

    #chain{
        filter: invert() brightness(0.75);
    }
}



@media (min-width:1400px) {
    body {
        width: 1100px;
        margin: 0 auto;
    }

    aside {
        left: calc(50% + 420px);
    }

    body {
        background: url("bottom.png") no-repeat calc(50% + 286px) bottom, url("repeat.png") repeat-y calc(50% + 230px) bottom;
    }

}


@keyframes yoink { 0% { top: -2px; } 100% { top: 0px; } }

@media (max-width:1100px) {
        aside {
            z-index: 1;
            left: 0;
            width: 100%;
            padding-top: 0;
            padding-bottom: 0px;
            min-height: unset;
            bottom: unset;
            top: -1px;
        }

        aside #chain {
            margin-left: 1em;
            position: relative;
            margin-bottom: -100px;
            cursor: pointer;
            animation: yoink 0.2s ease-in 2s 4 alternate both;
        }

        aside #drawer {
            max-height: 0px;
            overflow: hidden;
            padding: 0px;
            transition: max-height 0.4s linear;
            border-bottom: grey 1px solid;
        }

        aside #drawer.open {
            max-height: 1200px;
        }

}

@media (max-width: 500px){
    article, header, footer, .giscus, .pagination {
        padding: 1em 2em;
    }

    .pagination a {
        font-weight: 600;
        text-align: right;
        padding: 0em;
    }
}


/* pygments */
.hll { background-color: #ffffcc }
.c { color: #408080; font-style: italic } /* Comment */
.err { border: 1px solid #FF0000 } /* Error */
.k { color: #008000; font-weight: bold } /* Keyword */
.o { color: #666666 } /* Operator */
.cm { color: #408080; font-style: italic } /* Comment.Multiline */
.cp { color: #BC7A00 } /* Comment.Preproc */
.c1 { color: #408080; font-style: italic } /* Comment.Single */
.cs { color: #408080; font-style: italic } /* Comment.Special */
.gd { color: #A00000 } /* Generic.Deleted */
.ge { font-style: italic } /* Generic.Emph */
.gr { color: #FF0000 } /* Generic.Error */
.gh { color: #000080; font-weight: bold } /* Generic.Heading */
.gi { color: #00A000 } /* Generic.Inserted */
.go { color: #808080 } /* Generic.Output */
.gp { color: #000080; font-weight: bold } /* Generic.Prompt */
.gs { font-weight: bold } /* Generic.Strong */
.gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.gt { color: #0040D0 } /* Generic.Traceback */
.kc { color: #008000; font-weight: bold } /* Keyword.Constant */
.kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
.kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
.kp { color: #008000 } /* Keyword.Pseudo */
.kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
.kt { color: #B00040 } /* Keyword.Type */
.m { color: #666666 } /* Literal.Number */
.s { color: #BA2121 } /* Literal.String */
.na { color: #7D9029 } /* Name.Attribute */
.nb { color: #008000 } /* Name.Builtin */
.nc { color: #0000FF; font-weight: bold } /* Name.Class */
.no { color: #880000 } /* Name.Constant */
.nd { color: #AA22FF } /* Name.Decorator */
.ni { color: #999999; font-weight: bold } /* Name.Entity */
.ne { color: #D2413A; font-weight: bold } /* Name.Exception */
.nf { color: #0000FF } /* Name.Function */
.nl { color: #A0A000 } /* Name.Label */
.nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
.nt { color: #008000; font-weight: bold } /* Name.Tag */
.nv { color: #19177C } /* Name.Variable */
.ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
.w { color: #bbbbbb } /* Text.Whitespace */
.mf { color: #666666 } /* Literal.Number.Float */
.mh { color: #666666 } /* Literal.Number.Hex */
.mi { color: #666666 } /* Literal.Number.Integer */
.mo { color: #666666 } /* Literal.Number.Oct */
.sb { color: #BA2121 } /* Literal.String.Backtick */
.sc { color: #BA2121 } /* Literal.String.Char */
.sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
.s2 { color: #BA2121 } /* Literal.String.Double */
.se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
.sh { color: #BA2121 } /* Literal.String.Heredoc */
.si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
.sx { color: #008000 } /* Literal.String.Other */
.sr { color: #BB6688 } /* Literal.String.Regex */
.s1 { color: #BA2121 } /* Literal.String.Single */
.ss { color: #19177C } /* Literal.String.Symbol */
.bp { color: #008000 } /* Name.Builtin.Pseudo */
.vc { color: #19177C } /* Name.Variable.Class */
.vg { color: #19177C } /* Name.Variable.Global */
.vi { color: #19177C } /* Name.Variable.Instance */
.il { color: #666666 } /* Literal.Number.Integer.Long */