.logo {
  margin-top: 15px;
  max-width: 413px;
}

.logo:hover {
  cursor: pointer;
}

.no-svg .logo {
  background-image: url(/static/images/logo.png);
  background-size: cover;
}

@media only screen and (max-width: 767px) {
  .logo {
    max-width: 100%;
  }
}
@media only screen and (max-width: 767px) {
  #hamburger {
    position: relative;
    background-color: #e93d59;
    border-radius: 50%;
    margin: 60px 0 0;
    width: 100%;
  }

  #hamburger:before {
    content: '';
    display: block;
    padding-top: 100%; /* trick for a height=width */
  }

  #lines {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    cursor: pointer;
    border-radius: 50%;
  }

  #lines div {
    position: relative;
    background: #fff;
    height: 5%;
    margin: 0 auto;
    width: 45%;
    border-radius: 10px;
    transition: all 0.5s ease-in-out;
  }

  #lines div:nth-child(1) {
    margin-top: 33%;
  }

  #lines div:nth-child(2),
  #hamburger #lines div:nth-child(3) {
    margin-top: 11%;
  }
  /* After Hamburger click event */
  html.popup {
    overflow: auto;
  }

  .popup body {
    position: absolute;
    min-height: 700px;
    height: 100%;
    overflow: hidden;
  }

  .popup #lines div {
    transform-origin: left;
    margin-left: 33%;
  }

  .popup #lines div:nth-child(1) {
    transform: rotate(45deg);
  }

  .popup #lines div:nth-child(2) {
    transform: scaleX(0);
  }

  .popup #lines div:nth-child(3) {
    transform: rotate(-45deg);
  }

  .popup article {
    filter: blur(10px);
    opacity: 0.5;
  }

  .popup .tag h1 {
    opacity: 0.2;
  }

  .popup header {
    position: static;
    overflow: auto;
  }

  .popup header div.row {
    background-color: rgba(28, 11, 47, 0.8);
  }

  .popup header .row:nth-child(2) {
    min-height: 550px;
    z-index: 1000;
  }

  .popup header nav ul {
    height: auto;
  }

  .popup header nav ul li {
    transform: scale(1);
  }

  .popup footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2%;
    height: 80px;
    z-index: 1000;
    font-size: 1.3em;
    margin: 0 auto;
    opacity: 0.5;
  }

  .row:nth-child(1) div:nth-child(2) {
    outline: 0;
  }
}

@media only screen and (max-width: 700px) {
  .popup body {
    min-height: 650px;
  }
}
nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  justify-content: space-around;
}

nav li {
  padding-bottom: 25px;
  margin-top: 50px;
  color: white;
  text-align: center;
}

nav a {
  color: #7c8ba5;
  padding-bottom: 25px;
  border-bottom: 2px solid transparent;
  transition: all 0.4s ease;
}

nav a:focus {
  color: #7c8ba5;
}

nav a:hover,
nav a.active {
  color: #fff;
  border-bottom: 2px solid #ff425e;
}

nav a.active {
  cursor: default;
}

@media only screen and (max-width: 767px) {
  nav ul {
    display: block;
    margin-top: 30px;
    height: 0;
  }

  nav ul li {
    border-bottom: 2px solid rgba(103, 120, 150, 0.3);
    padding: 20px;
    margin: 0;
    font-size: 1.4em;
    transform: scale(0);
    transition: all 0.5s ease;
  }

  nav ul li:first-child {
    border-top: 2px solid rgba(103, 120, 150, 0.3);
  }

  nav ul li a {
    padding-bottom: 18px; /* TODO What's going on at Safari and Chrome with this border */
  }
}
header hr {
  margin-top: -2px;
}

header {
  z-index: 50; /* For clicking links */
}

@media only screen and (max-width: 767px) {
  header {
    margin-bottom: 20px;
  }

  header div.row {
    transition: all 0.5s ease;
  }

  header hr {
    display: none;
  }

  header .row:nth-child(2) {
    position: absolute;
    height: 100%;
    width: 100%;
    transition: all 0.5s ease;
    z-index: -100;
  }
}
footer {
  padding-top: 20px;
  position: absolute;
  height: 150px;
  left: 0;
  bottom: 0;
  right: 0;
  font-size: 1.1em;
  text-align: center;
  z-index: 50; /* Must be more than main */
}

@media only screen and (max-width: 767px) {
  footer {
    height: 100px;
  }
}
@font-face {
  font-family: 'PTMonoRegular';
  src: url('/static/fonts/PTMonoRegular.eot');
  src: url('/static/fonts/PTMonoRegular.eot?#iefix') format('embedded-opentype'),
    url('/static/fonts/PTMonoRegular.woff') format('woff'),
    url('/static/fonts/PTMonoRegular.woff2') format('woff2'),
    url('/static/fonts/PTMonoRegular.ttf') format('truetype');
  font-style: normal;
  font-weight: normal;
}

html {
  background-color: #220d38;
  overflow-x: hidden;
  width: 100%;
  height: 100%;
}

body {
  background: repeating-linear-gradient(
      150deg,
      rgba(140, 140, 140, 0.06),
      rgba(140, 140, 140, 0.06) 1px,
      transparent 0,
      transparent 20px
    ),
    repeating-linear-gradient(
      -150deg,
      rgba(140, 140, 140, 0.06),
      rgba(140, 140, 140, 0.06) 1px,
      transparent 0,
      transparent 20px
    );
  background-size: 82px 47px;
  overflow-x: hidden;
  position: relative;
  font-family: 'PTMonoRegular', monospace;
  color: #dbe2f2;
  font-size: 16px;
  line-height: 1.375em;
  max-width: 2000px;
  min-height: 100%;
  margin: auto;
}

h1 {
  font-size: 2em;
  line-height: 1.375em;
}

h2 {
  font-size: 1.5em;
  line-height: 1.333333333333333em;
}

h3 {
  font-size: 1.25em;
  line-height: 1.4em;
}

p {
  line-height: 1.5em;
  color: #7c8ba5;
  margin: 0;
}

label {
  line-height: 1.375em;
  font-weight: 400;
}

blockquote {
  font-size: 1.125em;
  line-height: 1.555555555555556em;
  border-color: #de1c02;
  padding: 0 0 0 15px;
  text-align: justify;
}

hr {
  width: 100%;
  border-top: 2px solid rgba(103, 120, 150, 0.2);
  margin: 0;
}

button {
  color: #fff;
  border: 0;
  border-radius: 4px;
  width: 100%;
  height: 40px;
  outline: none;
  box-shadow: 0 10px 25px 0 rgba(93, 13, 12, 0.3);
  max-width: 190px;
  background: rgb(178, 27, 26);
  background: -moz-linear-gradient(left, rgba(178, 27, 26, 1) 0%, rgba(225, 28, 0, 1) 100%);
  background: -webkit-linear-gradient(left, rgba(178, 27, 26, 1) 0%, rgba(225, 28, 0, 1) 100%);
  background: linear-gradient(to right, rgba(178, 27, 26, 1) 0%, rgba(225, 28, 0, 1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#b21b1a', endColorstr='#e11c00', GradientType=1);
  transition: all 0.1s ease-in-out;
}

button:active {
  box-shadow: none;
  transform: translateY(3px);
}

textarea {
  width: 100%;
  min-height: 100px;
  outline: none;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 10px;
  resize: none;
  overflow: hidden;
}

a:hover,
a:focus {
  text-decoration: none;
  outline: none;
}

.date {
  color: #7c8ba5;
  opacity: 0.25;
  font-size: 0.875em;
}

.container {
  max-width: 970px;
  position: relative;
}

.browser-upgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

@media only screen and (min-width: 768px) and (max-width: 992px) {
  .container {
    max-width: 100%;
    width: 100%;
  }
}

@media only screen and (max-width: 767px) {
  body {
    background-image: repeating-linear-gradient(
        150deg,
        rgba(140, 140, 140, 0.06),
        rgba(140, 140, 140, 0.06) 1px,
        transparent 0,
        transparent 20px
      ),
      repeating-linear-gradient(
        -150deg,
        rgba(140, 140, 140, 0.06),
        rgba(140, 140, 140, 0.06) 1px,
        transparent 0,
        transparent 20px
      );
    background-size: 82px 47px;
    font-size: 14px;
    width: 100%;
  }

  .no-svg body {
    background-image: none;
  }
}
/* Keep the legacy clipping and formatting context without a nested body scroller.
   WebKit otherwise sends the first scroll gesture to body's decorative overflow. */
@media only screen and (max-width: 767px) {
  /* The collapsed navigation row still overlaps the first post illustration. */
  html:not(.popup) header > .row:nth-child(2) {
    pointer-events: none;
  }

  body {
    overflow: clip;
    display: flow-root;
  }
}
