html,
body {
  margin: 0;
  /* The d3 tree SVG is sized to the full viewport; removing the default
     body margin and hiding page overflow stops the phantom right/bottom
     scrollbars. This is purely visual and does not affect the tree's
     resize logic in js/arf.js, which reads window.innerWidth/Height. */
  overflow: hidden;
}

body {
  background-color: #ffffff;
  font-size: 14px;
  letter-spacing: 1px;
  font-family: "Helvetica Neue", Helvetica;
}

/* Remove the inline-SVG baseline gap that adds a few stray pixels. */
#body svg {
  display: block;
}

#body {
  margin: 0 auto;
  position: relative;
}

#header {
  font-size: 40px;
  font-weight: bold;
  top: 20px;
  text-align: center;
}

.dark-Mode{
  background-color: #000;
  color: #fff;
  .node text {
    fill: #fff;
  }
  .legend{
    color: #fff;
  }
  path.link{
    stroke: #444;
  }
}

.legend {
  position: absolute;
  top: 0px;
  right: 0;
  width: 330px;
  font-size: 11px;
  color: #000;
}

.node {
  cursor: pointer;
}

.node circle {
  cursor: pointer;
  fill: #fff;
  stroke: rgb(36, 36, 36);
  stroke-width: 1.5px;
}

.node text {
  font-size: 12px;
  fill: rgb(0, 0, 0);
}

path.link {
  fill: none;
  stroke: #ccc;
  stroke-width: 1px;
}

.border {
  position: fixed;
  overflow: hidden;
  pointer-events: none;
  z-index: 1000;
  font-family: sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  color: #000;
}

.border span {
  display: inline-block;
  white-space: nowrap;
}

/* Top */
.border.top {
  top: 0;
  left: 0;
  width: 100vw;
  height: 24px;
}
.border.top span {
  animation: scroll-horizontal 60s linear infinite;
}

/* Bottom (reverse direction) */
.border.bottom {
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 24px;
}
.border.bottom span {
  animation: scroll-horizontal-reverse 60s linear infinite;
}

/* Left */
.border.left {
  top: 0;
  left: 0;
  width: 24px;
  height: 100vh;
}
.border.left span {
  writing-mode: vertical-rl;
  animation: scroll-vertical 170s linear infinite;
}

/* Right */
.border.right {
  top: 0;
  right: 0;
  width: 24px;
  height: 100vh;
}
.border.right span {
  writing-mode: vertical-rl;
  animation: scroll-vertical-reverse 170s linear infinite;
}

/* Animations */
@keyframes scroll-horizontal {
  from { transform: translateX(-20%); }
  to { transform: translateX(0%); }
}

@keyframes scroll-horizontal-reverse {
  from { transform: translateX(0%); }
  to { transform: translateX(-20%); }
}

@keyframes scroll-vertical {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@keyframes scroll-vertical-reverse {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}

.node circle,
.node text {
  cursor: pointer;
}

body {
  opacity: 1;
  transition: opacity 3s ease;
}


