:root {
  --border: #222;
  --bg: #fafafa;
}

/* Tło strony */
body {
  background-image: url('Tlo.webp');
  background-color: #fdf6e3;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  font-family: Arial, sans-serif;
}

/* Nagłówek i kontener */
header {
  border: none;
  border-bottom: 4px double ;
  padding: 1rem;
  text-align: center;
}
header a {
  text-decoration: none;
  color: inherit;
  font-size: 1.5rem;
  font-weight: bold;
}

.container {
  border: 10px double #742f02;
  margin: 1rem auto;
  padding: 1rem;
  background-color: #f0d49a;

  max-width: 800px;
  border-radius: 12px;
}

/* Sekcje */
.sekcja-nawigacji,
.sekcja-hebrajska,
.sekcja-wymowa,
.sekcja-czesc-mowy,
.sekcja-slowniki,
.sekcja-znaczenie,
.sekcja-czestosc,
.sekcja-dodatkowe {
  margin-top: 1rem;
  text-align: center;
}
.sekcja-wystapienia {
  display: flex;
  flex-direction: column;  /* elementy pod sobą */
  align-items: center;     /* wycentruj ramkę i przycisk */
}

/* Ramki i elementy */
.kod-stronga,
.czesc-mowy,
.czestosc,
.wystapienia,
.znaczenie {
  display: inline-block;
  border: 1px solid ;
  border-radius: 6px;
  padding: 4px 8px;
  background: #fdf6e3;
}





/* Hebrajski */
.hebrajski {
  display: inline-block;
  font-family: "bwtransh","SBL Hebrew","Ezra SIL","Noto Serif Hebrew",serif;
  font-size: 2rem;
  font-weight: bold;
  border: 1px solid ;
  border-radius: 6px;
  padding: 4px 8px;
  background: #fdf6e3;
  direction: rtl;
  unicode-bidi: bidi-override;
  line-height: 1.2;
  margin-left: 8px;
}

/* Wymowa w jednej ramce z ikoną */
.ramka-wymowa {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid ;
  border-radius: 6px;
  background: #fdf6e3;
  padding: 4px 8px;
  min-width: 200px;
}

.ramka-wymowa button {
  background: none;
  border: none;
  font-size: 1.2rem;
    font-weight: bold;
  letter-spacing: .02em;
  cursor: pointer;
  padding: 0 4px;
}
.ramka-wymowa button:hover {
  background-color: #e9ecef;
  border-radius: 4px;
}

/* Monospace dla „Wystąpienia” i „Znaczenie” */
.wystapienia {
    display: inline-block;
    margin: 0 auto; /* wycentrowanie */
    padding: 10px;
    border: 1px solid #742f02;
    background-color: #fdf6e3;
    min-width: 200px;


    box-sizing: border-box;
    text-align: left;
}
#wystapienia {
  white-space: pre-line;   /* zachowuje nowe linie z tekstu */
  line-height: 1.5;        /* odstęp między wierszami (1.5 = pół wiersza więcej) */
}
.znaczenie {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  text-align: left;
}

/* Ukryte źródła słowników */
.ukryte { display: none; }

/* Przyciski ogólne */
button {
  background-color: #d2b48c; /* lekki brąz */
  border: 1px solid #a9825e;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  color: #222;
  transition: background-color 0.2s, border-color 0.2s;
}
button:hover {
  background-color: #c19a6b; /* ciemniejszy brąz przy najechaniu */
  border-color: #8b6b45;
}
button:focus-visible {
  outline: 2px solid #8b6b45;
  outline-offset: 2px;
}

/* Stan aktywnego przycisku słownika */
.sekcja-slowniki button.aktywny {
  background-color: #b5885e; /* podświetlenie aktywnego */
  border-color: #704214;
  color: #fdf6e3;
}

/* Linki dodatkowe */
.sekcja-dodatkowe a {
  color: blue;
  text-decoration: none;
  font-weight: bold;
}
.sekcja-dodatkowe a:hover {
  text-decoration: underline;
}

/* Stopka */
.sekcja-stopka {
  margin-top: 2rem;
  text-align: center;
  font-size: .9rem;
  color: #555;
}
.czestosc {
  font-weight: bold;
}
.btn-prev {
  font-weight: bold;   /* pogrubienie */
  margin-right: 10px;  /* odstęp od następnego elementu */
  min-width: 100px;
}
.btn-next {
  font-weight: bold;
  margin-left: 10px;
  min-width: 100px;
}
.ukryte {
    display: none; /* żeby nadal było ukryte */
    text-align: left; /* wymusza wyrównanie w lewo */
}
#btn-rozwin {
  align-self: center; 
}