:root {
  --background: #161a32;
  --background--dark: #0a0e26;
  --text: #ffffff;
  --white: #ffffff;
  --accent: hotpink;
}
.title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
h1 {
  margin: 12px 0 0;
}

h2 {
  margin: 12px 0 0;
}

html {
  height: 100%;
}

@media screen and (min-width: 1500px) {
  .html {
    height: 100vh;
    overflow: hidden;
  }
}

body {
  background-color: var(--background);
  text-align: center;
  font-family: sans-serif;
  color: var(--white);
  height: 100%;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 12px 0;
}

@media screen and (max-height: 900px) {
  .content {
    gap: 12px;
    padding: 8px 0;
  }
}

.description {
  max-width: 800px;
}

.land {
  fill: var(--background--dark);
}

.main_container {
  display: flex;
  justify-content: space-evenly;
}
@media screen and (max-width: 1500px) {
  .main_container {
    align-items: center;
  }
}

.map-container {
  border-radius: 50px;
  overflow: hidden;
  width: fit-content;
  border: 2px solid var(--background--dark);
  position: relative;
}

.heatmap-overlay {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 700px;
  top: 0;
  left: 0;
  background-color: var(--background--dark);
}

.back-to-map {
  display: flex;
  align-items: center;
  position: absolute;
  top: 16px;
  right: 32px;
  height: 42px;
  width: 42px;
  border: 2px solid var(--background--dark);
  color: var(--background--dark);
  background-color: var(--white);
  border-radius: 24px;
  padding: 2px 12px 4px;
  cursor: pointer;
}

.back-to-map:hover {
  background-color: var(--accent);
}

.details-chart-title {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  gap: 2px;
}

.chart-title__button {
  border: 2px solid var(--background--dark);
  color: var(--background--dark);
  border-radius: 8px;
  padding: 2px 12px 4px;
  cursor: pointer;
  transition: all 0.7s;
}

.hl {
  color: var(--accent);
}

.chart-title__button:hover {
  border: 2px solid var(--accent);
}

.border {
  fill: none;
  stroke-width: 1px;
}

.interior {
  stroke: var(--white);
}

.exterior {
  stroke: #bbbbbb;
}

.node {
  fill: white;
  opacity: 1;
  stroke-width: 2px;
  stroke: #252525;
  transition: all 0.7s;
  cursor: pointer;
}

.edge {
  fill: none;
  stroke: var(--white);
  stroke-width: 3px;
  stroke-opacity: 0.3;
  transition: all 0.7s;
}

.line {
  stroke-width: 2px;
  fill: none;
}

.error-band {
  fill-opacity: 0.2;
}

.legend {
  font-size: 12px;
}

@media screen and (max-width: 1500px) {
  .main_container {
    flex-direction: column;
  }
}
.container {
  float: left;
  display: table-cell;
  vertical-align: top;
  text-align: center;
  height: auto;
  padding-top: 0.5vw;
  padding-bottom: 0.5vw;
  padding-right: 0.5vw;
  border: 0 solid black;
  font-size: large;
}

.voronoi {
  fill: none;
  stroke: none;
  stroke-width: 1px;
}

.chart-container {
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: 500px;
  min-width: 800px;
  padding: 10px;
}

@media screen and (max-width: 1500px) {
  .chart-container {
    max-height: none;
  }
}

.chart-title {
  font-size: 15px;
  margin-bottom: 0;
}

.faded-selected {
  opacity: 0.1;
}

.faded-selected:hover {
  opacity: 1;
}

.colored-edge {
  opacity: 1;
  stroke-opacity: 1;
}

.faded {
  opacity: 0.1;
}

.selected-node {
  opacity: 1;
  stroke: black;
}

.nodehover-selected {
  opacity: 1;
}

.nodehover-faded {
  opacity: 0.1;
}

.highlight {
  opacity: 1;
  stroke: var(--accent);
  stroke-width: 4px;
  stroke-opacity: 0.8;
}

.heatmap-rect {
  stroke-width: 4;
  stroke: none;
  opacity: 0.8;
}

.highlight-rect {
  opacity: 1;
  stroke-width: 1px;
  stroke-opacity: 1;
  stroke: var(--accent);
  fill: none;
  pointer-events: none;
}

g#voronoi {
  pointer-events: all;
}

/* shadow trick from bl.ocks.org */
#tooltip {
  font-size: 10pt;
  font-weight: 900;
  fill: white;
  text-shadow: 1px 1px 0 #252525, 1px -1px 0 #252525, -1px 1px 0 #252525,
    -1px -1px 0 #252525;
  pointer-events: none;
}

.tooltip {
  background-color: white;
  border: 3px solid black;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--background--dark);
}
.select {
  position: relative;
  min-width: 240px;
}
.select select {
  -webkit-appearance: none;
  padding: 7px 40px 7px 12px;
  width: 150px;
  border: 1px solid #e8eaed;
  border-radius: 5px;
  background: var(--background--dark);
  color: var(--white);
  box-shadow: 0 1px 3px -2px var(--white);
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  transition: all 150ms ease;
}
.select select:required:invalid {
  color: #5a667f;
}
.select select option {
  color: var(--white);
  padding: 8px 4px;
}
.select select option[value=""][disabled] {
  display: none;
}
.select select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 119, 255, 0.2);
}

.select select:focus + svg {
  transform: rotate(180deg);
}
.sprites {
  position: absolute;
  right: 12px;
  width: 32px;
  height: 32px;
  fill: var(--white);
  top: calc(50% - 16px);
  pointer-events: none;
  user-select: none;
}
