@charset "utf-8";

/* normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
  display: block
}

audio, canvas, progress, video {
  display: inline-block;
  vertical-align: baseline;
}

audio:not([controls]) {
  display: none;
  height: 0
}

[hidden], template {
  display: none
}

a {
  background-color: transparent
}

a:active, a:hover {
  outline: 0
}

abbr[title] {
  border-bottom: 1px dotted
}

b, strong {
  font-weight: bold
}

dfn {
  font-style: italic
}

h1 {
  font-size: 2em;
  line-height: normal;
}

h2 {
  line-height: normal;
}

mark {
  background: #ff0;
  color: #000
}

small {
  font-size: 80%
}

sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline
}

sup {
  top: -.5em
}

sub {
  bottom: -.25em
}

img {
  border: 0
}

svg:not(:root) {
  overflow: hidden
}

figure {
  margin: 1em 40px
}

hr {
  border: 1px solid #efefef;
  margin: 2.5rem auto 2rem;
  box-sizing: content-box;
  height: 0
}

pre {
  overflow: auto
}

code, kbd, pre, samp {
  font-family: monospace, monospace;
  font-size: 1em
}

button, input, optgroup, select, textarea {
  color: inherit;
  font: inherit;
  margin: 0;
}

button {
  overflow: visible
}

button, select {
  text-transform: none
}

button, html input[type="button"], input[type="reset"], input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
}

button[disabled], html input[disabled] {
  cursor: default
}

button::-moz-focus-inner, input::-moz-focus-inner {
  border: 0;
  padding: 0
}

input {
  line-height: normal
}

input[type="checkbox"], input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button {
  height: auto
}

input[type="search"] {
  -webkit-appearance: textfield;
  box-sizing: content-box;
}

input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none
}

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: .35em .625em .75em
}

legend {
  border: 0;
  padding: 0;
}

textarea {
  overflow: auto
}

optgroup {
  font-weight: bold
}

table {
  border-collapse: collapse;
  border-spacing: 0
}

td, th {
  padding: 0
}

::selection {
  background-color: #abd2fe
}

html, body {
  width: 100%;
  height: 100%
}

body {
  margin: 0;
  color: #333;
  font-size: 15px;
  line-height: 1.8;
  background-color: #fff;
  font-family: 'Helvetica', Arial, sans-serif
}

ul.nav, ul.post-list {
  margin: 0;
  padding: 0;
  list-style-type: none
}

ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

a, a:active {
  color: #c82333;
  text-decoration: none
}

a.nav-list-link.active, a.nav-list-link:hover, a.post-title-link:hover {
  border-bottom: 2px solid #ccc
}

code {
  margin: 0 2px;
  padding: 3px 5px;
  color: #d73a49;
  border-radius: 2px;
  white-space: inherit
}

iframe {
  max-width: 100%;
  margin: 0 auto;
  display: block
}

video {
  max-width: 100%;
  margin: 1rem auto;
  display: block
}

table {
  width: 100%;
  margin: 1em auto;
}

table thead {
  background-color: #ddd;
}

table thead th {
  padding: 5px;
  min-width: 20px
}

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

table tbody td {
  padding: 5px;
  vertical-align: text-top
}

header {
  min-height: 2.5em;
  padding: 1em 2em;
  border-bottom: 1px solid #efefef;
}

header .title {
  float: left;
  font-weight: bold;
  color: #000;
  letter-spacing: 2px;
  /* margin-top: 18px; */
  font-size: 18px;
  /* text-transform: uppercase */
}

header .nav {
  float: right;
  margin: 0.67em 0;
  /* left: 80px; */
}

header .nav-list-item {
  display: inline-block;
  padding-left: 10px;
}

header .nav-list-item a {
  color: #333;
  font-size: 16px;
  line-height: 1.4
}

.home.post-list {
  margin: 2em 0;
}

.home.post-list .post-list-item {
  padding: 1em 0 3em;
  border-bottom: 1px solid #efefef;
}

.home.post-list .post-list-item:last-child {
  border-bottom: 0
}

.home.post-list .post-content h2:before, .home.post-list .post-content h3:before, .home.post-list .post-content h4:before, .home.post-list .post-content h5:before, .home.post-list .post-content h6:before {
  content: ''
}

.home.post-list .post-content>ul {
  list-style: initial
}

.home.post-list .read-more {
  color: #333;
  text-decoration: underline
}

.archive .archive-year {
  font-size: 2em
}

.archive .post-item {
  padding: 1.5em 0;
}

.archive .post-item .post-info {
  float: right;
  width: 125px;
  text-align: right;
  color: #7f8c8d
}

.archive .post-time, .archive .post-title-link {
  font-size: 1rem
}

.archive .post-title-link {
  color: #333;
  word-break: break-all;
}

.archive .post-title-link:hover {
  border-bottom: 0;
  text-decoration: underline
}

.archive .post-from {
  margin-left: 8px;
  color: #333;
}

.archive .post-from:hover {
  text-decoration: underline
}

.post {
  /* padding-top: 1em */
}

.post-block .post-title {
  padding: .65em 0 .3em;
  font-weight: bold;
  font-size: 2em;
  text-align: center;
  margin-block-start: 0!important;
  margin-block-end: 0!important;
}

.post-block .post-title .post-title-link {
  color: #2c3e50
}

.post-block .post-info {
  margin: 0 0 1.2em 0;
  font-size: 0.85em;
  padding-bottom: 1.2em;
  color: #7f8c8d;
  border-bottom: 1px solid #efefef;
  text-align: right;
}

/* .post-block .post-info span {
  margin-left: .5rem
} */

.post-block .post-info a.post-from {
  margin-left: .5rem;
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 14px;
  color: #333;
}

.post-block .post-info a.post-from:hover {
  text-decoration: underline
}

.post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
  position: relative;
  margin: 1em 0
}

.post-content h2, .post-content h3 {
  font-size: 22px
}

.post-content h4, .post-content h5, .post-content h6 {
  font-size: 18px
}

.post-content a {
  color: #c82333;
  word-break: break-all;
}

.post-content a:hover {
  text-decoration: underline
}

.post-content blockquote {
  margin: 2em 0;
  padding-left: 20px;
  border-left: .25em solid #dfe2e5;
  color: #6a737d
}

.post-content img {
  display: block;
  max-width: 100%;
  margin: 2.5em auto
}

.post-content>table, .post-content>figure.highlight {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.125)
}

.post-content .tip {
  position: relative;
  margin: 2em 0;
  padding: 12px 24px 12px 30px;
  border-left: 4px solid #f66;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
  background-color: #f8f8f8;
}

.post-content .tip br {
  display: none
}

.post-content .tip:before {
  position: absolute;
  top: 14px;
  left: -12px;
  content: "!";
  width: 20px;
  height: 20px;
  border-radius: 100%;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: bold;
  text-align: center;
  background-color: #f66;
  font-family: 'Dosis', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif
}

#mask {
  position: fixed;
  overflow: scroll;
  width: 100%;
  height: 100%;
  padding: 1em 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10;
}

#mask #mask-image {
  max-width: 95%
}

code, pre {
  font-size: .8em;
  background-color: #f8f8f8;
  font-family: 'Roboto Mono', Monaco, courier, monospace
}

.highlight {
  position: relative;
  margin: 1em 0;
  border-radius: 2px;
  line-height: 1.1em;
  background-color: #f8f8f8;
  overflow-x: auto;
}

.highlight table, .highlight tr, .highlight td {
  width: 100%;
  border-collapse: collapse;
  padding: 0;
  margin: 0
}

.highlight .gutter {
  display: none
}

.highlight .code pre {
  padding: 1.2em 1.4em;
  line-height: 1.5em;
  margin: 0;
}

.highlight .code pre .line {
  width: auto;
  height: 18px
}

.codebase, .highlight.#html .code:after, .highlight.#js .code:after, .highlight.#bash .code:after, .highlight.#css .code:after, .highlight.#scss .code:after, .highlight.#diff .code:after, .highlight.#java .code:after, .highlight.#xml .code:after, .highlight.#python .code:after, .highlight.#json .code:after, .highlight.#swift .code:after, .highlight.#ruby .code:after, .highlight.#perl .code:after, .highlight.#php .code:after, .highlight.#c .code:after, .highlight.#cpp .code:after, .highlight.#ts .code:after {
  position: absolute;
  top: 0;
  right: 0;
  color: #ccc;
  text-align: right;
  font-size: .75em;
  padding: 5px 10px 0;
  line-height: 15px;
  height: 15px;
  font-weight: 600
}

.highlight.#html .code:after {
  content: "html";
}

.highlight.#js .code:after {
  content: "js";
}

.highlight.#bash .code:after {
  content: "bash";
}

.highlight.#css .code:after {
  content: "css";
}

.highlight.#scss .code:after {
  content: "scss";
}

.highlight.#diff .code:after {
  content: "diff";
}

.highlight.#java .code:after {
  content: "java";
}

.highlight.#xml .code:after {
  content: "xml";
}

.highlight.#python .code:after {
  content: "python";
}

.highlight.#json .code:after {
  content: "json";
}

.highlight.#swift .code:after {
  content: "swift";
}

.highlight.#ruby .code:after {
  content: "ruby";
}

.highlight.#perl .code:after {
  content: "perl";
}

.highlight.#php .code:after {
  content: "php";
}

.highlight.#c .code:after {
  content: "c";
}

.highlight.#java .code:after {
  content: "java";
}

.highlight.#cpp .code:after {
  content: "cpp";
}

.highlight.#ts .code:after {
  content: "ts";
}

.highlight.cpp .code:after {
  content: 'C++'
}

pre {
  color: #525252;
}

pre .function .keyword, pre .constant {
  color: #005cc5
}

pre .keyword, pre .attribute {
  color: #d73a49
}

pre .number, pre .literal {
  color: #ae81ff
}

pre .tag, pre .tag .title, pre .change, pre .winutils, pre .flow, pre .lisp .title, pre .clojure .built_in, pre .nginx .title, pre .tex .special {
  color: #2973b7
}

pre .symbol, pre .symbol .string, pre .value, pre .regexp {
  color: #032f62
}

pre .title {
  color: #83b917
}

pre .tag .value, pre .string, pre .subst, pre .haskell .type, pre .preprocessor, pre .ruby .class .parent, pre .built_in, pre .sql .aggregate, pre .django .template_tag, pre .django .variable, pre .smalltalk .class, pre .javadoc, pre .django .filter .argument, pre .smalltalk .localvars, pre .smalltalk .array, pre .attr_selector, pre .pseudo, pre .addition, pre .stream, pre .envvar, pre .apache .tag, pre .apache .cbracket, pre .tex .command, pre .prompt {
  color: #032f62
}

pre .comment, pre .java .annotation, pre .python .decorator, pre .template_comment, pre .pi, pre .doctype, pre .shebang, pre .apache .sqbracket, pre .tex .formula {
  color: #b3b3b3
}

pre .deletion {
  color: #ba4545
}

pre .coffeescript .javascript, pre .javascript .xml, pre .tex .formula, pre .xml .javascript, pre .xml .vbscript, pre .xml .css, pre .xml .cdata {
  opacity: .5
}

.paginator {
  margin: 6em 0;
  height: 32px;
  text-align: center;
}

.paginator .prev, .paginator .next {
  float: left;
  margin: 0 4px;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 14px;
  color: #666;
  transition: all .3s;
}

.paginator .prev:hover, .paginator .next:hover {
  color: #333;
  border-color: #999
}

.paginator .next {
  float: right
}

.ds-thread, #disqus_thread {
  margin-bottom: 2em
}

main.container {
  margin: 2em 10px
}

@media screen and (min-width:700px) {
  .wrap {
    width: 700px;
    margin: 0 auto
  }
}

@media screen and (max-width:700px) {
  .wrap {
    width: 100%
  }

  header .title {
    /* margin-top: 10px */
  }

  header a.logo-link, header ul.nav.nav-list {
    float: none;
    display: block;
    text-align: right;
    margin-top: 0.67em;
  }

  header li.nav-list-item {
    padding-left: 10px
  }

  main.container, .home.post-list, .archive {
    margin-top: 0
  }

  main.container {
    margin: 2em;
  }

  .archive .post-item {
    padding-left: 20px
  }

  .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
    max-width: 300px;
  }

  .ds-thread, #disqus_thread {
    margin: 2em 10px
  }
}

footer {
  padding-bottom: 1px;
}

footer .copyright {
  padding: 1em 2em;
  border-top: 1px solid #efefef;
  text-align: center;
}

footer .copyright p, footer .copyright a {
  font-size: 14px;
  font-weight: 100;
  color: #999;
  margin: .5em 0
}

footer .copyright a:hover {
  text-decoration: underline;
  color: #666
}

@font-face {
  font-family: 'sourcesanspro';
  src: url("../font/sourcesanspro.woff2") format('woff2'), url("../font/sourcesanspro.woff") format('woff');
  font-weight: normal;
  font-style: normal
}

#chat-button {
    cursor: pointer;
    position: fixed;
    bottom: 60px;
    right: 20px;
    display: none;
    border-radius: 50%;
    outline: none;
    z-index: 99999;
}
#chat-button img {
    width: 40px;
}

#back-to-top {
    cursor: pointer;
    position: fixed;
		background-color: #c82333;
    bottom: 20px;
    right: 20px;
    display: none;
		padding: 6px 13px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    color: white;
    outline: none;
    opacity: 0.8;
    z-index: 99999;
}
