/* Light/Dark mode support */
:root {
  color-scheme: light dark;
  --text-color: #333;
  --link-color: #0044dd;
  --insert-color: #088833;
  --delete-color: #ff5050;
  background-color: #fbfbfb;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #ccc;
    --link-color: #3377dd;
    --insert-color: #33cc33;
    --delete-color: #ff6666;
    background-color:#121212;
  }
}

body {
  margin: 0 auto;
  max-width: 1000px;
  padding: 20px;
  color: var(--text-color);
  font-family: monospace;
}

img {
  border-radius: 32px;
}

h1,
h2 {
  font-size: 1em;
  margin: 0;
}

a {
  color: var(--link-color);
  text-decoration: none;
}
a:visited {
  color: var(--link-color);
}
a:hover {
  text-decoration: underline;
}

#blob a {
  color: #777777;
  padding: 0 5px 0 0;
}

#blob a:hover {
  text-decoration: none;
}

table thead td {
  font-weight: bold;
}

table td {
  padding: 0 0.4em;
}

#content table td {
  white-space: nowrap;
  vertical-align: top;
}

#index tr td:nth-child(2),
#tags tr td:nth-child(3),
#branches tr td:nth-child(3),
#log tr td:nth-child(2) {
  white-space: normal;
}

td.num {
  text-align: right;
}

hr {
  border: 0;
  height: 3px;
}

#content hr {
  display: none;
}

pre {
  font-family: monospace;
}

pre a.h {
  color: #888888;
}

span.i,
pre a.i {
  color: var(--insert-color);
}

span.d,
pre a.d {
  color: var(--delete-color);
}

pre a.h:hover,
pre a.i:hover,
pre a.d:hover {
  text-decoration: none;
}
