svg {
  background: white;
}
.point {
  fill: #DDD;
  stroke: gray;
  stroke-width: 2;
}
.line, .perpendicular {
  stroke: #DDD;
  stroke-width: 2;
}
.closest {
  pointer-events: none;
}
.perpendicular {
  stroke-dasharray: 3 3;
}