html {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
}

text {
  dominant-baseline: middle;
}

#legend {
  position: fixed;
  left: 10px;
  top: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(3px);
  padding: 5px 2px 1px 2px;
  border-radius: 4px;
}

#canvas {
  margin-top: 45px;
}

#calc {
  width: 0;
  height: 0;
  visibility: hidden;
}

.bg {
  fill: transparent;
}

.divider {
  stroke: #ccc;
  stroke-width: 1;
}

.history-rect {
  stroke: #888;
  stroke-width: 1;
  fill: #42d1f5;
}

.client-annotation-rect {
  stroke: #888;
  stroke-width: 1;
  fill: #e0e0e0;
}

.link {
  fill: #206475;
  cursor: pointer;
}

.selected {
  stroke-width: 5;
}

.target-rect {
  opacity: 0;
}

.history-text {
  font-size: 0.9rem;
  font-family:
    Menlo,
    Courier New,
    monospace;
}

.hidden {
  opacity: 0.2;
}

.hidden line {
  opacity: 0.5; /* note: this is multiplicative */
}

.linearization {
  stroke: rgba(0, 0, 0, 0.5);
}

.linearization-invalid {
  stroke: rgba(255, 0, 0, 0.5);
}

.linearization-point {
  stroke-width: 5;
}

.linearization-line {
  stroke-width: 2;
}

.tooltip {
  position: absolute;
  display: none;
  width: max-content;
  max-width: 300px;
  border: 1px solid #ccc;
  background: white;
  border-radius: 4px;
  padding: 5px;
  font-size: 0.8rem;
}

.inactive {
  display: none;
}
