:root {
  --light: white;
  --dark: #333;
}
* {
  box-sizing: border-box;
}
a:visited, a {
  font-weight: normal;
}
svg a {
  text-decoration: underline;
}
svg a:link { color: #0000EE; }
svg a:visited { color: #551A8B; }
svg a:link:active, svg a:visited:active { color: #FF0000; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}
body {
  padding: var(--space-2);
}
svg {
  display: block;
  margin: 0 var(--space-4);
}
button, select, input {
  border: 1px solid ;
  padding: var(--size-1);
  display: inline-block;
  background-color: var(--light);
  min-width: 100px;
  border-radius: 4px;
  appearance: none;
  vertical-align: middle;
}
input[type="radio"], input[type="checkbox"] {
  min-width: auto;
  appearance: none;
  position: relative;
  max-width: 16px;
  max-height: 16px;
}
input[type="radio"] {
  border-radius: 50%;
}
input[type="radio"]:checked::after,
input[type="checkbox"]:checked::after {
  content: " ";
  width: 100%;
  height: 100%;
  vertical-align: middle;
  display: block;
  background-color: var(--dark);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  border-radius: 2px;
}
input[type="radio"]:checked::after {
  border-radius: 50%;
  width: 50%;
  height: 50%;
}
input[type="checkbox"]:checked::after {
  content: "✓";
  font-size: 12px;
  color: var(--light);
  text-align: center;
}
button a {
  text-decoration: none;
  display: block;
}
button:active,
select:active {
  background-color: #dfdfdf;
}
form label {
  align-self: center;
}
select {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"/></svg>') no-repeat;
  background-position: center right var(--size-1);
  background-size: var(--size-1);
  padding-right: calc(var(--size-1) * 2 + 4px);
}
@media(hover: hover) {
  button:hover,
  select:hover {
    cursor: pointer;
  }
  a:hover,
  button:hover {
    font-weight: bold;
  }
}
body.green button {
  background-color: #41ab5d;
}
@media (prefers-color-scheme: dark) {
  html {
    background-color: var(--dark);
  }
  body:not(.green) * {
    color: white;
    background-color: var(--dark);
  }
  body:not(.green) button,
  body:not(.green) select {
    background-color: var(--dark);
  }
  body:not(.green) svg text {
    fill: white;
  }
  body:not(.green) svg rect[fill="white"] {
    fill: var(--dark);
  }
}

table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
}

th, td {
  padding: var(--space-1);
  border-bottom: 1px solid var(--dark);
}

th {
  background-color: #41ab5d;
  color: white;
}

header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--dark);
  margin-bottom: var(--space-3);
}
header nav {
  flex: 1;
  text-align: right;
}
header h2 {
  font-size: var(--font-4);
}
header a {
  text-decoration: none;
}
header li {
  list-style: none;
  display: inline-block;
  margin-right: var(--space-3);
  font-size: var(--font-3);
}

@media(hover: hover){
  tr:hover {
    background-color: #f7f7f7;
  }
}
