* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background: black;
  color: white;
  padding: 2rem 1rem;
  max-width: 750px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 0 auto;
}

nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

nav a {
  display: block;
  color: cornflowerblue;
}

textarea, input {
  background: inherit;
  color: inherit;
  padding: 0.5rem 1rem;
  border: 1px solid #666;
  border-radius: 0.5rem;
  outline: none;
  font-size: 1rem;
}

textarea {
  width: 100%;
}

button {
  padding: 0.25rem 0.5rem;
  background: seagreen;
  color: white;
  outline: none;
  border: 1px solid green;
  border-radius: 0.5rem;
  line-height: 1.5rem;
}

button.warning {
  background: goldenrod;
  border: 1px solid darkgoldenrod;
}

button.danger {
  background: indianred;
  border: 1px solid darkred;
}

button:disabled {
  background: gray;
  color: darkgray;
  border: 1px solid gray;
}

h1 {
  text-align: center;
}

form.horizontal {
  display: flex;
  gap: 1rem;
}

form.vertical {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

form input {
  width: 100%;
}

form .field {
  display: flex;
}
form .field label {
  width: 8em;
  display: inline-grid;
  align-items: center;
}

#searchResults {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
}

thead {
  border-top: 1px solid #666;
  border-bottom: 1px solid #666;

}

thead th {
  text-align: center;
}

th, td {
  line-height: 2;
  text-align: left;
}

tbody th {
  padding-left: 1rem;
}

tbody td {
  padding-right: 1rem;
}

td.number {
  text-align: right;
}

tbody {
  border-bottom: 1px solid #666;
}

.group-add-user {
  display: flex;
  display: flex;
  gap: 1rem;
  padding-right: 1rem;

  button {
    flex-shrink: 0;
  }
}

.success {
  --message-bg: seagreen;
}

.error {
  --message-bg: indianred;
}

.message {
  text-align: center;
  border-radius: 0.5rem;
  padding: 1rem;
  background: var(--message-bg)
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  column-gap: 1rem;
}

#codeResults {
  line-height: 2;
  font-family: monospace;
  padding-left: 2rem;
}
