* {
  /*outline: 1px solid red; /* Tymczasowe obramowanie dla debugowania */
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 25px; /* Zapewnia odstęp od góry strony */
  padding-bottom: 50px; /* Zapewnia odstęp, aby reklama nie nachodziła na treść */
  background-color: #f7f9fc;
  color: #333;
}

.page-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 25px;
  max-width: 100%; /* Dodaj maksymalną szerokość */
  margin: 0 auto; /* Wycentruj zawartość */
  padding: 0 auto; /* Dodaj padding po bokach, aby uniknąć przesunięcia */
}

.main-content {
  max-width: 1000px;
  flex: 1;
  margin-bottom: 25px; /* Zapewnia odstęp, aby reklama nie nachodziła na treść */
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 25px;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
}

h1, h2, h3 {
  color: #0056b3;
}

a {
  display: inline-block;
  margin: 10px 0;
  color: #0056b3;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

form {
  padding: 0px 0;
}

input[type="text"],
input[type="number"],
select {
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}

input[type="radio"] {
  margin-left: 10px;
}

/* Dla pól typu radio obok siebie */
.radio-group label {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 0;
}

label {
  display: block;
  margin-bottom: 8px;
}

h1, h2, h3 {
  margin-top: 10px;
  color: #0056b3;
}

#results {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #0056b3;
  background-color: #e9f2fa;
  border-radius: 4px;
}

#results p {
  margin: 10px 0;
}

select {
  width: 100%;
  padding: 5px;
  border-radius: 4px;
}

button {
  padding: 10px 20px;
  background-color: #0056b3;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  margin-top: 15px;
}

button:hover {
  background-color: #004494;
}

.info {
  display: inline-block;
  font-size: 15px;
  cursor: pointer;
  margin-left: 5px;
  color: #0056b3;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.info:hover {
  opacity: 1;
}

/* Styl dla bocznych reklam */
.ad-banner {
  width: 160px; /* Stała szerokość reklam */
  height: 600px;
  background-color: #f1f1f1;
  text-align: center;
  padding: 10px;
  border: 1px solid #ccc;
}

/* Pokazanie reklam tylko przy odpowiednio szerokim ekranie */
@media (min-width: 1420px) { /* 1000px główna treść + 2x (25px margines + 160px reklama) */
  .left-ad, .right-ad {
    display: block;
    position: sticky;
    top: 25px;
  }

  .left-ad {
    left: calc(50% - 600px - 185px); /* 50% szerokości ekranu - połowa szerokości głównej treści - szerokość reklamy - margines */
  }

  .right-ad {
    right: calc(50% - 600px - 185px); /* 50% szerokości ekranu - połowa szerokości głównej treści - szerokość reklamy - margines */
  }
}

/* Dolna reklama na urządzeniach mobilnych */
.bottom-ad {
  width: 100%;
  height: 50px;
  position: fixed;
  bottom: 0;
  left: 0;
  text-align: center;
  background-color: #f1f1f1;
  border-top: 1px solid #ccc;
  z-index: 1000;
}

/* Pokazywanie reklamy na urządzeniach mobilnych */
@media (min-width: 1420px) {
  .bottom-ad {
    display: none;
  }
}

/* Ukrywanie reklam bocznych na mniejszych ekranach */
@media (max-width: 1419px) {
  .left-ad, .right-ad {
    display: none;
  }
}

/* Styl dla górnego paska */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0;
  background-color: #ffffff;
  border-bottom: 1px solid #ccc;
  position: static;
  top: 0;
  z-index: 1000;
}

.left-link {
  color: #0056b3;
  text-decoration: none;
}

.left-link:hover {
  text-decoration: underline;
}

.suggestions {
  margin: 0;
}

.suggestions p {
  margin: 0;
}

.suggestions a {
  color: #0056b3;
  text-decoration: none;
}

.suggestions a:hover {
  text-decoration: underline;
}

#cookie-banner {
  position: fixed;
  top: 0; /* Ustawienie na górze ekranu */
  left: 0;
  width: 100%;
  background-color: #333;
  color: white;
  text-align: center;
  padding: 10px;
  display: flex;
  justify-content: center; /* Wyśrodkowanie poziome */
  align-items: center; /* Wyśrodkowanie pionowe */
  z-index: 1000; /* Upewnij się, że jest na wierzchu */
}

#cookie-banner button {
  background: #ffcc00;
  border: none;
  padding: 15px 15px 15px 15px;
  cursor: pointer;
  margin-left: 25px; /* Dodaj odstęp między tekstem a przyciskiem */
  margin-top: 0px;
}