/* --- Standard CSS customizations ------------------------------------- */
      
article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary {
    display:block;
}
      
audio,canvas,video { 
    display:inline-block;
}

audio:not([controls]) { 
    display:none;
    height:0;
}

[hidden] { 
    display:none;
}

body,h1,h2,h3,h4,h5,h6,p,ul,ol,dl { 
    margin:0;
    padding:0;
}
      
b, strong { 
    font-weight:bold;
}
      
dfn {
    font-style:italic;
}
      
hr {
    -moz-box-sizing:content-box;
    box-sizing:content-box;
    height:0;
}
      
mark {
    background:#ff0;
    color:#000
}
      
q {
    quotes:"\201C" "\201D" "\2018" "\2019";
}

sub,sup { 
    font-size:75%;
    line-height:0;
    position:relative;
    vertical-align:baseline;
}

sup {
    top:-0.5em;
}

sub {
    bottom:-0.25em;
}

img {
    border:0;
}

svg:not(:root) {
    overflow:hidden;
}

figure {
    margin: 1.5em auto;
    text-align: center;
}

figure img {
    box-shadow: 0 0.5em 0.75em rgba(0, 0, 0, 0.2), 0 0.5em 0.75em rgba(0, 0, 0, 0.25);
}

fieldset {
    border:1px solid #c0c0c0;
    margin:0 2px;
    padding:0.35em 0.625em 0.75em;
}

legend {
    border:0;
    padding:0;
}

button,input,select,textarea {
    font-family:inherit;
    font-size:100%;
    margin:0;
}

button,input { 
    line-height:normal;
}

button,select {
    text-transform:none;
}

button,html input[type="button"],input[type="reset"],input[type="submit"] {
    -webkit-appearance:button;
    cursor:pointer;
}

button[disabled],html input[disabled] {
    cursor:default;
}

input[type="checkbox"],input[type="radio"] {
    box-sizing:border-box;
    padding:0;
}

input[type="search"] {
    -webkit-appearance:textfield;
    -moz-box-sizing:content-box;
    -webkit-box-sizing:content-box;
    box-sizing:content-box;
}

input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration {
    -webkit-appearance:none;
}

button::-moz-focus-inner,input::-moz-focus-inner {
    border:0;
    padding:0;
}

textarea {
    overflow:auto;
    vertical-align:top;
}

table {
    border-collapse:collapse;
    border-spacing:0;
}

/* --- Blog theme ------------------------------------------------------ */

body {
    color: #2b2b2b;
    background-color: #6b95b0;
/*
    {block:IfBackgroundImageImage}
      background: url("{image:BackgroundImage}") center top no-repeat fixed;
      background-size: 100% 100%;
    {/block:IfBackgroundImageImage}
*/
    font-family: 'Mako', Georgia, serif;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 400;
}
      
.content {
    background: #fff;
    padding: 1% 4% 2%;
}

@media (min-width: 640px) {
    .content {
	border-radius: 1.75em;
    }
}

h1, h2, .h1, .h2 {
    line-height: 1.25;
    margin-top: 1em;
}

h1, .h1 {
    font-weight: 400;
    font-size: 32px;
}

h2, .h2 {
    font-weight: 550;
    font-size: 24px;
}

h3, .h3 {
    font-weight: 550;
    font-size: 20px;
    margin-top: 1em;
}

p, .p, ul, ol {
    font-size: 18px;
}

center, .center {
    text-align: center;
}

small, .small {
    font-size: 14px;
}

strong, .strong {
    font-weight: 700;
}

.gap {
    padding-right: 0.5em; 
}

code, kbd, pre, samp {
    color: #363;
    font-family: 'Oxygen Mono', monospace, serif;
    font-size: 0.9em;
}

p code {
    font-size: 0.9em;
}

p, ul, ol { margin-top: 1em; }

@media screen and (min-width: 480px) {
    h1, .h1 { font-size: 48px; }
    h2, .h2 { font-size: 32px; }
    h3, .h3 { font-size: 24px; }
    body, p, .p, ul, ol { font-size: 20px;}
    small, .small { font-size: 16px;}
}

@media screen and (min-width: 640px) {
    h1, .h1 { font-size: 64px; }
    h2, .h2 { font-size: 40px; } 
    h3, .h3 { font-size: 28px; }
}

.wrap {
    width: 90%;
    max-width: 40em;
    margin: 0 auto;
    overflow: hidden;
}

a {
    color: #4444ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header {
    padding: 2em 5% 0;
    max-width: 40em;
    margin: 3em auto;
    color: #fff;
    overflow: hidden;
}

header a {
    color: #fff;
}

/*

header:after {
     clear: both;
     content: '.';
     display: block;
     height: 0;
     visibility: hidden;
}

*/

.logo {
    float: left;
    margin-right: 2em;
    margin-bottom: 1em;
    border-radius: 25px;
    box-shadow: 3px 3px 3px #434c6d;
    height: 9em;
}

.title {
    /*margin-top: 0.25em;*/
    font-family: 'Bitter', Georgia, serif;
    margin-top: auto;
    margin-bottom: auto;
}

.title a {
    color: #fff;
    text-shadow: 3px 3px #434c6d;
}

@media screen {
    .title a {
        text-shadow: 3px 3px #333;
    }
}
.description {
    margin-top: 0.25em;
}

@media (max-width:640px) {
    header {
        /*padding: 1.5em 5% 0;*/
        margin: 1em auto;
    }
    .logo {
        margin-right: 1.5em;
        height: 8em;
    }
    .description {
        clear: both;
    }
}

article {
    margin-bottom: 2em;
}

article a:active, article a:hover {
    text-decoration: none;
    border-bottom: 1px solid #4444ff;
    padding-bottom: 0.05em;
}

.meta-title {
    font-family: 'Bitter', Georgia, serif;
}

a.post-title {
    font-family: 'Bitter', Georgia, serif;
    color: #2b2b2b;
}

a.post-title:hover {
    color: #4444ff;
}

ul li {
    margin-bottom: 1em;
}

ul.pages {
    list-style: none;
}

ul.pages li {
    display: inline-block;
    margin-right: 1em;      
}

ul.pages li a {
    display: block;
    height: 1em;
    line-height: 2em;
}

.post img,
.photoset,
.photoset img,
.photoset_row {
    max-width: 100%;
}

.post iframe, .video object {
    width: 100%;
    max-width: 100%;
}

.post blockquote {
    padding-left: 1em;
    border-left: 1px solid #ddd;
}

.post ul, .post ol {
    margin-left: 2em;
}

.post footer ul, .post footer ol {
    margin: 0;
}

.quote blockquote {
    padding: 0;
    border: none;
    font-style: italic;
}

.quote .source {
    text-align: right;
}

.post footer {
    margin-top: 1em;
}

.permalink {
    padding: 0.5em;
    color: #aaa;
    font-style: italic;
}

.permalink a {
    color: #aaa;
}

.permalink a:hover {
    color: #999;
}

.permalink .source {
    float: right;
    margin-right: 0;
}

.permalink li {
    display: inline-block;
    margin-right: 1em;
}

.tags {
    margin-top: 1em;
}

.shariff a {
    margin-top: inherit;
    line-height: 1;
    color: #fff;
}

.posts .separator {
    border-bottom: 1px dotted #666;
    margin: 3em 10%;
}

.pagination {
    margin-top: 4em;
    text-align: center;
    line-height: 3em;
    overflow: hidden;
}

/*

.pagination:after {
    clear: both;
    content: '.';
    display: block;
    height: 0;
    visibility: hidden;
}

*/

.pagination a {
    display: block;
    height: 3em;
    padding: 0 1em;
    border-radius: 0.25em;
}

.pagination a:hover {
    background: #eee;
    text-decoration: none;
}

.pagination .previous {
    float: left;
}

.pagination .next {
    float: right;
}


footer.wrap {
    padding-top: 2em;
    padding-bottom: 2em;
}

.copyright {
}

.copyright a {
    color: #2b2b2b;
}

/* --- Comments -------------------------------------------------------- */

.comments .separator {
    border-top: 1px dotted #666;
    margin: 3em 10%;
}

.disqus {
    padding-top: 10px;
}

/* --- Notes ----------------------------------------------------------- */

aside.notes {
    margin-top: 4em;
}

ol.notes {
    list-style: none;
    margin-top: 1em;
    border: 1px solid #ddd;
    border-radius: 0.25em;
}

ol.notes, ol.notes a {
    color: #aaa;
}

li.note {
    display: block;
    line-height: 2em;
    padding: 0.5em 1em;
    border-bottom: 1px solid #ddd;
}

li.note:last-child {
    border: none;
}

ol.notes li.note img.avatar {
    display: block;
    float: left;
    width: 2em;
    height: 2em;
    margin-right: 1em;
    border-radius: 0.25em;
}

.notes .action a {
    color: #2b2b2b;
}

.action {
    display: block;
    margin-left: 3em;
}

.notes blockquote {
    line-height: 1.5;
    margin-left: 3em;
}

/* --- Drop down menu -------------------------------------------------- */

/* Material CSS3 Navigation Bar with Dropdowns

   Original implementation: //codepen.io/colewaldrip/pen/KpRwgQ
   Author: Cole Waldrip
   License: MIT

   Heavily modified by Marc-Andre Lemburg, 2015. Added support for
   small screens and mobiles.

*/

/* Regular display: show menu as top bar, with two-column drop-downs */

.nav-bar {
    width: 100%;
    height: 30px;
    clear: both;
    background-color: #fff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    font-size: 16px;
}

header .nav-bar {
    position: fixed;
    top: 0px;
    left: 0px;
}

@media print {
    header .nav-bar {
        display: none;
    }
}

.nav-bar a, .nav-bar a:hover {
    text-decoration: none;
}

.nav-bar > nav {
    max-width: 60em;
    margin: 0 auto;
}

.nav-bar > nav > div {
    float: left;
    /* Note: This width has to be adjusted when adding new top-level
       entries to the menu. It must be set to 100% / #entries,
       e.g. 16.6666% for 6 entries. */
    width: 16.6666%;
    height: 100%;
    position: relative;
}

.nav-bar > nav > div > a {
    text-align: center;
    width: 100%;
    height: 100%;
    display: block;
    line-height: 30px;
    color: #333;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
}

.nav-bar > nav > div:hover > a {
    background-color: rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.nav-bar > nav > div > div {
    /*display: none;*/
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
    background-color: white;
    min-width: 330%;
    position: absolute;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    padding: 10px;
    transition: opacity 0.2s ease;
}

.nav-bar > nav > div:not(:first-of-type):not(:last-of-type) > div {
    left: -110%;
    border-radius: 0 0 4px 4px;
}

.nav-bar > nav > div:first-of-type > div {
    left: 0;
    border-radius: 0 0 4px 0;
}

.nav-bar > nav > div:last-of-type > div {
    right: 0;
    border-radius: 0 0 0 4px;
}

.nav-bar > nav > div:hover > div {
    /*display: block;*/
    visibility: visible;
    opacity: 1;
}

.nav-bar > nav > div > div > a {
    display: block;
    float: left;
    padding: 1%;
    /* Note: min-width is adjusted to show an evenly spaced two-column
       drop-down */
    min-width: 46%;
    margin: 0.25em 1%;
    text-align: left;
    text-indent: 0.25em;
    background-color: #eee;
    color: #333;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.nav-bar > nav > div > div > a:nth-child(2n) {
    float: right;
}

.nav-bar > nav > div > div > a:hover {
    background-color: #ffd768;
    cursor: pointer;
}

/* Smaller browser windows: show single column drop-downs */

@media (max-width:950px) {
    .nav-bar > nav > div > div {
        min-width: 175%;
        margin: 0 auto;
    }
    .nav-bar > nav > div:not(:first-of-type):not(:last-of-type) > div {
	left: -45%;
    }
    .nav-bar > nav > div > div > a {
        float: inherit;
        margin: 0.75em auto;
        padding: 0.25em;
	min-width: 75%;
    }
    .nav-bar > nav > div > div > a:nth-child(2n) {
	float: inherit;
    }
}

/* Mobile displays: show two-column inline menu */

@media (max-width:640px) {
    header .nav-bar {
        position: relative;
        margin-top: 2em;
        background-color: #eee;
        height: 100%;
        overflow: hidden;
    }
    .nav-bar > nav {
        /*margin: inherit;*/
    }
    .nav-bar > nav > div {
        width: 50%;
        overflow: hidden;
        border-bottom: 2px solid #fff;
    }
    .nav-bar > nav > div > div {
        display: none;
        min-width: 50%;
        position: relative;
        margin: 0 auto;
    }
    .nav-bar > nav > div:hover > div {
	display: block;
    }
    .nav-bar > nav > div:not(:first-of-type):not(:last-of-type) > div {
        left: inherit;
    }
    .nav-bar > nav > div > div > a {
        float: inherit;
        margin: 0.75em auto;
        padding: 0.25em;
	min-width: 75%;
    }
    .nav-bar > nav > div > div > a:nth-child(2n) {
	float: inherit;
    }
    .nav-bar > nav > div > a > span {
        /*display: none;*/
    }
}

/* --- Syntax highlighting --------------------------------------------- */

/* Python */
.python .hljs-keyword { color: #0001ff; } /* keyword */
.python .hljs-built_in { color: #6061ff; } /* built-in objects (None, False, True and Ellipsis) */
.python .hljs-number { color: #1a7469; } /* number */
.python .hljs-string { color: #167216; } /* string (of any type) */
.python .hljs-comment { color: #0304ce; } /* comment */
.python .hljs-decorator { color: #006da8; } /* @-decorator for functions */
.python .hljs-function {  } /* function header “def some_name(...):” */
.python .hljs-class {  } /* class header “class SomeName(...):” */
.python .hljs-title { color: #cd0000; } /* name of a function or a class inside a header */
.python .hljs-params { color: #ce5103; } /* everything inside parentheses in a function’s or class’ header */

