* {
  box-sizing: border-box;
  margin: 0;
  padding: 0; }

::selection {
  background: transparent;
  color: #fff; }

body {
  font-family: "Space Mono", monospace; }

h5 {
  font-family: "Roboto Condensed", "Helvetica Neue", "Helvetica", "Roboto", "Arial", sans-serif; }

main {
  min-height: calc(100vh - 3rem);
  display: flex;
  flex-flow: row wrap; }

header {
  background: tomato;
  color: #fff;
  width: 100%;
  font-weight: 600;
  font-size: 5vw;
  line-height: 4rem;
  padding: 0 2rem;
  text-align: center; }

section {
  flex: 1 1 50%;
  padding: 3rem;
  color: #fff; }
  section h5 {
    font-size: 2vw;
    letter-spacing: 0.05em;
    border-bottom: 0.25vw solid white;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    align-items: baseline; }
    section h5 span {
      flex: 1;
      text-align: right;
      font-family: "Space Mono", monospace; }
      section h5 span span {
        display: inline-block;
        text-align: right;
        width: 1em; }
  section.left {
    background: deepskyblue;
    color: #fff;
    text-align: left; }
  section.right {
    color: rgba(0, 0, 0, 0.8);
    background: navajowhite; }
    section.right h5 {
      border-color: rgba(0, 0, 0, 0.8); }

.word-list {
  list-style-type: none;
  padding: 0;
  margin: 0; }
  .word-list li {
    animation: enter-title 300ms ease-in-out forwards; }
    .word-list li h2 {
      line-height: 1.5;
      font-size: 5.5vw;
      margin: 1rem 0;
      color: rgba(0, 0, 0, 0.1); }
    .word-list li span {
      animation: enter-title 300ms ease;
      display: inline-block; }
    .word-list li span.input {
      color: rgba(0, 0, 0, 0.4);
      box-shadow: inset 0 -0.4vw 0 rgba(0, 0, 0, 0.4); }
    .word-list li:first-of-type span {
      opacity: 0;
      animation: enter-letters 100ms 200ms ease-in-out forwards; }
      .word-list li:first-of-type span:nth-child(0) {
        animation-delay: 200ms; }
      .word-list li:first-of-type span:nth-child(1) {
        animation-delay: 250ms; }
      .word-list li:first-of-type span:nth-child(2) {
        animation-delay: 300ms; }
      .word-list li:first-of-type span:nth-child(3) {
        animation-delay: 350ms; }
      .word-list li:first-of-type span:nth-child(4) {
        animation-delay: 400ms; }
      .word-list li:first-of-type span:nth-child(5) {
        animation-delay: 450ms; }
      .word-list li:first-of-type span:nth-child(6) {
        animation-delay: 500ms; }
      .word-list li:first-of-type span:nth-child(7) {
        animation-delay: 550ms; }
      .word-list li:first-of-type span:nth-child(8) {
        animation-delay: 600ms; }
      .word-list li:first-of-type span:nth-child(9) {
        animation-delay: 650ms; }
    .word-list li:first-of-type span.active {
      opacity: 1;
      color: rgba(0, 0, 0, 0.1);
      animation: blink 1000ms infinite; }
    .word-list li:first-of-type span.input {
      opacity: 1;
      animation: matched-character 200ms ease-in forwards;
      color: rgba(0, 0, 0, 0.5);
      box-shadow: inset 0 -0.4vw 0 rgba(255, 255, 255, 0); }

#js-input {
  display: none; }

.messages {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  flex-grow: 0;
  background: #fff;
  color: #333;
  font-size: 18px; }
  .messages .menu-item, .messages label {
    font-family: "Roboto Condensed", "Helvetica Neue", "Helvetica", "Roboto", "Arial", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 10em;
    font-weight: bold;
    display: block;
    flex: 0 1 auto;
    padding: 0 1rem;
    cursor: pointer;
    line-height: 2rem;
    transition: all 100ms ease; }
    .messages .menu-item:hover, .messages label:hover {
      line-height: 2rem;
      color: tomato; }
  .messages .menu-marquee {
    text-align: center;
    padding: 0 0.5rem;
    flex: 2 1 auto; }
  .messages #console {
    max-width: 30rem;
    margin: 0 auto;
    font-weight: bold;
    flex: 1 1 auto; }
  .messages input[type=checkbox] {
    display: none; }
  .messages .instructions {
    font-family: "Space Mono", monospace;
    text-transform: none;
    display: flex;
    align-items: center;
    z-index: 10;
    position: absolute;
    overflow: hidden;
    width: 100%;
    height: 0;
    top: 3rem;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    transition: all 300ms ease; }
    .messages .instructions .container {
      margin: 0 auto;
      max-width: 42em;
      font-size: 14px;
      padding: 4rem 0;
      opacity: 0;
      text-align: left;
      line-height: 1.3;
      transition: all 300ms ease-in; }
    .messages .instructions h1 {
      font-size: 3em;
      line-height: 1.1;
      color: #fff;
      margin-bottom: 0.75em; }
    .messages .instructions h3 {
      margin: 2em 0 0; }
    .messages .instructions ul li {
      margin: 1em 0; }
    .messages .instructions label {
      text-align: center;
      display: inline-block;
      padding: 1em 1em;
      min-width: 6rem;
      margin: 2em 0 0;
      background: transparent;
      color: #fff;
      box-shadow: inset 0 0 0 3px #fff;
      line-height: 1; }
      .messages .instructions label:hover {
        box-shadow: inset 0 0 0 3px tomato;
        background: tomato; }
  .messages #menu-control-label {
    text-align: right;
    padding-right: 0;
    padding-left: 0; }
    .messages #menu-control-label:before {
      display: block;
      text-align: right;
      content: 'Instructions'; }
  .messages #menu-control:checked ~ .instructions {
    height: calc(100vh - 3rem); }
    .messages #menu-control:checked ~ .instructions .container {
      animation: menu-enter 400ms ease 400ms forwards;
      opacity: 0; }
  .messages #menu-control:checked ~ #menu-control-label:before {
    content: 'Close'; }
  .messages ::selection {
    background: transparent;
    /* WebKit/Blink Browsers */
    color: #000; }

@keyframes blink {
  0% {
    color: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 -0.4vw 0 rgba(255, 255, 255, 0.9); }
  50% {
    color: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 -0.4vw 0 rgba(255, 255, 255, 0.9); }
  50.001% {
    color: rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 -0.4vw 0 rgba(255, 255, 255, 0); }
  100% {
    color: rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 -0.4vw 0 rgba(255, 255, 255, 0); } }

@keyframes enter-title {
  0% {
    opacity: 0;
    transform: translateY(-4rem); }
  50% {
    opacity: 1;
    transform: translateY(1rem); }
  100% {
    opacity: 1;
    transform: translateY(0); } }

@keyframes enter-letters {
  0% {
    transform: translateY(1rem);
    opacity: 0; }
  100% {
    transform: translateY(0rem);
    opacity: 1; } }

@keyframes menu-enter {
  0% {
    opacity: 0;
    transform: translateY(-2rem); }
  100% {
    opacity: 1;
    transform: translateY(0rem); } }
