html, body {
  padding: 0;
  margin: 0;

  font-family: sans-serif;
}

article {
  padding: 0 1rem;
  max-width: 720px;
  margin: 0 auto;
}

button {
  cursor: pointer;
  -webkit-appearance: button;

  color: #fff;
  background-color: #C12C2C;

  border-color: #C12C2C;
  border-radius: 0;
  border: 1px solid transparent;
  padding: .375rem .75rem;

  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;

  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  transition:
    color .15s ease-in-out,
    background-color .15s ease-in-out,
    border-color .15s ease-in-out,
    box-shadow .15s ease-in-out;
}

button:hover {
  background-color: #AF2828;
  border-color: #AF2828;
}

.editor {
  width: 100%;
  height: 100vh;
  padding: 1rem;
  box-sizing: border-box;

  font-size: 1.5rem;
  color: rgba(35, 35, 35, 1);
  caret-color: rgba(35, 35, 35, 1);
}

.color-transition {
  transition-property: color;
  transition-duration: 1s;
  transition-timing-function: ease-out;
}

[data-seconds-left="5"] {
  color: rgba(35, 35, 35, 1);
}

[data-seconds-left="4"] {
  color: rgba(35, 35, 35, 0.8);
}

[data-seconds-left="3"] {
  color: rgba(35, 35, 35, 0.6);
}

[data-seconds-left="2"] {
  color: rgba(35, 35, 35, 0.4);
}

[data-seconds-left="1"] {
  color: rgba(35, 35, 35, 0.2);
}

[data-seconds-left="0"] {
  color: rgba(35, 35, 35, 0);
}

.word-counter {
  position: fixed;
  bottom: 0;
  left: 0;
  padding: 1rem;
  font-size: 0.75rem;
  color: rgba(35, 35, 35, 0.4);
}
