@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600&display=swap');

/*Body*/
*{
    transition: all .2s linear;
}

section{
    width: 100%;
    padding: 78px 0px;
}


.third{background-color: var(--secondary);}
.fourth{background-color: var(--third);}

body{
    background: url(../pictures/homebackground.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding-top: 4em;
}

.first{
    display: flex;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.first .home{
    color: var(--white);
    margin-right: 35em;
}
@media screen and (max-width:1200px){.first .home{margin-right: 0;}}

.first .home h1{
    font-size: 3rem;
    max-width: 600px;
}
.first .home p{
    font-weight: 300;
    margin-top: 15px;
    max-width: 600px;
    font-size: 20px;
}
button{
    background: var(--white);
    outline: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 38px;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease-in;
}
button:hover{background: var(--main);}

.second .third, .fourth{
    display: flex;
    align-items: center;
    padding-left: 8%;
    overflow: hidden;
}

.col{flex-basis: 50%;}
.textcol{margin-left: 2%;}

.second h1, .third h1, .fourth h1{
    color: var(--white);
    font-size: 60px;
}

.second p, .third p, .fourth p{
    color: var(--white);
    font-size: 20px;
}

.card{
    width: 200px;
    height: 200px;
    display: inline-block;
    border-radius: 10px;
    padding: 15px 25px;
    box-sizing: border-box;
    cursor: pointer;
    margin: 10px 15px;
    background-position: center;
    background-size: cover;
    transition: transform 0.5s;
}

.card1{background-image: url(../pictures/catalogue/ekler.webp);}
.card2{background-image: url(../pictures/catalogue/muffin.webp);}
.card3{background-image: url(../pictures/catalogue/banica.webp);}
.card4{background-image: url(../pictures/catalogue/chokostrawberry.webp);}

.card h5{
    color: var(--white);
    font-size: 16px;
    text-shadow:
    5px 5px 5px var(--main),
    1em 1em 1em var(--main),
    0 0 0.2em var(--main);
}

.card:hover{transform: translateY(-10px);}

.fourth img{
    height: auto;
    max-height: 75vh;
    width: 600px;
    max-width: 100%;
    border-radius: 20px;
}

.fourth{
    display: flex;
    align-items: center;
    padding-left: 8%;
    overflow: hidden;
}

.fourth .col:last-child{
    margin-left: 30px;
}

@media screen and (min-width:1440px){
    .card{
        width: 300px;
        height: 300px;
    }
    .card h5{font-size: 24px;}
    .fourth p, .second p, .third p, .first p{font-size: 30px;}
}

@media screen and (max-width: 999px) {
    .col:first-child{flex-basis: 40%;}
    .col:last-child{flex-basis: 60%;}
}

@media (max-width: 880px) {
    .second, .fourth, .third{
        height: 180vh;
        flex-direction: column;
        padding-left: 0;
        align-items: center;
        justify-content: center;
    }
    .second{
        height: 150vh;
    }
    .textcol{
        margin-left: 20px;
        margin-right: 20px;
    }
    .card{
        width: 250px;
        height: 150px;
        padding: 15px 25px;
        margin: 22px;
        display: flex;
    }
    .col:first-child{
        flex-basis: 10%;
    }
    .col:last-child{
        flex-basis: 90%;
    }
    button{
        display: block;
        margin: auto;
        margin-top: 30px;
    }
} 

@media screen and (max-width:650px){
    section{padding: 0;}

    .fourth img{
        border-radius: 0;
        width: 100%;
        margin: 0;
    }

    h1{font-size: 40px;}
}


@media (max-width: 320px) {
    .second,.fourth, .third{
        height: 200vh;
    }
}

