@charset "UTF-8";
/* import fontu z Google fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* font-family: "Roboto", sans-serif; */


/* SELEKTORY GLOBALNE */
*{
    /* gwiazdke dajemy po to aby obejmowało to wszystko w HTML */
    
    transition: 1s;
    box-sizing:  border-box; /* zeby paddingi nie zwiekszaly szerokosci boxow */
} 
html{
    scroll-behavior: smooth; /* aby płyna była animacja strony miedzy sekcjami */
    font-family: "Roboto", sans-serif;
    font-size: 10px; /* 1 rem = 10 px | po to dajemy to */
}
body{
    font-size: 1.6rem;
}

/* W HTML WYSTĘPUJE TYLKO OD H1 DO H6 NIE WIĘCEJ 8 */

h1{}
h2{}
h3{}
h4{}
h5{}
h6{}

img{
    max-width: 100%;
}

p{
    line-height: 140%;
}

a{
    text-decoration: none;
}

/* NAWIGACJA MOBILE */

.burger{
/*    background-color: #222;*/
    color: #fff;
    position: fixed;
    top: 2rem;
    right: 50%;
	transform: translateX(50%);
    font-size: 3rem;
    padding: .4rem .5rem;
    cursor: pointer;
/*    display: none;*/
    height: 90px;
	width: 90px;
	mix-blend-mode: difference
}
.burger img{
	width: 100%;
}
.burger:hover{
    background-color: #fff;
    color: #222;
}

.nakladka{
    background-color: #222;
    opacity: .9;
    z-index: 2;
    position: fixed;
    right: 0;
    height: 100%;
    width: 0; /* ten parametr bedzie zmieniany funkcja na 100 kiedy kliniemy w "burgera" */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.nakladka ol{
    /* background-color: blue; */
    width: 100%;
}
.nakladka ol li{}
.nakladka ol li a{
    color: #fff;
    text-align: center;
    display: block;
    padding: 2rem;
}
.nakladka ol li a:hover{
    background-color: #fff;
    color: #222;
}
.zamknijX{
    background-color: #fff;
    font-size: 4rem;
    position: absolute;
    top: 2rem;
    right: 50%;
	transform: translateX(50%);
    padding: 0 .8rem .4rem;
    cursor: pointer;
}
.zamknijX:hover{
    background-color: #000;
    color: #fff;
}



/* NAWIGACJA DESKTOP */
nav{
    background-color: #000;
    color: #fff;
    position: fixed; /* przylepiona do krawedzi */
    width: 100%; /* bo fixed zniwelowalo automatyczna szer. 100% */ 
    display: flex;
    justify-content: center;
    align-items: center;
}
nav ol{
    max-width: 1200px;
    width: 100%; /* bo flex scinal box */
    display: flex;
    justify-content: space-evenly; /* rozmieszcza w równych odstepach */
    
}
nav ol li{}
nav ol li a{
    padding: 1rem 2vw;
    display: block;
}
nav ol li a:hover{
    background-color: #eee;
    color: #222;
}



/* WSZYSTKIE SEKCJE ICH CECHY WSPÓLNE */
section{
    min-height: 80vh; /* vh = view height = % wysokosci okna przegladarki */
    padding: 2rem;
    /* uruchamiamy flexbox */
    display: flex;
    align-items: center;
    justify-content: center
}
.zawartosc{
    /* background-color: red; */
    max-width: 1200px;
    width: 100%; /* jest to po to poniewaz flexbox scisnal box */
}


/* POSZCZEGÓLNE SEKCJE */
#pierwsza{
    background-color: #000;}
#pierwsza img{
    display: block;
    margin: auto;
}
#druga {
  background-color: #333;
  padding: 4rem 2rem 2rem 2rem;
}

.container-pojecie {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
}

.tekst {
  flex: 1 1 50%;
  max-width: 500px;
}

.tekst h2 {
  font-family: "Roboto";
    font-size: 40px;     
  margin-bottom: 1rem;
  color: #ff4d4d;
  margin-top: -10rem;     
}

.tekst p {
  font-size: 20px;       
  line-height: 1.7;
  color: white;
    margin-top: 10rem;
}

.obrazy {
  position: relative;
  flex: 0 0 600px;         
}

.obrazy .duze {
  width: 100%;             
  max-width: none;
  border-radius: 8px;
  display: block;
}

.obrazy .male {
  position: absolute;
  width: 240px;            
  bottom: -40px;
  left: -40px;
  transform: rotate(-6deg);
  border: 6px solid white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}



#trzecia{
    background: url("../IMG/OCZY.png") no-repeat center center;
    background-size: cover;
}
#trzecia p{
    font-family: "Roboto";
    font-weight: 700;
    font-size: 40px;
    color: white;
    text-align: center;
    display: flex;
    justify-items: center;
    align-items: center;
    
}

#trzecia p1{
    font-family: "Roboto";
    font-weight: 100;
    font-size: 40px;
    color: white;
    text-align: center;
    display: flex;
    justify-items: center;
    align-items: center;
/*    height: 200px;*/
    margin-top: 30vw;
    
}
#czwarta {
  background-color: #000;
  padding: 4rem 2rem;
}

.tytul-sekcji {
  text-align: center;
  color: #ff4d4d;
  font-size: 3rem;
  margin-bottom: 4rem;
}

.slider-zwierzeta {
  display: flex;
  flex-wrap: wrap;
    justify-items: center;
    align-items: center;
  gap: 2rem;
  text-align: center;
    padding: 3vw;
}

.kafelek {
  background-color: #f5f5dc; 
  padding: 4rem;
  width: 250px;
  border-radius: 100px;
}

.kafelek img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.kafelek h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: bold;
  font-family: "Roboto";
}


.kafelek p {
  font-size: 1.4rem;
  color: #333;
  line-height: 1.4;
}




#piata {
  background-color: #666;
  padding: 40px;
}

.zawartosc-piata {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.opis-wady-wzroku {
  font-family: 'Roboto', sans-serif;
  color: white;
  flex: 1 1 500px;
  max-width: 700px;
}

.opis-wady-wzroku h2 {
  color: #ff4c4c; 
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.opis-wady-wzroku p {
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 1.6rem;
}


.slider-css {
  flex: 0 1 300px;
  max-width: 300px;
  position: relative;
  text-align: center;
}

.slider-css input[type="radio"] {
  display: none;
}

.slider-css .slides img {
  display: none;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.slider-css input#slide1:checked ~ .slides img:nth-of-type(1),
.slider-css input#slide2:checked ~ .slides img:nth-of-type(2),
.slider-css input#slide3:checked ~ .slides img:nth-of-type(3),
.slider-css input#slide4:checked ~ .slides img:nth-of-type(4) {
  display: block;
  
  
  animation: krecenie 10s linear infinite;
  transform-origin: center center;
}


@keyframes krecenie {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.slider-title span {
  display: none;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1rem;
  text-align: center;
}

#slide1:checked ~ .slider-title .title1,
#slide2:checked ~ .slider-title .title2,
#slide3:checked ~ .slider-title .title3,
#slide4:checked ~ .slider-title .title4 {
  display: block;
}



.slider-css .nav {
  margin-top: 10px;
}

.slider-css .nav label {
  margin: 0 10px;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

.slider-css .nav label:hover {
  color: #ccc;
}



button {
  background-color: transparent;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  user-select: none;
}

button:hover {
  color: #ccc;
}


#stopka {
  min-height: 20vh;
  background-color: #777;
  color: white;
    display:flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}




/****************** RWD ******************/

@media all and (max-width:1170px){
    .container-pojecie {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .tekst {
    max-width: 90%;
  }

  .tekst h2 {
    font-size: 32px;
    margin-top: 0;
  }

  .tekst p {
    font-size: 18px;
    margin-top: 1rem;
  }

  .obrazy {
    flex: unset;
    width: 90%;
    max-width: 500px;
    margin-top: 2rem;
  }

  .obrazy .duze {
    width: 100%;
  }

  .obrazy .male {
    width: 180px;
    bottom: -30px;
    left: -30px;
  }
}
@media all and (max-width:900px){
    .zawartosc-piata {
    flex-direction: column;
    align-items: center;
  }

  .slider-css {
    max-width: 90%;
  }

  .opis-wady-wzroku {
    max-width: 100%;
  }
}
@media all and (max-width:600px){
    
    .burger{
        display: block;
    }
    
    nav{
        display: none;
    }
    
    section{
        min-height: 100vh;
    }
	
	#trzecia{
        background: black;
		background: url("../IMG/OCZYY.jpg") no-repeat center center;
        background-size: cover;
        
        
	}
    
    #trzecia p{
    font-family: "Roboto";
    font-weight: 700;
    font-size: 20px;
    color: white;
    text-align: center;
    display: flex;
    justify-items: center;
    align-items: center;
        margin-left: 5vw;
        margin-right: 5vw;
    
}
    
    #trzecia p1{
    font-family: "Roboto";
    font-weight: 100;
    font-size: 20px;
    color: white;
    text-align: center;
    display: flex;
    justify-items: center;
    align-items: center;
    margin-top: 80vw;
        margin-left: 5vw;
        margin-right: 5vw;
        
    
}
     .slider-zwierzeta {
    flex-wrap: nowrap;
    overflow: scroll;
    gap: 1rem;
    padding-left: 1rem;
    margin-left: 2rem;
    
    }

  .kafelek {
    flex: 1 0 300px;          
  }

  .kafelek img {
    max-width: 100px;
    
  }
}
        
@media all and (max-width:400px){}

.slider-napisy {
  position: absolute;
  top: 31vw;
  right: 6vw;
  text-align: center;
  width: 200px;
  color: black;
  font-size: 2.5rem;
  z-index: 2;
}



