html,
body {
  margin: 0;
  padding: 0;
  position: relative;
}

body {
  font-family: 'Merriweather', serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -moz-font-feature-settings: "liga" on;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Lato', sans-serif;
  color: #222;
}

h1 {
  /* revolutionary idea: h1 and h2 shouldn't look the same */
  font-size: 1.75em;
}

a {
  outline: none;
}

code {
  background: #f0f0f0;
  color: #222;
  font-family: 'Source Code Pro', monospace;
  font-size: 16px;
  hyphens: none; /* breaking inline-code sections with hyphens looks bad */
  padding: 2px 3px 2px 3px;
  border-radius: 3px;
}

details summary {
  cursor: pointer;
  background-color: #FFB;
  /*margin: 1.5em;*/
  margin: 0 0.5em;
  border-radius: 8px 8px 0 0;
  padding-left: 0.5em;
}

details summary:hover {
  background-color: #FF8;
}

.wrapper {
  overflow: hidden;
  position: relative;
}

.header {
  padding: 20px 0;
  position: relative;
  background: #f5f5f5;
  border-bottom: 1px solid #eaeaea;
}

.nav {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
  font-family: 'Lato', sans-serif;
  text-align: right;
}

.nav-logo {
  float: left;
  margin-top: -11px;
  transition: transform 150ms ease-out;
}

.nav-logo:hover {
  transform: scale(1.1);
}

.nav-logo img {
  display: block;
  max-height: 40px;
  width: auto;
}

.nav-links {
  margin: 0;
  padding: 0;
  font-size: 14px;
  list-style: none;
}

.nav-links li {
  display: inline-block;
  margin: 0 0 0 15px;
}

.nav-links li:first-child {
  margin-left: 0;
}

.nav-links a {
  text-decoration: none;
  color: #111;
}

.nav-links a:hover {
  color: #000;
}

.content {
  max-width: 800px;
  margin: 20px auto 80px;
  padding: 0 15px;
  font-size: 16px;
  /*font-size: 100%;*/
  line-height: 1.6;
  color: #444;
}

.article-title {
  font-size: 34px;
  color: #222;
  margin: 0;
  line-height: 1.3;
}

.article-date {
  color: #ccc;
}

.toc {
  font-size: 80%;
  background: #ECFFF4;
  border-left: 3px solid #ACE3C4;
  padding: 5px 5px 1px 15px;
  border-radius: 8px;
}

.toc nav a {
  color: #050505;
}

.article-duration {
  margin-top: 12px;
  float: right;
  font-size: 10px;
  font-family: 'Lato', sans-serif;
  padding: 1px 5px;
  font-weight: bold;
  border-radius: 3px;
  background: #bbb;
  color: #fff
}

.article-content {
  hyphens: auto;
}

/* I want normal tables to have visible grids/borders */
.article-content table,
.article-content th,
.article-content td {
  border-collapse: collapse;
  border: 1px solid black;
  padding: 5px;
}
/* .. and centered titles */
.article-content table th {
  text-align: center;
}
/* but tables used for syntax highlighting should have not have visible borders. */
.article-content .highlighttable,
.article-content .highlighttable table,
.article-content .highlighttable th,
.article-content .highlighttable td
{
  border: 0px none;
  padding: 0px;
}


.article-content p {
  margin: 16px 0 8px;
}

.footnotes {
  /* font should be a bit smaller in footnotes */
  font-size: 90%;
}

.footnotes p {
  /* this makes sure that the [return] part of multi-line footnotes is
   * close to the last line of the footnote */
  margin: 15px 0 0px;
}

.footnotes ol::before {
 /* because apparently hugo doesn't let me set a heading or similar for the
  * footnotes, add this hack as workaround */
  content: "Footnotes:";

  font-family: 'Lato', sans-serif;
  font-weight: bold;
  font-size: 20px;
  color: #222;
  margin-left:-1em;
}

.article-content a {
  text-decoration: none;
  color: inherit;
  /* border-bottom: 3px solid #CBF8DF; */
  box-shadow: inset 0 -2px 0 #BBE8CF;
  background: transparent;
  transition: background 150ms ease;
}

.article-content a:hover,
.article-content a:focus {
  background: #CBF8DF;
}

.article-content .headinglink {
  color: #e0e0e0;
  box-shadow: none;
}

.article-content .headinglink:hover,
.article-content .headinglink:focus {
  color: #000;
  box-shadow: none;
}



.article-content hr {
  width: 400px;
  margin: 50px auto;
  height: 1px;
  overflow: hidden;
  border: none;
  background: #e5e5e5;
}

.archive {
  margin: 0;
  padding: 0;
  list-style: none;
  /*line-height: 1.3em;*/
  text-align: center;
  color: #111;
}

.archive-title {
  font-size: 32px;
}

.archive-item {
  margin: 5px 0 15px;
  padding: 0;
}

.archive-item-date {
  color: #ccc;
  font-size: 14px;
  padding: 5px 0;
  margin-top: 5px;
  display: block;
}

.archive-item-link {
  display: inline-block;
  text-decoration: none;
  font-size: 21px;
  font-family: 'Lato', sans-serif;
  font-weight: bold;
  color: #222;
  padding: 5px 0;
  border-bottom: 1px solid #ddd;
}

.archive-item-link:hover {
  border-bottom-color: #222;
}

.footer {
  padding: 25px 0;
  text-align: center;
  font-family: 'Lato', sans-serif;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #ccc;
  font-size: 14px;
}

.footer-links li {
  margin: 0;
  padding: 0;
  display: inline-block;
}

.footer-links a {
  color: #888;
  text-decoration: none;
  transition: color 150ms ease;
  margin: 0 15px;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #222;
}

.footer-links li::before {
  content: '/';
  position: relative;
  left: -2px;
}

.footer-links li:first-child::before {
  display: none;
}
.footer-links-kudos img {
  position: relative;
  top: 6px;
  margin-left: 2px;
}

blockquote {
  /* top right bottom left - default: 17px 40px*/
  margin: 0 0 0 0px;
  border-left: 3px solid #CCC;
  padding-left: 0.25em;
}

ol, ul {
  padding-left: 1.5em;
  margin: 0 0 0 0;
}

/* when using ``` code blocks without specifying a highlight language,
   just <pre><code>...</code></pre> is generated. add rules for that so it looks
   like the highlighted code blocks (just without the highlighting)
   (those rules mostly apply to highlighted blocks as well, as they also use <pre> somewhere */
pre {
  overflow: auto !important;
  border-radius: 6px;
  background-color: #f8f8f8;
  padding: 0.5em 1em;
  line-height: 1.2em;
  font-size: 14px;
}
pre code {
  /* code sets a background color and padding,
      we only want that for inline code, not in <pre> blocks */
  background-color: unset;
  border: unset;
  padding: 0;
}

@media (min-width: 870px) {
/* if there's some margin on the left, move the heading link
   * to the left so the heading itself is roughly where it would be
   * without the "# " link */
  .article-content .headinglink {
    margin-left: -1em;
  }
}

@media (min-width: 850px) {
  .header {
    padding: 25px 0; /**/
  }

  .nav-logo {
    margin-top: -13px;
  }

  .nav-logo img {
    max-height: 50px;
  }

  .nav-links {
    font-size: 18px;
  }

  .nav-links li {
    margin: 0 0 0 30px;
  }

  .content {
    font-size: 17px;
    /*font-size: 110%;*/
    line-height: 1.7;
    margin: 30px auto;
  }

  blockquote {
    /* top right bottom left - default: 17px 40px*/
    margin: 0 0 0 10px;
    padding-left: 0.5em;
  }

  /* code blocks (with and without highlight) are indented slightly
     and get a bigger font, if the screen is big enough */
  .highlight, pre {
    margin: 0px 6px;
    font-size: 16px;
  }

  .archive {
    text-align: left;
  }
  
  .summary {
    margin: 0px 6px;
  }

  .archive-title {
    font-size: 38px;
  }

  .archive-item-date {
    font-size: 19px;
    text-align: right;
    float: right;
  }

  .article-title {
    font-size: 42px;
  }

  .article-duration {
    font-size: 12px;
  }

  .footer-links {
    font-size: inherit;
  }
}

.highlight {
  font-family: 'Source Code Pro', monospace;
  position: relative;
  text-align: left;
}

.highlight pre {
  margin: 0; /* 0.5em 0 0.0em; */
  line-height: 1.3em;
}

/* padding for highlighting with linenumbers (lntable), extra padding on the left for space
   between line numbers and code - note that below there's a special rule to remove the padding
   on the left for the line number column (we want it for the code column only) */
.highlight .lntable pre {
  padding: 0.5em 0 0.5em 1em;
}

/* the first column in a line number code table is the line numbers, we don't want padding on the left there,
   but we *do* want a darker background to separate linenumbers and code */
.highlight .lntable td:first-child .chroma {
	padding-left: 0;
	background-color: #e8e8e8;
	/* only round the left corners (the outer ones), the right ones are direct neighbours of the code column */
	border-radius: 6px 0 0 6px;
}


/* generated with: hugo gen chromastyles --style=tango */
/* Background */ .chroma {
 background-color: #f8f8f8;
 border-radius: 6px; /* DG: added this */
}
/* Other */ .chroma .x { color: #000000 }
/* Error */ .chroma .err { color: #a40000 }
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #ffffcc }
/* LineNumbersTable */ .chroma .lnt {
	margin-right: 0.4em;
	padding: 0 0 0 0.4em; /* DG: changed this, used to be 0 0.4em 0 0.4em */
	color: #7f7f7f;
}
/* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
/* Keyword */ .chroma .k { color: #204a87; font-weight: bold }
/* KeywordConstant */ .chroma .kc { color: #204a87; font-weight: bold }
/* KeywordDeclaration */ .chroma .kd { color: #204a87; font-weight: bold }
/* KeywordNamespace */ .chroma .kn { color: #204a87; font-weight: bold }
/* KeywordPseudo */ .chroma .kp { color: #204a87; font-weight: bold }
/* KeywordReserved */ .chroma .kr { color: #204a87; font-weight: bold }
/* KeywordType */ .chroma .kt { color: #204a87; font-weight: bold }
/* Name */ .chroma .n { color: #000000 }
/* NameAttribute */ .chroma .na { color: #c4a000 }
/* NameBuiltin */ .chroma .nb { color: #204a87 }
/* NameBuiltinPseudo */ .chroma .bp { color: #3465a4 }
/* NameClass */ .chroma .nc { color: #000000 }
/* NameConstant */ .chroma .no { color: #000000 }
/* NameDecorator */ .chroma .nd { color: #5c35cc; font-weight: bold }
/* NameEntity */ .chroma .ni { color: #ce5c00 }
/* NameException */ .chroma .ne { color: #cc0000; font-weight: bold }
/* NameFunction */ .chroma .nf { color: #000000 }
/* NameFunctionMagic */ .chroma .fm { color: #000000 }
/* NameLabel */ .chroma .nl { color: #f57900 }
/* NameNamespace */ .chroma .nn { color: #000000 }
/* NameOther */ .chroma .nx { color: #000000 }
/* NameProperty */ .chroma .py { color: #000000 }
/* NameTag */ .chroma .nt { color: #204a87; font-weight: bold }
/* NameVariable */ .chroma .nv { color: #000000 }
/* NameVariableClass */ .chroma .vc { color: #000000 }
/* NameVariableGlobal */ .chroma .vg { color: #000000 }
/* NameVariableInstance */ .chroma .vi { color: #000000 }
/* NameVariableMagic */ .chroma .vm { color: #000000 }
/* Literal */ .chroma .l { color: #000000 }
/* LiteralDate */ .chroma .ld { color: #000000 }
/* LiteralString */ .chroma .s { color: #4e9a06 }
/* LiteralStringAffix */ .chroma .sa { color: #4e9a06 }
/* LiteralStringBacktick */ .chroma .sb { color: #4e9a06 }
/* LiteralStringChar */ .chroma .sc { color: #4e9a06 }
/* LiteralStringDelimiter */ .chroma .dl { color: #4e9a06 }
/* LiteralStringDoc */ .chroma .sd { color: #8f5902; font-style: italic }
/* LiteralStringDouble */ .chroma .s2 { color: #4e9a06 }
/* LiteralStringEscape */ .chroma .se { color: #4e9a06 }
/* LiteralStringHeredoc */ .chroma .sh { color: #4e9a06 }
/* LiteralStringInterpol */ .chroma .si { color: #4e9a06 }
/* LiteralStringOther */ .chroma .sx { color: #4e9a06 }
/* LiteralStringRegex */ .chroma .sr { color: #4e9a06 }
/* LiteralStringSingle */ .chroma .s1 { color: #4e9a06 }
/* LiteralStringSymbol */ .chroma .ss { color: #4e9a06 }
/* LiteralNumber */ .chroma .m { color: #0000cf; font-weight: bold }
/* LiteralNumberBin */ .chroma .mb { color: #0000cf; font-weight: bold }
/* LiteralNumberFloat */ .chroma .mf { color: #0000cf; font-weight: bold }
/* LiteralNumberHex */ .chroma .mh { color: #0000cf; font-weight: bold }
/* LiteralNumberInteger */ .chroma .mi { color: #0000cf; font-weight: bold }
/* LiteralNumberIntegerLong */ .chroma .il { color: #0000cf; font-weight: bold }
/* LiteralNumberOct */ .chroma .mo { color: #0000cf; font-weight: bold }
/* Operator */ .chroma .o { color: #ce5c00; font-weight: bold }
/* OperatorWord */ .chroma .ow { color: #204a87; font-weight: bold }
/* Punctuation */ .chroma .p { color: #000000; font-weight: bold }
/* Comment */ .chroma .c { color: #8f5902; font-style: italic }
/* CommentHashbang */ .chroma .ch { color: #8f5902; font-style: italic }
/* CommentMultiline */ .chroma .cm { color: #8f5902; font-style: italic }
/* CommentSingle */ .chroma .c1 { color: #8f5902; font-style: italic }
/* CommentSpecial */ .chroma .cs { color: #8f5902; font-style: italic }
/* CommentPreproc */ .chroma .cp { color: #8f5902; font-style: italic }
/* CommentPreprocFile */ .chroma .cpf { color: #8f5902; font-style: italic }
/* Generic */ .chroma .g { color: #000000 }
/* GenericDeleted */ .chroma .gd { color: #a40000 }
/* GenericEmph */ .chroma .ge { color: #000000; font-style: italic }
/* GenericError */ .chroma .gr { color: #ef2929 }
/* GenericHeading */ .chroma .gh { color: #000080; font-weight: bold }
/* GenericInserted */ .chroma .gi { color: #00a000 }
/* GenericOutput */ .chroma .go { color: #000000; font-style: italic }
/* GenericPrompt */ .chroma .gp { color: #8f5902 }
/* GenericStrong */ .chroma .gs { color: #000000; font-weight: bold }
/* GenericSubheading */ .chroma .gu { color: #800080; font-weight: bold }
/* GenericTraceback */ .chroma .gt { color: #a40000; font-weight: bold }
/* GenericUnderline */ .chroma .gl { color: #000000; text-decoration: underline }
/* TextWhitespace */ .chroma .w { color: #f8f8f8; text-decoration: underline }



.comment-user-link {
  color: black;
  text-decoration: none;
  /*
  border-bottom: 3px solid #CBF8DF;
  box-shadow: inset 0 -4px 0 #CBF8DF;
  background: transparent;
  transition: background 150ms ease;
  */
}


.comment-user-link:hover,
.comment-user-link:focus {
  background: #CBF8DF;
}

/* the #gh-* and .btn stuff is based on Don Williamson's:
 * https://github.com/dwilliamson/donw.io/blob/master/public/css/main.css#L843
 */
#gh-comments {
  text-align: center;
}

#gh-comment {
  text-align: left;
  /*color:#FFF;
   background-color:#272822; */
  border-radius: 3px;
  border:1px solid #b3b3b3;
  margin:2.5em 0;
  padding:10px;
}

#gh-comment-hr {
  border-top: inset 1px black;
  margin: 8px 0px;
}

#gh-comment p {
  margin:0px;
}

#gh-comment img {
  display: inline;
  vertical-align: middle;
  margin: 2px 10px 2px 2px;
}

.btn {
display:inline-block;
vertical-align:middle;
cursor:pointer;
white-space:nowrap;
background-image:none;
-webkit-user-drag:none;
-webkit-user-select:none;
-moz-user-select:none;
-ms-user-select:none;
user-select:none;
font-family:inherit;
line-height:1.65;
text-align:center;
text-decoration:none;
color:#333;
background-color:#EBF5FF;
border:1px solid grey;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
margin:0;
padding:10px 15px;
}

.btn:hover, .btn:focus {
background-color:#F5FAFF;
border:1px solid grey;
/* color:#fff; */
text-decoration:none;
/* border-bottom:none; */
}

.btn:active {
outline:none;
background-image:none;
-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.15);
box-shadow:inset 0 3px 5px rgba(0,0,0,0.15);
}
