body {
    margin-top: 2em; 
    font-family: sans-serif;
}

h1 {
    margin-left: 20px;
}

svg {
    font: 10px sans-serif;
}

.axis path,
.axis line {
    fill: none;
    stroke: black;
    shape-rendering: crispEdges;
}

div.tooltip {
    position: absolute;
    text-align: center;
    width: 180px;
    height: 40px;
    padding: 2px;
    font: 11px sans-serif;
    background: lightsteelblue;
    border: 0px;
    border-radius: 7px;
    pointer-events: none;
}

div.legend {
    position: relative;
    left: 400px;
    top: 10px;
    width: 400px;

    font: 14px sans-serif;

    border: 1px;
    border-color: black;
    border-radius: 7px;
    border-style: solid;

    background-color: white;
    opacity: 85%;

    padding-left: 15px;
    padding-right: 5px;
    padding-top: 5px;
    padding-bottom: 4px;
}

div.legend ul {
    columns: 3; 
    column-gap: 20px;
    padding-top: 5px;
    padding-bottom: 4px;
    margin: 1px;
    font: 12px sans-serif;
    font-weight: 600;
}

.filtered {
    color: beige;
    text-decoration: line-through;
}

.hover path {
    stroke-opacity: 0.02;
}

.hover text {
  fill: #ddd;
}

.hover g.primary text {
  fill: black;
  font-weight: bold;
}

.hover g.secondary text {
  fill: #888;
}

.hover path.primary {
    stroke-opacity: 0.75;
    stroke-width: 5;
}

.hover path.secondary {
    stroke-opacity: 0.35;
    stroke-width: 2;
    stroke-dasharray: 3,5;
}

path.hidden {
    stroke-opacity: 0.01;
    stroke-width: 0;
}

li.legenditem {
    cursor: pointer;
    user-select: none;
}