html {
  background: #222;
  color: #ccc;
}

body {
  text-align: center;
  margin-top: 10em;
}

hr {
  width: 30%;
  margin-top: 3em;
  margin-bottom: 3em;
  border-color: #ccc;
}

ul {
  list-style-type: none;
  padding: 0;
}

a {
  color: #a81;
}

blockquote {
  color: #aaa;
  font-style: italic;
  margin-bottom: 0.3em;
}

cite {
  color: #aaa;
  font-style: italic;
}

.hide {
  display: none;
}

span.highlight {
  position: relative;
  border-radius: 2px;

  padding: 0.2em 0.6em;
  margin-top: 2em;
  border: 1px solid #555f;
  color: #a81;
}

span.fade-highlight {
  animation: fade-highlight 5s forwards;
}

@keyframes fade-highlight {
  0% {
    padding: 0;
    margin-top: 0;
    border: 1px solid #3330;
    color: #ccc;
  }
  100% {
    padding: 0.2em 0.6em;
    margin-top: 2em;
    border: 1px solid #555f;
    color: #a81;
  }
}

.fade-in {
  animation: fade-in 3.5s linear forwards;
}

.fade-out {
  animation: fade-out 1.5s linear forwards;
}

@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fade-out {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

span.slide-left {
  left: -15em;
  top: 10em;
  animation: slideLeft 1.5s;
}

@keyframes slideLeft {
  0% {
    left: 0;
    top: 0;
  }
  100% {
    left: -15em;
    top: 10em;
  }
}

span.slide-up {
  top: -11em;
  left: 0em;
  color: #923;
  opacity: 0;
  animation: slideUp 3s, slideRight 3s;
  animation-timing-function: cubic-bezier(0.1, 0.5, 0.3, 1), cubic-bezier(0.6, 0, 0.8, 0);
}

@keyframes slideUp {
  0% {
    top: 10em;
    opacity: 1;
  }
  60% {
    color: #a81;
    opacity: 1;
  }
  100% {
    top: -11em;
    color: #923;
    opacity: 0;
  }
}

@keyframes slideRight {
  0% {
    left: -15em;
  }
  100% {
    left: 0em;
  }
}

blockquote.typing {
  white-space: nowrap;
  overflow: hidden;
  margin: 0 auto;
  animation: typing 3.5s steps(100, end) forwards;
}

@keyframes typing {
  0% { width: 0; opacity: 0; }
  10% { opacity: 0.7; }
  100% { width: 100%; opacity: 1; }
}

blockquote.retyping {
  white-space: nowrap;
  overflow: hidden;
  margin: 0 auto;
  animation: retyping 5s steps(100) forwards;
}

@keyframes retyping {
  0% { width: 100%; }
  45% { width: 0%; }
  55% { width: 0%; }
  100% { width: 100%; }
}

.fade-red {
  color: #923;
  border-color: #923;
  animation: fadeRed 2.5s;
}

@keyframes fadeRed {
  0% {
    color: #ccc;
    border-color: #ccc;
  }
  100% {
    color: #923;
    border-color: #923;
  }
}

span.message1 {
  top: 2em;
  left: 0;
}

span.message2 {
  top: 2em;
  left: 0;
}
