/* css */

/* FONT */
@import url('https://fonts.googleapis.com/css2?family=Joti+One&display=swap');
/* font-family: "Joti One", serif; */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
/* font-family: "Inter", sans-serif; */

/* KOLOR */
:root {
    --kolor-1:#000000;
    --kolor-2:#868686;
    --kolor-3:#Fafffd;
    --kolor-4:#f25938;
}

/* GLOBALNE */
*{
    box-sizing: border-box;/* paddingi nie zwiększają szerokości boxu */
    transition: 0.3s;
}
html{
    scroll-behavior: smooth;
    font-family: "Inter", sans-serif;
    font-size: 10px;/* żeby łatwiej było liczyć jednostk rem (1 rem = 10px, 1.2 rem = 12px) */
}

body{
    font-size: 1.6rem;
    font-weight: 300;
}

h1, h2, h3, h4, h5, h6{
    font-family: "Alegreya", serif;
    /* font-weight: 800;
    margin-bottom: 1rem;
    text-align: center; */
}

h1{
    font-size: clamp(7rem, 10vw, 14rem);/* min, ideal, max *//* vw = viewport width w precentach */
    margin-bottom: 2rem;
}
h2{font-size: clamp(5rem, 6vw, 6rem); font-family: "Joti One", serif;}
h3{font-size: clamp(3rem, 3vw, 4rem); font-family: "Joti One", serif;}
h4{font-size: clamp(2rem, 2vw, 3rem); font-family: "Joti One", serif;}
h5{font-size: clamp(1.6rem, 1vw, 2rem); font-family: "Inter", sans-serif;}
h6{font-size: clamp(1rem, 1vw, 1rem);}

img{
    max-width: 100%; /* responsywne obrazy */
}

p{
    line-height: 140%;
}

a{
    text-decoration: none;
}
/* NAV DESKTOP */

nav{
    /* background-color: blue; */
    position: fixed;
    width: 20vw;
    min-width: 150px;
    height: 100%;
    display: flex;
    justify-content: center;
    /* align-items: center; */
    padding: 10rem 1rem;
    z-index: 8;
}
nav ol{
    display: flex;
    flex-direction: column;
    gap: 2vw;
}
nav img{
    margin-bottom: 4vw;
}
nav a{
    background-color: var(--kolor-4);
    padding: 1rem 2vw;
    display: block;
    color: var(--kolor-1);
    font-family: "Joti One", serif;
    text-align: center;
}
nav a:hover{
    color: var(--kolor-3);
}
.ukryj{
    display: none;
}

/* NAV MOBAJL */
.burger{
    position: fixed;
    top: 2rem;
    right: 2rem;

    color: var(--kolor-4);
    font-size: 3rem;
    padding: .5rem .65rem;

    z-index: 10;/* żeby był nad innymi elementami */
    cursor: pointer;
    display: none;
    z-index: 9;
}
.logo-mobile{
    display: none;
    position: fixed;
    max-width: 10vw;
    top: 2rem;
    left: 2rem;
    z-index: 8;
}
.burger:hover{
    color: var(--kolor-1);
}
.nakladka{
    background-color: #FF8552;
    z-index: 9999999;
    position: fixed;

    width: 0; /* wartość szerkości będzie dynamicznie zmieniana skryptem JAVA SCRIPT w momencie klikania otwórz/zamknij */
    height: 100%;
    top: 0;
    right: 0;/* żeby animacja zwijania/rozwijania była do prawej */
    
    overflow: hidden;/* żeby zawartosc nie wystawala w trakcie animacji */

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: .9;
}
.zamknijX{
    position: absolute;
    top: 2rem;
    right: 2rem;

    font-size: 3rem;
    font-weight: 300;
    background-color: var(--kolor-3);
    padding: .3rem 1.1rem .7rem;
    aspect-ratio: 1/1;
}
.zamknijX:hover{
    background-color: var(--kolor-1);
    color: var(--kolor-3);
    cursor: pointer;
}
.nakladka ol{
    width: 100%;
    gap: 2vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
}
.nakladka ol img{
    max-width: 40vw;
}
.nakladka ol li{
    font-family: "Joti One", serif;
}
.nakladka ol li a{
    display: block;
    text-align: center;
    padding: 1.2rem;
    color: #E6E6E6;
    font-weight: 800;
}
.nakladka ol li a:hover{
    color: var(--kolor-1);
}

/* WSZYSTKIE SEKCJE */
section{
    min-height: 90vh;
    /* scroll-margin-top: 5.6rem; */
    /* padding: 2rem; */

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4vh;
}
.zawartosc{
    max-width: 90vw;
    width: 100%;
    display: flex;
    gap: 1rem;
}

/* POSZCZEGÓLNE SEKCJE */
/* #pierwsza{} */
#pierwsza{
    background: url(../img/tlo_1_v2.jpg) no-repeat center ;
    background-size: cover;
    padding-left: 2vw;
}
#pierwsza .zawartosc{
    /* background-color: green; */
    max-width: 60vw;
}

#druga{
    background-color: var(--kolor-3);
    padding: 4rem 0;
    margin-left: 20vw;
    /* background-color: red; */
}
#druga .zawartosc{
    /* background-color: pink; */
    /* display: flex; */
    flex-direction: column;

    padding: 0 2rem;
    /* border-radius: 3rem; */
    z-index: 1;
    /* max-width: 1200px; */
}
#druga .naglowek{
    display:flex;
    align-items:center;
    gap: 2rem;
    /* background-color: yellow; */
}
#druga .naglowek img{
    width: 80px;
    height: auto;
}
#druga h2{
    font-size:5rem;
    /* margin:0; */
    /* background-color: yellowgreen; */
}
#druga h3{
    text-align: left;
    /* padding-left: 4rem; */
    /* background-color: blue; */
}
#druga h5{
    text-align: left;
    /* padding-left: 4rem; */
}
#druga ol{
    position: relative;
    font-family: "Joti One", serif;
    display: flex;
    flex-direction: row;
    gap: 2vw;
    padding: 2rem;
    background-color: var(--kolor-4);
    color: #Fafffd;
}

#druga ol li a{
    color: #Fafffd;
}

#druga ol li a:hover{
    color: var(--kolor-1);
}

#druga ol::before{
    content: '';
    background: url(../img/glowa_lewa.webp) no-repeat center;
    background-size: contain;
    /* background-color: blue; */
   
    position: absolute;
    left: 0;
    top: -3px;
    transform: translate(-100%,0);

    width: 150px;
    height: 70px;
}

#druga ol::after{
    content: '';
    background: url(../img/glowa_prawa.webp) no-repeat center;
    background-size: contain;

    position: absolute;
    right: 0;
    top: -3px;
    transform: translate(100%,0);

    width: 150px;
    height: 70px;
}

#druga .obrazki{
    width: 100%;
    display: flex;
    gap: 4rem;
    overflow-x: auto;
    padding: 0 2rem 4rem;
}
#druga .obrazki figure{
    flex-shrink: 0;
    /* background-color: aqua; */
    margin: 0;
    padding: 1rem;
}
#druga .obrazki figure img{
    height: 600px;
    width: auto;
    display: block;
}

::-webkit-scrollbar{
    height: 20px;
}
::-webkit-scrollbar-track{
    background: var(--kolor-2);
}
::-webkit-scrollbar-thumb{
    background: var(--kolor-3);
}

#druga article{
    /* żeby wrap dobrze działał potrzebny jest flex dla items */
    /* flex: 0 1 300px;
    background-color: #85FFC7;
    
    position: relative; */
}
/* dodajemy do artykułów pseudoelementy
:O */
#druga article::before{
    /* content: "to jest bifor";
    background-color: #297373;
    /*display: inline;  domyślnie */
    /* padding: 2rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
    font-weight: 900;
    color: #E6E6E6;

    transition: 2s ; */ 

}
#druga article:hover::before{
    /* background-color: #39393A;
    transform: scale(1.1);

    transition: 300ms; */
}

.promocja::after{
    content: "";
    height: 8rem;
    aspect-ratio: 1/1;
    background-color:#FF8552;
    display: block;/* trzeba dawać, wtedy dopiero afterek działa */
    background: url(https://upload.wikimedia.org/wikipedia/en/thumb/5/5d/Biedronka_logo.svg/1280px-Biedronka_logo.svg.png) no-repeat;
    background-size: contain;/* żebyzek się dopasował do obszaru */

    position: absolute;
    right: -1;
    bottom: -1;

    transition: 1s;
}
.promocja:hover::after{
    transform: rotate(360deg);
}

/* #druga article::after{ 
    content: "to jest after";
}*/

#trzecia{
    background: url(../img/tlo_2.jpg) no-repeat center;
    background-size: cover;

    /* z-index: 9; */
    /* ponad nac które ma 9 */

    position: relative;/* żeby działało ponad nav które ma fixed */
    padding-bottom: 8rem;
}

#trzecia .zawartosc{
    /* background-color: blue; */
    margin-left: 20vw;

    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    
    width: 80vw;

    padding: 2rem;
}
#trzecia .ja{
    flex: 1 1 300px;
    /* background-color: yellow; */
    /* max-width: auto; */
    /* width: 40%; */
}
#trzecia .tekst{
    flex: 2 1 300px;
    /* background-color: GREEN; */
}

#trzecia .tekst h2{
    position: static;
    color: var(--kolor-1);

    text-align: left;

    margin-bottom: 2rem;
    margin-top: 5rem;
}
#trzecia .tekst p{
    color: var(--kolor-3);
    line-height: 1.6;
    margin-bottom: 2rem;

    text-align: left;
}
#trzecia .pomarancz{
    color: var(--kolor-4);
    font-weight: bold;
}
#trzecia .tekst a{
    color: var(--kolor-4);
    font-family: "Joti One", serif;
}
#trzecia .tekst a:hover{
    color: var(--kolor-3);
}

#trzecia .ryba{
    position: absolute;

    right: 5rem;
    bottom: 3rem;

    width: 180px;
}

/* STOPKA */
#trzecia footer{
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;

    text-align: center;

    color: var(--kolor-4);
    font-family: "Joti One", serif;
}



/****************************************************************************************/
/*************************************MEDIA QUERIES*************************************/
/* TABLET */
@media (max-width: 1400px){

    #trzecia .ja{
        position:static;
        width: 40%;
        /* max-width: 250px; */
        /* height: auto; */
        /* margin: 0 auto; */
        display: block;
    }

    #trzecia .zawartosc{
        flex-direction:column-reverse;
        align-items: flex-start;
    }

}

@media (max-width: 970px){
    #druga ol{display: none;}
    .ukryj{display:block;}
}

/* MOBILE */
@media(max-width: 745px){
    nav{
        display: none;
    }
    .burger{
        display: block;
    }
    .logo-mobile{
        display: block;
    }

    section{
        scroll-margin-top: 4rem;
        min-height: 100vh;
    }

    #pierwsza .zawartosc{
        margin-top: 1px;
    }

    #druga{
        gap: 2rem;/* większy odstęp między h2 i zawartością */
        margin-left: 0;
    }

    #druga .zawartosc{
        padding: 0;
    }

    #druga .obrazki{
        gap: 1rem;
    }
    #druga .obrazki figure{}
    #druga .obrazki figure img{
        height: 400px;
    }
    #druga .zawartosc h2{
        font-size: 3rem;
    }
    #druga .zawartosc img{
        width: 50px;
    }
    /* width */
::-webkit-scrollbar {
  width: 0px;
  height: 0;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#trzecia{
    width: 100%;
    margin-left: 0;
}
#trzecia .zawartosc{
    margin-left: 0;
    width: 100%;
    padding: 0;
}
    #trzecia .ja{
        /* width: 25%; */
        /* max-width: 150px; */
        /* height: auto; */
    }

    #trzecia .ryba{
        width: 90px;
    }

    #trzecia .tekst{
        width: 100%;
    }

    #trzecia h2{
        font-size: 3rem;
    }

    #trzecia p{
        font-size: 1.4rem;
    }
    /* #trzecia{
        padding: 2rem 0;} */
        /* żeby scroll-x się chował za krawędzią ekranu */

    /* #trzecia h2{
        position: static;} */
    
    /* #trzecia .zawartosc{
        flex-wrap: nowrap;
        
        overflow-x: scroll;
        justify-content: flex-start;
        padding: 4rem 2rem;

        scroll-snap-type: x mandatory;} */
    /* #trzecia article{
        flex: 1 0 80%;
        background-color: #E6E6E6;
        opacity: 1;

        scroll-snap-align: center;} */
    /* #trzecia article img{
        opacity: 1;} */
}/* KONIEC MOBILE 600PX */