:root {
  --main-color: #3460e1;
  --nav-text-color: #fffdfd8c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #222;
}

#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;
}
body.loaded #preloader {
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.loaded {
  overflow: auto;
}

main {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}
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: 14;
}

.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);
}

.dots {
  height: 100vh;
  position: fixed;
  z-index: 1;
  transform: rotate(180deg);
}

.hero {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60vh;
  background-color: transparent;
}

.hero h1 {
  font-family: "Oxanium", sans-serif;
  font-weight: 800;
  font-size: 9vw;
  font-style: italic;
  color: white;
  text-align: center;
  margin-top: 100px;
}


@media only screen and (max-width: 768px) {
  form button {
    font-size: 1rem;
  }
}
.cards-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; 
  padding: 0 10px;
  z-index: 11; 
  margin-top: 7vh;
  min-height: 50vh; 
}

.first-row {
  margin-top: 50vh;
}

.second-row {
  margin-top: 5vh; 
}
.card {
  width: 300px;
  height: 500px;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border: 2px solid #4501FF; 
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; 
  background-color: #41423C;
  z-index: 10;
}

@media only screen and (max-width: 768px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
    margin-top: 50vh; /* Retain the same margin-top for smaller screens */
  }

  .card {
    margin-bottom: 20px;
  }
}

.kropki {
  width: 100vw;
  height: 100vh;
  position: absolute;
  z-index: 0;
}

.kropki img{
  width: 16vw;
}
.postacie, .postacie1, .postacie2, .postacie3,.postacie4, .postacie5, .postacie6, .postacie7{
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.postacie img{
  width: 17vw;
  padding-left: 2vw;
}
.postacie1 img{
  width: 16vw;
  padding-left: 2vw;
}
.postacie2 img{
  width: 18.5vw;
  padding-left: 2vw;
}
.postacie3 img{
  width: 30vw;
  padding-right: 10vw;
}
.postacie4 img{
  width: 43vw;
  padding-right: 20vw;
  margin-bottom: -30px;
}
.postacie5 img{
  width: 18vw;
  padding-left: 0;
}
.postacie6 img{
  width: 22vw;
  padding-right: 2vw;
}

.postacie7 img{
  width: 23vw;
  padding-right: 2vw;
}


.card-content {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
  padding: 130px 20px 20px;
  text-align: center;
  color: white;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  position: absolute;
  z-index: 2;
}

.card-content h2 {
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

.card-content p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.card-button {
  text-decoration: none;
  background-color: #4501FF;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.card-button:hover {
  background-color: #3401CC;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background: linear-gradient(to right, #fefefe, #e0e0e0); 
  margin: 10% auto; 
  padding: 30px;
  border: 1px solid #888;
  width: 80vw; 
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

form {
  display: flex;
  flex-direction: column;
  max-height: 50vh;
  overflow-y: auto;
}

form label {
  margin-bottom: 5px;
  font-weight: bold;
  color: #333; /* Kolor etykiety */
}

form input {
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s;
}


form input:focus {
  border-color: #007bff; 
  outline: none;
}
form textarea {
  resize: none;
  margin-bottom: 15px;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s;
}


button[type="submit"] {
  padding: 10px;
  border: none;
  border-radius: 8px;
  background-color: #3401CC; 
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 10px;
}


button[type="submit"]:hover {
  background-color: #2504A2; 
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #ff0000; /* Kolor "X" przycisku */
  text-decoration: none;
  cursor: pointer;
}

/* Dostosowanie szerokości formularza */
form {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger i {
  font-size: 2rem;
  color: var(--nav-text-color);
}
.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;
}

@media only screen and (max-width: 768px) {
  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;
  }
  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;
  }

  .postacie img{
    width: 70vw;
    padding-left: 10vw;
  }
  .postacie1 img{
    width: 70vw;
    padding-left: 10vw;
  }
  .postacie2 img{
    width: 70vw;
    padding-left: 10vw;
  }
  .postacie3 img{
    width: 70vw;
    padding-right: 0;
  }
  .postacie4 img{
    width: 100vw;
  }
  .postacie5 img{
    width: 70vw;
    padding-left: 0;
  }
  .postacie6 img{
    width: 70vw;
    padding-right: 2vw;
  }

  .postacie7 img{
    width: 80vw;
    padding-right: 2vw;
  }
}
