html {
  height: 100%;
  box-sizing: border-box;
  overscroll-behavior: none !important;
  display: flexbox;
}

.kontener-bg {
  background-color: #f4f4f4 !important;
  z-index: -1;
}

.hiddentable td[colspan="3"] {
  width: 100%;
  padding: 0;
  margin: 0;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #000000;
  font-size: 1.2rem;
  position: relative;
  min-height: 100%;
  box-sizing: inherit;
  overscroll-behavior: none !important;
}

#custom-select-wrapper,
#custom-select-wrapper2 {
  display: none;
  font-size: 1.2rem !important;
}

.custom-select-wrapper,
.custom-select-wrapper2 {
  font-family: "Prompt", sans-serif;
  top: 20px;
  position: fixed;
  display: inline-block;
  user-select: none;
  z-index: 2000;
  left: 10px;
  color: #ffffff;
}

.custom-select,
.custom-select2 {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: none;
  color: white;
  padding: 3px 10px;
  border: none;
  outline: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  width: 50px; /* Stała szerokość przycisku */
}

.custom-options,
.custom-options2 {
  top: calc(100% + 5px);
  left: 10px;
  overflow: hidden !important;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  width: 100%;
}

body[data-theme="default"] .custom-options,
body[data-theme="default"] .custom-options2 {
  background: #2f2f2fbf;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

body[data-theme="alternative"] .custom-options,
body[data-theme="alternative"] .custom-options2 {
  top: calc(100% + 5px);
  left: 10px;
  overflow: hidden !important;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  background: linear-gradient(
    45deg,
    rgba(106, 17, 203, 0.8),
    rgba(37, 117, 252, 0.8)
  );
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  display: none;
  width: 100%;
}

.custom-options.active,
.custom-options.active2 {
  display: block;
}

.custom-option,
.custom-option2 {
  padding: 5px 10px;
  text-align: center;
  cursor: pointer;
}

.custom-option:hover,
.custom-option2:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.04);
  color: white;
}

footer {
  line-height: 1.5;
  background-color: #2a2a2a;
  font-family: "Prompt", sans-serif;
  width: 100%;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
}
.row {
  display: flex;
  flex-wrap: wrap;
}

.footer-bottom {
  font-size: 14px;
  text-align: center;
  padding: 10px;
  justify-content: center;
  color: white;
  background-color: #000;
}

body[data-theme="default"] footer {
  line-height: 1.5;
  background-color: #2a2a2a;
  font-family: "Prompt", sans-serif;
  width: 100%;
  padding: 20px 0;
  margin-top: 20px;
}

body[data-theme="alternative"] .footer {
  background: linear-gradient(45deg, #6a11cb, #2575fc);
  padding: 70px 0;
  margin-top: 20px;
}

.footer-col {
  width: 25%;
  padding: 0 15px;
}
.footer-col h4 {
  font-size: 18px;
  color: #fff;
  text-transform: capitalize;
  margin-bottom: 35px;
  font-weight: 500;
  position: relative;
}
.footer-col h4::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;

  height: 2px;
  box-sizing: border-box;
  width: 50px;
}
.footer-col ul li:not(:last-child) {
  margin-bottom: 10px;
}
.footer-col ul li a {
  font-size: 14px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 300;
  color: #efefef;
  display: block;
  transition: all 0.3s ease;
}
.footer-col ul li a:hover {
  color: #ffffff;
  padding-left: 8px;
}

.prędkość {
  font-family: Arial, sans-serif;
  padding-top: 50px;
  padding-bottom: 25%;
  padding-left: 5%;
  background-color: #f4f4f4;
  font-size: 19px;
}

.kolorregulamin {
  color: white;
  text-decoration: none;
}

.kolorregulamin:hover {
  color: rgb(163, 163, 163);
  transition: color 0.3s ease;
}

body[data-theme="default"] .nav {
  z-index: 100;
  background: #2f2f2f;
  padding: 12px 0;
  display: flex;
  justify-content: center;
  font-family: "Prompt", sans-serif;
  font-size: 1rem !important;
  position: sticky;
  position: -webkit-sticky;
  top: -1px;
}

body[data-theme="default"] .nav ol li ul {
  display: none;
  position: absolute;
  top: calc(100% - 5px);
  left: 0;
  background: #2f2f2fbf;
  padding: 10px;
  border-radius: 5px;
  min-width: 475px;
  animation: fadeIn 0.3s ease forwards;
  z-index: 1201;
  grid-template-columns: 33.3% 33.3% 33.3%; /* Trzy kolumny */
  overflow-y: auto;
}

body[data-theme="default"] .nav ol li:hover > ul {
  display: grid;
}

body[data-theme="alternative"] .nav ol li:hover > ul {
  display: grid;
}

body[data-theme="alternative"] .nav {
  z-index: 100;
  background: linear-gradient(
    45deg,
    rgba(106, 17, 203, 0.8),
    rgba(37, 117, 252, 0.8)
  );

  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 0;
  display: flex;
  justify-content: center;
  font-family: "Prompt", sans-serif;
  font-size: 1.2rem !important;
  position: sticky;
  position: -webkit-sticky;
  top: -1px;
}

body[data-theme="alternative"] .nav ol li ul {
  display: none;
  position: absolute;
  top: calc(100% - 5px);
  left: 0;
  background: linear-gradient(
    45deg,
    rgba(106, 17, 203, 0.8),
    rgba(37, 117, 252, 0.8)
  );
  padding: 10px;
  border-radius: 5px;
  min-width: 475px;
  animation: fadeIn 0.3s ease forwards;
  z-index: 1201;
  grid-template-columns: 50% 50%;
  overflow-y: auto;
}

.nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav ol li {
  position: relative;
}

.nav ol li a {
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  transition: background-color 0.3s, color 0.3s, transform 0.3s ease;
  display: flex;
  align-items: center; /* Umieszczanie ikony na tym samym poziomie co tekst */
  border-radius: 15px;
  height: 30px;
}
.submenu {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav ol li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.04);
}

.nav ol li a i {
  margin-right: 5px;
}

.nav ol li ul::before,
.nav ol li ul::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 80%;
  width: 1px;
  background-color: #ffffff;
  transform: translateY(-50%);
  z-index: 1202;
}

.nav ol li ul::before {
  left: 35%; /* Pierwsza linia oddzielająca */
}

.nav ol li ul::after {
  left: 67%; /* Druga linia oddzielająca */
}

.nav ol li ul li {
  margin: 5px 0;
  list-style: none; /* Usunięcie domyślnego stylu listy */
  padding-left: 5px; /* Przesunięcie elementów submenu, aby były wyrównane z menu głównym */
}

.nav ol li ul li a {
  color: #fff;
  text-decoration: none;

  display: block;

  overflow: hidden; /* Ukrywa tekst, który nie mieści się w elemencie */
  text-overflow: ellipsis; /* Dodaje trzy kropki, gdy tekst jest za długi */

  white-space: nowrap; /* zapobiega zawijaniu tekstu */
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-notatki {
  display: inline-block;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.btn-notatki:hover {
  background-color: #0056b3;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-notatki:active {
  background-color: #004080;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.container-nauka-all {
  transition: background-color 0.3s;
  display: flex;
  max-width: 1200px;
  width: 100%;
}

.spis-tresci {
  font-family: "Prompt", sans-serif;
  margin-top: 20px;
  margin-bottom: 20px;
  position: sticky;
  top: 90px;
  width: 250px;
  margin-right: 20px;
  background-color: #2c2c2c;
  color: #fff;
  border-radius: 12px;
  padding: 15px 20px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.4);
  height: fit-content;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.spis-tresci:hover {
  background-color: #252525;
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.5);
}

/* Tytuł spisu treści */
.spis-tresci h2 {
  font-size: 1.4em;
  color: #ffd700;
  margin-bottom: 15px;
  text-align: center;
  border-bottom: 1px solid #ffd700;
  padding-bottom: 8px;
  font-weight: 600;
}

/* Lista spisu treści */
.spis-tresci ul {
  list-style: none;
  padding: 0;
}

.spis-tresci li {
  margin: 10px 0;
}

/* Linki spisu treści */
.spis-tresci a {
  text-decoration: none;
  color: #ffd700;
  font-weight: 500;
  font-size: 1.1em;
  transition: color 0.5s, background-color 0.5s;
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.spis-tresci a:hover {
  color: #fff;
  background-color: #333333;
}

/* Aktywny link - opcjonalnie można dodać klasę aktywacji */
.spis-tresci a.active {
  color: #fff;
  background-color: #444;
  font-weight: bold;
}

.light-mode .spis-tresci {
  background-color: #f8f9fa;
  color: #333;
  border: 1px solid #ddd;
}

.light-mode .spis-tresci h2 {
  color: #333;
}

.light-mode .spis-tresci a {
  color: #333;
  font-size: large;
}

.light-mode .spis-tresci a:hover {
  color: #494848;
  background-color: #d8dbdd;
}
.wyprowadzenie {
  background-color: #454545;
  padding: 16px;
  border-radius: 6px;
  margin-top: 10px;
  display: none;
}

/* Styles for the theme toggle button */
.theme-toggle {
  text-align: center;
  margin: 20px 0;
}

.show-button {
  color: #ffd700;
  cursor: pointer;
  text-decoration: underline;
  font-weight: bold;
  display: block;
  margin-top: 10px;
  text-align: center;
  text-decoration: none;
}

.container-nauka {
  font-family: "Prompt", sans-serif;
  background-color: #2f2f2f;
  color: #e0e0e0;
  padding: 30px;
  margin: 20px auto;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s, color 0.3s;
}

.container-nauka > h1,
.container-nauka > h2 {
  color: #ffd700;
  text-align: center;
}

.container-nauka > p {
  line-height: 1.6;
  margin: 16px 0;
}

.container-nauka.light-mode {
  background-color: #f5f5f5;
  color: #333333;
}

.wyprowadzenie.light-mode {
  background-color: #e0e0e0;
  color: #333333;
}

.show-button.light-mode {
  color: #333333;
}

/* Adjust headings for light mode */
.container-nauka.light-mode > h1,
.container-nauka.light-mode > h2 {
  color: #333333;
}

.equation.light-mode {
  background-color: #e9ecef; /* A very light gray background for equations in light mode */
  color: #333333; /* Dark text for equations */
}

.button-container {
  display: flex; /* Align buttons in a row */
  justify-content: flex-end; /* Align to the right */
  margin-bottom: 20px; /* Space below the buttons */
}

.container-nauka {
  font-family: "Prompt", sans-serif;
  background-color: #2f2f2f;
  color: #e0e0e0;
  padding: 30px;
  margin: 20px auto;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative; /* Enable absolute positioning for children */
}

.wykres {
  margin: 0 auto;
  display: block;
  max-width: 40%;
  height: auto;
  margin: 10px 0;
  border-radius: 6px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
  background-color: #ffffff; /* Light background in dark mode */
}

.light-mode .wykres {
  box-shadow: none;
  background-color: transparent; /* Transparent background in light mode */
}

@media (max-width: 900px) {
  .wykres {
    max-width: 70%; /* Obrazki dostosują się do szerokości ekranu */
    margin: 10px auto;
  }
}

@media print {
  body * {
    visibility: hidden; /* Ukryj wszystkie elementy na stronie */
  }
  .show-button * {
    visibility: hidden; /* Ukryj wszystkie elementy na stronie */
  }

  .container-nauka-all,
  .container-nauka * {
    visibility: visible; /* Użyj widoczności dla kontenera do druku */
  }
  .spis-tresci {
    width: 0px !important; /* Ukryj wszystkie elementy na stronie */
  }
  .container-nauka-all {
    position: absolute; /* Pozycjonowanie kontenera do druku */
    left: 0;
    top: 0;
    width: 100%; /* Ustaw szerokość kontenera na 100% */
    height: auto; /* Automatyczna wysokość */
  }
}
.print-button {
  background-color: transparent; /* Dark background for the buttons */
  border: none; /* Remove default button border */
  color: #ffd700; /* Gold color for the icon */
  font-size: 24px; /* Size of the icons */
  cursor: pointer; /* Pointer cursor on hover */
  padding: 10px 15px; /* Padding for the buttons */
  border-radius: 5px; /* Rounded corners */
  margin-left: 10px; /* Space between buttons */
  transition: background-color 0.3s, color 0.3s; /* Smooth transition */
  position: absolute; /* Set position to absolute */
}

.print-button {
  top: 10px; /* Distance from the top */
  right: 10px; /* Distance from the right */
}

.print-button:hover {
  background-color: transparent;
  color: #ffcc00; /* Slightly lighter gold on hover */
}

#theme-toggle-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: inherit; /* Inherit color from the current theme */
}

#theme-toggle-btn:hover {
  opacity: 0.7; /* Optional hover effect */
}

.equation {
  font-weight: bold;
  background-color: #3a3a3a;
  padding: 8px;
  margin: 12px 0;
  border-radius: 6px;
  text-align: center;
  color: #e0e0e0;
}

.section {
  background-color: #3a3a3a;
  padding: 16px;
  margin: 16px 0;
  border-radius: 8px;
}

.highlight {
  background-color: #ffcc00; /* Bright yellow for highlight */
  color: #333;
  font-weight: 500;
}

.accordion {
  width: 80%;
  max-width: 600px;
  background-color: #2f2f2f;
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
  margin: 20px;
}

.accordion-item {
  border-bottom: 1px solid #444;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  background-color: #2f2f2f;
  color: #e0e0e0;
  cursor: pointer;
  padding: 18px;
  font-size: 20px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  border-radius: 4px;
  font-family: "Prompt", sans-serif !important;
  user-select: none !important;
}

.accordion-header:hover {
  background-color: #444;
}

.accordion-header::after {
  content: "+";
  font-size: 24px;
  transition: transform 0.3s ease;
  color: #e0e0e0;
}

.accordion-header.active::after {
  transform: rotate(45deg);
}

.light-mode .accordion {
  background-color: #f8f9fa;
  color: #333;
  border: 1px solid #ddd;
}

.light-mode .accordion-header::after {
  color: #333 !important;
}

.light-mode .accordion-header {
  background-color: #f8f9fa !important; /* Jasne tło dla nagłówka */
  color: #333;
  border-radius: 0px !important;
}

.light-mode .accordion-header:hover {
  background-color: #f1f2f4 !important; /* Jasne tło dla nagłówka */
}

.light-mode .accordion-content {
  background-color: rgb(243, 243, 243); /* Jaśniejsze tło dla zawartości */
}

.light-mode .accordion-content a:hover {
  background-color: #e7e7e7;
}

.light-mode .accordion-content a {
  color: #333;
  background-color: #f1f1f1;
}

.accordion-content {
  max-height: 0; /* Początkowa wysokość */
  padding: 0 16px; /* Padding z boków */
  font-size: 16px;
  background-color: #3a3a3a;
  overflow: hidden; /* Ukrywa nadmiar */
  font-family: "Prompt", sans-serif;
  transition: max-height 0.4s ease, padding 0.4s ease; /* Dodanie animacji */
}
.container-accordion {
  display: flex; /* Flexbox na kontenerze */
  justify-content: center; /* Wyśrodkowanie w poziomie */
  align-items: center; /* Wyśrodkowanie w pionie */
  width: 100%; /* Zajmowanie pełnej szerokości */
  user-select: none !important;
}
.accordion-content a {
  display: block;
  padding: 12px;
  margin: 6px 0;
  background-color: #4a4a4a;
  color: #e0e0e0;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.accordion-content a:hover {
  background-color: #5a5a5a;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.sticky {
  width: 100%;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
}

.content {
  width: 90%;
  margin-left: 5%;
  margin-right: 5%;
  text-align: left;
  font-family: "Prompt", sans-serif;
}

.calculatordescription {
  font-size: 25px;
  padding-left: 5%;
  font-family: "Prompt", sans-serif;
  line-height: 20px;
}

.hidden-normal {
  display: none;
}

.odleglosciczas {
  padding-left: 2%;
}
.buttonvelocity {
  padding-left: 2%;
}
.jednostkipredkosc {
  padding-top: 6px;
  padding-left: 2%;
}

.container-kalkulatory {
  margin: 0 auto;
  justify-content: center;
  align-items: stretch;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
}

.container-kalkulatory-glowna {
  margin: 0 auto;
  justify-content: center;
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  color: #000;
}

.toggle-button-glowna {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  color: #333;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  margin-top: 20px;
  font-size: 16px;
  transition: background-color 0.3s, color 0.3s;
  max-width: 1200px;
  border-radius: 15px;
  font-family: "Prompt", sans-serif;
  text-align: center;
}

.toggle-button-glowna:hover {
  background-color: #ddd;
  color: #555;
}

.arrow-icon {
  margin-left: 5px;
}

.inner-container-glowna.searchable:nth-last-child(-n + 2) {
  display: none;
}

.inner-container-glowna {
  position: relative; /* Dodaj pozycjonowanie względne */
  text-align: center;
  color: #000 !important;
  border-radius: 20px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: "Prompt", sans-serif;
  flex: 1 0 calc(25% - 60px);
  box-sizing: border-box;
  margin: 15px;
  max-width: 21%;
  font-size: 1em;
  line-height: 0.9;

  backdrop-filter: blur(10px);
}

.inner-container-glowna:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);

  transform: scale(1.03);
}

canvas {
  border: 2px solid #333; /* Ciemnoszara obramówka */
  background-color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); /* Lekkie cienie */
}

canvas {
  border: 2px solid #333;
  background-color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  width: 100%; /* Responsywnie */
  max-width: 800px;
  height: auto; /* Zachowaj proporcje */
}

.controls-termo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 800px;
  flex-wrap: wrap; /* Dzięki temu elementy mogą się przenosić w dół */
}

.slider-group {
  flex-grow: 1;
  margin: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%; /* Cała szerokość na mniejszych ekranach */
}

.slider-group label {
  margin-bottom: 5px;
  color: #4a4a4a;
  font-weight: bold;
}

.slider-group input[type="range"] {
  width: 100%;
  margin-bottom: 10px;
  -webkit-appearance: none;
  appearance: none;
  background: #b0b0b0;
  border-radius: 5px;
  height: 8px;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border: 2px solid #999999;
  border-radius: 50%;
  cursor: pointer;
}

.slider-group input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #ffffff;
  border: 2px solid #999999;
  border-radius: 50%;
  cursor: pointer;
}

#pressureBar {
  width: 100%;
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 5px;
  margin-top: 5px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

#pressureFill {
  height: 100%;
  background-color: green;
  transition: width 0.3s ease, background-color 0.3s ease;
  border-radius: 5px;
}

@media (max-width: 600px) {
  .slider-group {
    width: 100%; /* Zapełnij całą szerokość ekranu na mniejszych urządzeniach */
  }
}

.niewidoczny {
  display: none;
}
.arrow-right {
  justify-content: right !important;
  text-align: right !important;
  margin-right: 20px;
  color: rgb(0, 0, 0);
  font-size: 1.5em;
}

.source-text {
  font-size: 12px; /* Rozmiar czcionki dla tekstu źródła */
  color: #555; /* Szary kolor dla tekstu */
  margin-top: 5px; /* Odstęp nad tekstem */
}

.source-link {
  color: #0066cc; /* Kolor linku */
  text-decoration: none; /* Usunięcie domyślnego podkreślenia */
}

.source-link:hover {
  text-decoration: underline; /* Dodanie podkreślenia po najechaniu myszką */
}

.inner-container {
  border-radius: 35px;
  padding: 20px;
  text-align: center;
  background-color: #f9f9f9;
  border: 2px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Cień */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Efekt przejścia */
  overflow-x: hidden;
  margin-bottom: 20px;
  font-family: "Prompt", sans-serif;
  flex: 1 0 33.33%; /* Ustawiaj na 33.33% lub odpowiednią wartość, aby uzyskać trzy kolumny */
  max-width: 42%;
  box-sizing: border-box;
  padding: 10px;
  margin: 20px;
}

.inner-container:hover {
  transform: translateY(-5px); /* Podnoszenie bloczka po najechaniu myszką */
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.4);
  transform: scale(1.03);
}

.tytulkalkulatora {
  padding-left: 2%;
  font-family: "Prompt";
  width: fit-content;
}

.page-container {
  margin-top: 2vh;
  display: flex;
  background-color: #f4f4f4;
  margin-right: 20px;
}

.container-all {
  display: flex;
  justify-content: center;
  margin-bottom: 10vh !important;
}

.przeneskalkulator {
  color: #000000;
  text-decoration: none;
}
.przeneskalkulator:hover {
  color: rgb(138, 138, 138);
  text-decoration: none;
}

.calculator-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.description-formula {
  margin-top: 2vh;
  height: fit-content;
  font-family: "Prompt", sans-serif;
}

.calculator {
  position: sticky !important;
  position: -webkit-sticky;
  top: 100px;
  height: fit-content;
  max-height: 85vh;
  overflow-y: auto;
  scrollbar-width: thin; /* szerokość paska przewijania */
  scrollbar-color: #888 #f1f1f1; /* kolor samego paska przewijania i tła */
}

.calculator::-webkit-scrollbar {
  width: 6px;
}

.calculator::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.calculator::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 3px; /* zaokrąglenie krawędzi paska przewijania */
}

.calculator::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

.calculator,
.description-formula {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 400px;
}

.description-formula {
  width: 600px;
}

.wzor {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}

.unsticky {
  position: static !important;
  max-height: unset;
}

.button-container {
  text-align: center !important;
  margin-top: 10px; /* Opcjonalne - aby dodać trochę odstępu między kalkulatorem a przyciskiem */
  width: 100%;
}

.toggle-sticky-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s, transform 0.3s ease;
}

.toggle-sticky-button:hover {
  background-color: #45a049;
  transform: scale(1.02);
}

.toggle-sticky-button i {
  margin-right: 5px;
}

.description-formula2 {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 400px;
  margin-top: 2%;
}
.przesundescription {
  padding: 20px;
}

.title2 {
  font-size: 25px;
  font-weight: bold;
  font-family: "Prompt", sans-serif;
  line-height: 125%;
  margin: 2%;
  text-align: center;
}

.title {
  font-family: "Prompt", sans-serif;
  line-height: 110%;
  margin: 2%;
  margin-bottom: 20px;
}

.wybor-generator {
  display: flex;
  font-family: "Prompt", sans-serif;
}

.wybor-generator div {
  margin-right: 10px; /* Mniejszy odstęp między elementami */
}

.calculator .title {
  color: #333;
  text-align: center;
}

.calculate-button {
  margin-left: 0px;
}

.calculator .input-field,
.calculator .select-field,
.calculator .calculate-button {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  -webkit-appearance: none; /* resetowanie domyślnych stylów na iOS */
  appearance: none;
}

.select-field {
  display: inline-block;
  padding: 8px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  color: #444;
  min-width: 200px;
}

.calculator .calculate-button {
  background-color: #4caf50;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.3s ease;
}

.calculator .calculate-button:hover {
  background-color: #45a049;
  transform: scale(1.04);
}

.calculator .result-text {
  margin-top: 15px;
  font-weight: bold;
  color: #333;
}

.tasks-container-wrapper {
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}
.tasks-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.task-display,
.answer-display {
  font-family: "Prompt", sans-serif;
  line-height: 1.6;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  display: none; /* Ukrywamy początkowo elementy */
  letter-spacing: -0.75px;
}

.task-display:not(:empty),
.answer-display:not(:empty) {
  display: block; /* Pokazujemy element tylko jeśli nie jest pusty */
}

.task-display {
  color: #333333;
}

.answer-display {
  color: #008080;
}

.hidden {
  opacity: 0;
  transition: all 1s;
  filter: blur(5px);
  transform: translateY(-100%);
}

.hidden2 {
  opacity: 0;
  transition: all 0.7s;
  filter: blur(5px);
  transform: translateX(-100%);
}

.show-formula {
  font-family: "Prompt", sans-serif;
  cursor: pointer;
  background-color: #409644cb;
  color: white;
  padding: 8px 16px; /* Mniejsze wartości paddingu */
  border: none;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px; /* Mniejsza wielkość czcionki */
  margin: 4px 2px;
  transition-duration: 1s;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.show-formula:hover {
  background-color: #367d39;
  transform: scale(1.05);
}

.show2 {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}

.show {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
.wynikikalk {
  padding-left: 2%;
}
.container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.block-descriptioncalc {
  background-color: #f0f0f0;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 20px;
  padding: 20px;
  font-family: "Prompt";
  color: black;
}

#content_container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto; /* Automatyczne marginesy poziome, aby zawartość była wyśrodkowana */
  max-width: 600px; /* Maksymalna szerokość kontenera */
  padding: 20px;
  background-color: #f0f0f0;
}

#form_container {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 100%;
}

#content_container {
  font-family: "Prompt", sans-serif !important;
}

/* Form container */
#form_content_inner_container {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
}

#form_content_inner_container > input[type="text"],
input[type="email"],
input[type="password"] {
  width: 95%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

#form_content_inner_container > input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #4d90fe; /* Blue outline on focus */
}

#button_container {
  text-align: center;
}

button {
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  background-color: #4d90fe; /* Blue background */
  color: #fff;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #357ae8; /* Darker blue on hover */
}

/* Logged in container */
#logged_in_container {
  text-align: center;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
}

#logged_in_container h2 {
  margin-bottom: 10px;
  font-size: 24px;
  color: #333;
}

#time_spent {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 500px) {
  #btn-login {
    padding: 8px;
    margin-bottom: 3px;
  }
  #content_container {
    padding: 10px;
  }
  input[type="text"],
  input[type="email"],
  input[type="password"],
  button {
    font-size: 14px;
  }
}

.calculator-block {
  background-color: #f0f0f0;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 20px;
  padding: 20px;
  font-family: "Prompt";
}
.small-calculator-block {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease !important;
}

.small-calculator-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.small-calculator-block h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.calculator-block h2, h1 {
  color: #333;
  font-weight: 600 !important;
  text-align: center;
}

.calculator-block p {
  color: #666;
}
tr td img {
  justify-content: center !important;
  margin: 0 auto;
}
.container > img {
  width: 100% !important;
  height: 300px;
  object-fit: cover; /* Dopasowanie obrazu tak, aby pokrywał cały kontener */
  object-position: center; /* Wyśrodkowanie obrazu */
  display: block;
}

#spis-dol {
  margin: 20px auto;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: auto;
  max-width: 500px;
  text-align: center;
  font-family: "Prompt", sans-serif;
}

/* Nagłówek dla spisu */
#spis-dol p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 15px;
  font-weight: bold;
}

/* Stylizacja linków nawigacyjnych */
.nav-links {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: #0056b3;
  padding: 10px 20px;
  border: 2px solid #0056b3;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
}

.nav-links a:hover {
  background-color: #0056b3;
  color: #fff;
}

/* Stylizacja listy rozwijanej */
#spis-dol select {
  width: 100%;
  padding: 10px 15px;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  color: #333;
  font-weight: bold;
  transition: border-color 0.2s ease-in-out;
}

#spis-dol select:focus {
  border-color: #0056b3;
  outline: none;
}

/* Responsywność */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 10px;
  }

  .nav-links a {
    width: auto;
    text-align: center;
    padding: 12px;
  }
}

.error {
  color: #ff4444;
  font-weight: bold;
  margin-top: 15px;
}

body[data-theme="default"] .tytul {
  width: 100%;
  font-family: "Prompt", sans-serif;
  font-weight: 600 !important;
  font-style: normal;
  position: absolute;
  top: 5vh;
  text-align: center;
  color: white;
  font-size: 35px; /* Zwiększony rozmiar czcionki */
  line-height: 0.8;
  -webkit-text-stroke: 0px rgba(0, 0, 0, 0.7); /* Cień wokół tekstu */

  z-index: 100;
  padding-bottom: 0;
  animation: pulse 2s infinite; /* Dodanie delikatnej animacji */
}

/* Dodajemy efekt pulsowania */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

body[data-theme="alternative"] .tytul {
  width: 100%;
  font-family: "Prompt", sans-serif;
  font-weight: 400;
  font-style: normal;
  top: 5vh;
  position: absolute;
  text-align: center;
  color: white;
  font-size: 35px;
  line-height: 25px;
  -webkit-text-stroke: rgb(255, 255, 255) 1px;
  z-index: 100;
  padding-bottom: 0;
  font-weight: 900 !important;
  animation: pulse 2s infinite; /* Dodanie delikatnej animacji */
}

body[data-theme="default"] .tytul h1 {
  margin: auto;
  margin-top: 20px;
  padding: 10px;
  width: fit-content;
}

body[data-theme="default"] .tytul h2 {
  margin: auto;
  font-size: 1em;
  padding: 10px;
  width: 90% !important;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body[data-theme="alternative"] .tytul h1,
body[data-theme="alternative"] .tytul h2 {
  margin: auto;

  padding: 30px;
  width: fit-content;
  background: linear-gradient(
    45deg,
    rgba(106, 17, 203, 0.7),
    rgba(37, 117, 252, 0.7),
    rgba(106, 17, 203, 0.7)
  ) !important;
  background-size: 200% 200%;
  animation: gradientShift 2s ease infinite !important;
  -webkit-backdrop-filter: blur(5px) !important;
  backdrop-filter: blur(5px) !important;
  border-radius: 15px;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.tytul2 {
  transition-delay: 200ms;
}

.transitiondelay {
  transition-delay: 100ms;
}

.transitiondelay2 {
  transition-delay: 200ms;
}

.ostronie {
  font-family: "Prompt", sans-serif;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  line-height: 200%;
  font-size: 40px;
}

.przesun {
  padding-left: 2%;
}

.jednalinia {
  display: inline-block;
}

.definition {
  font-family: "Prompt", sans-serif;
}
.blocks {
  display: flex; /* Ustawia dzieci bloczków w układzie flexbox */
  margin-top: 20px;
  max-width: 800px;
  justify-content: space-around;
  margin: 0 auto !important;
  flex-wrap: wrap;
  align-items: center !important;
}

.scroll-btn {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px !important;
  height: 50px !important;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.3s, background-color 0.3s; /* Dodaj animację zmiany rozmiaru */
  z-index: 1000;
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  -webkit-appearance: none !important; /* Zresetuj domyślne stylowanie przycisku dla Safari */
  -moz-appearance: none !important;
  appearance: none !important;
  margin-top: 10px;
}

.scroll-btn:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

.block {
  background: #2f2f2f;
  color: white; /* Kolor tekstu w bloczku */
  border-radius: 10px; /* Zaokrąglenie rogów bloczka */
  transition: background-color 0.3s; /* Płynne przejście zmiany koloru tła */
  transition: all 0.3s ease;
  margin: 10px;
  display: inline-block;
  transform: all 0.3s ease;
}

.block:hover {
  background-color: #292929; /* Kolor tła bloczka po najechaniu myszką */
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.all-blocks a {
  text-decoration: none; /* Usunięcie podkreślenia odnośnika */
  color: white; /* Kolor tekstu odnośnika */
}

.search-wrapper {
  font-size: 20px;
  padding-top: 2vh;
  padding-left: 2%;
}

.search-container1 {
  display: flex;
  align-items: center;
  padding-left: 2% !important;
  padding-top: 2% !important;
  font-size: 35px;
  font-family: "Prompt", sans-serif;
  justify-content: center;
  border-radius: 20px;
  padding: 10px;
  font-weight: 600;
  margin-bottom: 2%;
}

.search-container1-input {
  margin-left: 2%;
  height: 30px;
  border: none;
  outline: none;
  padding: 10px;
  font-size: 16px;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
}

.search-container2 {
  display: flex;
  align-items: center;
  padding-left: 2% !important;
  padding-top: 2% !important;
  font-size: 35px;
  font-family: "Prompt", sans-serif;
  justify-content: center;
  border-radius: 20px;
  padding: 10px;
  font-weight: 600;
  margin-bottom: 2%;
}

.search-container2-input {
  background-color: #f4f4f4;
  margin-left: 2%;
  height: 30px;
  border: none;
  outline: none;
  padding: 10px;
  font-size: 16px;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
}

.btn-zadania {
  display: inline-block;
  padding: 8px 16px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  background-color: #007bff;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-zadania:hover {
  background-color: #0056b3;
}

.select-field-zadania {
  display: inline-block;
  padding: 8px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  color: #444;
  min-width: 200px;
}

#filter-form {
  font-family: "Prompt";
  margin-bottom: 20px;
}

.task-block {
  border: 1px solid #ccc;
  font-family: "Prompt", sans-serif;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 16px;
  background-color: #f9f9f9;
}

.task-header {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 8px;
}

.task-answer {
  font-size: 16px;
  color: #444;
}

.odlegloscdol {
  padding: 20px;
}

.daneOdUsera {
  padding-bottom: 7px;
}

div[align="center"] {
  margin-top: 30px; /* Dowolna wartość marginesu, którą chcesz zastosować */
}

.odlegloscgorajednostki {
  padding-top: 6px;
}

li {
  list-style: none;
}
li > a:hover {
  color: #ffffff;
}

.btn:hover {
  background-color: #0056b3;
}

.btnsZad {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  text-align: right;
  margin-top: 10px;
}

.btn {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  margin-right: 10px;
  background-color: #007bff;
  color: #fff;
  border: none;
  transition: background-color 0.3s ease;
}

.instructions {
  max-width: 55%;
  padding-left: 7%;
}
.dsp {
  display: flex;
}

.toggle_btn {
  color: black;
  font-size: 1.75rem;
  cursor: pointer;
  display: none;
  margin-top: 10px;
  width: fit-content;
  height: fit-content;
}

.doprawej {
  align-items: right;
  text-align: right;
}

.regulamin {
  margin: 5%;
}

.cale-menu-ponizej {
  display: none;
}

:where(.ra-link) {
  display: var(--ra-link-display, inline-flex);
}

:where(.ra-link[href]) {
  color: var(--ra-link-color);
  text-decoration: var(--ra-link-text-decoration, none);
}

:where(.ra-list) {
  padding-inline-start: var(--ra-list-padidng-inline-start, 0);
  margin-block: var(--ra-list-margin-block-start, 0)
    var(--ra-list-margin-block-end, 0);
  list-style: var(--ra-list-list-style, none);
}

:where(.ra-button) {
  background-color: var(--ra-button-background-color, transparent);
  padding: var(
    --ra-button-padding,
    var(--ra-button-padding-top, 0) var(--ra-button-padding-right, 0)
      var(--ra-button-padding-bottom, 0) var(--ra-button-padding-left, 0)
  );
  border: var(
    --ra-button-border,
    var(--ra-button-border-width, 0) var(--ra-button-border-style, solid)
      var(--ra-button-border-color, currentcolor)
  );

  font-family: var(--ra-button-font-family, inherit);
  font-size: var(--ra-button-font-size, 1em);
  font-weight: var(--ra-button-font-weight, inherit);

  color: var(--ra-button-color, currentcolor);
  text-align: var(--ra-button-text-align, center);
  text-transform: var(--ra-button-text-transform, inherit);
  letter-spacing: var(--ra-button-letter-spacing, inherit);
  word-spacing: var(--ra-button-word-spacing, inherit);

  text-shadow: var(--ra-button-text-shadow, none);
  display: var(--ra-button-display, inline-flex);
}

.ra-button::-moz-focus-inner,
.ra-button[type="button"]::-moz-focus-inner,
.ra-button[type="reset"]::-moz-focus-inner,
.ra-button[type="submit"]::-moz-focus-inner {
  /* Remove the inner border and padding in Firefox. */

  border-style: none;
  padding: 0;
}

/*
=====
UIA-HAMBURGER
=====
*/

.uia-hamburger {
  --uia-control-icon-main-size: var(--uia-hamburger-width, 28px);
  --uia-control-icon-extra-size: var(--uia-hamburger-height, 20px);
  --_uia-hamburger-thickness: var(--uia-hamburger-thickness, 4px);

  display: var(--uia-hamburger-display, inline-flex);
  position: var(--uia-hamburger-position, relative);
}

.uia-hamburger__group::before,
.uia-hamburger__group::after,
.uia-hamburger__label {
  inline-size: 100%;
  border-block-start: var(--_uia-hamburger-thickness) solid
    var(--uia-hamburger-background-color, currentColor);
  border-radius: var(--uia-hamburger-border-radius, 5px);

  position: absolute;
}

.uia-hamburger__group::before,
.uia-hamburger__group::after {
  content: "";
}

.uia-hamburger__group::before {
  inset-block-start: var(--uia-hamburger-top-line-position, 0);
}

.uia-hamburger__group::after {
  inset-block-start: var(
    --uia-hamburger-last-line-position,
    calc(100% - var(--_uia-hamburger-thickness))
  );
}

.uia-hamburger__label {
  /* The calculation of middle hamburger button line position */

  inset-block-start: calc(50% - calc(var(--_uia-hamburger-thickness) / 2));
}

[data-uia-hamburger-skin="2"] .uia-hamburger__group::before {
  transform: var(--uia-hamburger-top-line-transform);
}

[data-uia-hamburger-skin="2"] .uia-hamburger__label {
  transform: var(--uia-hamburger-middle-line-transform);
  opacity: var(--uia-hamburger-middle-line-opacity);
}

[data-uia-hamburger-skin="2"] .uia-hamburger__group::after {
  transform: var(--uia-hamburger-last-line-transform);
}

@media (prefers-reduced-motion: no-preference) {
  [data-uia-hamburger-skin="2"] .uia-hamburger__group::before,
  [data-uia-hamburger-skin="2"] .uia-hamburger__group::after,
  [data-uia-hamburger-skin="2"] .uia-hamburger__label {
    transition-timing-function: ease;
    transition-duration: 0.15s;
  }

  [data-uia-hamburger-skin="2"] .uia-hamburger__group::before,
  [data-uia-hamburger-skin="2"] .uia-hamburger__group::after {
    transition-property: transform;
  }

  [data-uia-hamburger-skin="2"] .uia-hamburger__label {
    transition-property: transform, opacity;
  }
}
/*
=====
UIA-CONTROL
=====
*/
.uia-control__group {
  cursor: var(--uia-control-cursor, var(--_uia-control-cursor, pointer));
  line-height: var(--uia-control-line-height, 1);
}

.uia-control {
  --_uia-control-padding_default: 0;

  --_uia-control-border-width: var(--uia-control-border-width);
  --_uia-control-border-style: var(--uia-control-border-style, solid);
  --_uia-control-border-color: var(--uia-control-border-color, currentColor);
  --_uia-control-padding: var(
    --uia-control-padding,
    var(--uia-control-padding-block-start, var(--_uia-control-padding_default))
      var(--uia-control-padding-inline-end, var(--_uia-control-padding_default))
      var(--uia-control-padding-block-end, var(--_uia-control-padding_default))
      var(
        --uia-control-padding-inline-start,
        var(--_uia-control-padding_default)
      )
  );
  --_uia-control-border: var(--_uia-control-border-width)
    var(--_uia-control-border-style) var(--_uia-control-border-color);
  --_uia-control-border-radius: var(--uia-control-border-radius, 0.25rem);
}

.uia-control__group {
  display: var(--uia-control-display, inline-flex);
  padding: var(--_uia-control-padding);

  border: var(--_uia-control-border);
  border-radius: var(--_uia-control-border-radius);
  background-image: linear-gradient(
    var(--uia-control-background-degree, 135deg),
    var(
        --uia-control-background-start-color,
        var(--uia-control-background-color)
      )
      var(--uia-control-background-start-position, 0),
    var(--uia-control-background-end-color, var(--uia-control-background-color))
      var(--uia-control-background-end-position, 100%)
  );
}

.uia-control__group:has(> :nth-child(2)) {
  gap: var(--uia-control-gap, 0.5rem);
}

.uia-control__group:has(> .uia-control__icon) {
  --_uia-control-icon-size: var(--uia-control-icon-size, 1.25rem);
}

.uia-control__icon {
  inline-size: var(--uia-control-icon-main-size, var(--_uia-control-icon-size));
  block-size: var(--uia-control-icon-extra-size, var(--_uia-control-icon-size));
}
/*
=====
HELPERS
=====
*/

.ha-screen-reader {
  width: var(--ha-screen-reader-width, 1px);
  height: var(--ha-screen-reader-height, 1px);
  padding: var(--ha-screen-reader-padding, 0);
  border: var(--ha-screen-reader-border, none);

  position: var(--ha-screen-reader-position, absolute);
  clip: var(--ha-screen-reader-clip, rect(1px, 1px, 1px, 1px));
  overflow: var(--ha-screen-reader-overflow, hidden);
}

/*
=====
MENU STYLES
=====
*/

.cdpn-mobile-menu {
  font-family: "Prompt", sans-serif !important;
  display: none;
  --_cdpn-mobile-menu-text-color: #ebecef;
  --_cdpn-mobile-menu-circle-size: var(--cdpn-mobile-menu-circle-size, 6.25rem);
  --_cdpn-mobile-menu-circle-height: calc(
    var(--_cdpn-mobile-menu-circle-size) / 2
  );
  --_cdpn-mobile-menu-circle-background-color: var(
    --cdpn-mobile-menu-circle-background-color,
    #222
  );

  --_cdpn-mobile-menu-hamburger-width: var(
    --cdpn-mobile-menu-hamburger-width,
    1.75rem
  );
  --_cdpn-mobile-menu-hamburger-height: var(
    --cdpn-mobile-menu-hamburger-height,
    1.25rem
  );

  --uia-hamburger-width: var(--_cdpn-mobile-menu-hamburger-width);
  --uia-hamburger-height: var(--_cdpn-mobile-menu-hamburger-height);
  --uia-hamburger-background-color: var(
    --cdpn-mobile-menu-hamburger-background-color,
    var(--_cdpn-mobile-menu-text-color)
  );
  --uia-hamburger-position: absolute;

  inline-size: 100%;

  flex-direction: column;
  align-items: center;

  position: fixed;
  inset-block-end: 0;
  inset-inline-start: 0;
  z-index: var(--cdpn-mobile-menu-z-index, 9998);
}

.cdpn-mobile-menu__container {
  box-sizing: border-box;
  inline-size: 100%;
  block-size: 100%;
  margin-top: 50px;
  transition: opacity 0.2s ease-out;
  opacity: 0;

  display: flex;

  z-index: 2000000;
}

.cdpn-mobile-menu__list {
  --uia-control-padding: 1rem 0.5rem;

  box-sizing: border-box;
  display: var(--cdpn-mobile-menu-list-display, none);
  inline-size: 100%;
  max-block-size: 100%;
  padding: 1rem 2rem;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  font-size: 1.25rem;
  font-weight: 600;

  color: var(
    --cdpn-mobile-menu-link-color,
    var(--_cdpn-mobile-menu-text-color)
  );
}

.cdpn-mobile-menu__toggle {
  --_cdpn-mobile-menu-dot-size: var(--cdpn-mobile-menu-dot-size, 1em);

  box-sizing: border-box;
  inline-size: var(--_cdpn-mobile-menu-circle-size);
  block-size: var(--_cdpn-mobile-menu-circle-height);
  flex: none;

  position: relative;
  isolation: isolate;
  top: 10px; /* Przycisk na górze */
  left: 10px;
  z-index: 1000;
}

.cdpn-mobile-menu__toggle::before {
  content: "";
  box-sizing: border-box;
  font-size: var(--_cdpn-mobile-menu-circle-size);
  inline-size: var(--_cdpn-mobile-menu-dot-size);
  block-size: var(--_cdpn-mobile-menu-dot-size);
  /* border is used for Windows High Contrast mode */
  border: 1px solid var(--_cdpn-mobile-menu-circle-background-color);

  background-color: var(--_cdpn-mobile-menu-circle-background-color);
  border-radius: 50%;

  position: absolute;
  inset-block-end: -0.5em;

  z-index: -1;
}

.cdpn-mobile-menu__hamburger {
  inset-inline-start: 60%;
  inset-block-end: -1.5rem;
  transform: translateX(-40%);
}

/*
=====
MENU STATES
=====
*/

.js-cdpn-mobile-menu_activated {
  --cdpn-mobile-menu-dot-size: 100vmax;
  --cdpn-mobile-menu-list-display: block;

  --uia-hamburger-top-line-position: 50%;
  --uia-hamburger-last-line-position: 50%;
  --uia-hamburger-top-line-transform: translate3d(0, -50%, 0) rotate(45deg);
  --uia-hamburger-last-line-transform: translate3d(0, -50%, 0) rotate(135deg);
  --uia-hamburger-middle-line-transform: rotate(-45deg)
    translate3d(-0.285em, -0.3em, 0);
  --uia-hamburger-middle-line-opacity: 0;

  block-size: 100%;
}

.js-cdpn-mobile-menu_activated .cdpn-mobile-menu__container {
  flex-grow: 1;
  opacity: 1;

  will-change: opacity;
  transition-duration: 0.2s;
  transition-delay: 0.3s;
}

.js-cdpn-mobile-menu_activated .cdpn-mobile-menu__toggle::before {
  transform: translate3d(-50vh, -50vh, 0) scale(5);
}

@media (prefers-reduced-motion: no-preference) {
  .cdpn-mobile-menu__toggle::before {
    will-change: width, height;
    transition: transform 0.25s cubic-bezier(0.04, -0.1, 0.29, 0.98),
      width 0.25s cubic-bezier(0.04, -0.1, 0.29, 0.98),
      height 0.25s cubic-bezier(0.04, -0.1, 0.29, 0.98);
  }

  .js-cdpn-mobile-menu_activated .cdpn-mobile-menu__toggle::before {
    transition-duration: 1s;
  }
}

/*
=====
DEMO
=====
*/

:root {
  --cdpn-mobile-menu-circle-background-color: #161616;
  --cdpn-mobile-menu-hamburger-background-color: #ebecef;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cdpn-mobile-menu-circle-background-color: #161616;
    --cdpn-mobile-menu-hamburger-background-color: #ebecef;

    --accent-mode-color: #ebecef;
    --main-mode-color: #161616;
  }
}
.kolora {
  display: block;
  white-space: nowrap; /* Zapobiega łamaniu tekstu */
  overflow: hidden; /* Ukrywa tekst, który nie mieści się w elemencie */
  text-overflow: ellipsis; /* Dodaje trzy kropki, gdy tekst jest za długi */

  color: #ffffff; /* Ustal kolor linków */
  text-decoration: none; /* Usuń podkreślenie */
  padding: 8px 12px; /* Wewnętrzny odstęp */

  border-radius: 4px; /* Zaokrąglone rogi */
  transition: background-color 0.3s, color 0.3s; /* Płynna zmiana kolorów */
}

.kolora:hover {
  color: #ffffff; /* Kolor tekstu przy najechaniu */
}

.kolora:active {
  color: #ffffff; /* Kolor tekstu w trakcie kliknięcia */
}

:focus-visible {
  outline: 0px solid currentColor;
  outline-offset: 5px;
}

.sub-menu {
  display: none; /* Ukryj podmenu domyślnie */
  padding-left: 20px; /* Wyrównanie podmenu */
  list-style: none;
}

.sub-menu.open {
  display: block; /* Pokaż podmenu, gdy klasa 'open' jest aktywna */
}

.przykład {
  background-color: rgba(0, 187, 255, 0.121);
  border-radius: 15px;
  padding: 15px;
}
.definicjaa {
  background-color: rgba(255, 217, 0, 0.594);
  border-radius: 15px;
  padding: 15px;
}

#przenies-na-gore {
  display: none; /* Ukryj przycisk domyślnie */
  position: fixed;
  top: 7.5px;
  right: 10px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  background-color: unset;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.fizykafascynuje {
  display: flex;
  align-items: center;
  font-family: "Prompt", sans-serif;
  padding: 20px;
}

.logo-container {
  flex: 0 0 auto;
  margin-right: 20px;
}

.logo {
  width: 100px !important;
  height: 100px !important;
  border-radius: 50% !important; /* Nadaje okrągły kształt */
}

.description {
  flex: 1;
}

.description h2 {
  font-size: 24px;
  margin: 0;
  color: #333;
}

.description p {
  font-size: 16px;
  color: #666;
  margin-top: 8px;
  line-height: 1.5;
}

#przenies-na-gore > i {
  position: absolute;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#przenies-na-gore:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

#user,
#user2 {
  text-align: center;
  display: none; /* Ukryj przycisk domyślnie */
  position: fixed;
  top: 7.5px;
  right: 70px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  background-color: unset;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#user:hover,
#user2:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

#theme-selector {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 8px;
  appearance: none;
  background-color: #fff;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="gray" class="bi bi-chevron-down" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 5.646a.5.5 0 0 1 .708 0L8 11.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

#theme-selector select:focus {
  outline: none;
  border-color: #007aff;
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2);
}

#helpme {
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
  position: relative;
  top: 20px;
  appearance: none !important;
  text-align: center !important;
  justify-content: center !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  width: 40px !important;
  height: 40px !important;
}

#helpme {
  transform: scale(1.1);
}

#helpWindow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  max-width: 400px; /* maksymalna szerokość okna */
  width: 80%; /* szerokość okna jako procent szerokości okna przeglądarki */
  z-index: 1000;
  font-family: "Prompt", sans-serif;
  line-height: 105%;
}

#helpWindow.active {
  transform: translate(-50%, -50%) scale(1);
}

#closeButton {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #777;
  transition: transform 0.2s ease-in-out;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

#closeButton:hover {
  transform: scale(1.1);
}

#helpText {
  margin-top: 50px;
}

.autotabelka {
  width: 74%;
  text-align: center;
  margin-left: 13%;
  border-collapse: collapse;
}

.autotabelka th,
.autotabelka td {
  border: 2px solid #dddddd;
  padding: 8px;
}

.autotabelka td {
  text-align: center;
  font-weight: 500;
}

.autotabelka th {
  background-color: #f2f2f2;
  text-align: center;
  font-weight: 600;
  font-size: 25px;
}
.table-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  font-family: "Prompt", sans-serif;
}
.hiddentable {
  display: none !important;
}

.autotabelka tr td h4 {
  font-weight: 600;
}

.generator-tytul {
  text-align: center;
  font-family: "Prompt", sans-serif;
  padding: 5px;
}

.formula {
  overflow-x: auto;
  overflow-y: hidden;
}

.formula-row h4 {
  font-weight: 600;
}

.MJX_LiveRegion {
  background-color: transparent !important;
  height: 0px !important;
  width: 0px !important;
  padding: 0px !important;
}
.MJX_HoverRegion {
  background-color: transparent !important;
  height: 0px !important;
  width: 0px !important;
  padding: 0px !important;
}
.MJX_ToolTip {
  background-color: transparent !important;
  height: 0px !important;
  width: 0px !important;
  padding: 0px !important;
}

.opis-wzoru {
  max-width: 1500px;
  margin: 0 auto;
  font-weight: normal;
}

.container-zadania {
  margin-top: 2% !important;
  width: 90%;
  min-width: 200px;
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 25px;
  padding-right: 25px;
  padding-bottom: 25px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  min-height: 200px;
}

.container-zSpis {
  width: 90%;
  min-width: 200px;
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 25px;
  padding-right: 25px;
  padding-bottom: 25px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  min-height: 200px;
  font-family: "Prompt", sans-serif;
}

.container-zSpis ul li {
  font-size: 0.9em;
}

.spis-dzialy {
  text-decoration: none;
  color: black;
  font-family: "Prompt", sans-serif;
}

.block-acolor {
  text-decoration: none;
}

.ukryj {
  display: none;
}
#additional-blocks {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
#additional-blocks.active {
  max-height: 3000px; /* or any other appropriate value */
}

.section {
  margin-bottom: 30px;
  padding: 15px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#toggle-button {
  text-decoration: none;
  color: black;
}

#theme_selector {
  margin: 20px 0;
}

#theme_selector label {
  display: block;
  margin: 10px 0;
  font-size: 1em;
  color: #333;
}

#theme_selector input[type="radio"] {
  margin-right: 10px;
}

#additional-praca-blocks {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
#toggle-praca-button {
  text-decoration: none;
  color: black;
}
#additional-praca-blocks.active {
  max-height: 2000px; /* or any other appropriate value */
}

#additional-astronomical-blocks {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
#toggle-astronomical-button {
  text-decoration: none;
  color: black;
}
#additional-astronomical.active {
  max-height: 2000px; /* or any other appropriate value */
}

button#new-fact-button {
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
}

button#new-fact-button:hover {
  background-color: #45a049;
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

button#new-fact-button:focus {
  outline: none;
}

.black-container {
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  width: 100%;
  padding-top: 50vh;
}
.black-container .star {
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: yellow;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.black-container .planet {
  width: 15px;
  height: 15px;
  background-color: blue;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
}
.vector {
  position: absolute;
  height: 4px;
  transform-origin: 0% 50%;
}
.vector::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 15px;
  border-color: transparent transparent transparent red;
  top: 50%;
  right: 0;
  transform: translate(100%, -50%);
}
.velocity-vector::after {
  border-color: transparent transparent transparent green;
}
.velocity-vector {
  background-color: green;
}

df-messenger {
  z-index: 10000;
  position: fixed;
  --df-messenger-font-color: #000;
  --df-messenger-font-family: Google Sans;
  --df-messenger-chat-background: #f3f6fc;
  --df-messenger-message-user-background: #d3e3fd;
  --df-messenger-message-bot-background: #fff;
  bottom: 80px !important;
  right: 10px;
}

.force-vector {
  background-color: red;
}
.black-container .controls {
  color: white;
  width: 70vw;
  margin-left: 5%;
  margin-bottom: 2%;
  gap: 20px;
}
.black-container .controls label,
.black-container .controls p {
  align-items: center;
  color: white;
  margin: 0;
}
.black-container .controls input[type="range"] {
  width: 35%;
}
.black-container .controls .checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.container-ciekawostki {
  width: 1400px;
  max-width: 90vw;
  margin: 50px auto;
  padding: 1% 2% 2% 2%;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-family: "Prompt", sans-serif;
}

.bg-kalkulator-index {
  width: 1400px;
  max-width: 90vw;
  margin: 40px auto;
  padding: 1% 2% 2% 2%;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-family: "Prompt", sans-serif;
}

.timeline {
  position: relative;
  max-width: 90vw;
  width: 1400px;
  margin: 50px auto;
  padding: 1% 2% 2% 2%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-family: "Prompt", sans-serif;
}
.timeline-item {
  padding: 20px;
  border-left: 2px solid #3498db;
  position: relative;
  margin-bottom: 20px;
  background: #f9f9f9;
}

.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-item:before {
  content: "";
  position: absolute;
  top: 0;
  left: -6px;
  width: 12px;
  height: 12px;
  background: #3498db;
  border-radius: 50%;
}
.timeline-item .date {
  margin: 0;
  font-size: 18px;
  color: #333;
}
.timeline-item h3 {
  margin-top: 5px;
  font-size: 24px;
  color: #333;
}
.timeline-item p {
  margin: 10px 0;
  color: #666;
}

.table-container-phone {
  display: none;
}

.quiz-container {
  margin: 50px auto;
  background-color: #fff;
  padding: 1% 2% 2% 2%;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin-top: 50px;
  width: 1400px;
  max-width: 90vw;
  font-family: "Prompt", sans-serif;
}
.quiz-container.animate {
  transform: scale(1.05);
}
.quiz-header {
  margin-bottom: 20px;
}
.quiz-question {
  margin-bottom: 10px;
}
.quiz-options {
  list-style: none;
  padding: 0;
}
.quiz-options li {
  margin-bottom: 10px;
  transition: background-color 0.3s ease;
}
.quiz-button {
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: "Prompt", sans-serif;
}
.quiz-button:hover {
  background-color: #0056b3;
}

.correct {
  border-radius: 5px;
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}
.incorrect {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
  border-radius: 5px;
}
.score {
  margin-top: 20px;
}
.result-very-low {
  color: #ff0000;
}
.result-low {
  color: #ff7f00;
}
.result-medium {
  color: #ffd000;
}
.result-high {
  color: #008000;
}
@media only screen and (max-width: 2560px) {
  .container-nauka {
    max-width: 1600px;
  }
  .container-nauka-all {
    transition: background-color 0.3s;
    display: flex;
    max-width: 100vw;
    width: 100%;
  }
  .container-nauka-all {
    transition: background-color 0.3s;
    display: flex;

    width: 100%;
  }
  .container-reklamy {
    max-width: 550px;
    margin-left: 20px;
    overflow: hidden;
    width: 400px;
    justify-content: right;
    justify-items: right;
  }
}
@media only screen and (max-width: 1920px) {
  .container-nauka-all {
    transition: background-color 0.3s;
    display: flex;
    max-width: 100vw;
    width: 100%;
  }
  .container-nauka {
    max-width: 1000px;
  }

  special-navbar {
    z-index: 1000 !important;
  }

  .container-reklamy {
    max-width: 350px;
    margin-left: 20px;
    overflow: hidden;
    width: 300px;
    justify-content: right;
    justify-items: right;
  }
  .logo-img {
    top: 5vh;
    max-width: 800px;
    max-height: 160px;
  }

  .opis-wzoru {
    max-width: 1200px;
    margin: 0 auto;
  }
  .container-ciekawostki div[style="line-height: normal; text-align: justify"] {
    max-width: 70%;
    text-align: center;
    margin: 0 auto;
  }
}
@media only screen and (max-width: 1550px) {
  .container-nauka {
    max-width: 800px;
  }
  .container-ciekawostki div[style="line-height: normal; text-align: justify"] {
    max-width: 80%;
    text-align: center;
    margin: 0 auto;
  }
  .autotabelka {
    width: 90%;
    margin-left: 5%;
  }
  .opis-wzoru {
    max-width: 800px;
    margin: 0 auto;
  }
}

@media only screen and (max-width: 1325px) {
  .container-nauka-all {
    width: 100%;
    max-width: unset;
  }
  .container-reklamy {
    display: none !important;
    margin-left: 0px !important;
    max-width: 0px;
  }
  .reklamy {
    max-width: 0px;
  }
  .logo-img {
    top: 5vh;
    max-width: 600px;
    max-height: 120px;
  }
  .container-ciekawostki div[style="line-height: normal; text-align: justify"] {
    max-width: none;
    text-align: center;
    margin: 0 auto;
  }
  .spis-tresci {
    display: none !important;
  }
  .cdpn-mobile-menu {
    display: flex;
  }
  body[data-theme="default"] .nav,
  body[data-theme="alternative"] .nav {
    display: none !important;
  }
  #user:hover {
    background-color: unset;
  }

  #user2 {
    display: none !important;
  }

  #custom-select-wrapper {
    font-size: 1.4rem !important;
    right: 15px;
    left: unset;
    top: 15px;
    z-index: unset;
    width: 65px;
  }

  #user {
    z-index: unset;
    right: 65px;
  }

  #custom-select-wrapper2 {
    display: none;
  }
  .custom-select2 {
    display: none;
  }
  :root {
    --df-messenger-chat-window-height: 460px !important;
  }

  #przenies-na-gore {
    display: none; /* Ukryj przycisk domyślnie */
    position: fixed;
    bottom: 25px !important;
    top: unset !important;
    right: 15px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background-color: #161616;
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  #przenies-na-gore:hover {
    background-color: #2e323b;
  }
  .calculator {
    top: 80px;
  }
  .toggle-button-glowna {
    max-width: 800px !important;
  }
  .tytul {
    width: 100%;
    top: 2.5vh;
    position: absolute;
    text-align: center;
    color: rgb(255, 255, 255);
    font-size: 26px;
    line-height: 45px;
    -webkit-text-stroke: rgb(255, 255, 255) 1px;
  }

  .arrow-right {
    color: #000;
  }

  .inner-container {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Poprawiony cień */
    transition: box-shadow 0.3s ease; /* Dodano płynną animację */
    max-width: none;
  }

  .inner-container:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Efekt cienia po najechaniu myszką */
  }

  .inner-container-glowna {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Poprawiony cień */
    transition: box-shadow 0.3s ease; /* Dodano płynną animację */
    flex: 1 0 27%;
    max-width: 27%;
  }

  .inner-container-glowna:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Efekt cienia po najechaniu myszką */
  }

  .autotabelka th,
  .autotabelka td {
    border: 2px solid #d1d1d1;
    padding: 8px;
  }

  .autotabelka td {
    text-align: left;
    font-weight: 500;
  }
  .autotabelka th {
    font-size: 20px;
  }

  .autotabelka .formula-row > td[colspan="3"] {
    text-align: center;
  }

  .autotabelka {
    width: auto;
    text-align: center;
    justify-content: center;
    margin: 0 auto;
  }

  .sticky2 {
    position: fixed;
    left: 0;
    top: 51px !important;
    z-index: 200;
  }

  .links a {
    text-decoration: none;
    color: #fff;
  }

  .calculatordescription {
    font-size: 15px;
    padding-left: 5%;
    font-family: "Prompt", sans-serif;
    line-height: 15px;
  }

  .search-wrapper {
    font-size: 15px;
    padding-top: 2%;
    padding-left: 2%;
  }

  .search-container1 {
    display: block;
    line-height: 95%;
    text-align: center;
    padding-left: 2%;
    padding-top: 1%;
    font-size: 25px;
    margin-bottom: 20px;
    font-family: "Prompt", sans-serif;

    font-weight: 600;
  }

  .search-container1-input {
    margin-left: 2%;
    width: 90%;
    height: 30px;
    font-size: 15px;
    margin-top: 3vh;
  }
  .search-container2 {
    display: block;
    line-height: 95%;
    text-align: center;
    padding-left: 2%;
    padding-top: 1%;
    font-size: 25px;
    margin-bottom: 20px;
    font-family: "Prompt", sans-serif;
    margin-top: 3vh;
    font-weight: 600;
  }

  .search-container2-input {
    margin-left: 2%;
    width: 90%;
    height: 30px;
    font-size: 15px;
    margin-top: 3vh;
  }
  .przerwareg {
    display: none;
  }
}

@media only screen and (max-width: 960px) {
  .equation {
    overflow-x: auto;
    overflow-y: hidden;
  }
  .container-nauka {
    box-sizing: border-box !important;
    max-width: 100vw !important;
  }
  body[data-theme="default"] .custom-options,
  body[data-theme="default"] .custom-options2 {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #2f2f2f;
  }
  .footer {
    background-color: #161616 !important;
  }

  body[data-theme="alternative"] .custom-options,
  body[data-theme="alternative"] .custom-options2 {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: linear-gradient(
      45deg,
      rgba(106, 17, 203, 1),
      rgba(37, 117, 252, 1)
    );
  }
  body[data-theme="alternative"] .tytul,
  body[data-theme="default"] .tytul {
    font-size: 20px !important;
  }
  body[data-theme="alternative"] .tytul h1 {
    margin: auto;
    margin-top: 10px;
    padding: 10px;
    width: fit-content;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    border-radius: 20px;
  }
  body[data-theme="alternative"] .tytul h2 {
    margin: auto;
    margin-top: 10px;
    padding: 10px;
    width: fit-content;
    background: unset !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body[data-theme="default"] .tytul h1 {
    margin: auto;
    margin-top: 10px;
    padding: 10px;
    width: fit-content;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    border-radius: 20px;
  }
  body[data-theme="default"] .tytul h2 {
    margin: auto;
    margin-top: 10px;
    padding: 10px;
    width: fit-content;
    background: unset !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .tytul h1 {
    margin: auto;
    margin-top: 20px;
    padding: 10px;
    width: fit-content;
  }
  .tytul h2 {
    margin: auto;
    margin-top: 10px;
    padding: 10px;
    width: fit-content;
  }
  .black-container input[type="range"] {
    width: 55% !important;
    scale: 1.15;
    margin-left: 10%;
  }

  .controls {
    scale: 0.9;
  }

  .instructions {
    max-width: unset;
    padding-left: unset;
    padding-top: 20px;
  }
  .dsp {
    display: unset;
  }
  .hide-on-small-screen {
    display: none;
  }

  #helpme {
    width: 50px !important;
    height: 50px !important;
  }
  .toggle-button-glowna {
    max-width: 700px !important;
  }
  .toggle-sticky-button {
    display: none;
  }
  .page-container {
    position: unset;
    top: unset;
  }
  .page-container {
    margin-right: 0px;
  }

  .calculator {
    position: unset !important;
    height: fit-content;
    max-height: unset;
    overflow-y: unset;
  }
  .calculator {
    position: unset !important;
    height: fit-content;
    max-height: unset;
    overflow-y: unset;
  }
  .description-formula2 {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-top: 2%;
  }

  .container-all {
    display: block;
    justify-content: center;
    margin-bottom: unset;
  }

  .calculator,
  .description-formula {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
  }
  .container-all {
    display: block;
    justify-content: center;
  }
}

@media only screen and (max-width: 800px) {
  .logo-img {
    top: 10vh;
    max-width: 425px;
    max-height: 85px;
  }
  .inner-container {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px;
  }

  .ostronie {
    font-size: 30px !important;
  }

  .section {
    line-height: 1;
  }
  .container {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 300px;
  }
  .bg-kalkulator-index {
    margin-top: 20px !important;
  }
  .quiz-container {
    width: 100%;
    margin: 50px auto;
    padding: 5% 5% 5% 5%;
  }
  .toggle-button-glowna {
    max-width: 500px !important;
  }

  .tytul {
    color: rgb(255, 255, 255);
    font-size: 21px;
    line-height: 45px;
  }
  .tytul h1 {
    margin: auto;
    margin-top: 20px;
    padding: 10px;
    width: fit-content;

    border-radius: 20px;
  }
  .tytul h2 {
    margin: auto;

    width: fit-content;
  }

  .inner-container a h1 {
    line-height: 0.98 !important;
    font-size: 1.5rem;
  }

  .show-formula-phone {
    font-family: "Prompt", sans-serif;
    cursor: pointer;
    background-color: #4caf50;
    color: white;
    padding: 8px 16px; /* Mniejsze wartości paddingu */
    border: none;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px; /* Mniejsza wielkość czcionki */
    margin: 4px 2px;
    transition-duration: 0.4s;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  }

  .show-formula-phone:hover {
    background-color: #45a049;
  }

  .autotabelka tr td {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .autotabelka tr td:nth-child(3) {
    font-size: 0.9em;
  }

  .autotabelka {
    width: 100vw;
    border-collapse: collapse;
    margin-left: 0;
    font-family: "Prompt", sans-serif !important;
  }

  .table-container {
    display: none;
  }

  .table-container-phone {
    max-width: 100vw !important;
    overflow-x: hidden;
    display: block;
  }

  .autotabelka th,
  .autotabelka td {
    border: 1px solid #dddddd;
    padding: 8px;
    text-align: left;
    max-width: 95vw;
  }

  .autotabelka th {
    display: none;
  }
  .autotabelka td {
    display: block;
    width: 100vw;
  }

  .hidden-formula {
    display: none;
    margin-bottom: 8px; /* Dodaj odstęp między opisem a przyciskiem */
  }

  .arrow-right {
    color: rgb(0, 0, 0);
  }
  .formula-row p {
    font-size: 17px !important;
    font-weight: normal !important;
    -webkit-font-size: 15px !important; /* Dodaj prefiks dla Safari na iOS */
  }
  .timeline {
    width: 100%;
    padding: 5% 5% 5% 5%;
  }
  .footer-col {
    width: 50%;
    margin-bottom: 30px;
  }
  .footer-bottom {
    font-size: 14px;
    text-align: center;
    display: block;
    gap: 20px;
    justify-content: center;
    color: white;
  }

  .container-ciekawostki {
    width: 100%;
    margin: 50px auto;
    padding: 5% 5% 5% 5%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-family: "Prompt", sans-serif;
  }

  .bg-kalkulator-index {
    width: 100%;
    margin: 50px auto;
    padding: 5%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-family: "Prompt", sans-serif;
  }

  .container-kalkulatory {
    max-width: 95%;
    display: block;
    justify-content: center;
    padding: 0;
  }
}

@media only screen and (max-width: 660px) {
  .container-zSpis {
    width: unset;
  }
  .inner-container-glowna {
    flex: 1 0 45%;
    max-width: 40%;
    font-size: 0.9rem;
    padding: 8px;
  }
  .blocks a:nth-child(n + 4) {
    display: none;
  }
}

@media only screen and (max-width: 610px) {
  .accordion {
    width: 100%;
    margin: 10px;
    max-width: none;
    background-color: #1c1c1c; /* Ciemniejsze tło dla akordeonu */
  }

  .accordion-header {
    font-size: 18px;
    padding: 14px;
    background-color: #1c1c1c; /* Ciemniejsze tło nagłówka */
    color: #e0e0e0;
  }

  .accordion-header:hover {
    background-color: #1e1e1e; /* Lekko jaśniejszy kolor tła po najechaniu */
  }

  .accordion-content {
    background-color: #1a1a1a; /* Ciemniejsze tło dla treści akordeonu */
  }

  .accordion-content a {
    background-color: #2a2a2a; /* Ciemniejsze tło dla linków */
  }

  .accordion-content a:hover {
    background-color: #4a4a4a; /* Jaśniejszy kolor tła po najechaniu na linki */
  }

  .accordion-content a {
    font-size: 14px;
    padding: 10px;
  }

  .toggle-button-glowna {
    max-width: 300px !important;
  }

  .select-field-zadania {
    min-width: 200px;
  }
  .footer-col {
    width: 100%;
  }

  .container-zadania {
    margin-top: 2% !important;
    width: 90%;
    min-width: 200px;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 25px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: 200px;
  }
  .wybor-generator {
    display: block;
  }

  .container > img {
    width: 100% !important;
    height: 300px;
    object-fit: cover; /* Dopasowanie obrazu tak, aby pokrywał cały kontener */
    object-position: center; /* Wyśrodkowanie obrazu */
    display: block;
  }

  .formula-row p {
    -webkit-font-size: 15px !important; /* Dodaj prefiks dla Safari na iOS */
    font-size: 15px !important;
    font-weight: normal !important;
  }

  .containercalculator2 {
    border-radius: 20px;
    background-color: #4d4d4d;
    padding-right: 2%;
    margin: 0 auto !important; /* Ustawienie marginesów poziomych na "auto" wysrodkuje blok */
    max-width: 90%; /* Ustawienie maksymalnej szerokości bloku */
  }

  .description-formula2 {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-top: 2%;
  }

  .container-all {
    display: block;
    justify-content: center;
  }

  .calculator,
  .description-formula {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
  }

  .container {
    max-height: 100px;
  }

  .tytul h1 {
    margin: auto;
    margin-top: 20px;
    padding: 10px;
    width: fit-content;
    border-radius: 20px;
  }
  .tytul {
    top: 2.5vh !important;
  }
  .tytul h2 {
    display: none;
    margin: auto;
    margin-top: 0px;
    font-size: 35px;
    width: fit-content;
  }

  .sticky2 {
    position: fixed;
    left: 0;
    top: calc(2% + 50px);
    z-index: 100;
  }

  .links a {
    text-decoration: none;
    color: #fff;
  }

  .calculatordescription {
    font-size: 15px;
    padding-left: 5%;
    font-family: "Prompt", sans-serif;
    line-height: 15px;
  }

  .search-wrapper {
    font-size: 15px;
    padding-top: 2%;
    padding-left: 2%;
  }

  .search-container1 {
    display: block;
    line-height: 95%;
    text-align: center;
    padding-left: 2%;
    padding-top: 1%;
    font-size: 25px;
    margin-bottom: 20px;
    font-family: "Prompt", sans-serif;
    margin-top: 3vh;
  }

  .search-container1-input {
    margin-left: 2%;
    width: 90%;
    height: 30px;
    font-size: 15px;
    margin-top: 3vh;
  }
  .search-container2 {
    display: block;
    line-height: 95%;
    text-align: center;
    padding-left: 2%;
    padding-top: 1%;
    font-size: 25px;
    margin-bottom: 20px;
    font-family: "Prompt", sans-serif;
    margin-top: 3vh;
  }

  .search-container2-input {
    margin-left: 2%;
    width: 90%;
    height: 30px;
    font-size: 15px;
    margin-top: 3vh;
  }
}

@media only screen and (max-width: 400px) {
  .container-nauka > h1 {
    line-height: 1;
    font-size: xx-large;
  }
  .logo-img {
    max-width: 300px;
    max-height: 60px;
  }
  .inner-container-glowna {
    flex: 1 0 45%;
    max-width: 45%;
    font-size: 0.8rem;
    padding: 8px;
    margin: 5px;
  }
}
@media only screen and (max-width: 300px) {
  .logo-img {
    max-width: 200px;
    max-height: 40px;
  }
  .inner-container-glowna {
    flex: 1 0 45%;
    max-width: 45%;
    font-size: 0.8rem;
    padding: 8px;
    margin: 5px;
  }
}
