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.666em;
}

a {
  outline: none;
}

code {
  background: #f8f8f8;
  font-family: 'Source Code Pro', monospace;
  font-size: 16px;
  hyphens: none; /* breaking inline-code sections with hyphens looks bad */
  /*font-size: 100%;*/
}

.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.7;
  color: #555;
}

.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 {
  margin-top: -1em;
}

.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: 15px 0 25px;
}

.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;
}

.article-content a {
  text-decoration: none;
  color: inherit;
  /* border-bottom: 3px solid #CBF8DF; */
  box-shadow: inset 0 -4px 0 #CBF8DF;
  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: 150px;
  margin: 50px auto;
  height: 1px;
  overflow: hidden;
  border: none;
  background: #e5e5e5;
}

.highlight {
  font-family: 'Source Code Pro', monospace;
  border-radius: 3px;
  position: relative;
  /*margin: 40px 0;*/
  font-size: 14px;
  /*font-size: 100%;*/
  text-align: left;
}

.highlight pre {
  padding: 10px;
  overflow: auto !important;
}

.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;
}

@media (min-width: 800px) {

  /* 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;
  }

  .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.8;
    margin: 30px auto;
  }

  .highlight {
    font-family: 'Source Code Pro', monospace;
    font-size: 16px;
    /*font-size: 120%;*/
    margin: 0px 10px;
  }

  .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;
  }
}

/* Pygment Highlighting classes, Tango style, copied from
 * https://github.com/richleland/pygments-css/blob/master/tango.css */

.highlight .hll { background-color: #ffffcc }
.highlight  { background: #f8f8f8 }
.highlight .c { color: #8f5902; font-style: italic } /* Comment */
.highlight .err { color: #a40000; border: 1px solid #ef2929 } /* Error */
.highlight .g { color: #000000 } /* Generic */
.highlight .k { color: #204a87; font-weight: bold } /* Keyword */
.highlight .l { color: #000000 } /* Literal */
.highlight .n { color: #000000 } /* Name */
.highlight .o { color: #ce5c00; font-weight: bold } /* Operator */
.highlight .x { color: #000000 } /* Other */
.highlight .p { color: #000000; font-weight: bold } /* Punctuation */
.highlight .ch { color: #8f5902; font-style: italic } /* Comment.Hashbang */
.highlight .cm { color: #8f5902; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #8f5902; font-style: italic } /* Comment.Preproc */
.highlight .cpf { color: #8f5902; font-style: italic } /* Comment.PreprocFile */
.highlight .c1 { color: #8f5902; font-style: italic } /* Comment.Single */
.highlight .cs { color: #8f5902; font-style: italic } /* Comment.Special */
.highlight .gd { color: #a40000 } /* Generic.Deleted */
.highlight .ge { color: #000000; font-style: italic } /* Generic.Emph */
.highlight .gr { color: #ef2929 } /* Generic.Error */
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.highlight .gi { color: #00A000 } /* Generic.Inserted */
.highlight .go { color: #000000; font-style: italic } /* Generic.Output */
.highlight .gp { color: #8f5902 } /* Generic.Prompt */
.highlight .gs { color: #000000; font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.highlight .gt { color: #a40000; font-weight: bold } /* Generic.Traceback */
.highlight .kc { color: #204a87; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #204a87; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #204a87; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #204a87; font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { color: #204a87; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #204a87; font-weight: bold } /* Keyword.Type */
.highlight .ld { color: #000000 } /* Literal.Date */
.highlight .m { color: #0000cf; font-weight: bold } /* Literal.Number */
.highlight .s { color: #4e9a06 } /* Literal.String */
.highlight .na { color: #c4a000 } /* Name.Attribute */
.highlight .nb { color: #204a87 } /* Name.Builtin */
.highlight .nc { color: #000000 } /* Name.Class */
.highlight .no { color: #000000 } /* Name.Constant */
.highlight .nd { color: #5c35cc; font-weight: bold } /* Name.Decorator */
.highlight .ni { color: #ce5c00 } /* Name.Entity */
.highlight .ne { color: #cc0000; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #000000 } /* Name.Function */
.highlight .nl { color: #f57900 } /* Name.Label */
.highlight .nn { color: #000000 } /* Name.Namespace */
.highlight .nx { color: #000000 } /* Name.Other */
.highlight .py { color: #000000 } /* Name.Property */
.highlight .nt { color: #204a87; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #000000 } /* Name.Variable */
.highlight .ow { color: #204a87; font-weight: bold } /* Operator.Word */
.highlight .w { color: #f8f8f8; text-decoration: underline } /* Text.Whitespace */
.highlight .mb { color: #0000cf; font-weight: bold } /* Literal.Number.Bin */
.highlight .mf { color: #0000cf; font-weight: bold } /* Literal.Number.Float */
.highlight .mh { color: #0000cf; font-weight: bold } /* Literal.Number.Hex */
.highlight .mi { color: #0000cf; font-weight: bold } /* Literal.Number.Integer */
.highlight .mo { color: #0000cf; font-weight: bold } /* Literal.Number.Oct */
.highlight .sa { color: #4e9a06 } /* Literal.String.Affix */
.highlight .sb { color: #4e9a06 } /* Literal.String.Backtick */
.highlight .sc { color: #4e9a06 } /* Literal.String.Char */
.highlight .dl { color: #4e9a06 } /* Literal.String.Delimiter */
.highlight .sd { color: #8f5902; font-style: italic } /* Literal.String.Doc */
.highlight .s2 { color: #4e9a06 } /* Literal.String.Double */
.highlight .se { color: #4e9a06 } /* Literal.String.Escape */
.highlight .sh { color: #4e9a06 } /* Literal.String.Heredoc */
.highlight .si { color: #4e9a06 } /* Literal.String.Interpol */
.highlight .sx { color: #4e9a06 } /* Literal.String.Other */
.highlight .sr { color: #4e9a06 } /* Literal.String.Regex */
.highlight .s1 { color: #4e9a06 } /* Literal.String.Single */
.highlight .ss { color: #4e9a06 } /* Literal.String.Symbol */
.highlight .bp { color: #3465a4 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #000000 } /* Name.Function.Magic */
.highlight .vc { color: #000000 } /* Name.Variable.Class */
.highlight .vg { color: #000000 } /* Name.Variable.Global */
.highlight .vi { color: #000000 } /* Name.Variable.Instance */
.highlight .vm { color: #000000 } /* Name.Variable.Magic */
.highlight .il { color: #0000cf; font-weight: bold } /* Literal.Number.Integer.Long */


/* some additions to make the pygment highlighted blocks look right with line numbers */
.highlighttable pre {
    line-height: 125%;
    font-size: 16px;
}

/* make sure the <code> default fontsize doesn't overwrite it in the line numbers
 * of a highlighted block, which results in misalignment between numbers and lines */
.highlighttable code {
    font-size: 16px;
    font-family: 'Source Code Pro', monospace;
}

.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);
}
