body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

#loading {
  width: 100vw;
  height: 100vh;
  background-color: white;
  position: fixed;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.5s ease-out;
  top: 0;
}

#loading img {
  animation: breathing 2s ease-in-out infinite;
}

@keyframes breathing {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

#loading img {
  width: 200px;
  height: 200px;
}

strong {
  color: #30a6a8;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 1000;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header img {
  width: 100px;
}

#account img {
  width: 50px !important;
}

#name_of_user {
  font-size: 17px;
}

#account {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dropdown-content {
  display: grid;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  padding: 12px 16px;
  z-index: 1;
  transform: translateY(65%);
  border-radius: 20px;
  width: max-content;
  visibility: hidden; /* Zamiast display: none; użyj visibility */
  opacity: 0;
  transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s; /* Dodaj opóźnienie dla visibility */
}

.dropdown-content a {
  font-size: 17px !important;
}

#account:hover .dropdown-content {
  visibility: visible; /* Spraw, aby element był widoczny przy hover */
  opacity: 1;
  transition-delay: 0s; /* Usuń opóźnienie dla przejścia opacity */
}

#buttons {
  display: flex;
  transform: translateX(-15px);
}

#media_buttons {
  display: flex;
  align-items: center;
  justify-content: center;
}

#info {
  font-size: 35px;
  position: absolute;
  left: 0;
  right: 0;
  right: 0;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: -1;
}

a {
  text-decoration: none;
  color: black;
  font-size: 25px;
  margin: 5px;
  padding: 7px;
  cursor: pointer;
  text-align: center;
}

#buy {
  background-color: #30a6a8;
  color: white;
  border-radius: 20px;
  padding: 10px;
}

#outside_top_info {
  display: flex;
  justify-content: center;
  align-items: center;
}

#notification {
  display: flex;
  background-color: #30a6a888;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 20px;
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  transition: top 0.5s ease-in-out;
}

#notification.show {
  top: 20px;
}

#notification_message {
  max-width: 400px;
  font-size: 20px;
  margin-left: 20px;
}

#top_info {
  font-size: 50px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px;
  background-color: #d16003;
  width: fit-content;
  padding: 10px;
  border-radius: 20px;
  color: white;
}

/* Dodanie stylów Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  padding: 20px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
  text-align: center;
  align-items: center;
}

.lightbox img {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  height: auto;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 20px;
  right: 55px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.lightbox .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  cursor: pointer;
  z-index: 1001;
  user-select: none;
  font-size: 20px;
}

.lightbox #left-arrow-lightbox {
  left: 20px;
}

.lightbox #right-arrow-lightbox {
  right: 60px;
}

#gallery-container {
  display: flex;
  /* Zmienione z grid na flex, aby lepiej kontrolować pozycjonowanie */
  position: relative;
  width: 100vw;
  /* Szerokość na całą dostępną szerokość widoku */
  justify-content: center;
  /* Centruje album */
  overflow: hidden;
  /* Zapobiega wyświetlaniu się poza kontenerem */
}

#gallery-container::before,
#gallery-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  /* Zapewnia, że pokryją całą wysokość */
  width: calc((100vw - (3 * (262.5px + 2 * 15px))) / 2);
  /* Dostosowuje szerokość, uwzględniając marginesy */
  background-color: white;
  /* Kolor tła białych pudełek */
  z-index: 2;
}

#gallery-container::before {
  left: 0;
}

#gallery-container::after {
  right: 0;
}

#album {
  display: flex;
  width: calc(3 * (262.5px + 40px));
  transition: transform 0.5s ease-in-out;
}

#album img {
  height: 350px;
  width: 262.5px;
  flex-shrink: 0;
  margin: 20px;
  border-radius: 10px;
}

.arrow,
.arrow-top {
  cursor: pointer;
  user-select: none;
  font-size: 24px;
  padding: 0 20px;
  z-index: 3;
  color: white;
  background-color: rgb(183, 183, 183);
  border-radius: 50px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.arrow-top {
  background-color: rgba(183, 183, 183, 0.7);
}

#left-arrow-top {
  left: 0;
}

#right-arrow-top {
  right: 0;
}

#left-arrow {
  left: calc((100vw - (3 * (262.5px + 2 * 25px))) / 2);
}

#right-arrow {
  right: calc((100vw - (3 * (262.5px + 2 * 25px))) / 2);
}

#czy_warto,
#nasze_produkty {
  font-size: 30px;
  text-align: center;
  margin-top: 35px;
}

#nasze_produkty {
  font-weight: 700;
}

#best {
  font-size: 45px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  text-align: center;
}

#info_main {
  font-size: 30px;
}

#buy_main {
  display: grid;
  justify-content: center;
  justify-items: center;
  align-items: center;
  margin: 20px;
}

#buy_main_btn {
  background-color: #30a6a8;
  padding: 10px 20px 10px 20px;
  font-size: 30px;
  border-radius: 20px;
  width: 30%;
}

#icons_div_mobile {
  display: grid;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#icons_div_mobile .icon_desc {
  width: 90vw !important;
  margin-bottom: 10px;
}

#info_icons {
  display: flex;
  justify-content: center;
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 20px;
}

#icons {
  display: flex;
  justify-content: space-around;
}

#icons_desc {
  display: flex;
  justify-content: space-around;
}

#icons_desc b {
  font-size: 20px;
}

.icon_desc {
  text-align: center;
}

.icon_desc {
  width: 30vw;
}

.types_of_course {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.types_of_course .course {
  margin: 30px;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s ease-in-out;
}

.course {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course_photo {
  margin-top: auto;
}

.course:hover {
  transform: scale(1.05);
}

.course_name {
  font-weight: 700;
  font-size: 30px;
}

.course_price {
  font-weight: 500;
  font-size: 25px;
}

.course_photo img {
  width: 200px;
  border-radius: 20px;
  margin: 10px 0 10px 0;
}

.option2 {
  overflow: hidden;
  position: relative;
}

.option2::before {
  content: "TOP";
  position: absolute;
  top: 71px;
  right: -40px;
  background-color: rgb(188, 0, 0);
  color: white;
  padding: 5px 10px;
  font-weight: bold;
  transform: rotate(45deg);
  transform-origin: top right;
  width: 132px;
  text-align: center;
  font-size: 20px;
}

.option3 {
  position: relative;
  overflow: hidden;
}

.option3::before {
  content: "NAJCZĘŚCIEJ\AWYBIERANY";
  position: absolute;
  top: 85px;
  right: -40px;
  background-color: rgb(0, 188, 25);
  color: white;
  padding: 5px 10px;
  font-weight: bold;
  transform: rotate(45deg);
  transform-origin: top right;
  width: 152px;
  text-align: center;
  font-size: 11px;
  white-space: pre;
}

.option7 {
  position: relative;
  overflow: hidden;
}

.option7::before {
  content: "-30%";
  position: absolute;
  top: 71px;
  right: -40px;
  background-color: rgb(188, 0, 0);
  color: white;
  padding: 5px 10px;
  font-weight: bold;
  transform: rotate(45deg);
  transform-origin: top right;
  width: 132px;
  text-align: center;
  font-size: 20px;
}

#helper {
  display: grid;
  justify-content: center;
  align-items: center;
}

#dont_know {
  font-size: 20px;
  text-align: center;
}

#helper a {
  font-size: 25px;
  background-color: #30a6a8;
  padding: 10px 20px 10px 20px;
  border-radius: 20px;
  margin: 0;
}

#lines {
  display: grid;
  justify-content: center;
  margin: 20px;
}

.line {
  background-color: #30a6a8;
  height: 2px;
  width: 80vw;
  margin: 5px;
}

#title {
  color: #d15f04;
  font-size: 30px;
  font-weight: 700;
  text-align: center;
}

#other_products {
  display: flex;
  justify-content: center;
}

.other_product {
  color: white;
  margin: 20px;
  border-radius: 20px;
  text-align: center;
  width: 30vw;
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.other_product:hover {
  transform: scale(1.05);
}

.title {
  font-size: 25px;
  font-weight: 700;
  color: white;
}

#about_me img {
  border-radius: 20px;
  height: 300px;
  margin: 30px;
}

#wanderly img {
  border-radius: 20px;
  height: 200px;
  margin: 30px;
}

#about_me,
#wanderly {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px;
}

#wanderly a {
  font-weight: 700;
}

#about {
  display: grid;
}

#about #title {
  color: black;
  font-size: 30px;
  font-weight: 700;
  text-align: left;
}

#title_wanderly {
  color: black;
  font-size: 30px;
  font-weight: 700;
  text-align: left;
}

#desc_about {
  text-align: left;
  font-size: 16px;
}

#desc_about_wanderly {
  text-align: left;
  max-width: 900px;
}

#desc_about a,
#desc_about_wanderly a {
  font-size: 16px;
  text-decoration: underline;
  margin: 0;
  padding: 0;
}

#contact #title {
  color: black;
}

#main_contact {
  display: flex;
  justify-content: center;
}

#form {
  display: grid;
}

input,
button,
#message {
  font-family: "Poppins", sans-serif;
  padding: 7px;
  margin: 10px;
  font-size: 20px;
  border-radius: 20px;
  border: 2px solid black;
}

textarea {
  resize: vertical;
  min-height: 150px;
}

#send_contact {
  cursor: pointer;
}

#social_media {
  margin-left: 40px;
  display: grid;
  align-items: center;
  justify-items: center;
  align-content: center;
}

.social {
  display: flex;
  justify-content: left;
  align-items: flex-start;
}

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

.icon img {
  width: 40px;
}

.name {
  font-size: 20px;
  margin-left: 10px;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(183, 183, 183);
  font-size: 17px;
  padding: 20px;
  text-align: center;
}

footer a {
  text-decoration: underline;
  font-size: 17px;
  margin: 5px;
  padding: 7px;
  cursor: pointer;
  text-align: center;
}

.line_vertical {
  width: 2px;
  height: 100px;
  background-color: black;
  margin: 0 10px 0 10px;
}

.types_of_course .course {
  /* Domyślnie ustawiamy, że wszystkie kursy mają być obok siebie */
  flex-basis: calc(18% - 30px); /* 25% dla 4 elementów minus jakiś margines */
}

@media (max-width: 1250px) {
  .types_of_course .course {
    /* Dwa kursy obok siebie, jeśli szerokość ekranu jest między 900px a 1250px */
    flex-basis: calc(30% - 30px); /* 50% dla 2 elementów minus margines */
  }
}

@media (max-width: 900px) {
  .types_of_course .course {
    /* Jeden kurs na całą szerokość, jeśli szerokość ekranu jest mniejsza niż 900px */
    flex-basis: 100%;
  }
}

@media (min-width: 1000px) {
  #icons_div_mobile {
    display: none;
  }
}

@media (max-width: 1000px) {
  #icons_div {
    display: none;
  }

  #buttons {
    display: grid;
  }

  #login,
  #about,
  #buy {
    font-size: 15px;
  }

  #best {
    margin: 0 10px 0 10px;
    font-size: 30px;
  }

  #name_of_user {
    font-size: unset;
  }

  #top_info {
    font-size: 30px;
    text-align: center;
  }

  #info_main {
    text-align: center;
    font-size: 25px;
  }

  #buy_main_btn {
    width: 70%;
    font-size: 25px;
  }

  .course {
    width: unset !important;
    height: unset !important;
  }

  .course_photo img {
    height: 300px !important;
  }

  #option7 {
    padding: 20px;
    padding-top: 35px;
  }

  .icon_desc {
    width: 30vw;
  }

  #other_products {
    display: grid;
  }

  #about_me,
  #wanderly {
    display: grid;
    justify-items: center;
  }

  #something_of_me {
    font-size: 20px;
    margin: 0;
  }

  #main_contact {
    display: grid;
  }

  #social_media {
    margin-left: unset !important;
  }

  footer {
    display: grid;
  }

  .line_vertical {
    width: 100px;
    height: 2px;
    justify-self: center;
    margin: 20px 0 20px 0;
  }

  input,
  textarea,
  button {
    width: 80vw;
  }

  #icons_div {
    width: 100vw;
  }

  #helper a {
    font-size: 20px;
  }

  #desc_about_wanderly {
    text-align: center;
  }

  #title_wanderly {
    text-align: center;
  }

  #gallery-container::before,
  #gallery-container::after {
    width: calc((100vw - (1 * (262.5px + 2 * 15px))) / 2);
  }

  #left-arrow-top,
  #right-arrow-top {
    top: 64%;
  }

  #left-arrow {
    left: calc((100vw - (3 * (72.5px + 2 * 20px))) / 2);
  }

  #right-arrow {
    right: calc((100vw - (3 * (72.5px + 2 * 20px))) / 2);
  }
}

/* Cały pasek przewijania */
::-webkit-scrollbar {
  width: 12px;
}

/* Tło paska przewijania */
::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px; /* Dodajemy zaokrąglenie */
}

/* Kciuk paska przewijania */
::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px; /* Tutaj również dodajemy zaokrąglenie */
}

/* Kciuk paska przewijania podczas najechania */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: black;
    color: white;
  }

  header {
    background-color: black;
    color: white;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.2);
  }

  .dropdown-content {
    background-color: #1c1c1c;
    box-shadow: 0px 8px 16px 0px rgba(255, 255, 255, 0.2);
  }

  a {
    color: white;
  }

  .course {
    color: black;
  }

  #about #title {
    color: white;
  }

  #contact #title {
    color: white;
  }

  .other_product {
    color: white;
  }

  input,
  textarea,
  button {
    background: black !important;
    color: white !important;
    border: solid;
  }

  input,
  button,
  #message {
    border: 2px solid white;
  }

  input::placeholder,
  textarea::placeholder {
    color: white;
  }

  footer {
    background-color: #555;
  }

  #loading {
    background-color: black;
  }

  #title_wanderly {
    color: white;
  }

  #gallery-container::before,
  #gallery-container::after {
    background-color: black;
  }
}
