@import url("https://fonts.googleapis.com/css?family=IBM+Plex+Mono:300,400,500|IBM+Plex+Sans:300,400,500,700");

* {
  box-sizing: border-box;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
  font-family: "IBM Plex Sans", sans-serif;
  color: #111;
  overflow-x: hidden;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
button {
  cursor: pointer;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

nav {
  display: flex;
  align-items: center;
}

#header {
  display: flex;
  align-items: center;
  background: #00ff00;
  color: #005a00;
  padding: 0 0 0 15px;
  position: sticky;
  top: 0;
  z-index: 1;
}

header nav button,
header nav i {
  margin-left: 20px;
}

header nav .mobile-search i {
  margin-left: 60px;
}

header nav i {
  font-size: 20px;
  color: #004400;
}

.spacer {
  flex: 1;
}

.flex {
  display: flex;
  align-items: center;
}

a.button,
button {
  font-family: "IBM Plex Mono", monospace;
  background: #004400;
  border: 2px solid #004400;
  color: #00ff00;
  border-radius: 5px;
  padding: 6px 24px;
  font-size: 14px;
  font-weight: 400;
}

a.button.outline,
button.outline {
  background: transparent;
  border: 2px solid #004400;
  color: #004400;
  font-weight: 500;
}

a:focus {
  text-shadow: 1px 1px 0 #0f0;
}

.subnav a:focus,
.more-content.featured a:focus {
  text-shadow: 2px 2px 0 #090;
}

.ads {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background: #222;
  background: rgb(245, 236, 66);
  color: rgba(0, 0, 0, 0.6);
  padding: 0;
}

.ads a.sponsor {
  color: rgba(0, 0, 0, 0.5);
  font-weight: bold;
  display: flex;
  width: 100%;
  padding: 10px 0;
}

.ads img.image {
  border-radius: 100%;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px;
  width: 25px;
  height: 25px;
}

.bio {
  display: flex;
  align-items: center;
}

.bio .avatar {
  width: 50px;
  height: 50px;
  border-radius: 100%;
  background-size: cover;
  margin-right: 10px;
}

.bio .name {
  color: #fff;
  text-decoration: none;
}

.bio .published {
  color: #aaa;
  font-size: 13px;
  margin-top: 5px;
}

.bio .tags {
  padding-top: 20px;
}

.bio .tags a {
  background: transparent;
  color: #00ff00;
  border-color: #00ff00;
  border-width: 1px;
  text-decoration: none;
  padding: 3px 10px;
  font-size: 12px;
  margin-left: 4px;
}

.green {
  margin-top: 50px;
  background: #00ff00;
  color: #002200;
  padding: 50px 0;
  text-align: center;
}

.green h1 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 30px;
  font-weight: bold;
  margin: 10px 0 50px 0;
}

#header nav {
  justify-content: space-between;
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
}

nav.tags {
  min-height: 60px;
  justify-content: flex-start;
  border-top: 3px solid #00aa00;
  display: flex;
  flex-wrap: nowrap;
  padding: 10px 0;
  overflow-x: auto;
}

nav.tags a.button {
  margin: 1rem 5px 0.5rem;
  text-decoration: none;
}

.logo img {
  max-width: 100%;
  max-height: 100%;
}

.logo {
  height: 40px;
  width: auto;
}

.logo img {
  display: none;
}

.logo img.mobile {
  display: block;
}

.desktop-nav {
  margin-right: 70px;
  display: flex;
  align-items: center;
}

.desktop-nav > a {
  display: none;
}

.mobile-nav {
  display: flex;
  justify-content: space-between;
}

.mobile-nav__list {
  background: #00ff00;
  left: 0;
  min-height: 100px;
  padding: 20px 0;
  position: absolute;
  transform: translateY(80%);
  transition: 0.2s ease-in-out;
  width: 100%;
  z-index: 1;
}

.mobile-nav__list .icons {
  margin-bottom: 30px;
}

.menu-button {
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: inline-block;
  margin: 10px;
  padding: 0;
  outline: none;
}

.menu-button .line {
  background: #000;
  display: block;
  height: 3px;
  width: 20px;
  margin: 0;
  padding: 0;
  transition: ease-in-out 200ms;
  border-radius: 4px;
}

.menu-button .line:not(:last-of-type) {
  margin-bottom: 4px;
}

.menu-button.active .line:nth-child(1) {
  transform: rotate(45deg) translateX(2.5px) translateY(-1.25px);
  -webkit-transform: rotate(45deg) translateX(2.5px) translateY(-1.25px);
  transform-origin: center left;
  -webkit-transform-origin: center left;
}

.menu-button.active .line:nth-child(2) {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  transform-origin: center;
  -webkit-transform-origin: center;
}

.menu-button.active .line:nth-child(3) {
  transform: rotate(-45deg) translateX(2.5px) translateY(1.5px);
  -webkit-transform: rotate(-45deg) translateX(2.5px) translateY(1.5px);
  transform-origin: center left;
  -webkit-transform-origin: center left;
}

.mobil-nav__search i {
  margin-left: 60px;
}

.story-card {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  height: 330px;
  margin-bottom: 40px;
  position: relative;
  text-align: left;
  width: 100%;
}

.story-card--medium {
  height: 350px;
}

.story-card .img {
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: block;
  height: 150px;
}

.story-card .title {
  height: 80px;
  line-height: 1.4;
  margin-bottom: 15px;
  overflow: hidden;
  padding: 10px 20px;
}

.story-card--medium .title {
  margin-bottom: 10px;
}

.story-card .title a {
  color: #111;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
}

.story-card .avatar {
  background-size: cover;
  border-radius: 100%;
  height: 50px;
  margin-right: 10px;
  width: 50px;
}

.story-card .bio {
  display: block;
  padding: 0 20px;
}

.story-card .bio .name {
  color: #111;
  font-weight: 500;
  text-decoration: none;
}

.story-card .bio .published {
  color: #aaa;
  font-size: 0.8rem;
  margin-top: 5px;
}

.story-card .bio .tags a {
  color: #111;
  border-color: #111;
}

.subnav .category {
  display: flex;
}

.subnav.footer {
  height: 90px;
  background: #f1f3f5;
  justify-content: space-between;
  padding: 20px;
}

.subnav.footer a {
  color: #111111;
}

.subnav.footer a:hover {
  color: #a7a7a7;
  transition: 0.2s ease-in-out;
}

.subnav.footer .footer__logo {
  width: auto;
  height: 45px;
}

.subnav.footer .footer__links {
  margin: 15px 0;
  display: flex;
  flex-direction: row;
}

.subnav.footer .footer__privacy-links {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.subnav.footer .footer__privacy-links a {
  font-weight: 400;
  font-size: 14px;
}

.subnav.footer a.footer__sponsor-type {
  font-weight: 300;
  font-style: italic;
  margin: 0 10px;
}

.subnav.footer a.footer__sponsor {
  margin: 0 0 0 15px;
}

header img.profile {
  width: 36px;
  height: 36px;
  border-radius: 100%;
  background-size: cover;
  margin-left: 20px;
}

.search-container .search-input {
  width: 200px;
  opacity: 1;
}

.search-container.active .search-input {
  width: 200px;
  opacity: 1;
}

.search-container {
  position: relative;
}

.search-container i {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translate(0, -50%);
  cursor: pointer;
}

.story ul {
  list-style-type: disc;
}

.story ol {
  list-style-type: decimal;
}

.story strong {
  font-weight: bold;
}

.mobile-menu-toggle {
  position: fixed;
  top: 13px;
  right: 15px;
  padding: 6px 12px;
  display: none;
  z-index: 999999;
  transition: all 120ms ease-in-out;
}

.mobile-menu-toggle.mobile-open {
  position: fixed;
}

.mobile-menu-toggle.mobile-open {
  background: #050;
  border-color: #050;
  color: #0f0;
}

.mobile-back {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 65px;
  z-index: 999998;
  display: none;
  background: #020;
}

.mobile-back button {
  width: 75px;
  height: 65px;
  line-height: 65px;
  text-align: center;
  background: transparent;
  border: none;
  font-size: 29px;
  padding: 0px;
  color: rgba(0, 255, 0, 0.5);
}

.mobile-only {
  display: none;
}
.desktop-only {
  display: initial;
}

.darkmode {
  width: 60px;
  height: 60px;
  background: rgba(0,0,0,.1);
  margin-left: 15px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.darkmode i {
  position: absolute;
  margin: 0;
  top: 50%;
  left: 50%;
  font-size: 30px;
  color: rgba(0,0,0,.3);
  transform: translate(-50%, 100px);
  transition: all 200ms ease-in-out;
}

.darkmode:hover i {
  color: rgba(0,0,0,.8);
}

.darkmode.light .light {
  transform: translate(-50%, -50%);
}

.darkmode.dark .dark {
  transform: translate(-50%, -50%);
}

/* Dark Mode */
body.dark {
  background: #011901;
  color: #fff;
}
body.dark .story-meta .date {
  color: rgba(255,255,255,.7);
}
body.dark .story-meta .share .twitter {
  color: #fff;
}
body.dark .author {
  background: #f5ec42;
  color: #111;
  border-color: #e6dc1f;
}
body.dark .author .avatar {
  border: 3px solid #e6dc1e;
}
body.dark .content a {
  color: #fff;
  background-image: linear-gradient(
    transparent 0%,
    transparent calc(50% - 9px),
    #444 calc(50% - 9px),
    #444 100%
  );
}
body.dark .archive-tags a {
  color: #0f0;
  border-color: #0f0;
  background: transparent;
}
body.dark .story img {
  background: #fff;
}
body.dark .annotate {
  background: #444;
}
body.dark .subnav.footer {
  background: #f5ec42;
}
body.dark .divider-title a {
  color: #fff;
}
body.dark .divider-title a::before {
  background: #444;
}
body.dark .search-results .section-header {
  color: #fff;
}
body.dark #header {
  background: #008a00;
}
body.dark .darkmode i,
body.dark header nav i {
  color: rgba(255,255,255,.9);
}
body.dark header nav button.outline {
  color: rgba(255,255,255,.9);
  border-color: rgba(255,255,255,.9);
}
body.dark header .logo {
  filter: invert(1);
  mix-blend-mode: color-dodge;
  opacity: .9;
}
body.dark .stories-item a,
body.dark .search-results .section-header input {
  color: #fff;
}
body.dark .ais-SearchBox-form svg path {
  fill: #fff;
}
body.dark .stories-item .meta .date {
  color: rgba(255,255,255,.7);
}
body.dark .ais-Pagination-link {
  color: #fff;
}
body.dark .ais-Pagination-item--selected .ais-Pagination-link {
  color: #011a01;
  background-color: #fff;
  border-color: #fff;
}
body.dark .content pre {
  color: #111;
  background-color: rgba(255,255,255,.8);
}
body.dark .story h2 {
  color: rgba(255,255,255,.7);
}
body.dark .about {
  background: rgba(255,255,255,.06);
}
body.dark .about .boxes button {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.4);
}
body.dark .about .boxes button.active {
  background: #001100;
  color: #00ff00;
}
body.dark .comments .comment a{
  color: #111;
  background-image: linear-gradient(
    transparent 0%,
    transparent calc(50% - 9px),
    rgba(0, 255, 0, 0.35) calc(50% - 9px),
    rgba(0, 255, 0, 0.35) 100%
  )
}
body.dark .comments .comment {
  color: #111;
}

@media screen and (max-width: 767px) {
  .mobile-menu-toggle {
    display: block;
  }

  .desktop-nav > span {
    display: none;
  }
}

@media screen and (min-width: 768px) {
  header nav {
    padding: 0;
  }

  header nav .mobile-search i {
    display: none;
  }

  .logo img {
    display: block;
  }

  .logo img.mobile {
    display: none;
  }

  .desktop-nav {
    margin-right: 0;
  }

  .desktop-nav > a {
    display: block;
  }

  .search-container .search-input {
    width: 0;
    opacity: 0;
  }

  .menu-button {
    display: none;
  }

  .mobile-nav__list {
    display: none;
  }

  .mobil-nav__search {
    display: none;
  }

  .story-card {
    width: calc(33% - 0.8rem);
  }

  .story-card--medium {
    width: calc(50% - 0.8rem);
  }
}

@media all and (max-width: 800px) {
  .subnav.footer {
    display: block;
    height: auto;
    text-align: center;
  }

  .subnav.footer .footer__privacy-links,
  .subnav.footer .footer__links {
    flex-direction: column;
  }

  .subnav.footer .footer__privacy-links a,
  .subnav.footer .footer__links a {
    margin-bottom: 8px;
    font-size: 18px;
  }

  .subnav.footer i {
    font-size: 24px;
  }
}

@media all and (min-width: 1000px) {
  header#header {
    position: sticky;
    top: -60px;
    z-index: 99999;
    transition: top 170ms ease-in-out;
  }
  #top {
    position: sticky;
    top: -40px;
    z-index: 99999;
    transition: top 170ms ease-in-out;
  }

  body.scroll-up header#header {
    top: 0;
  }

  body.scroll-up #top {
    top: 60px;
  }
}

@media all and (max-width: 800px) {
  header#header {
    top: 0;
  }
  #top {
    top: 60px;
    position: sticky;
    z-index: 99999;
  }

  .mobile-only {
    display: initial;
  }
  .desktop-only {
    display: none;
  }

  #root {
    max-width: 100vw;
    position: relative;
  }

  .subnav {
    position: fixed !important;
    height: 100vh !important;
    top: 0;
    left: 0;
    right: 0;
    transform: translate(100%, 0) !important;
    transition: transform 120ms ease-in-out;
    z-index: 99999;
    flex-direction: column;
  }

  .subnav .dropdown {
    display: block !important;
    position: absolute !important;
    height: auto;
    right: 0;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    transform: translate(100%, 0) !important;
    transition: transform 120ms ease-in-out !important;
    z-index: 99999;
  }

  .subnav .dropdown.active {
    transform: translate(0, 0) !important;
  }

  .mobile-back.mobile-open {
    display: block;
  }

  .subnav.mobile-open {
    transform: translate(0, 0) !important;
    justify-content: start;
    padding-top: 65px;
    overflow-x: hidden;
    overflow-y: scroll;
  }

  .subnav.mobile-open a {
    position: relative;
    display: block;
    width: 100%;
    height: 60px;
    line-height: 60px;
    text-indent: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .subnav.mobile-open a::after {
    content: "\003E";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 100;
    font-size: 20px;
    color: rgba(0, 255, 0, 0.5);
  }

  .subnav .dropdown.active {
    padding: 65px 0 0 0 !important;
  }

  .subnav a,
  .subnav .dropdown .section {
    margin: 0 !important;
  }

  .subnav .section li,
  .subnav .section .links {
    padding: 0 !important;
  }

  .subnav .section .heading {
    padding: 0 !important;
    border-right: none !important;
  }

  .subnav .section .heading a {
    font-size: 18px !important;
    line-height: 1.3;
    text-indent: 0;
    padding: 15px 30px;
    height: auto;
  }

  .subnav .section .heading::after,
  .subnav .section .heading::before,
  .subnav .section .heading .line {
    display: none !important;
  }

  .subnav .category,
  .subnav .dropdown.active,
  .subnav .dropdown .section.active {
    display: block !important;
  }
}
