#legends {
  position: absolute;
  right: 0;
  bottom: 20px;
  z-index: 2;
  background: #FFF;
  font-size: 12px;
  color: #000;
  box-shadow: 2px 5px 5px 0px rgb(0 0 0 / 20%);
}

#legends .heading {
  font-weight: bold;
  background-color: #EEE;
  padding: 2px 10px;
}

#legends .entry {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 2px 10px;
}

#legends .square {
  border: 1px solid #333333;
  width: 10px;
  height: 10px;
}

#legends .square.red {
  border: 1px solid red;
}