@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@500;600&display=swap');

:root {
    --main-color: rgb(245, 245, 245);
    --secondary-color: rgba(238, 228, 228, 0.582);
}


*{
    box-sizing: border-box;
}

body{
    background-color: var(--main-color);
    margin: 0px;
    padding: 0px;
}

.banner{
    background: url(../images/banner.jpg);
    background-size: cover;
    height: 35vh;
    border-bottom: solid black;
    border-width: 1.5px;
}

.header{
    text-align: center;
    padding: 1.2em;
    font-family: 'dancing script';   
    text-decoration: underline solid rgb(39, 39, 39);
}
.header h1{
    font-stretch: wider;
    font-size: 15vh;
}

nav ul{
    margin: 0;
    padding: 0;
    display: flex;
    text-align: center;
    justify-content: space-around;
}
nav li{
    list-style: none;
    padding: 1em;
    width: 100%;
}
nav a{
    padding: .5em;
    color: black;
    font-weight: 500;
    font-size: 1.5em;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
nav a:hover{
    text-decoration: none;
    color: black;
    border-bottom: 2.5px solid black;
    transition: .3s all ease-in;
}

main{
    font-family: serif;
}

#toggle{
    display: none;
}
.label{
    font-size: 32px;
    line-height: 80px;
    display: none;
    width: 35px;
    float: left;
    color: black;
}

.home-container{
    background-color: var(--main-color);
}
.home-content{
    padding: 2em;
    margin-left: 2em;
    font-family: serif;
    text-align: center;
}
.home-content h1{
    margin-bottom: .5em;
    font-weight: bolder;
}
.home-content hr{
    width: 225px;
    background-color: rgb(58, 58, 58);
    height: 1px;
}

.slider{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-bottom: 4vh;
    padding-left: 2em;
    padding-right: 2em;
}
.slide{
    width: 90%;
    background-color: var(--main-color);
    height: 28vh;
    display: block;
    background-size: cover;
}
.recipes a{
    background: url(../images/lunch.jpg);
    height: 28vh;
    display: block;
    background-size: cover;
    border-radius: 4vh;
}
.baking a{
    background: url(../images/baking.jpg);
    height: 28vh;
    display: block;
    background-size: cover;
    border-radius: 4vh;
}
.gallery a{
    background: url(../images/gallery2.jpg);
    height: 28vh;
    display: block;
    background-size: cover;
    border-radius: 4vh;
}
.contact a{
    background: url(../images/contact.jpg);
    height: 28vh;
    display: block;
    background-size: cover;
    border-radius: 4vh;
}

.slide a h1{
    text-align: center;
    align-items: center;
    color: var(--main-color);
    font-family: 'dancing script';
    text-transform: capitalize;
    font-size: 5em;
    padding-top: .5em;
}
.slide a:hover{
    text-decoration: none;
    border: 1px solid black;
}

.recipesContainer{
    display: flex;
    align-items: center;
    justify-content: center;
}
.box{
    padding-bottom: 2.5em;
    padding-left: 1em;
    padding-right: 1em;
}
.breakfast a{
    background: url(../images/eggs.jpg);
    height: 35vh;
    width: 47vh;
    display: block;
    background-size: cover;
    border-radius: 4vh;
    border: .5px solid black;
}
.lunch a{
    background: url(../images/lunch.jpg);
    height: 35vh;
    width: 47vh;
    display: block;
    background-size: cover;
    border-radius: 4vh;
    border: 1px solid black;
}
.dinner a{
    background: url(../images/soup.jpg);
    height: 35vh;
    width: 47vh;
    display: block;
    background-size: cover;
    border-radius: 4vh;
    border: 1px solid black;
}
.beverages a{
    background: url(../images/beverage.jpg);
    height: 35vh;
    width: 47vh;
    display: block;
    background-size: cover;
    border-radius: 4vh;
    border: 1px solid black;
}
.box a h1{
    text-align: center;
    align-items: center;
    color: black;
    font-family: 'dancing script';
    text-transform: capitalize;
    font-size: 5em;
    padding-top: .7em;
}
.box a:hover{
    text-decoration: none;
    border: 2px solid black;
}

.return{
    text-align: center;
    padding-bottom: 1em;
}

.recipe-container{
    width: 100%;
    margin: 0 auto;
    padding: 5em;
}
.recipe-image{
    width:300px;
    height: auto;
    justify-content: center;
    align-items: center;
}
.recipe-title h1{
    justify-content: center;
    text-align: center;
}
.recipe-title hr{
    width: 50%;
    background-color: rgb(139, 139, 139);
}
.ingredients h3{
    justify-content: center;
    text-align: center;
    font-size: x-large;
}
.ingredients p{
    text-align: center;
    justify-content: center;
}
.ingredients hr{
    width: 150px;
    background-color: rgb(163, 162, 162);
}
.directions h3{
    justify-content: center;
    text-align: center;
    font-size: larger;
}
.directions hr{
    width: 150px;
    background-color: rgb(163, 163, 163);
}
.seperator{
    background-color: rgb(90, 90, 90);
    height: 1px;
}

.gallery{
    display: grid;
    grid-template-columns: 300px 300px 300px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 20px;
    padding-bottom: 4em;
}
.card a img{
    width: 100%;
    height: 100%;
}
.card img{
    width: 100%;
    height: 100%;
}


.footerImage{
    background: url(../images/footer.jpg);
    background-size: cover;
    height: 28vh;
    border-top: solid black;
    border-width: 1.5px;
}
.footer{
    background-color: rgb(58, 58, 58);
    height: 13vh;
    background-size: cover;
    border-top: 1.5px solid var(--main-color);
}
.footer p{
    color: var(--main-color);
    text-align: center;
    padding-top: 4vh;
}

@media(max-width:750px){

    .label{
        display: block;
        cursor: pointer;
    }
    nav ul{
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
        top: 3em;
        width: 75%;
        position: absolute;
        background-color: lightgray;
        display: none;
    }
    #toggle:checked+.navigation{
        display: block;
    }
    nav a{
        opacity: 1;
    }
    .navigation a{
        display: block;
        margin: 0;
    }

    .recipesContainer{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}