
.MainBg1 {
  background-image: url("../img/wspolne/sschodyDoApartamentow2i3.jpg");
  width: 99.5vw;
  height: 90vh;
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  z-index: -1;
  display: flex;
  justify-content: end;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 25px rgba(0, 0, 0, 0.15), 0 0 5px rgba(0, 0, 0, 0.1);
}

.MainBackgroundText1 {
  width: 100%;
  text-align: left;
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 30px;
  color: white;
}

.MainBgNext {
  background-image: url("../img/main/miejceRelaksu.jpg");
  width: 99.5vw;
  height: 60vh;
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  z-index: -1;
  display: flex;
  justify-content: end;
}


.MainBgNext:nth-of-type(3) {
  background-image: url("../img/main/wejscie.jpg");
}

.left-container p {
  font-weight: 600;
}

.right-container button {
  background-color: black;
  color: white;
  text-decoration: none;
  width: 45%;
  height: 45px;
  border: none;
  border-radius: 25px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.right-container button:hover {
  background-color: #333;
}

.right-container a {
  text-decoration: none;
  color: white;
}

@media (max-width: 600px) {
  .MainBg1,
  .MainBgNext {
    width: 100vw;
    height: 60vh;
    background-position: center;
    background-attachment: scroll; /* fixed może nie działać dobrze na iOS */
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .MainBackgroundText1 {
    padding: 15px;
    font-size: 14px;
    text-align: center;
    justify-content: center;
    align-items: center;
  }

  .right-container button {
    width: 80%;
    height: 40px;
    font-size: 12px;
    margin-top: 10px;
  }

  .left-container p {
    font-size: 14px;
    text-align: center;
  }
}
