/* =============================================
   USTAWIENIA TEKSTU
   ============================================= */

/* Glowny kontener tekstowy w sekcjach - ramka wewnetrzna */
.text-content {
  color: var(--text-color);
  margin: 0 auto;
  padding: 20px;
  border: 2px solid var(--content-border);
  border-radius: 10px;
}

/* Rozmiary czcionek dla roznych elementow tekstowych */
.text-large {
  font-size: 16pt;
}

.text-medium {
  font-size: 14pt;
}

.text-small {
  font-size: 12pt;
}

/* Styl pochylony */
.text-italic {
  font-style: italic;
}

/* Styl pogrubiony */
.text-bold {
  font-weight: bold;
}

/* Linki zewnetrzne - kolor i podkreslenie */
.external-link {
  color: var(--tooltip-link-color);
  text-decoration: underline;
}

/* Efekt przy najechaniu na link zewnetrzny */
.external-link:hover {
  color: var(--tooltip-link-hover);
}

/* Szary tekst dla mniej waznych elementow */
.text-gray {
  color: var(--text-gray);
}

/* Adnotacje (indeksy dolne, przypisy) */
.adnotacja {
  color: var(--adnotacja);
  text-decoration: underline;
}



/* =============================================
   USTAWIENIA OBRAZKA
   ============================================= */

/* Glowny styl obrazkow - wycentrowane z ograniczeniem szerokosci */
.image {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
}

/* Kontener dla tekstu z obrazkiem */
.text-with-image {
  margin: 20px 0;
  overflow: visible;
}

/* Obrazek po lewej stronie tekstu - plywa i owija tekst */
.text-with-image img.left {
  float: left;
  margin: 10px 20px 10px 0;
  width: 200px;
  height: auto;
  shape-outside: margin-box;
  border-radius: 8px;
}

/* Obrazek po prawej stronie tekstu - plywa i owija tekst */
.text-with-image img.right {
  float: right;
  margin: 10px 0 10px 20px;
  width: 200px;
  height: auto;
  shape-outside: margin-box;
  border-radius: 8px;
}

/* Akapity w kontenerze z obrazkiem - wyjustowane */
.text-with-image p {
  text-align: justify;
}
