@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;
}
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;
  height: 60px;
  color: #005a00;
  padding: 0 20px;
}

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;
}

.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,.6);
}

.ads a.sponsor {
  color: rgba(0,0,0,.5);
  font-weight: bold;
  line-height: 40px;
}

.ads img.image {
  border-radius: 100%;
  background: rgba(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;
}

nav {
  justify-content: space-between;
  position: relative;
  width: 100%;
  padding: 20px 20px;
}

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;
}

nav .logo {
	height: auto;
	width: 230px;
}

.desktop-nav {
	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 {
  background: #fff;
  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.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: absolute;
  top: 13px;
  right: 20px;
  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,.5);
}

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

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

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

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

	.desktop-nav {
    align-items: center;
    display: flex;
    width: 100%;
  }

	.menu-button {
		display: none;
  }

  .mobile-nav__list {
    display: none;
  }

  .mobil-nav__search {
    display: none;
  }

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

  .story-card--medium {
    width: calc(50% - .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: 0;
    z-index: 99999;
  }
  #top {
    position: sticky;
    top: 60px;
    z-index: 99999;
  }
}

@media all and (max-width: 800px) {
  #root {
    max-width: 100vw;
    position: relative;
    overflow: hidden;
  }

  .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,.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,.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: 24px !important;
  }

  .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;
  }
}
