/*
css font import:
https://stackoverflow.com/questions/2436749/how-to-add-multiple-font-files-for-the-same-font
*/
@font-face {
  font-family: "Quicksand";
  src: url("../font/Quicksand-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Open Sans";
  src: url("../font/OpenSans-Regular.ttf") format("truetype");
}
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url('../font/MaterialIcons-Regular.ttf') format('truetype');
  /*src: url('MaterialIcons-Regular.woff2') format('woff2'),
       url('MaterialIcons-Regular.woff') format('woff'),
       url('MaterialIcons-Regular.ttf') format('truetype');*/
}
body {
  font-family: "Open Sans", "Quicksand", Arial, Helvetica, sans-serif;
  font-size: 14px;
}
h1 {
  font-size: 1.6rem;
}
h2 {
  font-size: 1.5rem;
}
code {
  font-size: 12px;
}
.logo {
  padding: 60px 25px;
}
.logo__tagline {
  border-top-width: 0;
}
.divider {
  background: #f7f7f7;
}
.menu__item:hover {
  background: #fff;
}
.menu__link {
  padding: 0.325rem 0.9375rem;
  background: #ff0b0f;
  color: #fff;
}
.menu__link:hover {
  color: #fff;
  text-decoration: underline;
}
.menu__link:hover:after {
  transform: scaleX(0);
  transform-origin: center right;
}
.menu__list {
  background: none;
}
.menu__item--active {
  background: #fff;
}
.menu__btn {
  color: #fff;
  background: #ff0b0f;
}
.js .menu__btn--active {
  color: #fff;
}
.widget-search__form {
  padding: 12px 0 !important;
  background: #ffffff00;
}
.widget-search__field {
  width: 100%;
}
.widget__item {
  border-bottom: 0;
}
.widget__title {
  border: 1px solid #fb5555;
  border-bottom: 3px solid #fb5555;
  border-radius: 2px;
  padding: 6px 4px !important;
  font-size: 12px;
}
.widget__content {
  font-size: 13px;
}
.container--outer {
  margin: 0 auto;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}
.list__item {
  padding-bottom: 2.25rem;
  margin-bottom: 2.25rem;
}
.list__thumbnail img {
  max-width: 156px;
}
.list__title {
  font-size: 1.05rem;
}
.list__meta,
.post__meta {
  font-size: 11px;
}
.related {
  margin: 26px 0;
}
.related ul.listing {
  /*padding-left: 20px;*/
  list-style: none;
}
pre code {
  font-size: 12px;
}
.content ol {
  margin-bottom: 46px;
}
.content ol li::marker {
  color: #605e5e;
  font-size: 11px;
}
.content ol li p {
  margin-bottom: 0;
  font-size: 11px;
}
.content ol li p a {
  color: #605e5e;
  font-weight: 400;
  font-style: italic;
}
/* Base quote styling */
blockquote {
  position: relative;
  border-width: 0 !important;
  border-left-width: 4px !important;
  padding: 12px 16px 12px 40px !important;
  margin: 16px 0;
  background-color: #fafafa;
  border-radius: 0 4px 4px 0;
  font-size: 0.95em;
  text-align: left !important;
  line-height: 1.6;
  overflow: hidden;
}
/* Icon base styling */
blockquote.info::before,
blockquote.warning::before,
blockquote.error::before {
  font-family: 'Material Icons';
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 20px;
  font-weight: normal;
  line-height: 1;
}
blockquote.info {
  border-left-color: #2196f3;
  background-color: rgba(33, 150, 243, 0.05);
}
blockquote.info::before {
  content: "info";
  color: #2196f3;
}
blockquote.warning {
  border-left-color: #ff9800;
  background-color: rgba(255, 152, 0, 0.05);
}
blockquote.warning::before {
  content: "warning";
  color: #ff9800;
}
blockquote.error {
  border-left-color: #f44336;
  background-color: rgba(244, 67, 54, 0.05);
}
blockquote.error::before {
  content: "error";
  color: #f44336;
}
blockquote p:first-child {
  margin-top: 0;
}
blockquote p:last-child {
  margin-bottom: 0;
}
blockquote {
  transition: all 0.2s ease;
}
blockquote:hover {
  background-color: #f5f5f5;
}
blockquote[class] > strong:first-child,
blockquote[class] > p > strong:first-child {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

/* bilibili player */
#biliplayer {
  width: 100%;
  height: 396px;
}
.authorbox {
  margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  blockquote {
    padding-left: 36px;
    margin-left: 4px;
  }
  blockquote::before {
    left: 8px;
  }
}
@media screen and (min-width: 767px) {
  .container--outer {
    width: 960px;
  }
  .menu {
    border-bottom: 5px solid #f7f7f7;
  }
  .menu__item {
    border-left: 4px solid rgba(255, 255, 255, 0.1);
  }
}
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
  #biliplayer {
    width: 100%;
    height: 250px;
  }
  .footer {
    padding-left: 20px !important;
  }
  .footer__copyright {
    text-align: left;
    width: 100% !important;
  }
  .footer__items {
    width: 32% !important;
    display: inline-block;
    padding-top: 40px;
    vertical-align: top;
  }
}

/* footer */
.footer {
  padding: 60px 2px 60px 24px;
  border-top: 5px solid #f7f7f7;
  color: #605e5e;
  background-color: #fff;
}
.footer a {
  color: #605e5e;
  font-weight: 300;
  font-size: 14px;
}
.footer__copyright {
  width: 46%;
}
.footer__copyright .beian {
  font-size: 12px !important;
}
.footer__items {
  width: 18%;
}
.footer__items ul {
  list-style-type: none;
}
