@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&amp;display=swap');
@import url('https://fonts.googleapis.com/css?family=MedievalSharp');


:root {
    --main-color: #141527;
    --bg-color: #729fb6;
    --second-bg-color: #B3D0DE;
    --text-color:#E5D283;
}
.main_page_onas {
    display: flex;
    /* background-color: var(--bg-color); */
    height: 90vh;
    width: 100%;
    overflow: hidden;
    background-image: url(dzialy.jpg);
    background-size: cover;
    /* background-position: 0% 10%; */
    align-items: center;
    /* #0e3457 */
}


.title_onas {
    display: flex;
    width: 100%;
    height: 10%;
    background-color: transparent;
    font-size: clamp(3rem, 5.3vw, 7rem) !important;
    padding-right: 5%;
    padding-left: 5%;
    text-align: center;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    transition: 1s;
    color: var(--text-color);
    font-family: MedievalSharp;
  }

.column {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 130vh;
    margin-left: 10%;
    margin-right: 10%;
    overflow: hidden;
  }
    
.linia_dzialy {
  display: flex;
  width: 100%;
  height: 40vh;
  justify-content: space-evenly;
}

.kafelek {
  width: 25vw;
  height: 100%;
  border-radius: 25px;
  border: solid var(--text-color);
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.kafelek_title {
  z-index: 101;
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  text-align: center;
  color: var(--text-color);
  font-weight: 600;
  padding-left: 5%;
  padding-right: 5%;
}
.kafelek_choose {
  z-index: 101;
  font-size: 0.7rem;
  text-align: center;
  color: var(--text-color);
  font-weight: 600;
}
.images {
  background-size: cover;
}
.one {
  background-image: url(magnus.jpg);
  background-position: 30% 50%;
  animation-delay: 4s;
} 
.two {
  background-image: url(DSC_2683.jpg);
  animation-delay: 8s;
  background-position: 50% 0%;

}
.third {
  background-image: url(namiot.jpg);
  animation-delay: 12s;
  background-position: 50% 0%;

}
.forth {
  background-image: url(ciasto.jpg);
  animation-delay: 16s;
  background-position: 50% 0%;
}

.five {
  background-image: url(sasi.jpg);
  animation-delay: 20s;
  background-position: 50% 0%;

}
.six {
  background-image: url(ford.jpg);
  animation-delay: 24s;
  background-position: 50% 30%;
}

.lay {
  background-color: var(--bg-color);
  position: absolute; 
  height: 40vh;
  width: 25vw;
  border-radius: 25px;
  border: solid var(--text-color);
  animation: change 14s infinite;
}

.first_go {
  animation-delay: 0s;
}
.second_go {
  animation-delay: 4s;
}
.thrid_go {
  animation-delay: 8s;
}
.forth_go {
  animation-delay: 12s;
}
.five_go {
  animation-delay: 16s;
}
.six_go {
  animation-delay: 20s;
}

@keyframes change {
  0%{opacity: 1;}
  25%{opacity: 0;}
  50%{opacity: 1;}
  100%{opacity: 1;}

}

  @media (max-width: 1080px) {
    
  .column {
      margin-left: 0%;
      margin-right: 0%;
  }

  .linia_dzialy {
    height: 40vh;

  }

  .kafelek {
    width: 35vw;
  }
  .lay {
    height: 40vh;
    width: 35vw;

  }
}

@media (max-width: 700px) {
    
  .column {
      margin-left: 0%;
      margin-right: 0%;
  }

  .linia_dzialy {
    height: 40vh;


  }
  .kafelek {
    width: 35vw;
  }
  .lay {
    height: 40vh;
    width: 35vw;

  }
}

@media (max-width: 500px) {
    
  .column {
      margin-left: 0%;
      margin-right: 0%;
  }

  .linia_dzialy {
    height: 35vh;


  }
  .kafelek {
    width: 40vw;
  }
  .lay {
    height: 35vh;
    width: 40vw;

  }
  .kafelek_title {
    font-size: clamp(1.2rem, 2.5vw, 2.5rem);
  }
}


@media (max-height: 700px) {
    
  .one {
    background-position: 30% 25%;
  } 
  .two {
    background-position: 50% 35%;
  }
  .third {
    background-position: 50% 0%;
  }
  .forth {
    background-position: 50% 0%;
  }
}


