@import url('https://fonts.googleapis.com/css?family=IBM+Plex+Mono:400,700|Catamaran:900&display=swap');

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
body {
  min-height: 100vh;
  font-family: 'IBM Plex Mono', monospace;
  background: url('data:image/svg+xml;utf8,<svg opacity="0.05" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M2.5 2.5h95v95" stroke="currentColor" stroke-width="5" stroke-linecap="square" fill="none"/></svg>'),
    #dfe7f1;
  background-size: 50px;
}
/* default styles */
section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
section > * + * {
  margin-top: 1.5rem;
}

section h2 {
  font-family: 'Catamaran', sans-serif;
  font-size: 3.5rem;
  letter-spacing: 0.01rem;
}

section button {
  font-family: inherit;
  background: hsl(0, 0%, 100%);
  border: 2px solid hsl(0, 0%, 90%);
  padding: 1rem 1.5rem;
  font-size: 1.5rem;
  color: hsl(0, 0%, 20%);
  box-shadow: 0 1px 5px hsl(0, 0%, 0%, 0.2);
}
section button:hover {
  background: hsl(0, 0%, 95%);
  box-shadow: initial;
}
section button:focus {
  outline: none;
  border: 2px solid hsl(0, 0%, 20%);
  box-shadow: initial;
}

section .keyboard {
  max-width: 650px;
}

/* styles included once splitting js has had a change to split the actual text */
h2.splitting .char {
  display: inline-block;
  animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  animation-delay: calc(var(--char-index) * 0.05s + 0.15s);
}
.keyboard {
  animation: popIn 0.4s 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: initial;
    transform: initial;
  }
}
