body {
  --background-color: #f1f1f1;
  --foreground-color: rgb(62, 67, 73);
  --secondary-color: #e9ecef;
}

@media (prefers-color-scheme: dark) {
  body {
    --background-color: black;
    --foreground-color: white;
    --secondary-color: #495057;
  }
}

body {
  font-family: monospace;
  font-size: 17px;
  line-height: 120%;

  padding: 30px;

  background: var(--background-color);
  color: var(--foreground-color);
}

::selection {
  background: var(--secondary-color);
}

/* Sections */

main {
  max-width: 800px;
}

nav ul {
  padding: 0;
  list-style: none;
}

nav li {
  display: inline-block;
}

pre {
  padding: 10px;
  margin-right: 20px;
  background-color: var(--secondary-color);
  font-size: .9em;
  overflow: scroll;
}

a {
  color: var(--foreground-color);
  text-decoration: none;
  border-bottom: 1px solid var(--foreground-color);
}

.readme code {
  background-color: var(--secondary-color);
  padding: 0 5px;
}

.readme > h1:first-child {
  display: none; /* hide the title in the readme if its the first element */
}

/* Table */

table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1rem;
  background-color: transparent;
}

thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
}

th {
  padding: .75rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
  box-sizing: border-box;
  text-align: left;
}

td {
  padding: .75rem;
  border-bottom: 1px solid #dee2e6;
}
