body {
  margin: 0;
  background-color: #111;
  font-family: 'Courier New', Courier, monospace;
  color: white;
}

#game {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100vh;
  padding: 0 50px;
  position: relative;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 4px #00f2ff, 0 0 10px #00f2ff;
    border-color: #00f2ff;
  }
  50% {
    box-shadow: 0 0 8px #00f2ff, 0 0 20px #00f2ff;
    border-color: #00f2ff;
  }
  100% {
    box-shadow: 0 0 4px #00f2ff, 0 0 10px #00f2ff;
    border-color: #00f2ff;
  }
}

.node {
  width: 120px;
  height: 60px;
  background: #222;
  border: 2px solid #00f2ff;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  font-size: 1.5em;
  color: white;
  animation: pulseGlow 3s ease-in-out infinite;
}

.source {
  background-color: #2b2b2b;
}

.target {
  background-color: #2b2b2b;
  width: 180px; /* Wider than .source */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#left-side,
#right-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#wire-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

line.wire {
  stroke: #00f2ff;
  stroke-width: 3;
  filter: drop-shadow(0 0 5px #00f2ff) drop-shadow(0 0 10px #00f2ff);
}

.inactive {
  opacity: 0.4;
  box-shadow: none !important;
  border-color: #444 !important;
}

path {
  pointer-events: auto;
}
