:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --primary-color: #333333;
  --accent-color: #007acc;
  --font-family: 'YourFont', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #000000;
  line-height: 1.6;
  overflow: auto;
}

p {
  margin: 20px 0
}

.header {
  background: url('../images/wheat2.png');
  background-size: cover;
  text-align: center;
  padding: 4rem 0;
}
.header h1 {
  font-size: 2.8rem;
  font-weight: bolder;  
  margin-bottom: 0;
}
.header h2 {
  font-size: 1.3rem;
  font-weight: normal;
  color: #000000;
}

nav {
  background: #f3f3f3;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.nav-toggle {
  display: none;
  position: absolute;
  left: 1rem;
  font-size: 2rem;
  cursor: pointer;
  z-index: 3;
}

nav ul {
  list-style: none;
  display: flex;
}

nav li {
  margin: 0 3rem;
}

nav a {
  display: block;
  padding: 0.5rem 1rem;
  color: #000;
  text-decoration: none;
  font-weight: bold;
}

nav a.active,
nav a:hover {
  color: #464646;
}

/* Overlay (ciemne tło) */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Ukryj X na desktopie */
.close-btn {
  display: none;
}

main {
  font-size: 1.1rem;
  flex: 1;
  padding: 2rem;
  background: linear-gradient(#e5e5e5, #acacac);
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

figure {
  text-align: center;
  max-width: 100%;
}

figure img {
  display: block;
  margin: 0 auto;
  max-width: 90%;
  width: 100%;
  height: auto;
}

figcaption {
  margin-top: 10px;
  font-style: italic;
}

.tab-content {
  width: 100%;
  max-width: 900px;
  border-radius: 8px;
  padding: 2rem;
  background: #f3f3f3;
}

footer {
  background-color: #f3f3f3;
  color: #000000;
  text-align: center;
  padding: 1rem 0;
}

@media (max-width: 768px) {
    .tab-content{
      font-size: 1rem;
    }

    .nav-toggle {
      display: block;
      position: absolute;
      left: 1rem;
      font-size: 2rem;
      cursor: pointer;
      z-index: 3;

    }

    .close-btn {
      display: block;
      font-size: 2rem;
      margin-left: auto;
    }

    .nav-links {
      flex-direction: column;
      position: fixed;
      top: 0;
      left: -100%;
      width: 250px;
      height: 100%;
      background: #f3f3f3;
      padding-top: 6rem;
      transition: left 0.3s ease;
      z-index: 2;
    }

    .nav-links.open {
      left: 0;
    }

    .overlay {
      display: none;
    }

    .overlay.show {
      display: block;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.5);
      z-index: 1;
    }

    #volumeIcon {
      display: none;
    }

    .slider {
      display: none;
    }
  }

.figure {
  position: relative;
  width: 50%;
  margin: auto;
}

.figure img{
  width: 100%;
  border-radius: 5%;
}

.image-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  border-radius: 5%;
  object-fit: contain;
  transition: opacity .2s;
}

.image-hover:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.5);
}

.figure img {
  margin: auto;
}

.galeria img  {
  display: block;
  margin: 0 auto;
  max-width: 90%;
  width: 100%;
  height: auto;
}

#p_top {
  text-align: center;
}

/* body {
  margin: 0;
  font-family: var(--font-family);
  background: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

audio {
  margin-bottom: 1rem;
  width: 100%;
  max-width: 600px;
}

#tekst-container {
  width: 100%;
  max-width: 600px;
  height: 70vh;
  overflow: hidden;
  position: relative;
  scroll-behavior: smooth;
  border: 1px solid var(--primary-color);
  padding: 1rem;
  background: #f7f7f7;
}

#tekst {
  position: relative;
}

.segment {
  margin-bottom: 2rem;
}
.segment.pause {
  display: flex;
  justify-content: center;
  align-items: center;
}
.segment.pause img {
  max-width: 100%;
  height: auto;
}

.jump {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
}
.jump:hover {
  opacity: 0.9;
}

figure {
  margin: 20px auto;
  text-align: center;
  max-width: 100%;
}

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

figcaption {
  margin-top: 10px;
  font-style: italic;
} */
