.d3-tip {
  line-height: 1;
  font-weight: 600;
  padding: 6px;
  background: rgba(227, 224, 235, 0.5);
  /*opacity: 0.5;*/
  color: #444;
  border-radius: 2px;
  pointer-events: none;
  font-size: 0.8em;
}

.dark-tip {
    font-size: 1em;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px;
}

#dotTip {
    font-size: 0.8em;
    padding: 6px;
    font-weight: 600;
}

.dark-tip:after {
  box-sizing: border-box;
  display: inline;
  font-size: 10px;
  width: 100%;
  line-height: 1;
  color: rgba(0, 0, 0, 0.8);
  position: absolute;
  pointer-events: none;
}

/* Northward tooltips */
.dark-tip.n:after {
  content: "\25BC";
  margin: -1px 0 0 0;
  top: 100%;
  left: 0;
  text-align: center;
}

/* Eastward tooltips */
.dark-tip.e:after {
  content: "\25C0";
  margin: -4px 0 0 0;
  top: 50%;
  left: -8px;
}

/* Southward tooltips */
.dark-tip.s:after {
  content: "\25B2";
  margin: 0 0 1px 0;
  top: -8px;
  left: 0;
  text-align: center;
}

/* Westward tooltips */
.dark-tip.w:after {
  content: "\25B6";
  margin: -4px 0 0 -1px;
  top: 50%;
  left: 100%;
}
