/* ================================
   GLOBAL LAYOUT
   ================================ */

/* Top & Bottom bar heights */
:root {
  --top-bar-height: 100px;
  --bottom-bar-height: 100px;
}

html,
body {
  margin: 0;
  height: 100%;
  font-family: system-ui, sans-serif;
  overflow: hidden;
  /* prevent global scrollbars */
}

/* ================================
   TOP BAR
   ================================ */
.top-box {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--top-bar-height);
  background: #333;
  color: #fff;
  display: flex;
  align-items: center;
  /* vertical centering */
  justify-content: center;
  /* horizontal centering */
  gap: 15px;
  /* spacing between items */
  padding: 0 20px;
  z-index: 10;
}

.top-box span,
.top-box a {
  display: inline-flex;
  align-items: center;
  /* vertically center text and icons */
}

/* ================================
   BOTTOM BAR
   ================================ */
.bottom-box {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--bottom-bar-height);
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}

.bottom-box img {
  height: 125px;
  width: auto;
  margin: 0 10px;
}

/* ================================
   MAIN CONTENT (LEFT + RIGHT PANES)
   ================================ */
.main-content {
  position: absolute;
  top: 0;
  /* fill from top of viewport */
  bottom: 0;
  /* to bottom of viewport */
  left: 0;
  right: 0;
  display: flex;
  gap: 20px;
  padding-top: 0;
  /* remove old margin */
  margin-top: 0;
  /* Handled by internal panel padding */
  box-sizing: border-box;
}

/* -------------------------
   LEFT PANE (NAV / VENN)
   ------------------------- */
/* -------------------------
   LEFT PANE (NAV / VENN)
   ------------------------- */
/* -------------------------
   LEFT PANE (NAV / VENN)
   ------------------------- */
.nav-panel {
  flex: 0 0 25%;
  /* Increased from 20% to gives a little more space */
  max-width: 40%;
  /* Increased limit */
  min-width: 250px;
  /* Minimum usable width */
  height: 100%;
  display: flex;
  justify-content: center;
  /* horizontal centering */
  align-items: center;
  /* vertical centering */
  background: #fff;
  overflow: hidden;
  /* never scroll */
  padding: 120px 20px 120px;
  /* Symmetric Top/Bottom padding (100px bar + 20px gap) ensures centering */
  box-sizing: border-box;
  flex-direction: column;
}

#instructionTech {
  margin-top: 20px;
  max-width: 420px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  -webkit-text-stroke: 0.5px black;
  paint-order: stroke fill;
  color: #000000 !important;
  /* Force black regardless of scripts */
}

.nav-panel canvas {
  display: block;
  width: 100%;
  /* Start full width of pane */
  max-width: 420px;
  /* Increased by 20% (was 350px) */
  max-height: 100%;
  cursor: pointer;
  object-fit: contain;
  /* ensure it scales nicely */
}

/* -------------------------
   RIGHT PANE (SCROLLABLE CONTENT)
   ------------------------- */
.content-panel {
  flex: 1 1 auto;
  /* Take remaining space (approx 80%) */
  height: 100%;
  padding: 120px 40px 120px;
  /* Symmetric padding for consistency and clearing bars */
  overflow-y: auto;
  /* Scroll ONLY this panel */
  overflow-x: hidden;
  max-width: 100%;
  /* Allow filling the remaining space */
  box-sizing: border-box;
}

.content-panel p,
.content-panel ul {
  font-size: 18px;
  line-height: 1.6;
}

h2 {
  margin-top: 30px;
  font-size: 24px;
  color: #222;
}

ul {
  line-height: 1.5;
}