* {
  box-sizing: border-box;
}

/* reset CSS */
table {
  font-size: 100%;
  border-collapse: collapse;
}
/* end reset CSS */

table tr:nth-child(2n) {
  background-color: #f6f8fa;
}

table tr {
  background-color: #fff;
  border-top: 1px solid #c6cbd1;
}

table th,
table td {
  margin: 0;
  padding: 6px 13px;
  border: 1px solid #dfe2e5;
}

details {
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 0.5em 0.5em 0;
}

summary {
  margin: -0.5em -0.5em 0;
  padding: 0.5em;
  cursor: pointer;
}

details[open] {
  padding: 0.5em;
}

details[open] summary {
  font-style: italic;
  border-bottom: 1px solid #aaa;
  margin-bottom: 0.5em;
}

body {
  font-family: 'lucida grande', 'lucida sans unicode', lucida, helvetica,
    'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
  font-size: 16px;
}

body.mobile {
  font-size: 26px;
}

p,
li {
  line-height: 1.8;
}

h1 {
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Helvetica, STKaiti,
    SimSun, serif;
  border-bottom: 2px #fbf6ec solid;
  color: #444;
}

h2 {
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Helvetica, STKaiti,
    SimSun, serif;
  border-bottom: 2px #d8d8d8 solid;
  line-height: 150%;
  color: #444;
}

h3 {
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Helvetica, STKaiti,
    SimSun, serif;
  border-bottom: 1px #d2d2d2 solid;
  line-height: 150%;
  color: #333;
}

h4 {
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Helvetica, STKaiti,
    SimSun, serif;
  border-bottom: 1px #d8d8d8 solid;
  line-height: 150%;
  color: #333;
}

.box {
  padding: 2% 6% 5% 6%;
  border: 1px solid LightGrey;
}

li {
  margin-left: 0;
}

blockquote {
  padding: 0 0 0 1.2em;
  margin-left: 1.4em;
  margin-top: .2em;
  margin-bottom: .2em;
  border-left: 2px solid #8dc23c;
}

blockquote p {
  font-style: italic;
  color: #555;
}

pre {
  font-family: Inconsolata, Consolas, 'DEJA VU SANS MONO', 'DROID SANS MONO',
    Proggy, monospace;
  font-size: 85%;
  line-height: 1.45;
  font-weight: 500;
  background-color: #f4f4f4;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 4px;
  position: relative;
  display: block;
  width: 100%;
  overflow: auto;
}

pre > code {
  padding: 12px !important;
  display: block;
}

code {
  width: 100%;
  font-family: Inconsolata, Consolas, 'DEJA VU SANS MONO', 'DROID SANS MONO',
    Proggy, monospace;
  white-space: pre;
  padding: 1px 5px;
  font-size: 1em;
}

li code,
p code {
  background-color: #eff0f1;
  border-radius: 3px;
}

a {
  text-decoration: none;
  cursor: crosshair;
  border-bottom: 1px dashed orange;
  color: #930ee4;
}

a:hover {
  background-color: LightGrey;
}

img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
  box-shadow: 0 0 10px #555;
  border-radius: 6px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  margin-bottom: 10px;
  -webkit-box-shadow: 0 0 10px #555;
}

img.displayed {
  text-align: center;
  display: block;
}

hr {
  color: LightGrey;
}

p.notice {
  color: #aa4433;
  font-size: 13px;
}

div.tweet p {
  font-size: 14px;
  border: 1px solid #aaa;
  border-left: 10px solid #f28500;
  padding: 2px 0.5em 2px 0.5em;
  margin-bottom: 20px;
  background-color: #fbfbfb;
}

div.tweet i {
  color: brown;
  font-size: 13px;
  font-style: normal;
  border: 1px solid #aaa;
  margin-right: 0.5em;
  padding: 0px 2px;
}

div.outer {
  margin: 2% 5% 2% 5%;
}

/*  added by nonwill */
div.listouter {
  margin: 3px 5% .5em 5%;
  padding: 0 1em;
}
div.listouter+.outer{
  margin-top: .5em;
}
.outer>.list-group{
  margin-bottom: .5em;
}
div.listouter+.outer>.list-group{
  padding: 0 2em;
}
/*  end by nonwill */

body.mobile div.outer {
  margin: 1% 1% 2% 1%;
}

/*  added by nonwill */
body.mobile div.listouter {
  margin: 0;
  padding: 0 .2em;
} 
body.mobile div.listouter+.outer{
  margin-top: .1em;
}
body.mobile .outer>.list-group{
  margin: 0 .1em;
}
body.mobile div.listouter+.outer>.list-group{
  padding: 0 .2em 0 1em;
}
/*  end by nonwill */

.anchorjs-link:hover {
  background-color: transparent;
}
.blog-title>.anchorjs-link {
 display:none;
}

div.inner {
  margin: .5em auto;
  max-width: 1000px;
  padding: 2% 4% 3% 4%;
  border: 1px solid LightGrey;
  background-color: white;
}

body.mobile div.inner {
  margin: .1em .2em .2em 0;
  max-width: 100%;
  padding: 1%;
}

h1.blog-title {
  border-bottom: 2px LightGrey solid;
  color: #222;
  padding-bottom: .1em;
  margin: 1px  -5px;
}
h1.blog-title>.btContent { font-size: .9em; margin-right:3px;}
h1.blog-title>.btRight {
  float:right;
  margin:.5em -3px 0 0;
  font-size:.6em;
}
h1.blog-title>.btRight .author { font-size:.9em;}
h1.blog-title>.btRight .author+.author {  color:#007CD5;}
h1.blog-title>.btRight a {  border-bottom:none;}

h1.taxonomy-title {
  border-bottom: 1px LightGrey solid;
  color: #333;
  margin: 1px  -5px;
}


div.ad-banner {
  margin: 0% 14%;
}

body.mobile div.ad-banner {
  margin: 0;
}

.side-ad.mobile {
  display: none;
}

body.mobile .side-btn {
  display: none;
}

.side-btn {
  position: fixed;
  background-color: #fbf6ec;
  -ms-transform: translate(calc(-8vw - 100%), 0);
  -webkit-transform: translate(calc(-8vw - 100%), 0);
  transform: translate(calc(-8vw - 100%), 0);
  top: 50vh;
}
.side-btn a {
  display: block;
  color: #a57474;
}
.back {
  -ms-transform: rotate(7deg);
  -webkit-transform: rotate(7deg);
  transform: rotate(7deg);
}
.side-btn a:hover {
  -ms-transform: rotate(-7deg);
  -webkit-transform: rotate(-7deg);
  transform: rotate(-7deg);
  color: #930ee4;
}

kbd {
  /* Copy from stackoverflow.com */
  display: inline-block;
  margin: 0 0.1em;
  padding: 0.1em 0.6em;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 11px;
  line-height: 1.4;
  color: #242729;
  text-shadow: 0 1px 0 #fff;
  background-color: #e1e3e5;
  border: 1px solid #adb3b9;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(12, 13, 14, 0.2), 0 0 0 2px #fff inset;
  white-space: nowrap;
}

#edit-button {
  font-size: 1em;
  float: right;
  margin: 0 1rem;
  background: #cfd7ff;
  border: 1px solid #4e57ef;
  box-shadow: 3px 4px 0px #4e57ef;
}

pre .btn {
  -webkit-transition: opacity 0.3s ease-in-out;
  -o-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
  padding: 2px 6px;
  position: absolute;
  right: 4px;
  top: 4px;
}

pre:hover .btn,
pre .btn:focus {
  opacity: 1;
}

pre .clippy {
  margin: 0;
  margin-top: -3px;
  position: relative;
  top: 3px;
  width: 13px;
  display: inline;
  border-radius: unset;
  -webkit-box-shadow: 0 0 0px #555;
}

footer {
  padding-top: .5em !important;
}

div.inner>footer{
  margin-left: -5px;
  margin-right: -5px;
}

.tags {
  font-family: medium-content-sans-serif-font, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',
    sans-serif;
  letter-spacing: 0;
  font-weight: 400;
  font-style: normal;
  padding: 0;
  list-style: none;
  list-style-image: none;
  float: left;
  margin-top: 0;
}

.tags > li {
  display: inline-block;
  border: none;
  font-size: .90em;
  color: rgba(0, 0, 0, 0.68);
  background: rgba(0, 0, 0, 0.05);
  padding: 0 .3em;
  margin-right: .1em;
  border-radius: 3em;
}

.tags > li:hover {
  background-color: LightGrey;
}

.link {
  color: inherit;
  text-decoration: none !important;
  cursor: pointer;
}

.title a, .blog-title a, .site-title>.site-description a{
  cursor: pointer;
}
