.logo {
  padding: 0px;
  margin-top: 50px;
  margin-bottom: 190px;
  padding-bottom: 20px;
  position: relative;
  overflow: hidden;
  bottom: 0;
}

.LogoWrapper {
  top: 0;
  background-color: rgb(27, 27, 27);
  width: 100%;
  height: 400px;
  display: flex;
  justify-content: center;

  position: relative;
}

.LogoWrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../../resources/logoBackground.jpg);
  background-size: 1600px;
  background-repeat: no-repeat;
  background-position: center;
  background-position-y: -250px;
  opacity: 1;
}

.logo span {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: 2px;
  font-size: 100px;
  letter-spacing: 10px;
  font-family: "Rampart One", cursive;
  font-weight: 300;
  color: red;
  display: inline-block;
  transform: translateY(-100%);
}

.logo span {
  animation: obrot 8s cubic-bezier(0.86, 0.11, 0.09, 1.25) infinite forwards,
    swieci 4s infinite forwards;
}

.logo span:nth-child(1) {
  animation-delay: 0.1s;
}
.logo span:nth-child(2) {
  animation-delay: 0.2s;
}
.logo span:nth-child(3) {
  animation-delay: 0.3s;
}
.logo span:nth-child(4) {
  animation-delay: 0.4s;
}
.logo span:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes obrot {
  0% {
    transform: translateY(-100%);
  }
  30% {
    transform: translate(0);
  }
  70% {
    transform: translate(0);
  }
  100% {
    transform: translateY(400%);
  }
}

/*TA ANIMACJA JEST TAK POPSUTA
NIE MAM POJĘCIA, JAK DZIAŁA
KIEDYŚ ZOBACZ
PROCENTY W OGÓLE SIĘ NIE ZGADZAJĄ*/
@keyframes swieci {
  0% {
    -webkit-text-fill-color: transparent;
  }
  2% {
    -webkit-text-fill-color: red;
  }
  75% {
    -webkit-text-fill-color: transparent;
  }
  100% {
    -webkit-text-fill-color: transparent;
  }
}
