/* Wyśrodkowanie pionowe i poziome main tylko na stronie startowej */
main {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  margin-top: 0;
}

/* Tło całej strony z przyciemnieniem */
main {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
              url("tlo.jpeg") no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  padding: 0;
}

/* Trójkąt w lewym górnym rogu */
main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 200vh solid white;
  border-bottom: 50px solid transparent;
  z-index: 1;
  pointer-events: none;
}

/* Trójkąt w prawym dolnym rogu */
main::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-right: 200vh solid white;
  border-top: 40px solid transparent;
  z-index: 1;
  pointer-events: none;
}

/* Kontener główny na stronie startowej - flex z tekstem i obrazem */
.page-container {
  display: flex;
  max-width: 1100px;
  background: #fdf6fb80;
  border-radius:25px;
  margin: 0 auto;
  padding: 25px;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

/* Tekst po lewej */
.index-text {
  flex: 1 1 45%;
  font-size: 1.3rem;
  color: black;
  line-height: 1.7;
}

.index-text h1 {
  font-size: 2.8rem;
  color: #2f5d34; /* ciemna zieleń */
  text-shadow: 1px 1px 1px black;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.index-text p {
  margin-top: 0;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Obrazek po prawej */
.index-image {
  flex: 1 1 50%;
  text-align: center;
}

.index-image img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(219, 159, 201, 0.25);
  object-fit: cover;
  max-height: 400px;
  transition: transform 0.4s ease;
  cursor: pointer;
}

.index-image img:hover,
.index-image img:focus {
  transform: scale(1.05);
  outline: none;
}

.index-quote {
  margin-top: 20px;
  font-style: italic;
  color: black; /* pasujący fiolet */
  font-size: 1.1rem;
  text-align: center;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
  border-left: 4px solid #9b2143;
  padding-left: 16px;
  font-weight: 500;
  user-select: text;
  quotes: "“" "”" "‘" "’";
}

.index-quote::before {
  content: open-quote;
  font-size: 2.5rem;
  line-height: 0;
  vertical-align: -0.4em;
  color: #9b2143;
  margin-right: 6px;
}

.index-quote::after {
  content: close-quote;
  font-size: 2.5rem;
  line-height: 0;
  vertical-align: -0.4em;
  color: #9b2143;
  margin-left: 6px;
}

/* Responsywność */
@media (max-width: 900px) {
  main{
    background: white none !important;
  }

  main::before,
main::after {
  display: none !important;
}

  .page-container {
    flex-direction: column;
  }

  .index-text,
  .index-image {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .index-image img {
    max-height: 300px;
  }
}

@media (max-width: 600px) {
  main{
    background: white none !important;
  }

  main::before,
main::after {
  display: none !important;
}

  .index-quote {
    font-size: 1rem;
    padding-left: 12px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  main{
    background: white none !important;
  }

  main::before,
main::after {
  display: none !important;
}

  .index-text {
    font-size: 1.1rem;
  }

  .index-text h1 {
    font-size: 2rem;
  }
}

@media (max-width: 360px) {
  main{
    background: white none !important;
  }

  main::before,
main::after {
  display: none !important;
}

  .index-quote {
    font-size: 0.9rem;
    padding-left: 10px;
  }

  .index-quote::before,
  .index-quote::after {
    font-size: 1.5rem;
    vertical-align: -0.3em;
  }
}