html, body {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
}
body {
  overflow-y: scroll;
}

svg {
  width: 100%;
}

.node {
  font-size: 13px;
  font-family: sans-serif;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}
.node rect {
  stroke: white;
  stroke-width: 2px;
}
.node foreignObject > div {
  text-align: center;
  display: table;
  width: 100%;
  height: 100%;
}
.node foreignObject > div > div {
  display: table-cell;
  vertical-align: middle;
  padding: 6px;
}
.internal.node {
  font-weight: bold;
  cursor: pointer;
}