body {
  font-family: sans-serif;
  color: #ffffffd6;
  background-color: #131313;
  font-size: 18px;
}

html, body, div, h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

header, main {
  padding: 16px;
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  max-width: 650px;
}

main {
  max-width: 600px;
}
h2 {
  margin-bottom: 16px;
}

h3, p {
  font-weight: normal;
  margin-bottom: 8px;
}

ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

li {
  margin: 0;
  padding: 0 0 12px;
}

p.notice {
  color: #ffffff8c;
  font-style: italic;
  font-size: 0.9rem;
}

.hidden {
  display: none;
}

section {
  margin-bottom: 32px;
}

form {
  display: flex;
  margin-top: 24px;
}

form input:not(:first-child) {
  margin-left: 8px;
}

header form {
  margin: 0;
}

input[type="text"]:focus, input[type="text"]:active {
  background-color: #ffffffd6;
  border-color: transparent;
  color: #000000;
}

input[type="text"], select {
  flex: 1;
  height: 40px;
}

button, input, select {
  box-sizing: border-box;
  background: none;
  border: 2px solid #ffffffd6;
  border-radius: 6px;
  color: #ffffffd6;
  padding: 8px;
  text-transform: uppercase;
  font-weight: bold;
  transition: color 0.1s ease, background-color 0.1s ease, border-color 0.1s ease;
  outline: none;
}

button:hover, button:active,
input:hover, input:active {
  background-color: #ffffffd6;
  border-color: transparent;
  color: #000000;
}

select option {
  color: #000;
}

.btn-group {
  display: flex;
}

.btn-group button:not(:first-child) {
  margin-left: 8px;
}

#people p {
  color: #ffffff8c;
}

#people strong {
  color: #ffffffd6;
}

#spinner div {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  border: 5px solid;
  border-color: #ffffffd6 #ffffffd6 #ffffffd6 transparent;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

h2.flash {
  display: inline-block;
  position: relative;
}

h2.flash::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 100%;
  height: 4px;
  animation: flash 0.5s ease;
  background-color: #ffffffd6;
}

@keyframes flash {
  0% {
    left: 0;
    right: 100%;
  }
  50% {
    left: 0;
    right: 0;
  }
  100% {
    left: 100%;
    right: 0;
  }
}

.person:focus {
  outline: none;
}

.person .edit-hours {
  margin-left: 0.5rem;
  opacity: 0;
  transition: opacity 0.1s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.person .edit-hours.disabled {
  display: none;
}

.person:hover .edit-hours,
.person:focus .edit-hours,
.person:focus-within .edit-hours {
  opacity: 1;
}

.person .edit-hours-form {
  display: inline-block;
  position: absolute;
  margin-top: -2px;
  margin-left: 0.5rem;
}

.person .edit-hours-form input {
  padding: 4px;
  width: 4rem;
}

.far.fa-cog {
  display: inline-block;
  background-image: url(cog-solid.svg);
  background-repeat: no-repeat;
  vertical-align: middle;
  fill: white;
  width: 1rem;
  height: 1rem;
}
