body {
  margin: 2em;
  font-family: sans-serif;
}

main {
  max-width: 60ch;
  margin: 0 auto;
}

header {
  border-bottom: 1px solid black;
  margin-bottom: 1.5em;
}

.form {
  display: flex;
  flex-direction: column;

  margin-top: 2em;
}

.small-form {
  display: inline-block;
  margin-top: -0.5em;
}

textarea {
  margin-bottom: 1em !important;
}

label {
  font-weight: 500;
}

input[type="text"],
input[type="password"],
textarea {
  background: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 6px;
  color: rgba(0, 0, 0, .8);
  display: block;

  margin: 0.5em 0.25em;
  padding: 0.5em 1.0em;
  line-height: 1.5;

  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  font-family: sans-serif;

  resize: none;
  overflow-x: wrap;
  overflow-y: scroll;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
  background-color: #fff;
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .25);
}

input[type="submit"] {
  background-color: rgb(21, 124, 214);
  border: rgb(2, 97, 180);
  border-radius: 6px;
  color: #fff;
  padding: 0.5em 1em;
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;

  user-select: none;
  border: 1px solid rgba(0, 0, 0, 0);
  font-size: 1rem;
  line-height: 1.5;

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

input[type="submit"]:active {
  background-color: rgb(47, 123, 190);
  border-color: rgb(23, 78, 126);
  color: #ffffff;
}

input+input[type="submit"] {
  margin-top: 0.5em;
}

input[type="submit"].danger {
  background-color: rgb(204, 41, 41);
}

input[type="submit"]:active.danger {
  background-color: rgb(160, 41, 41);
  border-color: rgb(155, 26, 26);
}

.keys-table {
  margin-top: 4em;
  width: 100%;
}

thead th {
  border: 0;
  border-bottom: 2px solid rgba(0, 0, 0, .12);
  text-align: left;
}

tr {
  margin-bottom: 16px;
}

th,
td {
  border-bottom: 1px solid rgba(0, 0, 0, .12);
  padding: 16px 0;
  vertical-align: inherit;
}

.flashes {
  display: block;
  position: fixed;

  right: 1em;
  bottom: 1em;

  margin: 0;
  padding: 0;
}

.flash {
  list-style: none;

  padding: 1em;
  border-radius: 6px;

  background-color: #333;
  color: #fff;
}

.flash+.flash {
  margin-top: .5em;
}

.flash-error {
  background-color: #a33;
}

.flash-success {
  background-color: #27b;
}
