:root {
  --background: #bdbdbd;
  --foreground: #000000;
  --highlight: #9d0000;
  --background-light: #bdbdbd;
  --foreground-light: #000000;
  --highlight-light: #ff0000;
  --header-height: 3rem;
  --footer-height: 1.5rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #222222;
    --foreground: #8ad0fa;
    --highlight: #f00;
    --background-light: #5d5d5d;
    --foreground-light: #000000;
    --highlight-light: #980000;
  }
}
header {
  position: fixed;
  height: var(--header-height);
  left: 0;
  top: 0;
  right: 0;
  padding-top: 0.25rem;
  padding-left: 1rem;
  background-color: var(--background-light);
  color: var(--foreground-light);
}
header > * {
  display: inline-block;
  float: left;
}
header h1 {
  margin: 0;
  font-size: 2rem;
}
header nav {
  margin-left: 1rem;
}
header nav ul {
  display: inline-block;
  list-style: none;
  margin: 0;
  padding: 0.2rem 0 0 0;
}
header nav ul li {
  padding: 0.2rem 1rem 0 1rem;
  display: inline-block;
  float: left;
  height: 2rem;
  font-size: 1.5rem;
  border: 1px solid var(--foreground-light);
  margin-right: 1rem;
}
header nav ul li a {
  color: inherit;
  text-decoration: none;
}
header nav ul li.active a {
  color: var(--highlight-light);
}
footer {
  position: fixed;
  height: var(--footer-height);
  left: 0;
  bottom: 0;
  right: 0;
  padding-top: 0.25rem;
  padding-left: 1rem;
  background-color: var(--background-light);
  color: var(--foreground-light);
}
footer a {
  color: inherit;
}
section#main {
  display: grid;
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
}
section#main .centered {
  place-self: center;
  border: 1px solid var(--background-light);
}
section#main .centered h2 {
  background-color: var(--background-light);
  color: var(--foreground-light);
  margin: 0;
  padding: 0.2rem 0 0.2rem 1rem;
  font-size: 1.2rem;
  font-weight: normal;
}
section#main .centered p, section#main .centered form {
  margin: 0.5rem 1rem;
}
form input[type=text], form input[type=password] {
  border: none;
  border-bottom: 1px solid var(--foreground);
  background-color: transparent;
  color: var(--foreground);
  position: relative;
}
form .message {
  padding-bottom: 0.5rem;
  color: var(--highlight);
}
form.inline {
  display: inline-block;
  margin: 0 !important;
  padding: 0;
}
form.inline button {
  margin: 0 0.25rem;
}
.formfield {
  padding-bottom: 0.5rem;
}
.formfield.button {
  text-align: right;
}
label, input, button {
  display: inline-block;
}
button {
  border: 1px solid var(--foreground);
  color: var(--foreground);
  background: none;
  padding: 0.3rem 1rem;
}
#login label {
  width: 10rem;
}
#api_access label {
  width: 7rem;
}
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: Verdana, sans-serif;
  font-size: 16px;
  margin: var(--header-height) 0 var(--footer-height) 0;
}
.centered table {
  border-collapse: collapse;
  margin: 1rem;
  font-size: 0.7rem;
}
.centered table thead th {
  background: var(--background-light);
  color: var(--foreground-light);
  text-align: left;
}
.centered table th, .centered table td {
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--background-light);
}
.centered table button {
  font-size: 0.7rem;
}
.centered table tfoot th {
  text-align: right;
}
