/* Heavily modified
 *                        ___
 *                       /\_ \
 *  _____     ___     ___\//\ \      __
 * /\ '__`\  / __`\  / __`\\ \ \   /'__`\
 * \ \ \_\ \/\ \_\ \/\ \_\ \\_\ \_/\  __/
 *  \ \ ,__/\ \____/\ \____//\____\ \____\
 *   \ \ \/  \/___/  \/___/ \/____/\/____/
 *    \ \_\
 *     \/_/
 *
 * Designed, built, and released under MIT license by @mdo. Learn more at
 * https://github.com/poole/poole.
 */


/*
 * Contents
 *
 * Body resets
 * Custom type
 * Messages
 * Container
 * Masthead
 * Posts and pages
 * Pagination
 * Reverse layout
 * Themes
 */

/* @font-face{font-family:"Charter";src:url("charter_regular-webfont.woff") format('woff')} */
/* @font-face{font-family:"Charter";src:url("charter_bold-webfont.woff") format('woff');font-weight:bold} */
/* @font-face{font-family:"Charter";src:url("charter_italic-webfont.woff") format('woff');font-style:italic} */
/* @font-face{font-family:"Charter";src:url("charter_bold_italic-webfont.woff") format('woff');font-style:italic;font-weight:bold} */

/*
 * Body resets
 *
 * Update the foundational and global aspects of the page.
 */

html {
  font-family: "Droid Serif", serif;
  font-size: 100%;
  line-height: 1.5;
  box-sizing: border-box;
}

* {
  text-rendering: optimizeLegibility;
  -webkit-box-sizing: inherit;
  -moz-box-sizing: inherit;
  box-sizing: inherit;
}

html,
body {
  margin: 0;
  padding: 0;
  color: #222;
  background-color: #F8ECC2;
}

@media (min-width: 38em) {
  html {
    /* font-size: 18px; */
    padding-top: 1rem;
  }
}

body {
  padding-top: 1rem;
  font-size: 90%;
  /* -webkit-text-size-adjust: 100%; */
  /* -ms-text-size-adjust: 100%; */
}

/* Code */
code,
pre {
  font-family: 'Droid Sans Mono', monospace;
  font-weight: 600;
}

code {
  padding: .1em;
  font-size: 90%;
  color: #401515;
  /* font-weight:bold; */
}

blockquote code {color: inherit;}

pre {
  -moz-border-radius:8px;
  -webkit-border-radius:8px;
  border-radius:8px;
  background-color: #000;
  display: block;
  margin-top: 0;
  margin-bottom: 1rem;
  padding: 0.3rem;
  font-size: .9em;
  line-height: 1.4;
  white-space: pre;
  overflow: auto;
}

pre code {
  font-weight:normal;
  padding: 0;
  font-size: 100%;
  color: inherit;
  background-color: transparent;
}

a code {
  color: #aa433d;
  /* color: #3a3199; */
}

/* No `:visited` state is required by default (browsers will use `a`) */
a {
  color: #aa1300;
  /* color: #134bb2; */
  text-decoration: none;
}
a strong {
  color: inherit;
}
/* `:focus` is linked to `:hover` for basic accessibility */
a:hover,
a:focus {
  text-decoration: underline;
}


/* Headings */
h1, h2, h3, h4, h5, h6 {
  text-rendering: optimizeLegibility;
  margin-bottom: .5rem;
  font-weight: bold;
  line-height: 1.25;
  color: #222;
  letter-spacing: 1px;
}
h1 {
  font-size: 1.7rem;
}
.posts h1 {
  font-size: 1.5rem;
}

.post-with-comments h2 {
  margin-top: 1.7rem;
  font-size: 1.25rem;
}

.post-with-comments h3,
.post-with-comments h4,
.post-with-comments h5,
.post-with-comments h6 {
  margin-top: 1rem;
  font-size: 1rem;
}


/* Body text */
p {
  margin-top: 0;
  margin-bottom: 1rem;
}

strong {
  color: #303030;
}


/* Lists */
ul, ol, dl {
  margin-top: 0;
  margin-bottom: 1rem;
}

dt {
  font-weight: bold;
}
dd {
  margin-bottom: .5rem;
}


/* Misc */
hr {
  position: relative;
  margin: 1.5rem 0;
  border: 1px solid #000;
  margin-bottom: .5em;
  /* border-top: 1px solid #eee; */
  /* border-bottom: 1px solid #fff; */
}

abbr {
  font-size: 85%;
  font-weight: bold;
  color: #555;
  text-transform: uppercase;
}
abbr[title] {
  cursor: help;
  border-bottom: 1px dotted #e5e5e5;
}

/* Pygments via Jekyll */
.highlight {
  margin-bottom: 1rem;
  border-radius: 4px;
}
.highlight pre {
  margin-bottom: 0;
}


/* Series List */
.series ul {
  /* list-style: none; */
  padding-left: 1.5em;
  margin-bottom: 0;
}
.series h4 {
  font-family: 'Droid Sans', "Helvetica Neue", Helvetica, sans-serif;
  margin-top: 0;
  weight: normal;
}
.series-title {
  font-family: "Droid Serif", serif;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  weight:bold;
}
.series-post {
  font-family: "Droid Serif", serif;
  letter-spacing:.7px;
  margin-top: .2em;
}

.series {
  font-size: 95%;
  -moz-border-radius:8px;
  -webkit-border-radius:8px;
  border-radius:8px;
  border: 2px solid #d1cEb9;
  /* background-color: #d9e9c9; */
  display: inline-block;
  /* margin-top: 0; */
  margin-bottom: 1rem;
  padding: 0.5rem;
}


/* Quotes */
/* blockquote {white-space:pre-line;} */
blockquote {
  padding: .5rem 1rem;
  margin: .8rem 0;
  color: #555;
  border-left: .25rem solid #ccc;
}
.verse {
  font-family: 'Droid Sans Mono', monospace;
  font-size: 80%;
}
blockquote p:last-child {
  margin-bottom: 0;
}
@media (min-width: 30em) {
  blockquote {
    padding-right: 1.5rem;
    padding-left: 1.25rem;
  }
}

img {
  display: block;
  max-width: 100%;
  margin: 0 0 1rem;
  border-radius: 2px;
}

/* Tables */
table {
  margin-bottom: 1rem;
  width: 100%;
  border: 1px solid #e5e5e5;
  border-collapse: collapse;
}
td,
th {
  padding: .25rem .5rem;
  border: 1px solid #e5e5e5;
}
tbody tr:nth-child(odd) td,
         tbody tr:nth-child(odd) th {
  background-color: #F1EED9;
}



/*
 * Custom type
 *
 * Extend paragraphs with `.lead` for larger introductory text.
 */

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}


/*
 * Messages
 *
 * Show alert messages to users. You may add it to single elements like a `<p>`,
 * or to a parent if there are multiple elements to show.
 */

.message {
  margin-bottom: 1rem;
  padding: 1rem;
  color: #717171;
  background-color: #f9f9f9;
}


/*
 * Container
 *
 * Center the page content.
 */

.container {
  /* position:relative; */
  max-width: 31rem;
  padding-left: 0;
  padding-right: 0;
  margin-left: auto;
  margin-right: auto;
}


/*
 * Masthead
 *
 * Super small header above the content for site name and short description.
 */

.masthead {
  width: inherit;
  padding-bottom: 0;
  margin-bottom: 1.5em;
  margin-left: 0.3rem;
  margin-right: 0.3rem;
  /* text-align: right; */
}

.masthead .title {
  line-height: 93%;
  font-size: 200%;
}

.masthead .links {
  list-style: none;
  padding-left: 0;
  padding-right: 1rem;
  width:inherit;
}
.masthead .links img.icon {
  width: 1.1em;
  display:inline;
  margin:0 .5em 0 0;
  padding:0;
  position:relative;
  bottom:-0.15em;
}
.masthead .links li {
  font-family: "Droid Sans Mono", Helvetica, sans-serif;
  font-size:120%;
  width: inherit;
  margin-top:.8em;
}

.masthead .links input {
  font-size:inherit;
  width: 90%;
  padding-left: 5px;
}
.masthead .title, .masthead .tagline,
.masthead .links {
  margin-top: 0;
  margin-bottom: 0;
  color: #505050;
}

.masthead .links {
  margin-top: 1rem;
}
.masthead a {
  color: #202020;
}

.masthead small {
  vertical-align: text-top;
  font-family: 'Droid Sans', sans-serif;
  font-size: 90%;
  font-weight: 400;
  color: #909090;
  letter-spacing: 0;
}

a.author {
  color: inherit;
}
a.author:hover,
a.author:focus {
  color: black;
}



/*
 * Posts and pages
 *
 * Each post is wrapped in `.post` and is used on default and post layouts. Each
 * page is wrapped in `.page` and is only used on the page layout.
 */

.post-with-comments {
  font-size: 105%;
  margin:0;
  margin-left: 0.3rem;
  margin-right: 0.3rem;
  max-width: 32rem;
  /* padding-left: 0; */
  /* padding-right:0; */
  /* margin-left:  auto; */
  /* margin-right: auto; */
}

.post-with-comments p {
  text-align: justify;
}

.post-with-comments dd {
  text-align: justify;
}

.post, .page {
  width:inherit;
  margin-bottom:2.5rem;
}
.border-box {
  padding: 0;
  margin: 0;
  margin-bottom: 3em;

  color: #333;
  /* -moz-border-radius:6px; */
  /* -webkit-border-radius:6px; */
  /* box-shadow: .1rem .1rem .1rem #666; */
  /* border:2px solid #e7e7e7; */
  /* border-radius:6px; */
  /* background-color: #e7e7e7; */
}

/* .border-box:active { */
/*     box-shadow: 0 0 .1rem #666; */
/*     position:relative; */
/*     left:.2em; */
/*     top:.2em; */
/* } */

/* Blog post or page title */
.page-title,
.post-title,
.post-title a {
  color: #303030;
}
.page-title,
.post-title a,
.post-title {
  margin-top: 0;
  padding-top: 0;
}

/* Meta data line below post title */
.post-date {
  display: block;
  margin-top: -.5rem;
  margin-bottom: 1rem;
}
.post-date .comment-link {
  float:right;
}
.post-date, .post-date .comment-link, .timestamp {
  color: #9a9a9a;
}

/* Share Buttons */
.share-buttons {
  margin-bottom:0;
}
.share-buttons img {
  display:inline;
  width:2.3em;
  margin-right:0.8em;
}
/* Tags */
@media (min-width: 30em) {
  .tags-line {
    float: right;
  }
}
.tag, .tag a {
  color: black;
}

/* Related posts */
.related {
  font-family:  'Droid Sans', sans-serif;
  padding-top: 0;
  padding-bottom: 1.3rem;
}
.related-posts {
  padding-left: 0;
  padding-right: 0;
  list-style: none;
}

.related h3 {
  margin-top: 1em;
}
.related-posts h4 {
  margin-top: 0;
  font-weight: normal;
  font-size: 100%;
}
.related-posts li small {
  font-size: 75%;
  font-weight: bold;
  color: #999;
}

.related-posts li small .tag{
  color: black;
  font-size: 115%;
  font-weight: normal;
}
.related-posts li a:hover {
  color: #268bd2;
  text-decoration: none;
}
.related-posts li a:hover small {
  color: inherit;
}

/* Archive */
ul.archive {
  list-style: none;
  padding-left: 3em;
}
.archive li {
  padding-bottom: .6em;
}
.archive-date {
  margin-left: -2em;
  font-size: 85%;
  font-family:  'Droid Sans Mono', monospace;
  color: #666666;
}

@media (max-width: 30em) {
  ul.archive {
    padding-left: 2em;
  }
}


/* Right sidebar
 */

.right-sidebar {
  font-family: "Droid Serif", serif;
  padding-bottom: 0;
  padding-top: 0;
  margin-right: 0rem;
  margin-top:2rem;
  margin-left:21rem;
  margin-bottom: 0;
  /* text-align:right; */
  position:fixed;
  top:0;
  left:50%;
  display:inline-block;
  width:13rem;
  height:100%;
  /* background-color:blue; */
  align-content: right;
}
.right-sidebar dl a {
  color: black;
}
.right-sidebar h1 {
  margin-top: 0;
}
.right-sidebar dd {
  /* padding-left: 0; */
  margin-left: 1em;
  font-size: 93%;
  letter-spacing: 0.5px;
  color: #777;
}

.right-sidebar dt {
  font-family: 'Droid Sans', "Helvetica Neue", Helvetica, sans-serif;
  margin-left: 0;
  color: #555;
}


/*
 * Pagination
 *
 * Super lightweight (HTML-wise) blog pagination. `span`s are provide for when
 * there are no more previous or next posts to show.
 */

.pagination {
  overflow: hidden; /* clearfix */
  margin-left: auto;
  margin-right: auto;
  font-family: sans-serif;
  color: #ccc;
  text-align: center;
  font-weight:bold;
  font-size:110%;
}

/* Pagination items can be `span`s or `a`s */
.pagination-item {
  display: block;
  padding: 1rem;
  /* border: 1px solid #eee; */
}
.pagination-item:first-child {
  margin-bottom: -1px;
}

/* Only provide a hover state for linked pagination items */
a.pagination-item:hover {
  background-color: #FFF1EE;
}

.pagination {
  margin: 3rem 0;
}
.pagination-item {
  /* float: right; */
  display:inline-block;
  width: 40%;
  margin: 4px;
  border-radius:15px;
}
.pagination-item:last-child {
  border-top-left-radius:    0;
  border-bottom-left-radius: 0;
}
.pagination-item:first-child {
  border-top-right-radius:    0;
  border-bottom-right-radius: 0;
}

.twitter-follow,
.github-follow {
  height: 28px;
  width: 157px;
  margin: 0.5em 0;
}

.gad {
  width: 100%;
  height: 100px;
}
.bottom {
  position:absolute;
  bottom:3rem;
}

.se-flair {
  padding: 0;
  margin: 0;
}

.gratipay-button {
  margin: 0.5em 0;
}
.gratipay-button img {
  height: 26.5px;
  padding: 0;
  margin: 0;
}
.centered-image {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.PageNavigation {
  font-size: 14px;
  display: block;
  width: 100%;
  overflow: hidden;
  margin: 1em 0;
}

.PageNavigation a {
  display: block;
  width: 100%;
  float: left;
}

.PageNavigation .next {
  text-align: right;
}
/* Responsiveness */
@media (max-height: 599px) {
  .masthead .bottom {display:none;}
}
@media (min-height: 600px) {
  .masthead .bottom {display:initial;}
}

@media (max-width: 799px) {
  .right-sidebar {display:none;}
  .masthead .bottom {display:none;}
  .mobile-only {display:block;}

  .post-with-coments h1 {
    font-size: 1.5em;
  }

  .masthead .links {
    margin-top: .3rem;
    margin-left: 0;
    margin-right: 0;
    padding-right: 0;
  }
  .masthead .links li {
    margin: 0;
    margin-bottom: .3rem;
    text-align: center;
    font-size: 100%;
    width: 32%;
    display: none;
  }
  /* Only 3 links fit in mobile. */
  .masthead .links li:nth-child(1),
  .masthead .links li:nth-child(2),
  .masthead .links li:nth-child(3) {
    display:inline-block;
  }

  .pagination {
    width: 99%;
  }
}

@media (min-width: 800px) {
  .right-sidebar {display:none;}
  .masthead .bottom {display:initial;}
  .mobile-only {display:none;}

  .container {
    /* overflow:hidden; */
    max-width: 52rem;
    /* width:34rem; */
    margin-left:  auto;
    margin-right: auto;
    /* background-color:red; */
  }
  
  .masthead {
    margin-top:2rem;
    margin-right:11rem;
    margin-bottom: 0;
    /* text-align:right; */
    position:fixed;
    top:0;
    right:50%;
    display:block;
    width:13rem;
    height:100%;
  }
  .post-with-comments {
    /* float:left; */
    margin-left:18rem;
    /* width:34rem; */
    display:inline-block;
    /* overflow:scroll; */
  }  
}

@media (min-width: 1110px) {
  .container {
    /* overflow:hidden; */
    max-width: 33rem;
    /* width:34rem; */
    margin-left:  auto;
    margin-right: auto;
    /* background-color:red; */
  }
  
  .post-with-comments {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .right-sidebar {display:initial;}
  
  .masthead {
    /* background-color:blue; */
    margin-right:20rem;
    /* text-align:right; */
  }
}


/* KBD */

/* Added by me */
kbd
{
  -moz-border-radius: 6px;
  -moz-box-shadow: 0 1px 0 rgba(0,0,0,0.2),0 0 0 2px #fff inset;
  -webkit-border-radius: 6px;
  -webkit-box-shadow: 0 1px 0 rgba(0,0,0,0.2),0 0 0 2px #fff inset;
  background-color: #f7f7f7;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2),0 0 0 2px #fff inset;
  color: #333;
  display: inline-block;
  font-family: 'Droid Sans Mono', monospace;
  font-size: 80%;
  font-weight: normal;
  line-height: inherit;
  margin: 0 .1em;
  padding: .08em .4em;
  text-shadow: 0 1px 0 #fff;
  word-spacing: -4px;
}

.white-pre {
  color: #fff;
  width: 100%;
}

.code-input {
  font-size: 70%;
  font-family: 'Droid Sans Mono', monospace;
  border-radius: 6px;
  /* width: 100%; */
}

/* For some reason, the pre-blocks generated are wrapped in a figure
   class="highlight". */
figure.highlight {
  width: 95%;
  margin-left: 0.5em;
  margin-right: 0.5em;
}
