/* Base styles */
* {
  -webkit-text-size-adjust: none;
}

html {
  height: 100%;
  margin: 0;
  font-size: 62.5%;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body {
  height: 100%;
  margin: 0;
  padding: 0;
  color: #494e52;
  font-size: 1.8em;
  line-height: 1.5;
  font-family: "Times New Roman", FangSong, STFangsong, sans-serif;
  scroll-behavior: smooth;
}

a, span, .btn {
  font-family: "Times New Roman", FangSong, STFangsong, sans-serif;
}

img {
  max-width: 100%;
}

blockquote {
  position: relative;
  color: #999;
  font-weight: 400;
  background-color: #f7f7f7;
  border-left: 5px solid #777;
  padding: 1rem 1rem 1rem 1.5rem;
  margin: 1rem 3rem 1rem 2rem;
}

blockquote p {
  margin: 0;
}

/* Header */
#page_header {
  position: relative;
  border-bottom: 1px solid #f2f3f3;
  animation: intro 0.3s both;
  animation-delay: 0.15s;
  z-index: 20;
}

.header_wrap {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  clear: both;
  padding: 1.6rem 2rem 1rem;
  font-size: 2rem;
}

#blog_name {
  display: inline-block;
  width: auto;
  vertical-align: top;
}

#blog_name a {
  display: block;
  margin: 0 1.6rem;
  padding: 0.8rem 0;
  color: #7a8288;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

#blog_name a:hover {
  color: black;
}

.menus_icon {
  display: inline-block;
  position: absolute;
  right: 30px;
  top: 22px;
  height: 30px;
  width: 30px;
  background-color: #7a8288;
  color: #fff;
  cursor: pointer;
  padding: 0px 0.3rem;
  border-width: 0px;
  outline: none;
}

.navicon {
  position: relative;
  width: 18px;
  height: 3px;
  background: rgb(255, 255, 255);
  margin: auto;
  transition: all 0.3s ease 0s;
}

.navicon::before,
.navicon::after {
  content: "";
  position: absolute;
  left: 0px;
  width: 18px;
  height: 3px;
  background: rgb(255, 255, 255);
  transition: all 0.3s ease 0s;
}

.navicon::before {
  top: -8px;
}

.navicon::after {
  bottom: -8px;
}

.menus-open .navicon {
  background: transparent;
}

.menus-open .navicon::before {
  transform-origin: 50% 50%;
  top: 0px;
  left: -3px;
  width: 25px;
  transform: rotate3d(0, 0, 1, 45deg);
}

.menus-open .navicon::after {
  transform-origin: 50% 50%;
  top: 0px;
  left: -3px;
  width: 25px;
  transform: rotate3d(0, 0, 1, -45deg);
}

/* Mobile menu */
@media (max-width: 34em) {
  .menus-open .menus_items {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .menus_items {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    right: 10px;
    margin: 0;
    box-shadow: rgba(0,0,0,0.25) 0px 0px 10px;
    padding: 5px;
    border: 1px solid #f2f3f3;
    border-radius: 4px;
    background: #fff;
    list-style: none;
    transition: all ease-in-out 0.2s;
    pointer-events: none;
  }

  .menus_items::before {
    display: block;
    content: "";
    position: absolute;
    top: -10px;
    left: calc(50% + 15px);
    width: 0px;
    z-index: 0;
    border-style: solid;
    border-width: 0px 10px 10px;
    border-color: white transparent;
  }

  .menus_items li {
    display: block;
    border-bottom: 1px solid #f2f3f3;
  }

  .menus_items li a {
    display: block;
    color: #7a8288;
    font-size: 1.6rem;
    margin: 0px;
    padding: 8px 15px;
    text-decoration: none;
    transition: all 0.2s ease-in-out 0s;
  }
}

/* Desktop menu */
@media (min-width: 34em) {
  .menus_items {
    display: inline-block;
    list-style-type: none;
    margin: 0;
    clear: both;
  }

  .menus_items li {
    display: table-cell;
    vertical-align: middle;
  }

  .menus_items li a {
    position: relative;
    display: block;
    margin: 0 1.6rem;
    padding: 0.8rem 0;
    color: #7a8288;
    text-decoration: none;
  }

  .menus_items li a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    background: #bdc1c4;
    width: 100%;
    transition: all 0.2s ease-in-out;
    transform: scaleX(0);
  }

  .menus_items li a:hover {
    color: #5c6266;
  }

  .menus_items li a:hover::before {
    transform: scaleX(1);
  }

  .menus_icon {
    display: none;
  }
}

/* Main content */
#page_main {
  min-height: 72%;
  margin-left: auto;
  margin-right: auto;
  clear: both;
  margin-top: 3.2rem;
  margin-bottom: 6.4rem;
  padding-left: 1.6rem;
  padding-right: 1.6rem;
  animation: intro 0.3s both;
  animation-delay: 0.35s;
}

#page_main::after {
  clear: both;
  content: "";
  display: table;
}

.page article {
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

.page article h1 {
  font-size: 3rem;
}

.page article h2 {
  font-size: 2.8rem;
}

.page article h3 {
  font-size: 2.6rem;
}

.page article p,
.page article li {
  font-size: 1.8rem;
}

.page article a {
  color: #494e52;
  transition: all 0.2s ease-in-out;
}

.page article a:hover {
  color: #c62641;
}

@media screen and (min-width: 66.67em) {
  #page_main {
    max-width: 1200px;
  }
}

@media (min-width: 34em) {
  .page {
    width: 82.5%;
    float: right;
    margin-right: 0;
  }

  .page article {
    padding: 0 3.6rem 3.6rem;
  }
}

/* Sidebar */
.side-card {
  clear: both;
  margin-bottom: 1.6rem;
  transform: translate3d(0, 0, 0);
}

.side-card .card-wrap {
  padding-left: 10px;
}

.side-card img {
  width: 100%;
}

.side-card p,
.side-card li {
  font-size: 1.4rem;
  line-height: 1.5;
}

.author-avatar {
  display: table-cell;
  vertical-align: top;
  width: 60px;
  height: 60px;
}

.author-avatar img {
  width: 100%;
  max-width: 110px;
  border-radius: 25px;
}

.author-discrip {
  display: table-cell;
  vertical-align: top;
  padding-left: 15px;
  padding-right: 15px;
  line-height: 1;
}

.author-discrip h3 {
  margin: 0px;
  font-size: 1.8rem;
}

.author-discrip .author-bio {
  font-size: 1.2rem;
  margin: .3rem 0;
}

.author-links {
  display: table-cell;
  position: relative;
  vertical-align: top;
  z-index: 10;
  cursor: pointer;
}

.author-links li {
  white-space: nowrap;
  margin-bottom: 0.5em;
}

.author-links a {
  margin-bottom: 5px;
  padding-right: 5px;
  padding-top: 2px;
  padding-bottom: 2px;
  color: inherit;
  font-size: 1.4rem;
  text-decoration: none;
}

.author-links button {
  margin-bottom: 0px;
}

.btn {
  display: inline-block;
  margin-bottom: 0.25em;
  font-size: 0.75em;
  font-weight: bold;
  text-align: center;
  background-color: rgb(122, 130, 136);
  cursor: pointer;
  color: rgb(255, 255, 255) !important;
  padding: 0.6em 1em;
  text-decoration: none;
  border-radius: 4px;
  border-width: 0px !important;
}

.btn:hover {
  background-color: rgb(51, 51, 51);
}

.m-social-links {
  background-color: rgb(255, 255, 255);
  color: rgb(122, 130, 136) !important;
  border: 1px solid rgb(189, 193, 196) !important;
}

.m-social-links:hover {
  color: rgb(255, 255, 255) !important;
}

.social-icons {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  right: 0;
  width: 115px;
  margin-top: 15px;
  padding-top: 8px;
  padding-left: 10px;
  list-style-type: none;
  border: 1px solid #f2f3f3;
  border-radius: 4px;
  background: #fff;
  z-index: -1;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
  cursor: default;
  transition: all ease-in-out 0.2s;
}

.social-icons::before {
  display: block;
  content: "";
  position: absolute;
  top: -10px;
  left: calc(50% + 15px);
  width: 0px;
  z-index: 0;
  border-style: solid;
  border-width: 0px 10px 10px;
  border-color: rgb(255, 255, 255) transparent;
  transition: all 0.2s ease-in-out;
}

.social-icons a {
  font-size: 1.7rem;
}

.social-icons li {
  display: inline-block;
}

.social-icons .fa,
.social-icons .fas,
.social-icons .fab {
  display: inline-block;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  color: black;
  width: 1.28571em;
  text-align: center;
  transition: all 0.2s ease-in-out;
}

.social-icons .fa:hover,
.social-icons .fas:hover,
.social-icons .fab:hover {
  color: #c62641;
}

.is-open .social-icons {
  visibility: visible;
  opacity: 1;
}

.social-links {
  display: none;
  list-style-type: none;
  cursor: default;
  transition: all 0.2s ease-in-out;
}

.social-links .e-social-link {
  color: black;
}

.social-links .e-social-link .fa,
.social-links .e-social-link .fas,
.social-links .e-social-link .fab {
  padding-right: 0.5rem;
}

.social-links .e-social-link:hover span {
  text-decoration: underline;
}

@media (min-width: 66.67em) {
  .side-card {
    padding-right: 0;
  }
}

@media (min-width: 34em) {
  .side-card {
    width: 15.25424%;
    min-width: 165px;
    float: left;
    margin-right: 1.69492%;
    opacity: 0.75;
    transition: opacity 0.2s ease-in-out;
  }

  .side-card .card-wrap {
    padding: 10px 10px 10px 17px;
  }

  .sticky {
    clear: both;
    position: sticky;
    top: 2em;
  }

  .sticky > * {
    display: block;
  }

  .author-avatar {
    display: block;
    width: auto;
    height: auto;
    text-align: center;
  }

  .author-avatar img {
    padding: 5px;
    border: 1px solid #f2f3f3;
  }

  .author-discrip {
    display: block;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    color: black;
  }

  .author-discrip .author-bio {
    font-size: 1.4rem;
    margin-top: 8px;
    margin-bottom: 10px;
  }

  .author-links {
    display: block;
  }

  .social-icons {
    display: block;
    visibility: visible;
    opacity: 1;
    position: relative;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .social-icons::before {
    content: none;
  }

  .m-social-links {
    display: none;
  }

  .social-links {
    display: block;
    margin-top: .8rem;
    margin-bottom: 1.6rem;
    padding: 0;
  }
}

/* Footer */
#page_footer {
  clear: both;
  height: 100px;
  width: 100%;
  float: left;
  margin-left: 0;
  margin-right: 0;
  color: #9ba1a6;
  animation: intro 0.3s both;
  animation-delay: 0.45s;
  background-color: #f2f3f3;
  border-top: 1px solid #bdc1c4;
}

#page_footer a {
  color: #9ba1a6;
  transition: all 0.2s ease-in-out;
}

#page_footer a:hover {
  color: black;
}

.footer_wrap {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  clear: both;
  margin-top: 2em;
  padding-left: 2.5em;
  font-size: 1.28rem;
}

@media (min-width: 66.67em) {
  .footer_wrap {
    max-width: 1200px;
  }
}

@media (min-width: 34em) {
  .footer_wrap {
    padding: 0 1em 2em;
  }
}

/* Mobile nav */
.nav-wrap {
  position: fixed;
  bottom: 220px;
  right: 0;
  max-width: 50px;
  visibility: hidden;
  opacity: 0;
  transition: all .3s;
}

.nav-wrap.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.nav {
  height: 30px;
  width: 30px;
}

.site-nav {
  position: absolute;
  height: 30px;
  width: 30px;
  background-color: rgb(122, 130, 136);
  color: rgb(255, 255, 255);
  cursor: pointer;
  padding: 0px 0.3rem;
  border: 0;
  outline: none;
}

.nav-open .navicon {
  background: transparent;
}

.nav-open .navicon::before {
  transform-origin: 50% 50%;
  top: 0px;
  left: -3px;
  width: 25px;
  transform: rotate3d(0, 0, 1, 45deg);
}

.nav-open .navicon::after {
  transform-origin: 50% 50%;
  top: 0px;
  left: -3px;
  width: 25px;
  transform: rotate3d(0, 0, 1, -45deg);
}

.nav_items {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  right: 45px;
  top: -20px;
  margin: 0;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 0px 10px;
  padding: 5px;
  border: 1px solid rgb(242, 243, 243);
  border-radius: 4px;
  background: rgb(255, 255, 255);
  list-style: none;
  transition: all ease-in-out 0.2s;
}

.nav_items li {
  display: block;
  border-bottom: 1px solid rgb(242, 243, 243);
}

.nav_items li a {
  display: block;
  color: rgb(122, 130, 136);
  font-size: 1.6rem;
  margin: 0px;
  padding: 10px 20px;
  text-decoration: none;
  transition: all 0.2s ease-in-out 0s;
}

.nav_items li a:hover {
  color: rgb(92, 98, 102);
  background: rgb(222, 224, 225);
}

.nav_items::before {
  content: "";
  position: absolute;
  top: 20px;
  right: -10px;
  width: 0px;
  display: block;
  z-index: 0;
  border-style: solid;
  border-width: 10px 0px 10px 10px;
  border-color: transparent transparent transparent white;
}

.nav_items::after {
  clear: both;
  content: "";
  display: table;
}

.nav-open .nav_items {
  visibility: visible;
  opacity: 1;
}

.cd-top {
  display: block;
  width: auto;
  height: auto;
}

.cd-top i {
  display: block;
  margin-top: 3px;
  width: 30px;
  height: 30px;
  background-color: #7a8288;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  line-height: 29px;
  cursor: pointer;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 8px;
  background-color: white;
}

::-webkit-scrollbar-track {
  background-color: white;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(122, 130, 136, 0.4);
}

/* Animation */
@keyframes intro {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
