a[class*=btn] {
  text-decoration: none;
}

input[class*=btn],
button[class*=btn] {
  border: 0;
}

/* Here you can change the button sizes */
.btn-gradient.small {
  padding: 8px 18px;
  font-size: 14px;
}

.btn-gradient.mini {
  padding: 4px 12px;
  font-size: 12px;
}

.btn-gradient.block {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 60%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.btn-gradient.large {
  padding: 15px 45px;
  font-size: 22px;
}

/* Gradient buttons */
.btn-gradient {
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
  color: #efefef !important;
  padding: 10px 30px;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.21);
  border-bottom: 4px solid rgba(0, 0, 0, 0.21);
  border-radius: 4px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
  text-transform: uppercase;
}
.btn-gradient.icon:before {
  content: " ";
  background-size: 16px 16px;
  height: 16px;
  width: 16px;
  vertical-align: middle;
  margin-right: 3px;
}
.btn-gradient.icon-source:before {
  background-image: url("../inc/icons/source.svg");
}
.btn-gradient.icon-info:before {
  background-image: url("../inc/icons/info.svg");
}
.btn-gradient.icon-external:before {
  background-image: url("../inc/icons/external.svg");
}
.btn-gradient.icon-youtube:before {
  background-image: url("../inc/icons/youtube.svg");
}
.btn-gradient.icon-download:before {
  background-image: url("../inc/icons/download.svg");
}
.btn-gradient.icon-twitter:before {
  background-image: url("../inc/icons/twitter.svg");
}
.btn-gradient.icon-facebook:before {
  background-image: url("../inc/icons/facebook.svg");
}
.btn-gradient.icon-github:before {
  background-image: url("../inc/icons/github.svg");
}
.btn-gradient.icon-linkedin:before {
  background-image: url("../inc/icons/linkedin.svg");
}
.btn-gradient.icon-no-margin:before {
  margin-right: 0;
}
.btn-gradient.cyan {
  background: rgb(27, 188, 194);
  background: -webkit-gradient(linear, left top, left bottom, from(rgb(27, 188, 194)), to(rgb(24, 163, 168)));
  background: linear-gradient(to bottom, rgb(27, 188, 194) 0%, rgb(24, 163, 168) 100%);
}
.btn-gradient.cyan:hover {
  background: #169499;
}
.btn-gradient.red {
  background: rgb(250, 90, 90);
  background: -webkit-gradient(linear, left top, left bottom, from(rgb(250, 90, 90)), to(rgb(232, 81, 81)));
  background: linear-gradient(to bottom, rgb(250, 90, 90) 0%, rgb(232, 81, 81) 100%);
}
.btn-gradient.red:hover {
  background: #E35252;
}
.btn-gradient.orange {
  background: rgb(255, 105, 30);
  background: -webkit-gradient(linear, left top, left bottom, from(rgb(255, 105, 30)), to(rgb(230, 95, 28)));
  background: linear-gradient(to bottom, rgb(255, 105, 30) 0%, rgb(230, 95, 28) 100%);
}
.btn-gradient.orange:hover {
  background: #E8601B;
}
.btn-gradient.blue {
  background: rgb(102, 152, 203);
  background: -webkit-gradient(linear, left top, left bottom, from(rgb(102, 152, 203)), to(rgb(92, 138, 184)));
  background: linear-gradient(to bottom, rgb(102, 152, 203) 0%, rgb(92, 138, 184) 100%);
}
.btn-gradient.blue:hover {
  background: #608FBF;
}
.btn-gradient.purple {
  background: rgb(203, 153, 197);
  background: -webkit-gradient(linear, left top, left bottom, from(rgb(203, 153, 197)), to(rgb(181, 134, 176)));
  background: linear-gradient(to bottom, rgb(203, 153, 197) 0%, rgb(181, 134, 176) 100%);
}
.btn-gradient.purple:hover {
  background: #BD8EB7;
}
.btn-gradient.yellow {
  background: rgb(240, 210, 100);
  background: -webkit-gradient(linear, left top, left bottom, from(rgb(240, 210, 100)), to(rgb(229, 201, 96)));
  background: linear-gradient(to bottom, rgb(240, 210, 100) 0%, rgb(229, 201, 96) 100%);
}
.btn-gradient.yellow:hover {
  background: #DBC05B;
}
.btn-gradient.green {
  background: rgb(130, 200, 160);
  background: -webkit-gradient(linear, left top, left bottom, from(rgb(130, 200, 160)), to(rgb(124, 185, 149)));
  background: linear-gradient(to bottom, rgb(130, 200, 160) 0%, rgb(124, 185, 149) 100%);
}
.btn-gradient.green:hover {
  background: #72B08E;
}
.btn-gradient.gray {
  background: #607D8B;
  background: -webkit-gradient(linear, left top, left bottom, from(#607D8B), to(#56707d));
  background: linear-gradient(to bottom, #607D8B 0%, #56707d 100%);
}
.btn-gradient.gray:hover {
  background: #4c646f;
}
.btn-gradient.color-facebook {
  background: #4868ad;
}
.btn-gradient.color-facebook:hover {
  background: #4462a3;
}
.btn-gradient.color-twitter {
  background: #00aced;
}
.btn-gradient.color-twitter:hover {
  background: #00a2df;
}
.btn-gradient.color-linkedin {
  background: #0077b5;
}
.btn-gradient.color-linkedin:hover {
  background: #006ca4;
}
.btn-gradient.color-github {
  background: #4f4f4f;
}
.btn-gradient.color-github:hover {
  background: #464646;
}

* {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #2a2a2a;
  margin: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}
body.lang-en_US {
  font-family: "Lato", Helvetica, Arial, sans-serif;
}
body.lang-en_US :lang(zh), body.lang-en_US :lang(zh-Hans) {
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", "Lato", Helvetica, Arial, sans-serif;
}
body.lang-en_US :lang(zh-Hant) {
  font-family: "PingFang TC", "Microsoft YaHei", "Source Han Sans TC", "Noto Sans CJK TC", "WenQuanYi Micro Hei", "Lato", Helvetica, Arial, sans-serif;
}
body.lang-zh_CN {
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", "Lato", Helvetica, Arial, sans-serif;
}

/* NAVIGATION BUTTON */
.nav-button {
  display: inline-block;
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 25px;
  z-index: 9999;
}
.nav-button .bar {
  width: 35px;
  height: 5px;
  background-color: #5a5a5a;
  margin: 6px 0;
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
}
.nav-button:hover .bar, .nav-button:focus .bar {
  background-color: #b6b6b6;
}
.nav-button.change .bar1 {
  -webkit-transform: rotate(-45deg) translate(-9px, 6px);
  transform: rotate(-45deg) translate(-9px, 6px);
}
.nav-button.change .bar2 {
  opacity: 0;
}
.nav-button.change .bar3 {
  -webkit-transform: rotate(45deg) translate(-8px, -8px);
  transform: rotate(45deg) translate(-8px, -8px);
}
@media (max-width: 1100px) {
  .nav-button {
    right: 15px;
    top: auto;
    bottom: 30px;
    background-color: #191919;
    border-radius: 50%;
    padding-top: 10px;
    padding-left: 12px;
    -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
            box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
    width: 59px;
    height: 59px;
  }
}

/* NAVIGATION OVERLAY */
#main-nav {
  visibility: hidden;
  height: 0%;
  width: 100%;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.95);
  overflow-y: hidden;
  -webkit-transition: visibility 0ms 500ms, height 500ms 0ms ease;
  transition: visibility 0ms 500ms, height 500ms 0ms ease;
}
#main-nav.visible {
  visibility: visible;
  height: 100%;
  -webkit-transition: visibility 0ms 0ms, height 500ms 0ms ease;
  transition: visibility 0ms 0ms, height 500ms 0ms ease;
}
#main-nav .overlay-content {
  position: relative;
  top: 25%;
  width: 100%;
  text-align: center;
  /* margin-top: 30px; */
  /* to override default ul style */
  margin: 0;
  padding: 0;
  list-style-type: none;
}
#main-nav a {
  padding: 8px;
  text-decoration: none;
  font-size: 36px;
  color: #5a5a5a;
  display: block;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
#main-nav a.active {
  color: #f1f1f1;
}
#main-nav a:not(.active):hover {
  color: #b6b6b6;
}
#main-nav:focus {
  outline: none;
}

@media screen and (max-height: 450px) {
  #main-nav {
    overflow-y: auto;
  }
  #main-nav a {
    font-size: 20px;
  }
}
.pages {
  display: block;
  margin: 68px 8px;
}
@media (max-width: 1100px) {
  .pages {
    margin: 48px 8px;
  }
}
@media (max-width: 500px) {
  .pages {
    margin: 28px 8px;
  }
}
.pages a {
  color: #cacaca;
}
.pages a:link, .pages a:visited {
  color: #cacaca;
}
.pages header#main-header {
  margin: 0 40px;
}
@media (max-width: 500px) {
  .pages header#main-header {
    margin: 0 20px;
  }
}
.pages header#main-header {
  margin-bottom: 1.5em;
  text-align: left;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.pages header#main-header .back-button, .pages header#main-header h1 {
  color: #cacaca;
  font-size: 2.625em;
  margin: 0;
  margin-bottom: 0.2em;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15);
}
.pages header#main-header .back-button span, .pages header#main-header h1 span {
  display: inline-block;
}
@media (max-width: 850px) {
  .pages header#main-header .back-button, .pages header#main-header h1 {
    font-size: 2.2em;
  }
}
@media (max-width: 500px) {
  .pages header#main-header .back-button, .pages header#main-header h1 {
    font-size: 2em;
  }
}
.pages header#main-header h1 {
  display: inline-block;
}
.pages header#main-header h2, .pages header#main-header h3, .pages header#main-header #main-header-subtitle p {
  font-size: 1.15em;
  color: #8a8a8a;
  line-height: 1.7em;
  font-weight: 400;
  margin: 0;
}
.pages header#main-header .back-button {
  font-family: "Lato", Helvetica, Arial, sans-serif;
  position: absolute;
  -webkit-transform: translateX(-150%);
          transform: translateX(-150%);
  width: auto;
  text-decoration: none;
  color: gray;
}
.pages header#main-header .back-button:hover, .pages header#main-header .back-button:active {
  text-decoration: underline;
}
@media (max-width: 500px) {
  .pages header#main-header .back-button {
    -webkit-transform: translateX(-125%);
            transform: translateX(-125%);
  }
}
.pages header#main-header .project-icon {
  margin-left: 20px;
}
@media (max-width: 500px) {
  .pages header#main-header .project-icon {
    margin-left: 0;
    margin-top: 10px;
    -ms-flex-item-align: center;
        align-self: center;
  }
}
.pages header#main-header .project-icon img {
  height: 116px;
  width: auto;
  border-radius: 22.5%;
}
@media (max-width: 500px) {
  .pages header#main-header .project-icon img {
    height: 76px;
    width: auto;
    border-radius: 22.5%;
  }
}
@media (max-width: 500px) {
  .pages header#main-header {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
}
.pages footer {
  margin: 0 40px;
}
@media (max-width: 500px) {
  .pages footer {
    margin: 0 20px;
  }
}
.pages footer {
  text-align: left;
}
.pages .wrapper {
  max-width: 1010px;
  margin: 0 auto;
}

footer#main-footer {
  padding: 32px 0;
  padding: 2rem 0;
  background-color: #191919;
  color: #808080;
  text-align: center;
}
footer#main-footer p {
  font-size: small;
}
footer#main-footer a:link, footer#main-footer a:visited {
  color: #808080;
}
footer#main-footer #language-selection {
  margin-top: 40px;
  font-size: small;
  color: #656565;
}
footer#main-footer #language-selection a {
  color: inherit;
}
footer#main-footer #language-selection a:link, footer#main-footer #language-selection a:visited {
  color: inherit;
}
footer#main-footer #language-selection .language-selector {
  margin-left: 5px;
  margin-right: 5px;
}
footer#main-footer #language-selection .language-selector.active {
  font-weight: bold;
}
@media (max-width: 500px) {
  footer#main-footer #language-selection .language-selector {
    display: block;
  }
  footer#main-footer #language-selection .language-selector:not(:first-of-type) {
    margin-top: 5px;
  }
}
footer#main-footer #language-selection .language-separator {
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
@media (max-width: 500px) {
  footer#main-footer #language-selection .language-separator {
    display: none;
  }
}

.container {
  margin: 0 20px;
  color: #cacaca;
}
@media screen and (max-width: 500px) {
  .container {
    margin: 0 10px;
  }
}
.container .home-header {
  padding-bottom: 40px;
  border-bottom: 2px solid;
}
@media screen and (max-width: 500px) {
  .container .home-header {
    padding-bottom: 20px;
  }
}
.container .zh-name-calligraphy {
  width: 50%;
  margin: 0 auto;
  font-size: 0em;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.container .zh-name-calligraphy svg text {
  -webkit-user-select: text;
     -moz-user-select: text;
      -ms-user-select: text;
          user-select: text;
}
@media screen and (max-width: 500px) {
  .container .zh-name-calligraphy {
    width: 80%;
  }
}
.container #typewriter {
  white-space: pre;
  font-size: 2em;
  margin: 0;
  padding: 20px 0;
  font-family: "Source Code Pro", "Courier New", monospace;
  font-weight: 300;
  overflow: auto;
}
@media screen and (max-width: 850px) {
  .container #typewriter {
    font-size: 3.4vw;
  }
}
@media screen and (max-width: 500px) {
  .container #typewriter {
    font-size: 4.7vw;
  }
  .container #typewriter .hidden-in-small-screen {
    display: none;
  }
}
.container #typewriter:after {
  content: "|";
  -webkit-animation: blink 500ms linear infinite alternate;
          animation: blink 500ms linear infinite alternate;
}
.container #typewriter .var-highlight {
  color: #C0AD60;
}
.container #typewriter .string-highlight {
  color: rgba(253, 149, 90, 0.8);
  font-weight: normal;
}
.container #typewriter .string-highlight:link, .container #typewriter .string-highlight:visited, .container #typewriter .string-highlight a:link, .container #typewriter .string-highlight a:visited {
  color: rgba(253, 149, 90, 0.8);
}
.container #typewriter .string-highlight:hover, .container #typewriter .string-highlight:active, .container #typewriter .string-highlight a:hover, .container #typewriter .string-highlight a:active {
  text-decoration: none;
}
.container #typewriter button.expand-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
  color: inherit;
  font-family: inherit;
}
.container #typewriter button.expand-button:hover, .container #typewriter button.expand-button:active {
  text-decoration: none;
}
@-webkit-keyframes blink {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes blink {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}