body {
  margin: 0;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  background-color: #000;
  color: #fff;
  cursor: grab;
}

body.grabbing {
  cursor: grabbing;
}

canvas {
  display: block;
}

#labels-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#info-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 25px;
  width: 320px;
  max-width: 90vw;
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease-out;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  z-index: 10;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

#info-panel h2 {
  margin-top: 0;
  color: #ffca28;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#info-panel p {
  margin: 10px 0;
  line-height: 1.6;
}

#info-panel strong {
  color: #a7c0ff;
}

.info-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 15px;
  padding-top: 15px;
}

#close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  font-size: 24px;
  color: #fff;
  transition: transform 0.2s;
}

#close-btn:hover {
  transform: scale(1.2);
}

#focus-btn {
  background-color: #ffca28;
  color: #000;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

#focus-btn:hover {
  background-color: #ffd761;
}

#controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10;
}

.control-button {
  margin-left: 10px;
  background-color: #444;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

.control-button:hover {
  background-color: #666;
}

#instructions, #controls-info {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  color: #ccc;
  z-index: 10;
}

.label {
  position: absolute;
  color: #fff;
  font-size: 14px;
  text-shadow: 0 0 4px #000;
  pointer-events: none;
  transform: translate(-50%, -150%);
}
