@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;1,400;1,700&family=Merriweather+Sans:wght@400;700&display=swap');

html {
  background-image: url('wood2.jpg');
  margin: 0;
  padding: 0;
}

@media print {
  html {
    background-image: none;
    background-color: #fff;
  }
}

body {
  font-family: 'Merriweather', serif;
  font-size: 1.1em;
  width: 100%;
  max-width: 60em;
  margin: 0 auto;
  padding: 0;
}

div.zawartosc {
  margin: 0;
  width: 100%;
  background: #fff;
  border: 1px #555 solid;
  border-radius: 0.4em 0.4em 0 0;
  /* border-bottom: none; */
  padding: 1em 0.5em 2em 0.5em;
  box-sizing: border-box;
}

@media (max-width: 66em) {
  div.zawartosc {
    border-left: none;
    border-right: none;
    border-radius: 0;
  }
}

@media print {
  div.zawartosc {
    border: none;
  }
}

h1 {
  text-align: center;
  color: #000;
  font-size: 2em;
  margin: 2.2em auto 2.5em auto;
  clear: both;
  page-break-after: avoid;
}

div.gornemenu {
  margin: 0.4em 0.6em 0 auto;
  text-align: right;
}

/* ukryj górne menu w druku */
@media print {
  div.gornemenu {
    display: none;
  }
}

div.gornemenu a {
  border: 1px #555 solid;
  border-radius: 0.4em 0.4em 0 0;
  margin: 0 0.2em 0 0;
  padding: 0 0.5em;
  text-decoration: none;
  background: #eee;
  color: #555;
  font-size: 1em;
  border-bottom: 1px #ccc solid;
}


@media (max-width: 27em) {
  div.gornemenu a {
    padding: 0 0.15em;
    margin: 0 1px 0 0;
  }
}

@media (max-width: 22em) {
  div.gornemenu a {
    font-size: 0.9em;
    padding: 0 0.1em;
    margin: 0;
  }
}

div.gornemenu a:hover {
  background: #ffea96;
  color: #111;
}

div.gornemenu a.activetab {
  color: #111;
  cursor: default;
  background: #fff;
  border-bottom: 1px #fff solid;
}

h2, h3, h4 {
  font-weight: bold;
  page-break-after: avoid;
}

h2 {
  font-size: 1.25em;
  margin: 1.7em auto 0.75em 0;
  background: #f3f3f3;
  padding: 0.2em 0.5em;
  border-radius: 0.2em;
  clear: both;
}

h2 a {
  color: inherit;
}

h3 {
  font-size: 1.1em;
  margin: 1.5em auto 0.75em 0;
}

h4 {
  font-size: 1em;
  font-style: italic;
  margin: 1.2em auto 0.75em 0;
}

p {
  margin: 0 0 1em 0;
  text-indent: 0.8em;
  line-height: 1.6;
}

img {
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
}

figure {
  float: right;
  border: 1px #bbb solid;
  border-radius: 0.25em;
  width: 25em;
  max-width: 100%;
  margin: 0 0 0.4em 0.5em;
  box-sizing: border-box;
  padding: 0.2em;
  font-size: 0.8em;
  color: #333;
  text-align: center;
  max-height: 100%;
  background: #fff;
  clear: both;
}


figure figcaption {
  font-family: 'Merriweather Sans', sans-serif;
}

figure.big {
  width: 100%;
  margin: 0.8em 0 1.2em 0;
}

@media (max-width: 38em) {
  figure {
    width: 100%;
    margin: 0.8em 0 1.2em 0;
  }
}

div.stopka {
  margin: 0;
  padding: 0.5em;
  background: #333;
}

div.stopka p {
  margin: 0;
  color: #ddd;
  font-size: 0.85em;
  text-indent: 0;
}

div.stopka a {
  color: inherit;
  text-decoration: none;
}


/* ============================== DARK THEME ============================== */

@media (prefers-color-scheme: dark) {

html {
  background-image: none;
  background-color: #111;
}

a {
  color: #88f;
}

div.gornemenu a {
  background-color: #222;
  color: #ddd;
  border-bottom: inherit;
}

div.gornemenu a:hover {
  background-color: #444;
  color: #fff;
}

div.gornemenu a.activetab {
  background-color: #210;
  color: #fff;
  border-bottom: 1px #210 solid;
}

h1, h2, h3, h4 {
  color: #eee;
}

h2 {
  background: #222;
}

div.zawartosc {
  color: #fff;
  background: #210;
}

div.zawartosc a {
  color: #88f;
}

figure {
  color: #bbb;
  border-color: #777;
  background: #222;
}

img {
  filter: grayscale(50%) brightness(95%);
}

} /* DARK THEME ENDS */
