* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f5f7fa;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Canvas fills viewport */
#viz-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* CSS2D label renderer overlay */
#css2d-renderer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

/* OYABUN branding overlay */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.container {
  width: 100%;
  height: 100%;
}

.content {
  left: 50%;
  top: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}

/* Logo and text styling */
.content img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 20px;
}

span {
  font-family: montserratBlack, -apple-system, sans-serif;
  font-size: 70pt;
  color: #2a2a3e;
  display: inline-block;
  vertical-align: middle;
  letter-spacing: -2px;
}

/* Node labels (CSS2D) */
.node-label {
  font-size: 9px;
  color: #2a2a3e;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(255, 255, 255, 0.7);
  font-weight: 600;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.6);
  padding: 2px 4px;
  border-radius: 3px;
}

/* Info panel */
#info-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 20;
  pointer-events: auto;
  display: none;
  background: #ffffff;
  border: 1px solid #999;
  border-radius: 6px;
  padding: 12px;
  color: #000;
  font-family: system-ui, sans-serif;
  width: 240px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#info-panel.visible {
  display: block;
}

#info-close {
  float: right;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  color: #999;
}

#info-close:hover {
  color: #000;
}

.info-kind {
  font-size: 11px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 4px;
  font-weight: bold;
  clear: both;
}

.info-name {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #000;
  clear: both;
}

.info-row {
  font-size: 12px;
  margin: 6px 0;
  color: #333;
}

.info-row span:first-child {
  display: inline-block;
  width: 70px;
  font-weight: bold;
  color: #666;
}

.info-row span:last-child {
  color: #000;
  font-weight: bold;
}

.health-healthy {
  color: #2d8659 !important;
  font-weight: 600;
}

.health-degraded {
  color: #b85c1f !important;
  font-weight: 600;
}

.health-unknown {
  color: #666666 !important;
  font-weight: 600;
}

.health-failing {
  color: #c41e3a !important;
  font-weight: 600;
}

@font-face {
  font-family: montserratBlack;
  src: url(../fonts/montserrat/Montserrat-Black.otf);
}

@media (max-width: 768px) {
  span {
    font-size: 40pt;
  }

  .content img {
    width: 100px !important;
    margin-right: 12px;
  }

  #info-panel {
    bottom: 12px;
    right: 12px;
    min-width: 180px;
    padding: 12px 16px;
  }
}
