body, html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

.main {
  background: url('img/background-min.jpg') no-repeat center center / cover;
  height: 100%;
  position: relative;
  color: white;
}
::selection {
  background: #ffdd57; 
  color: black; 
}
.main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.486);
  z-index: 0;
}

.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem;
  background-color: rgba(0, 0, 0, 0.4);
}

.profile-img {
  height: 3rem;
  width: 3rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
}

.main-menu_icon {
  width: 2rem;
  height: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  z-index: 10;
}

.main-menu_icon span {
  display: block;
  height: 0.2rem;
  background: white;
  border-radius: 1rem;
  transition: 0.4s;
}

.main-menu_icon.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.main-menu_icon.open span:nth-child(2) {
  opacity: 0;
}

.main-menu_icon.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.navbar-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
  z-index: 2;
  border-bottom-left-radius: 2dvh;
  border-bottom-right-radius: 2dvh;
}

.navbar-menu.open {
  max-height: 50vh;
  border-bottom-left-radius: 2dvh;
  border-bottom-right-radius: 2dvh;
}

.menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
}

.menu-links a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  margin: 0.3rem 0;
}

.menu-links a:hover {
  color: #ffcc00ab ;
}

.first-child {
  color: #ffcc00 !important;
}
.second-child, .third-child, .fourth-child, .fifth-child {
  margin-top: 1.8vh !important;
}
.copyright {
  margin-top: 2.5vh !important;
}
.menu-links hr {
  width: 80%;
  border: none;
  border-top: 1px solid #ffffff4d;
  margin: 0.5rem auto;
}

.menu-links .copyright {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #ccc;
  text-align: center;
}

.copyright span {
  font-size: 0.8rem;
  text-align: center;
  color: #4da3ff !important;
}

.main-content {
  position: absolute;
  top: 25vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  text-align: center;
  padding: 0 1rem;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.main-content h1 {
  font-size: 3.7rem !important;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.main-content h2 {
  font-size: 2rem !important;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.main-content p {
  font-size: 1.6rem !important;
  font-style: italic;
  margin-bottom: 1.2rem;
}
.main-button {
  display: inline-block;
  background: rgba(27, 0, 124, 0.7);
  color: white;
  font-weight: bold;
  padding: 0.8rem 2rem;
  border-radius: 1rem;
  font-size: 1.1rem;
  text-decoration: none;
  border: 3px solid white;
  position: fixed;  /* Fixing the button at the bottom */
  bottom: -20vh;  /* 15% of the viewport height from the bottom */
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(45deg, #007BFF, #007BFF, transparent, transparent);
  background-size: 200% 200%;
  animation: floatingGradient 7s ease infinite;
  transition: ease-in-out 1s ease;
  z-index: 10; /* Ensure it's above other content */
}

.main-button:hover {
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid white;
  transition: ease-in-out 1s ease;
}


@keyframes floatingGradient {
  0% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 0% 100%;
  }
  75% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

/* Cookie banner - SUPER LEKKI */
.cookie-banner {
  position: fixed;
  bottom: 2vh;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.836);/* jeszcze bardziej przezroczyste */
  color: #fff;
  padding: 1vh 3vw; /* mniej paddingu */
  width: 80vw;
  max-width: 700px;
  border-radius: 2vh;
  font-size: 1.6vh; /* jeszcze mniejszy font */
  box-shadow: 0 0 0.5vh rgba(0,0,0,0.3);
  z-index: 1000;
  text-align: center;
  backdrop-filter: blur(1px); /* delikatniutki blur */
}

.cookie-banner button {
  margin-top: 1vh;
  padding: 0.8vh 3vw;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 1vh;
  font-size: 1.6vh;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cookie-banner button:hover {
  background-color: #0056b3;
}

.cookie-banner a {
  color: #00BFFF;
  text-decoration: underline;
  font-weight: 500;
}

/* Overlay polityki */
.policy-overlay {
  position: fixed;
  top: 10vh;
  left: 50%;
  transform: translateX(-50%);
  width: 90vh;
  max-width: 700px;
  background: rgba(0, 0, 0, 0.836);
  color: #fff;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 4vh 5vw;
  border-radius: 2vh;
  box-shadow: 0 0 2vh rgba(0,0,0,0.5);
  z-index: 2000;
  font-size: 1.8vh;
  overflow-y: auto;
  backdrop-filter: blur(2px);
}

.policy-content {
  width: 100%;
}

.policy-content h2 {
  font-size: 3.5vh;
  margin-bottom: 2vh;
  color: #ffffff;
  text-align: center;
}

.policy-content p {
  margin-bottom: 2vh;
  line-height: 1.6;
  color: #ccc;
}

#closePolicy {
  margin-top: 3vh;
  background: #007BFF;
  color: white;
  border: none;
  padding: 1.2vh 4vw;
  border-radius: 1vh;
  font-size: 1.8vh;
  cursor: pointer;
  transition: background-color 0.3s;
}

#closePolicy:hover {
  background: #0056b3;
}
/* Animacja pojawienia się i pulsowania */
@keyframes slideUpFade {
  0% {
    transform: translateX(-50%) translateY(100%);
    opacity: 0;
  }
  50% {
    transform: translateX(-50%) translateY(-2vh);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

/* Teraz animacja na cookie-banner */
.cookie-banner {
  animation: slideUpFade 1s ease-out;
}
@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    padding: 0.8rem;
  }

  .profile-img {
    width: 2.5rem;
    height: 2.5rem;
  }

  .main-menu_icon {
    width: 1.6rem;
    height: 1.6rem;
    gap: 0.3rem;
  }

  .main-menu_icon span {
    height: 0.15rem;
  }

  .menu-links a {
    font-size: 1rem;
  }

  .menu-links .copyright,
  .copyright span {
    font-size: 0.7rem;
  }

  /* Main content (Hero section) */
  .main-content {
    top: 20vh;
    padding: 0 1rem;
  }

  .main-content h1 {
    font-size: 2.2rem !important; /* MNIEJSZY ale dalej większy od h2 */
    line-height: 1.2;
    word-break: keep-all; /* nie łamie się */
  }

  .main-content h2 {
    font-size: 1.5rem !important; /* blisko h1 ale trochę mniejszy */
  }

  .main-content p {
    font-size: 1rem !important;
  }

  /* Main button (Get Started) */
  .main-button {
    padding: 0.7rem 1.6rem;
    font-size: 1rem;
    bottom: -20vh;
  }

  /* Cookie Banner */
  .cookie-banner {
    font-size: 1.7vh; /* troszkę większy */
    font-weight: 500; /* GRUBSZY dla czytelności */
    padding: 1.5vh 4vw;
    width: 90vw;
  }

  .cookie-banner button {
    font-size: 1.7vh;
    padding: 1vh 3vw;
  }

  /* Policy Overlay */
  .policy-overlay {
    width: 85vw;
    padding: 3vh 4vw;
  }

  .policy-content h2 {
    font-size: 2.5vh;
  }

  .policy-content p {
    font-size: 1.7vh;
  }

  #closePolicy {
    font-size: 1.7vh;
    padding: 1vh 3vw;
  }
}

#hrefNav {
  color: white;
  text-decoration: none;
  position: absolute;
  margin-left: 5em;
  text-shadow: 2px 1px 10px white;
}
