/* Changed from SamidyFR/Virgil: a search form and a results table instead of Google's search box. */
@import url(/theme.css);

/* Geist Pixel (Square) from github.com/vercel/geist-font, SIL Open Font License 1.1 (fonts/OFL.txt), served from here. */
@font-face {
  font-family: "Geist Pixel";
  src: url(/fonts/GeistPixel-Square.woff2) format("woff2");
  font-display: swap;
}

body {
  font-family: "Geist Pixel", monospace;
  background-color: var(--primary);
  color: var(--secondary);
  margin: 0;
  padding: 40px 16px 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100dvh;
  box-sizing: border-box;
}

h1 {
  margin-top: 0;
}

h1 a {
  text-decoration: none;
}

a {
  color: inherit;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  max-width: 900px;
}

.links a {
  background-color: var(--secondary);
  color: var(--primary);
  padding: 6px 10px;
  transition: 0.1s;
  text-decoration: none;
  height: fit-content;
  text-align: center;
}

.links a:hover {
  transform: translateY(-2px);
}

.links a.current {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: inset 0 0 0 2px var(--secondary);
  pointer-events: none;
}

.searchbox {
  display: flex;
  width: 100%;
  max-width: 500px;
  margin: 24px 0 10px;
}

.signin {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  margin: 24px 0 10px;
}

.signin input,
.searchbox input {
  flex: 1;
  min-width: 0;
  background: var(--primary);
  color: var(--secondary);
  border: 2px solid #555;
  border-radius: 0;
  font: inherit;
  font-size: 18px;
  padding: 8px 10px;
}

.signin input:focus,
.searchbox input:focus {
  outline: none;
  border-color: var(--secondary);
}

button {
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--secondary);
  border-radius: 0;
  font: inherit;
  padding: 6px 12px;
  cursor: pointer;
}

nav button {
  padding: 0 6px;
}

[hidden] {
  display: none !important;
}

button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.toolbar {
  display: flex;
  gap: 20px;
  align-items: center;
}

select {
  background: var(--primary);
  color: var(--secondary);
  border: 2px solid #555;
  font: inherit;
}

#status {
  min-height: 1.2em;
  text-align: center;
  overflow-wrap: anywhere;
}

table {
  width: 100%;
  max-width: 1100px;
  border-collapse: collapse;
  font-family: ui-monospace, monospace;
  font-size: 14px;
}

th {
  text-align: left;
  border-bottom: 2px solid var(--secondary);
  padding: 6px;
}

td {
  border-bottom: 1px solid #333;
  padding: 6px;
  vertical-align: top;
}

td.name {
  overflow-wrap: anywhere;
}

td.name small {
  display: block;
  color: #999;
}

th.num,
td.num {
  white-space: nowrap;
  text-align: right;
}

#header-404 {
  font-size: 500%;
  margin: 0;
}

nav {
  text-align: center;
  background: linear-gradient(#0000, var(--primary));
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
}

@media (max-width: 640px) {
  th:nth-child(4), td:nth-child(4), th:nth-child(5), td:nth-child(5) {
    display: none;
  }
}
