body {
  font-family: Arial, sans-serif;
  margin: 0;
  overflow: hidden;
}

#chart {
  width: 100%;
  height: 100vh;
  background-color: #fff;
}

#chart svg {
  width: 100%;
  height: 100%;
}

.node {
  fill: #0050ff;
  stroke: #000;
  stroke-width: 1.5px;
  cursor: pointer;
  transition: fill 0.2s, stroke 0.2s;
}

.node-label.hover,
.node-label:hover,
.node.hover,
.node:hover {
  fill: #4caf50;
}

.link.hover {
  stroke: #4caf50;
  stroke-width: 2px;
}

#node-Hub {
  fill: #4caf50;
  stroke: #000;
  stroke-width: 2px;
}

#label-Hub {
  font-size: 14px;
}

.link {
  fill: none;
  stroke: #ccc;
  stroke-width: 1.5px;
  transition: stroke 0.2s, stroke-width 0.2s;
}

.node-label {
  font: 12px sans-serif;
  cursor: pointer;
  fill: #333;
  transition: fill 0.2s;
}

.category-node {
  fill: #00bcd4;
  stroke: #000;
  stroke-width: 1.5px;
  cursor: unset;
}

.category-label {
  cursor: unset;
  font-size: 14px;
  fill: #555;
  text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.1);
}

.tooltip {
  position: absolute;
  text-align: center;
  padding: 0;
  font: 12px sans-serif;
  background: #4caf50;
  color: #fff;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  line-height: 0;
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.5));

  max-height: 250px;
  overflow: hidden;
}

.tooltip p {
  line-height: 1;
  margin: 8px 0;
  font-size: 14px;
}

.tooltip img {
  width: 350px;
  height: auto;
}
