html {
  font-size: 1em;
}
body {
  color: #121212;
  overflow-y: scroll;
  font-weight: 400;
  line-height: 1.5;
    font-family: 'Encode Sans', sans-serif;
/* Heading numbering from http://2ality.com/2012/01/numbering-headingshtml.html*/
/*    counter-reset: h2counter;*/
    counter-reset: h2counter sidenote-counter;
}
/* THIS IS MY STUFF */
::selection {
    /* background: #fff999; */
    background: #ffd1dc;
    text-shadow: none;
}
.post-date {
  display: block;
  margin-bottom: 1rem;
  margin-left: 0.5rem;
  color: #9a9a9a;
}
/* explains heading*/
.hexplain {
    font-size: 0.65em;
}
.social-links {
    padding: 0;
    text-align: center;
}
.social-links li {
    display: inline-block;
}
.social-links li .icon {
    width: 50px;
    height: 50px;
    fill: #4C4C4C;
}
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    margin-left: 8px;
}

h1 {
    counter-reset: h2counter;
    font-family: 'Dosis';
    font-size: 36px;
    /* margin-left: 0.5rem; */
}

h2 {
    counter-reset: h3counter;
    font-family: 'Dosis';
    font-size: 28px;
    /* margin-left: 0.5rem; */
}

h2:before {
        content: counter(h2counter) ".\0000a0";
        counter-increment: h2counter;
}

h2.nocount:before {
        content: none;
        counter-increment: none;
    }

h3 {
    counter-reset: h4counter;
}

h3:before {
        content: counter(h2counter) "." counter(h3counter) ".\0000a0";
        counter-increment: h3counter;
}

h3.nocount:before {
        content: none;
        counter-increment: none;
    }

h4 {
    counter-reset: h5counter;
}

h4:before {
        content: counter(h2counter) "." counter(h3counter) "." counter(h4counter) ".\0000a0";
        counter-increment: h4counter;
}

p {
    margin: 0.5rem;
}

ul {
    margin-top: 0rem;
    overflow: hidden;
}

.right_float {
    max-width: 400px;
    float: right;
    clear: right;
  padding: 4px;
  margin-right: 10px;
    margin-left: 10px;
  margin-bottom: 10px;
  border: solid 2px #ECCBD9;
  line-height: 20px;
  border-radius: 6px;
  box-shadow: 1px 2px 2px 0px rgba(0, 0, 255, .2);
}

figure {
    display: block;
    margin-left: 8px;
    margin-right: 8px;
}


/* highlight ouside links for debugging; comment out before deploying*/
/*
a[href*='//'] {
    color: #d06920;
}
*/

.highlight_pink {
  text-decoration: underline;
  text-decoration-color: #ffa4a4;
}

.highlight_blue {
    text-decoration: underline;
    text-decoration-color: #a4a4ff;
}

.min {
    color: #0000ff;
    font-weight: 700;   
}

.med {
    color: #00cc00;
    font-weight: 700;   
}

.max {
    color: #ff0000;
    font-weight: 700;   
}
/* MY STUFF ENDS*/
/* ------------------------------------------------------------- */
a {
  color: #121212;
  text-decoration: underline;
}
a:hover, a:active {
  /* color: #5090ff; */
  text-decoration: underline;
}
hr {
  height: 9px;
	background: url(../files/hrcross.png) repeat-x 0 0;
    border: 0;
}
hr.cross {
	height: 9px;
	background: url(../files/hrcross.png) repeat-x 0 0;
    border: 0;
}
pre, code {
  font-family: monospace, serif;
  background-color: lightgray;
  padding-left: 4px;
  padding-right: 4px;
}
pre {
  padding: 4px;
}
blockquote {
  margin: 0;
  margin-left: 40px;
  border-left: solid 4px #b4c6c7;
  padding-left: 8px;
  font-style: normal;
  /* color: #193b80; */
    overflow: hidden;
}
blockquote blockquote {
  margin-left: 0;
  border-left-color: #e7c3e5;
}
blockquote blockquote blockquote {
  border-left-color: #c3e7d2;
}
blockquote blockquote blockquote blockquote {
  border-left-color: lightgray;
}

/* Site header */
.site-header {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.site-navi {
  font-family: 'Dosis';
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
/*  padding-bottom: 8px;*/
}
.site-navi a {
  /* color: rgb(186, 153, 167); */
  text-decoration: none;
  font-weight: 500;
  
}
.site-title {
  -webkit-flex-grow: 1;
  flex-grow: 1;
  font-size: 1.7rem;
  margin: 0;
  margin-top: 10px;
  padding: 0;
  font-weight: normal;
}
.site-navi-items {
  -webkit-flex-grow: 0;
  flex-grow: 0;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-end;
  -webkit-flex-wrap: wrap;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
  flex-wrap: wrap;
  align-items: flex-end;
  font-size: 1em;
  list-style-type: none;
  margin: 0;
  margin-top: 10px;
  padding: 0;
    text-decoration: none;
}
.site-navi-items li {
  font-size: 1.2rem;
  padding-left: 20px;
  white-space: nowrap;
}
.site-header-bottom {
  margin-top: 0;
  margin-bottom: 8px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Breadcrumb */
.breadcrumb {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
  font-size: 1.6em;
}

/* Code highlight */
.highlight pre, .highlight code {
  background-color: inherit;
  padding: 0;
}

/* Main contents */
.main {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
    position: relative;
    width: 100%;
}

/* article */
.article {
  margin-bottom: 40px;
  line-height: 1.5;
}
.article img {
  max-width: 100%;
  box-sizing: border-box;
  border: solid 1px lightgray;
  padding: 4px;
}
.article > table {
  width: auto;
  overflow-x: auto;
  overflow-y: hidden;
  border: solid 1px lightgray;
  border-spacing: 0;
  border-collapse: collapse;
}
.article > table th, .article > table td {
  border: solid 1px lightgray;
  padding: 4px;
}
.article > div {
  width: auto;
  /* overflow-x: auto;
  overflow-y: hidden; */
}
.article > pre {
  width: auto;
  overflow-x: auto;
  overflow-y: hidden;
}
.article-image {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px;
}
.article-title {
  margin-left: 0.5rem;
    margin-top: 10px;
  padding: 0;
}
.article-subtitle {
  margin: 0;
  padding: 0;
}
.article-title-series {
  margin: 0;
  padding: 0;
}
.article-title-series a {
  color: inherit;
}
.article-title-series a:hover, .article-title-series a:active {
  color: gray;
}
.article-title-bottom {
  margin-top: 5px;
}
.about .article-title-bottom {
  margin-bottom: 40px;
}
.article .article-meta {
  list-style-type: none;
  padding: 0;
  margin: 5px 0 40px 0;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-end;
  align-items: flex-end;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}
.article-meta a {
  color: inherit;
}
.article-meta a:hover, .article-meta a:active {
  color: gray;
}
.article-meta li {
  padding: 0;
  padding-right: 4px;
  margin: 0;
}
.article-meta li.article-meta-date {
  padding: 0;
  padding-right: 24px;
}

.article-series {
  margin-bottom: 40px;
}
.article-series .series-title a {
  color: inherit;
}
.article-series .series-title a:hover, .article-series .series-title a:active {
  color: gray;
}
.article-series .active {
}

.article-share {
  list-style-type: none;
  padding: 0;
  margin: 0;
  margin-bottom: 40px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-end;
  align-items: flex-end;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}
.article-share li {
  margin-right: 4px;
  vertical-align: bottom;
  padding: 0;
}
.article-share li .fb_iframe_widget > span {
  vertical-align: baseline !important;
}
.article-share li .pocket-btn {
  display: inline-block;
  height: 20px;
  overflow: hidden;
}

.disqus-comments {
  margin-bottom: 40px;
}
.article-pager {
}

/* pager */
.pager {
  list-style-type: none;
  padding: 0;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
}
.pager-newer {
  margin-right: 40px;
}
.pager-older {
}
.pager-noitem {
  color: gray;
}

/* About */
.about {
  text-align: center;
}
.author {
}
.author-name {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 10px;
}
.author-avatar-wrapper {
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  width:158px;
  height:158px;
  border-radius: 50%;
  border: solid 1px lightgray;
}
.author-avatar {
  width:150px;
  height:150px;
  margin: 4px;
  border-radius: 50%;
  background-color: lightgray;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}
.author-social {
  list-style-type: none;
  padding: 0;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}
.author-social li {
  font-size: 1.5em;
  margin-left: 6px;
  margin-right: 6px;
}
.author-social a {
  color: inherit;
}
.author-social a:hover, .author-social a:active {
  color: gray;
}
.about ul:not(.author-social)  {
  margin-left: auto;
  margin-right: auto;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  padding: 0;
}

/* List page */
.list {
}
.list .article {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: solid 1px lightgray;
}
.list .article-titles {
  color: inherit;
}
.list .article-titles:hover, .list .article-titles:active {
  color: gray;
}
.list .article-meta {
  margin-top: 6px;
  margin-bottom: 15px;
}
.list .article-image {
  width: 200px;
  float: left;
  margin: 0;
  margin-right: 8px;
}
.list .article-content {
}
.list .article-readmore {
}
.list .article-floatclear {
  clear: both;
  height: 0;
}

/* Site footer */
.footer {
  font-size: 0.8rem;
  text-align: center;

}

/* Footer */
.site-footer .copyright {
  -webkit-flex-grow: 0;
  flex-grow: 0;
  margin-right: 10px;
}
.site-footer-items {
  -webkit-flex-grow: 0;
  flex-grow: 0;
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: baseline;
  align-items: baseline;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}
.site-footer-items li {
  font-size: 0.8rem;
  margin: 0 4px 0 4px;
  padding: 0;
}
.site-footer .powerdby {
  -webkit-flex-grow: 1;
  flex-grow: 1;
  margin-left: 10px;
  text-align: right;
}

/* Terms page */
.terms {
  padding: 0 20px 0 20px;
}
.terms > ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.terms > ul > li {
  padding: 0 0 3px 0;
  margin: 0 0 3px 0;
  border-bottom: 1px solid lightgray;
  display: -webkit-flex;
  display: flex;
}
.archives > ul > li > a {
  -webkit-flex-grow: 0;
  flex-grow: 0;
}
.terms > ul > li time {
  -webkit-flex-grow: 1;
  flex-grow: 1;
  text-align: right;
}

/* Archives page */
.archives {
  padding: 0 20px 0 20px;
}
.archives ul:not(.taxonomies) {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.archives .archives-month, .archives .archives-item {
  padding: 0 0 3px 0;
  margin: 0 0 3px 0;
  border-bottom: 1px solid lightgray;
  display: -webkit-flex;
  display: flex;
}
.archives .archives-monthly-container {
  padding: 0;
  margin: 0;
  margin-bottom: 20px;
  border: 0;
}
.archives .archives-item > a {
  -webkit-flex-grow: 0;
  flex-grow: 0;
}
.archives .archives-item > a:visited {
  color: #a8a8a8;
}
.archives .archives-item time {
  -webkit-flex-grow: 1;
  flex-grow: 1;
  text-align: right;
}
.archives ul.taxonomies {
  -webkit-flex-grow: 0;
  flex-grow: 0;
  list-style-type: none;
  margin: 0;
  padding: 0 0 0 10px;
  display: -webkit-flex;
  display: flex;
}
.archives ul.taxonomies li {
  padding: 0 0 0 8px;
}
.archives ul.taxonomies li a {
  color: inherit;
  font-size: 0.8em;
}
.archives ul.taxonomies li a:hover, .archives ul.taxonomies li a:active {
  color: gray;
}

.pagination {
  list-style-type: none;
  padding: 0;
  margin-top: 20px;
  margin-bottom: 0px;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
}
.pagination li {
  padding: 0 5px 0 5px;
}
.pagination li.active a {
  pointer-events: none;
  cursor: default;
  text-decoration:none;
  color: inherit;
}
.pagination li.active a:hover, .pagination li.active a:active {
  color: gray;
}

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
}

.404 h1 {
  text-align: center;
}

/* Mobile */
@media screen and (max-width: 768px) {
  .site-header, .site-header-bottom, .main, .breadcrumb, .site-footer {
    width: 98%;
    box-sizing: border-box;
  }
    .right_float {
    min-width: 97%;
    float: left;
    clear: right;
/*        position: relative;*/
  padding: 0px;
  margin-right: 4px;
    margin-left: 4px;
  margin-bottom: 10px;
  /* border: solid 1px lightgray; */
    }

    
  .list .article-image {
    width: 100%;
    box-sizing: border-box;
    float: none;
    margin: 0;
  }
  .archives ul.taxonomies, .archives .archives-item time {
    display: none;
  }
  .terms > ul > li time {
    display: none;
  }
  .site-navi {
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  .terms, .archives {
    padding: 0;
  }
}

@media print {
  .site-footer, .pager, .disqus-comments, .article-share {
    display: none;
  }
  .main, .breadcrumb {
    width: 100%;
    box-sizing: border-box;
  }
  
}

.homepage_tags {
  color: rgb(241, 139, 169);
  font-weight: 400;
}

.toc_outside {
  
  position: absolute;
  overflow: visible;
  left: -460px;

}

@-moz-document url-prefix() {
  .toc_outside {
    left: 0px;
  }
}

.toc {
  float: left;
  clear: left;
  z-index: 10;
  padding: 4px;
  /* margin-left: calc(100%); */
margin-bottom: 10px;
  /* border: solid 1px lightgray; */
  border: solid 2px #ECCBD9;
    max-width: 438px;
    vertical-align: baseline;
    position: relative;
  font-size: 0.9em;
  border-radius: 6px;
  box-shadow: 1px 2px 2px 0px rgba(0, 0, 255, .2);
  
}
.toc a {
  text-decoration: none;  
}
.toc a:hover {
  text-decoration: underline;
  
}
.toc ul {
  list-style-type: none;
  padding: 0;
  padding-left: 12px;
  margin: 0;
    counter-reset: toccounter;
}

.toc ul li {
  list-style-type: none;
  font-weight: 700;
  padding: 0;
  padding-left: 12px;
  margin: 0;
    
}

.toc ul li:before {
  content: counter(toccounter) ".\0000a0";
  counter-increment: toccounter;
}

.toc ul li ul li:before {
        content: counter(toccounter) ".\0000a0";
        counter-increment: toccounter;
}

.toc ul li ul li {
    font-weight: 500;
    font-size: 14px;
}
/*

.toc ul li ul li ul li:before {
        content: "\0000a0\0000a0\0000a0\0000a0";
}
*/

.toc ul li ul li ul li {
    display: none;
}
/*

.toc ul li ul li ul li ul li:before {
        content: "\0000a0\0000a0\0000a0\0000a0";
}
*/
.toc nav > ul {
  padding-left: 0;
}


.notable {
  float: left;
  clear: left;
  padding: 4px;
  margin-left: -256px;
  position: absolute;
margin-bottom: 10px;
border: solid 2px #ECCBD9;
  max-width: 238px;
  vertical-align: baseline;
font-size: 0.9em;
border-radius: 6px;
box-shadow: 1px 2px 2px 0px rgba(0, 0, 255, .2);
/* https://stackoverflow.com/a/4804706/9600186 */
top: 40%;
}
.notable a {
  text-decoration: none;
  
}
.notable a:hover {
  text-decoration: underline;
  
}
.notable ul {
  list-style-type: none;
  padding: 0;
  padding-left: 12px;
  margin: 0;
    counter-reset: toccounter;
}