:root {
  --main-color: #3460e1;
  --nav-text-color: #fffdfd8c;
  --background-color: #222222;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #010101;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 8px solid #f3f3f3;
  border-top: 8px solid var(--main-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

body.loaded {
  overflow-y: auto;
}

body.loaded #preloader {
  opacity: 0;
  transition: opacity 0.5s ease;
}

main {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  filter: blur(5px);
  z-index: -1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  z-index: 0;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 45px 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
  z-index: 3;
}

.default {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

.scrolled {
  background-color: rgba(0, 0, 0, 0.8);
}

nav ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
}

nav ul li {
  margin: 0 5px;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.1rem;
  display: flex;
}

nav ul li a {
  text-align: center;
  color: var(--nav-text-color);
  font-weight: 600;
  text-decoration: none;
  width: 10vw;
  font-size: 1.1rem;
  letter-spacing: 0.05rem;
  padding: 8px 12px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

nav ul li a:hover {
  color: #3460e1;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

nav ul li span {
  color: var(--main-color);
  font-weight: 700;
  margin-right: 15px;
}

body.scrolled nav {
  background: rgba(0, 0, 0, 0.9);
}

.center-text {
  position: absolute;
  text-wrap: nowrap;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
}

.center-text h1 {
  font-family: "Oxanium", sans-serif;
  font-size: 5.5vw;
  font-weight: 800;
  color: #fff;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.center-text h2 {
  font-family: "Oxanium", sans-serif;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  font-weight: 800;
  font-size: 1.25vw;
  text-transform: uppercase;
  color: var(--main-color);
}

.center-text span {
  font-family: "Oxanium", sans-serif;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--main-color);
}

.center-text h2::before {
  content: "";
  right: 100%;
  top: 50%;
  display: inline-block;
  transform: translateY(-50%);
  width: 0;
  margin-right: 15px;
  height: 0;
  border-style: solid;
  border-width: 0.2vw 5vw 0.2vw 0;
  border-color: transparent #fff transparent transparent;
}

.center-text h2::after {
  content: "";
  left: 100%;
  top: 50%;
  display: inline-block;
  transform: translateY(-50%);
  margin-left: 15px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.2vw 0 0.2vw 5vw;
  border-color: transparent transparent transparent #fff;
}

.center-text h3 {
  color: #fff;
  font-family: "Oxanium", sans-serif;
  font-size: 1vw;
  font-weight: 700;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.center-text button {
  width: 13vw;
  cursor: pointer;
  margin-top: 50px;
  font-family: "Poppins", sans-serif;
  height: 5.5vh;
  background-color: var(--main-color);
  border-radius: 5px;
  color: white;
  text-transform: uppercase;
  font-size: 1vw;
  font-weight: 600;
  transition: background-color 0.5s ease, color 0.5s ease;
  border: 2px solid var(--main-color);
}
.center-text button:hover {
  background-color: #3460e100;
  color: #3460e1;
}

.center-text button i {
  margin-right: 18px;
}

.line1 {
  height: 1.6rem;
  background-color: var(--nav-text-color);
  width: 1px;
  margin-right: 25px;
}

.line2 {
  height: 1.6rem;
  background-color: var(--nav-text-color);
  width: 1px;
  margin-left: 25px;
}

.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger i {
  font-size: 2rem;
  color: var(--nav-text-color);
}

.wyroznienie {
  background-color: var(--background-color);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7vw;
}

.wyroznienie h3 {
  margin-bottom: 0.5vh;
  text-transform: uppercase;
}

.boxwyroznienie {
  display: flex;
  flex-direction: row;
  margin-top: 7vh;
  font-weight: 500;
  color: #fff;
  width: 17vw;
  margin-bottom: 5vh;
}

.icon {
  margin-right: 1vw;
  font-size: 2vw;
  color: var(--main-color);
}

.zacznij {
  height: 17vh;
  background-color: var(--main-color);
}

.zacznij p {
  font-size: 5.5vw;
  text-align: center;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  line-height: 17vh;
}

.wyniki {
  background-color: var(--background-color);
  display: flex;
  flex-direction: column;
  color: #fff;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.wyniki h3 {
  text-transform: uppercase;
  width: 70vw;
  margin-top: 12vh;
  font-size: 2.5vw;
}

.poziomica {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-bottom: 20vh;
  gap: 5vw;
}

.poziomica div {
  width: 10vw;
  display: flex;
  flex-direction: column;
  margin-top: 10vh;
  text-transform: uppercase;
}

.poziomica div span {
  color: #3460e1;
  font-size: 3vw;
  font-weight: 700;
}

@media only screen and (max-width: 768px) {
  .poziomica {
    flex-direction: column;
    gap: 10vh;
  }

  .poziomica div {
    width: 80vw;
    margin-top: 0;
  }

  .poziomica div span {
    font-size: 10vw;
  }

  .wyniki h3 {
    font-size: 5vw;
  }

  .wyniki p {
    font-size: 4vw;
    margin-bottom: 3vh;
  }
}

.onas {
  background-color: var(--background-color);
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 3vw;
  padding: 5vh 0;
}

.onas .lewo {
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  width: 30vw;
}

.onas .lewo p {
  width: 28vw;
}

.onas .lewo h3 {
  font-size: 2vw;
}

.onas .lewo span {
  color: var(--main-color);
}

.onas .prawo img {
  border-radius: 35px;
  width: 30vw;
}

.linemedium {
  width: 20vw;
  height: 1px;
  background-color: #fff;
  margin: 2.5vh 0;
}

/* Responsywność */
@media (max-width: 1024px) {
  .onas {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5vh;
  }

  .onas .lewo,
  .onas .prawo img {
    width: 80vw; /* Szerokość kontenera na tablecie/mniejszych ekranach */
  }

  .onas .lewo p {
    width: 90vw;
  }

  .onas .lewo h3 {
    font-size: 4vw;
  }

  .linemedium {
    width: 50vw;
  }
}

@media (max-width: 768px) {
  .onas .lewo h3 {
    font-size: 5vw;
  }

  .onas .lewo,
  .onas .prawo img {
    width: 90vw;
  }

  .linemedium {
    width: 60vw;
  }

  .onas .lewo p {
    font-size: 3.5vw;
    width: 90vw;
  }
}

@media (max-width: 480px) {
  .onas .lewo h3 {
    font-size: 6vw;
  }

  .onas .prawo img {
    width: 90vw;
  }

  .linemedium {
    width: 70vw;
  }

  .onas .lewo p {
    font-size: 4vw;
  }
}

.onas2 {
  background-color: var(--background-color);
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 3vw;
  padding: 5vh 0;
}

.onas2 .lewo1 {
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  width: 30vw;
}

.onas2 .lewo1 p {
  width: 28vw;
}

.onas2 .lewo1 h3 {
  font-size: 2vw;
}

.onas2 .lewo1 span {
  color: var(--main-color);
}

.onas2 .prawo1 img {
  border-radius: 35px;
  width: 30vw;
}

.linemedium1 {
  width: 20vw;
  height: 1px;
  background-color: #fff;
  margin: 2.5vh 0;
}

/* Responsywność */
@media (max-width: 1024px) {
  .onas2 {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5vh;
  }

  .onas2 .lewo1,
  .onas2 .prawo1 img {
    width: 80vw; /* Szerokość na tabletach/mniejszych ekranach */
  }

  .onas2 .lewo1 p {
    width: 90vw;
  }

  .onas2 .lewo1 h3 {
    font-size: 4vw;
  }

  .linemedium1 {
    width: 50vw;
  }
}

@media (max-width: 768px) {
  .onas2 .lewo1 h3 {
    font-size: 5vw;
  }

  .onas2 .lewo1,
  .onas2 .prawo1 img {
    width: 90vw;
  }

  .linemedium1 {
    width: 60vw;
  }

  .onas2 .lewo1 p {
    font-size: 3.5vw;
    width: 90vw;
  }
}

@media (max-width: 480px) {
  .onas2 .lewo1 h3 {
    font-size: 6vw;
  }

  .onas2 .prawo1 img {
    width: 90vw;
  }

  .linemedium1 {
    width: 70vw;
  }

  .onas2 .lewo1 p {
    font-size: 4vw;
  }
}

footer {
  background-color: #222;
  color: #fff;
  padding: 20px;
  text-align: center;
}

footer .linelong {
  width: 100%;
  height: 2px;
  background-color: #666;
  margin-bottom: 20px;
}

footer .fcontent {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

footer .left,
footer .center {
  flex: 1;
  min-width: 200px; /* Minimalna szerokość dla mniejszych ekranów */
}

footer .icon {
  color: #fff;
  margin: 0 10px;
  font-size: 24px;
  transition: color 0.3s ease;
}

footer .icon:hover {
  color: #1da1f2; /* Możesz zmienić kolor hover */
}

footer .info {
  margin-top: 20px;
  font-size: 14px;
  color: #aaa;
}

footer a {
  color: #fff;
  text-decoration: none;
}

/* Responsywność */
@media (max-width: 768px) {
  footer .fcontent {
    flex-direction: column;
    align-items: center;
  }

  footer .center {
    text-align: center;
    margin-bottom: 20px;
  }

  footer .icon {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  footer .fcontent {
    padding: 10px;
  }

  footer .text {
    font-size: 14px;
  }

  footer .icon {
    font-size: 18px;
  }
}

.centr {
  text-align: center;
}

.xd {
  display: flex;
  background-color: #3460e1;
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  margin: 10px 2px;
  cursor: pointer;
  border-radius: 20px;
  flex-direction: column;
}

.xd:hover {
  background-color: grey;
}

@media only screen and (max-width: 768px) {
  .center-text h1 {
    font-size: 11vw;
  }
  .center-text h2 {
    font-size: 2.5vw;
  }
  .center-text h2::before,
  .center-text h2::after {
    scale: 2;
  }
  .center-text h3 {
    font-size: 2.1vw;
  }
  .center-text button {
    width: 31vw;
    height: 5vh;
    margin-top: 30px;
    font-size: 2.5vw;
  }

  nav ul.komputer {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 15px;
    left: 15px;
  }

  nav ul.komputer li {
    margin: 0;
    text-align: center;
  }

  nav ul li .line1,
  nav ul li .line2 {
    display: none;
  }

  nav ul.komputer li a {
    font-size: 5vw;
    width: 100vw;
  }

  nav ul li.status {
    order: 1;
    margin-top: 20px;
  }

  .wyroznienie {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .boxwyroznienie {
    display: flex;
    flex-direction: column;
    margin-top: 7vh;
    font-weight: 500;
    color: #fff;
    width: 80vw;
    margin-bottom: 5vh;
  }
  .icon {
    text-align: center;
    margin-right: 10px;
    font-size: 5vw;
    color: var(--main-color);
  }
  .right {
    text-align: center;
  }
}

#howto {
  padding: 50px 20px;
  background-color: var(--background-color);
  color: white;
  text-align: center;
}

#howto h2 {
  font-size: 3vw;
  margin-bottom: 30px; /* Reduced margin */
  font-family: "Oxanium", sans-serif;
  color: var(--main-color);
  text-transform: uppercase;
}

.howto-container {
  display: flex;
  justify-content: space-around;
  gap: 10px;
  flex-wrap: wrap;
}

.howto-step {
  flex: 1;
  min-width: 250px;
  max-width: 280px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px;
  margin: 0 10px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.howto-step:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.howto-step i {
  font-size: 3.5rem;
  color: var(--main-color);
  margin-bottom: 10px;
}

.howto-step h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
  color: white;
  text-transform: uppercase;
}

.howto-step p {
  font-size: 1.1rem;
  font-family: "Poppins", sans-serif;
  color: #d1d1d1;
  margin-top: 8px;
}

@media only screen and (max-width: 768px) {
  #howto h2 {
    font-size: 5vw;
  }

  .howto-step i {
    font-size: 5vw;
  }

  .howto-step h3 {
    font-size: 2.5vw;
  }

  .howto-step p {
    font-size: 1.5vw;
  }
}
