* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
}

h1,h2,h3 {
  font-family: 'Source Sans Pro', sans-serif;
}

header {
  font-size: 2em;
  margin: 1em;
  text-align: center;
}

header h1 span {
  animation-duration: 3s;
  animation-name: header-nudge;
  display: inline-block;
  transform: rotate(-10deg);
}

header h1 span:hover {
  animation-iteration-count: infinite;
  animation-duration: 1s;
}

@keyframes header-nudge {
  from {
    transform: rotate(-10deg);
  }

  10% {
    transform: rotate(-20deg);
  }

  30% {
    transform: rotate(10deg);
  }

  60% {
    transform: rotate(-40deg);
  }

  to {
    transform: rotate(-10deg);
  }
}

textarea {
  height: 10em;
}

textarea {
  height: 5em;
  font-size: 2em;
  padding: 1em;
  border: 0.2rem solid #888;
  font-family: inherit;
}

.output {
  font-size: 2em;
  padding: 1em;
  border: 0.2rem dashed #888;
  height: 5em;
  overflow: auto;
}

.output.htmlMode {
  font-family: monospace;
  font-size: 1.5em;
  height: 10em;
}

.page {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 40em;
}

footer {
  margin: 2em;
  text-align: center;
  font-size: 0.9em;
}

button {
  font-size: 1.5em;
  margin: 1em 0.5em;
}

.toolbar {
  display: flex;
  justify-content: center;
  align-items: center;
}

.directions {
  text-align: center;
}

.hidden {
  display: none;
}

@media (max-width: 30em) {
  body {
    font-size: 0.6em;
  }
  footer {
    font-size: 1em;
  }
}
