
body {
  margin: 0;
  padding: 0;
  color: black;
  font-family: Arial, sans-serif;
  background: #87CEEB; /* Zmienione na błękitny kolor symulacji */
  width: 100%;
  height: 100%;
}

#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;
}

	
#simulationArea {
  position: relative;
  width: 100%;
  height: 100vh;   /* ZMIENIONO: Teraz symulacja zajmie 100% wysokości ekranu */
  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;
  width: 100% !important;  /* Wymuszenie pełnej szerokości */
  height: 100% !important; /* Wymuszenie pełnej wysokości */
}

#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;
}
/* Styl przycisku-ikonki w prawym górnym rogu ekranu */
.info-button {
    position: fixed;   /* Przypina ikonkę na stałe do ekranu */
    top: 20px;         /* Odległość od górnej krawędzi ekranu */
    right: 20px;       /* Odległość od prawej krawędzi ekranu */
    z-index: 10000;    /* Gwarantuje, że ikonka będzie nad innymi elementami aplikacji */
    font-size: 24px;   /* Rozmiar ikonki */
    background: #ffffff; /* Białe tło pod ikonką, żeby była czytelna */
    border: 1px solid #dee2e6;
    border-radius: 50%; /* Zmienia tło w idealne kółko */
    width: 40px;       /* Szerokość kółka */
    height: 40px;      /* Wysokość kółka */
    cursor: pointer;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Delikatny cień */
    transition: all 0.2s ease;
}

.info-button:hover { 
    color: #0056b3; 
    border-color: #0056b3;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}


/* Tło okna modalnego (ciemna warstwa) */
.modal {
    display: none; /* Domyślnie ukryte */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* Półprzezroczyste tło */
}

/* Zawartość okna (biała karta) */
.modal-content {
    background-color: #ffffff;
    margin: 15% auto;
    padding: 25px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-family: sans-serif;
    color: #333;
    line-height: 1.5;
}

/* Przycisk zamykania (X) */
.close-button {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-button:hover { color: #000; }