/*
   PAGE BACKGROUND
   */

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a1a1a;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 
   SVG CANVAS
    */

svg.markmap {
  width: 100vw;
  height: 100vh;
  background: transparent;
}

.markmap-node rect {
  rx: 10;
  ry: 10;
}

.markmap-node text {
  fill: #ffffff !important;
  opacity: 1 !important;
}

/* MARKMAP SPECIFIC CSS  */

/* Style the Text Content */
.markmap-foreign div {
  color: #e5e5e5;
  /* Light text */
  line-height: 1.6;
  font-size: 15px;
}

/* Style the Equations (KaTeX) */
.katex {
  font-size: 1.1em;
  color: #2972bb;
  /* Light blue for math */
}

/* Style the Links (Lines) - !important forces override of JS colors if needed */
.markmap-link {
  stroke-width: 1.5px;
}

/* Style the Collapse Circle */
.markmap-node-circle {
  stroke-width: 1.5px;
}

#fullscreen-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  
  /* Compact Dimensions */
  width: 36px;
  height: 36px;
  padding: 0; /* Removing padding to use flex centering instead */
  
  background: rgba(50, 50, 50, 0.7);
  color: #ccc;
  border: 1px solid #444;
  border-radius: 50%;
  cursor: pointer;
  
  /* Perfect Centering */
  display: flex;
  align-items: center;
  justify-content: center;
  
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
  outline: none;
}

#fullscreen-btn:hover {
  background: rgba(70, 70, 70, 0.9);
  color: #fff;
  border-color: #666;
  transform: scale(1.05);
}

/* Optional: hide button when in fullscreen if desired */
/* :fullscreen #fullscreen-btn { display: none; } */

/* 
   WATERMARK (FIXED – VERY SUBTLE)
   */

#watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 75vw;
  max-width: 900px;
  opacity: 0.08;
  color: #ffffff;

  /* LOWERED */
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

/* 
   STATUS BANNER
 */

#status {
  position: fixed;
  top: 12px;
  left: 12px;
  background: #1f2328;
  color: #ffffff;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 6px;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
