body {
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 0;
  background: #f8f9fa;
}

#svgObject {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 1px solid #ccc;
}

/* Overlay behind popup */
#overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

#overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Popup styling */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: #fff;
  border: 2px solid #333;
  padding: 16px;
  z-index: 1000;
  min-width: 280px;
  max-width: 400px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  border-radius: 8px;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

.popup.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.popup img {
  width: 100%;
  height: auto;
  margin-bottom: 12px;
  border-radius: 4px;
}

.popup ul {
  margin: 0;
  padding-left: 20px;
}

.close-btn {
  position: absolute;
  top: 6px;
  right: 10px;
  cursor: pointer;
  font-weight: bold;
  color: #333;
  font-size: 18px;
}