@import url("https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@font-face {
  font-family: APL387;
  src: url("https://dyalog.github.io/APL387/APL387.ttf");
}
@font-face {
  font-family: "Fira Math";
  src: url("/static/FiraMath-Regular.otf");
}
:root {
  font-family: "Fira Sans", "Fira Math", sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code,
pre {
  font-family: APL387, monospace;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}

a:hover {
  color: #535bf2;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

h2 {
  font-size: 2.5em;
}

h3 {
  font-size: 1.8em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-block: 5px;
}

button,
input,
select,
.button-like {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover,
input:hover,
select:hover,
.button-like:hover {
  border-color: #646cff;
}
button:focus, button:focus-visible,
input:focus,
input:focus-visible,
select:focus,
select:focus-visible,
.button-like:focus,
.button-like:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

form {
  width: fit-content;
}
form div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 2px;
}
form input {
  margin-inline-start: 10px;
}

header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
header .header-left {
  font-size: 1.5em;
}
header .header-left a {
  color: currentColor !important;
}
header .header-right {
  display: flex;
  flex-direction: row;
  gap: 2em;
}
header .header-right a {
  color: currentColor !important;
  text-decoration: underline;
}
header {
  border-bottom: 2px solid currentColor;
}

main {
  padding-inline: 10px;
}

#edit-link {
  font-size: 1rem;
}

.running-table,
.results-table,
.points-table {
  border-collapse: collapse;
}
.running-table, .running-table thead, .running-table tbody, .running-table tr, .running-table td, .running-table th,
.results-table,
.results-table thead,
.results-table tbody,
.results-table tr,
.results-table td,
.results-table th,
.points-table,
.points-table thead,
.points-table tbody,
.points-table tr,
.points-table td,
.points-table th {
  border-width: 1px;
  border-style: solid;
  border-color: currentColor;
  padding-inline: 4px;
}
.running-table tbody th,
.results-table tbody th,
.points-table tbody th {
  text-align: right;
}
.running-table tbody td,
.results-table tbody td,
.points-table tbody td {
  text-align: center;
  position: relative;
}
.running-table .jolly-marker,
.results-table .jolly-marker,
.points-table .jolly-marker {
  position: absolute;
  right: 2pt;
  font-size: 0.6666666667em;
  color: #ee0;
}

@keyframes recent {
  0% {
    background-color: #b00;
  }
  50% {
    background-color: #b60;
  }
  100% {
    background-color: #b00;
  }
}
.running-table th {
  min-width: 2em;
}
.running-table .running-none {
  background-color: #444;
}
.running-table .running-recent {
  animation: 2s linear infinite recent;
}
.running-table .running-has, .running-table .running-correct {
  background-color: #0b0;
}
.running-table .running-wrong {
  background-color: #b00;
}

.results-table .result-none {
  background-color: #444;
}
.results-table .result-0 {
  background-color: #b00;
}
.results-table .result-1 {
  background-color: hsl(22.8887380442, 174.803661054%, 27.7632330063%);
}
.results-table .result-2 {
  background-color: hsl(32.235625622, 213.828283922%, 24.2901791952%);
}
.results-table .result-3 {
  background-color: hsl(40.3654955775, 251.6234267765%, 20.7932761824%);
}
.results-table .result-4 {
  background-color: hsl(48.7380897615, 297.8895414131%, 16.8996313348%);
}
.results-table .result-5 {
  background-color: hsl(58.2205030462, 359.5158015894%, 12.8594794331%);
}
.results-table .result-6 {
  background-color: hsl(68.6836554515, 295.4590875287%, 15.8682161849%);
}
.results-table .result-7 {
  background-color: hsl(78.9609827274, 226.1703644769%, 20.7090849831%);
}
.results-table .result-8 {
  background-color: hsl(90.3245151611, 171.5086747022%, 26.0855164849%);
}
.results-table .result-9 {
  background-color: hsl(104.8132064209, 126.8895218107%, 32.0493635834%);
}
.results-table .result-10 {
  background-color: #0b0;
}

.flex {
  display: flex;
}

:has(option[value=score]:not(:checked)) .score {
  display: none;
}

:has(option[value=points]:not(:checked)) .points {
  display: none;
}

:has(option[value=time]:not(:checked)) .time {
  display: none;
}

.calculator {
  margin-block: 2rem;
  font-family: "Fira Math";
}
.calculator #expression-view {
  display: inline-block;
  min-width: min(80%, 24em);
  min-height: 2em;
  line-height: 2em;
  border-radius: 8px;
  background-color: #1a1a1a;
  font-size: 3em;
  padding: 16px;
  margin-bottom: 5px;
}
.calculator button {
  width: 100%;
  font-size: 1.25em;
}
.calculator td {
  width: 5em;
}

:has(.calculator) .warn {
  color: #b60;
}

:has(option[value=duo]:not(:checked)) .duo {
  display: none;
}

:has(option[value=gas]:not(:checked)) .gas {
  display: none;
}

:has(option[value=jolly]:not(:checked)) .jolly {
  display: none;
}

.lore {
  display: block;
  padding-left: 8pt;
  border-left: 2pt solid currentColor;
  margin-bottom: 10pt;
}
.lore::before {
  content: "Lore";
  display: block;
  font-weight: bolder;
}

.comp-name {
  margin-top: 10px;
  border-top: 2px solid currentColor;
}

.subtitle {
  display: block;
  font-size: 0.5em;
  font-style: italic;
  margin-top: -0.5em;
}
