body {
  margin: 0;
  color: black;
  font-family: Arial, sans-serif;
  background: #f4f7fb;
}

#seoContent {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 18px;
  background: white;
}

#seoContent h1 {
  text-align: center;
  font-size: 34px;
  margin-bottom: 15px;
  color: #1d3557;
}

#seoContent h2 {
  font-size: 24px;
  margin-top: 28px;
  color: #003366;
}

#seoContent h3 {
  font-size: 19px;
  color: #333;
}

#seoContent p,
#seoContent li {
  font-size: 17px;
  line-height: 1.6;
}

.formula-box {
  text-align: center;
  font-size: 23px;
  font-weight: bold;
  background: #eef5ff;
  border-left: 6px solid #1d70b8;
  padding: 14px;
  margin: 18px 0;
}
	
.control-panel h2 {
  font-size: 20px;
  margin-top: 0;
  color: #222;
}

.control-group {
  margin-bottom: 15px;
}

.slider-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

input[type="range"] {
  width: 65%;
  accent-color: blue;
}

input[type="text"] {
  width: 80px;
  font-weight: bold;
  text-align: center;
  color: blue;
}

.minmax {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 5px;
}

.related-links a {
  font-weight: bold;
}

footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  background: #1d3557;
  color: white;
  text-align: center;
}

footer a {
  color: #ffd166;
}
	
#simulationArea {
  position: relative;
  width: 100%;
  height: 600px;   /* FIXED HEIGHT instead of 100vh */
  overflow: hidden;
}

#viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#viewport canvas {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
}

#controlsOverlay {
  position: absolute !important;
  top: 20px !important;
  left: 20px !important;
  z-index: 999999 !important;
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.control-panel {
  position: relative !important;
  z-index: 1000000 !important;
  background-color: rgba(238, 238, 238, 0.96);
  border: 2px solid #333;
  border-radius: 10px;
  padding: 15px;
  width: 235px;
  font-family: Arial, sans-serif;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
#sceneTitle {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  pointer-events: none;
}

#sceneTitle h1 {
  font-size: 36px;
  color: white;
  text-shadow: 2px 2px 6px black;
  margin: 0;
}
.vec {
  position: relative;
  display: inline-block;
  padding-top: 0.25em;
}

.vec::before {
  content: "→";
  position: absolute;
  left: 50%;
  top: -0.55em;
  transform: translateX(-50%);
  font-size: 0.85em;
  font-weight: bold;
}
