*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
:root{
    --blue: rgb(21, 182, 182);
    --pink: rgb(255, 192, 236);
    --black: black;
    --grey: grey;
    --white: white;
}
@keyframes zoomIn {
    from {transform: scale(0.6);}
    to {transform: scale(1);}
}
@keyframes fadeIn {
    from{
        opacity: 0;
        scale: .5;
        transform: translateY(50px);
    }
    to{
        opacity: 1;
        scale: 1;
        transform: translateY(0);
    }
}
body{
    /* padding: 0px 50px; */
    background-color: var(--white);

    /* Navs and logos */
    .topNav{
        position: sticky;
        width: 100%;
        top: 0;
        padding: 15px 40px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        background-color: rgba(168, 166, 166, 0.178);
        box-shadow: 2px 3px 11px rgb(172, 171, 171);
        backdrop-filter: blur(5px);
        z-index: 99;

        h2{
            font-weight: bolder;
            color: black;
            font-family: Georgia, 'Times New Roman', Times, serif;

            a{
                text-decoration: none;
                color: var(--black);
                cursor: pointer;
            }
        }
        ul{
            display: flex;
            flex-direction: row;

            li{
                list-style-type: none;
                padding: 0 20px;

                a{
                    text-decoration: none;
                    color: var(--black);
                    position: relative;
                    
                    

                    &:hover{
                        &::before{
                            content: '';
                            position: absolute;
                            height: 2px;
                            width: 50%;
                            background-color: var(--black);
                            bottom: -4px;
                            border-radius: 30px;
                            transition: 2s ease-in-out;
                        }
                    }
                }
            }
        }
        .location{
            display: flex;
            align-items: center;

            span{
                font-size: 30px;
            }
            #menu{
                margin-left: 15px;
                font-size: 35px;
                display: none;
            }
            #close{
                margin-left: 15px;
                font-size: 35px;
                display: none;
            }
        }
    }
    aside {
        display: none;
        width: 100%;
        background-color: rgba(199, 198, 198, 0.397);
        backdrop-filter: blur(5px);
        position: fixed;
        top: 64.68px;
        z-index: 99;

        ul{
            display: flex;
            flex-direction: column;

            li{
                display: block;
                list-style-type: none;

                a{
                    display: block;
                    text-decoration: none;
                    color: var(--black);
                    position: relative;
                    padding: 12px 20px;
                }
                &:hover{
                    background-color: var(--white);
                }
            }
        }
    }
    #whatsappIcon{
        position: fixed;
        font-size: 4.5em;
        top: 75%;
        z-index: 9;

        ion-icon{
            color: green;
        }
    }

    .section{
        animation: fadeIn linear;
        animation-timeline: view();
        animation-range: entry 0% cover 40%;
    }
    /* Home section */
    #home{
        min-height: calc(100vh - 67.78px);
        position: relative;

        img{
            position: absolute;
            max-height: 70%;
            max-width: 50%;
            right: 0;
            bottom: 10px;
            border-top-left-radius: 500px;
        }

        h1{
            color: var(--grey);
            font-size: 5em;
            padding: 30px 50px;
            -webkit-text-stroke: 2px var(--grey);
        }
        p{
            font-size: 2em;
            margin: 10px 50px;
        }
        .chooseCake{
            display: block;
            margin: 0 50px ;
            height: 4.5em;
            width: 15em;
            left: 23em;
            border-radius: 15px;
            font-weight: bold;

            &:hover{
                background-color: var(--blue);
            }
        }
        .imgshowcase{
            margin: 10px 50px;
            height: 15rem;
            max-width: 40%;
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;

            .image{
                height: 100%;
                width: 30%;
                border-radius: 5px;
                background-image: url(background.jpg);
                background-size: cover;
            }
        }
       
        
    }
    /* catalog section */
    #catalog{
        min-height: 100vh;
        position: relative;

        .catalog{
            position: relative;
            display: block;
            margin: 50px auto;
            font-size: 3.5rem; 
            background-color: transparent;
            border: none;
            color: var(--black);

            &::before{
                content: '';
                position: absolute;
                height: 25px;
                width: 100%;
                padding: 0 20px;
                border-top-left-radius: 150px;
                border-bottom-right-radius: 150px;
                background-color: var(--blue);
                z-index: -1;
                bottom: 5px;
                left: -20px;
            }

        }

        ul{
            display: flex;
            width: 45%;
            margin: auto;
            flex-direction: row;
            justify-content: space-between;

            li{
                display: block;
                list-style-type: none;
                width: 100%;
                text-align: center;
                padding: 5px;

                a{
                    display: block;
                    text-decoration: none;
                    color: var(--black);
                    font-weight: lighter;
                    padding: 4px;
                }
                &:hover{
                    position: relative;
                    border-bottom: 1px solid black;

                    /* ::before{
                        content: '';
                        position: absolute;
                        height: 1px;
                        width: 100%;
                        background-color: black;
                        bottom: 0;
                    } */
                }
                
            }
            .hoverLi{
                    border-bottom: 1px solid black;
                }
        }
        #cakeType{
            display: flex;
            min-height: calc(100vh - 29px);
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            scroll-behavior: smooth;
            transition: 2s ease-in-out;
            scrollbar-width: none;

            #cakes{
                display: flex;
                flex-wrap: wrap;
                padding: 50px 50px;
                min-height: calc(100vh - 29px);
                width: 100%;
                flex: 0 0 100%;
                scroll-snap-align: center;

                .image{
                    position: relative;
                    display: flex;
                    flex-direction: column;
                    height: 350px;
                    width: 270px;
                    border: 1px solid grey;
                    border-radius: 8px;
                    align-items: center;
                    margin: 10px auto;

                    img{
                        height: 230px;
                        width: 200px;
                        margin-top: 25px;
                        border-radius: 10px;
                    }
                    span,b{
                        margin-top: 5px;
                        padding: 5px 0;
                    }
                    button{
                        position: absolute;
                        padding: 5px;
                        width: 75%;
                        margin: auto;
                        bottom: 20px;
                        border-radius: 4px;
                        border: 1px solid black;
                        background-color: transparent;
                        transition: .5s ease-in-out;

                        &:hover{
                            background-color: var(--blue);
                        }
                    }

                }

            } 
            #weddingCakes{
                display: flex;
                flex-wrap: wrap;
                padding: 50px 50px;
                min-height: calc(100vh - 29px);
                width: 100%;
                flex: 0 0 100%;
                scroll-snap-align: center;

                .image{
                    position: relative;
                    display: flex;
                    flex-direction: column;
                    height: 370px;
                    width: 270px;
                    border: 1px solid grey;
                    border-radius: 8px;
                    align-items: center;
                    margin: 10px auto;

                    img{
                        height: 230px;
                        width: 200px;
                        margin-top: 25px;
                        border-radius: 10px;
                    }
                    span,b{
                        padding: 5px 0;
                    }
                    button{
                        position: absolute;
                        padding: 5px;
                        width: 75%;
                        margin: auto;
                        bottom: 20px;
                        border-radius: 4px;
                        border: 1px solid black;
                        background-color: transparent;
                        transition: .5s ease-in-out;
                        
                        &:hover{
                            background-color: var(--blue);
                        }
                    }

                }
            }
            #pastries{
                display: flex;
                flex-wrap: wrap;
                padding: 50px 50px;
                min-height: calc(100vh - 29px);
                width: 100%;
                flex: 0 0 100%;
                scroll-snap-align: center;

                .image{
                    position: relative;
                    display: flex;
                    flex-direction: column;
                    height: 370px;
                    width: 270px;
                    border: 1px solid grey;
                    border-radius: 8px;
                    align-items: center;
                    margin: 10px auto;

                    img{
                        height: 230px;
                        width: 200px;
                        margin-top: 25px;
                        border-radius: 10px;
                    }
                    span,b{
                        padding: 5px 0;
                    }
                    button{
                        position: absolute;
                        padding: 5px;
                        width: 75%;
                        margin: auto;
                        bottom: 20px;
                        border-radius: 4px;
                        border: 1px solid black;
                        background-color: transparent;
                        transition: .5s ease-in-out;
                        
                        &:hover{
                            background-color: var(--blue);
                        }
                    }

                }
            }
            #modal{
                display: none;
                flex-direction: column;
                align-items: center;
                position: fixed;
                top: 0;
                right: 0;
                height: 100%;
                width: 100%;
                background-color: rgba(0,0,0,0.8);
                align-items: center;
                z-index: 999;
                transition: opacity 0.5s ease;

                span{
                    position: absolute;
                    top: 15px;
                    right: 15px;
                    font-size: 4em;
                    color: white;
                    cursor: pointer;
                }
                .imgContainer{
                    display: flex;
                    background-color: white;
                    margin: auto;
                    height: 75%;
                    width: 75%;
                    border-radius: 10px;
                    overflow: hidden;
                    animation: zoomIn .5s;


                    #cakeText{
                        width: 100%;
                        height: 100%;
                        text-wrap-mode: nowrap;
                        text-align: center;
                    }

                    #modalImg{
                        width: 100%;
                        height: 100%;
                    }
                }
                
            }
        

        }

    }
    
    
    /* Made Fresh daily */
    #madeFresh{
        position: relative;
        padding: 10px 50px;

        .madeFresh{
            position: relative;
            display: block;
            margin: 50px auto;
            font-size: 2.5rem; 
            background-color: transparent;
            border: none;
            color: var(--black);

            &::before{
                content: '';
                position: absolute;
                height: 20px;
                width: 100%;
                padding: 0 20px;
                border-top-left-radius: 150px;
                border-bottom-right-radius: 150px;
                background-color: var(--blue);
                z-index: -1;
                bottom: 5px;
                left: -20px;
            }

        }
        .outlineDisplay{
            display: flex;
            margin: 30px auto;
            height: 100%;
            width: 100%;
            justify-content: center;
            gap: 30px;
            flex-wrap: wrap;
            
            

            .container{
                display: flex;
                flex-direction: column;
                align-items: center;
                height: auto;

                .outline{
                    height: 17em;
                    width: 17em;
                    background-size: cover;
                    object-fit: cover;
                }
            }

        }
    }

    /* About section */
    #about{
        min-height: 100vh;
        padding: 10px;
        
        .aboutUs{
            position: relative;
            display: block;
            margin: 50px auto;
            font-size: 3rem; 
            background-color: transparent;
            border: none;
            height: 30px;
            border-top-left-radius: 100px;
            border-bottom-right-radius: 100px;
            color: var(--black);

            &::before{
                content: '';
                position: absolute;
                height: 20px;
                width: 100%;
                padding: 0 20px;
                border-top-left-radius: 150px;
                border-bottom-right-radius: 150px;
                background-color: var(--blue);
                z-index: -1;
                bottom: -20px;
                left: -20px;
            }

        } 

        .container{
            display: flex;
            height: 100%;
            margin: 30px 50px;
            padding: 50px 0;
            align-items: center;
            justify-content: space-between;
            gap: 50px;

            .left{
                width: 50%;
                height: 100%;
                display: flex;
                flex-direction: column;

                p{
                    font-weight: bold;
                    font-size: x-large;
                }
                span{
                    margin-top: 30px;
                    font-size: large;
                }
            }
            .right{
                width: 50%;
                height: 100%;
                display: flex;
                align-items: center;
                gap: 15px;

                .imageContainer{
                    display: flex;
                    flex-direction: column;
                    gap: 20px;

                    img{
                        /* height: 48%; */
                        height: 10em;
                        width: 98%;
                        border-radius: 5px;

                        
                    }
                }
                img{
                    height: 21em;
                    width: 60%;
                    border-radius: 5px;
                }
            }
        }
    }

    /* How It Works */
    #howitWorks{
        min-height: 50vh;

        .howitWorks{
            position: relative;
            display: block;
            margin: -20px auto;
            font-size: 2.7rem; 
            background-color: transparent;
            border: none;
            color: var(--black);

            &::before{
                content: '';
                position: absolute;
                height: 20px;
                width: 100%;
                padding: 0 20px;
                border-top-left-radius: 150px;
                border-bottom-right-radius: 150px;
                background-color: var(--blue);
                z-index: -1;
                bottom: 5px;
                left: -20px;
            }
        }
        .numbers{
            display: flex;
            flex-wrap: wrap;
            padding: 50px;
            /* background-color: red; */
            justify-content: center;
            gap: 30px;
            width: 90%;
            margin: 25px auto;
            align-items: center;

            .num{
                position: relative;
                height: 8em;
                width: 13em;
                /* background-color: rgb(233, 231, 231); */

                span{
                    position: absolute;
                    top: -35px;
                    left: -10px;
                    font-size: 8em;
                    -webkit-text-stroke: 6px rgb(218, 214, 214);
                    color: rgb(218, 214, 214);
                    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
                    transform: rotate(10deg);
                    z-index: -1;
                }
                .order{
                    display: flex;
                    flex-direction: column;
                    text-align: center;
                    margin: 20px 0;

                    b{
                        font-weight: bolder;
                        -webkit-text-stroke: 1px rgb(41, 41, 41);
                        color: rgb(41, 41, 41);
                    }
                    p{
                        font-weight: bold;
                        color: rgb(87, 86, 86);
                    }
                }
            }
        }
    }

    /* Our Chefs Page */
    #chefsPage{
        min-height: 50vh;

        .chefsBtn{
            position: relative;
            display: block;
            margin: -20px auto;
            font-size: 2.7rem; 
            background-color: transparent;
            border: none;
            color: var(--black);

            &::before{
                content: '';
                position: absolute;
                height: 20px;
                width: 100%;
                padding: 0 20px;
                border-top-left-radius: 150px;
                border-bottom-right-radius: 150px;
                background-color: var(--blue);
                z-index: -1;
                bottom: 5px;
                left: -20px;
            }
        }
        .chefsPage{
            position: relative;
            margin: 50px auto;
            height: 100%;
            width: 60%;
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;

            .baker{
                height: 22em;
                width: 15em;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                margin: 0 auto;

                .image{
                    height: 80%;
                    width: 11.5em;
                    border-radius: 95px;
                    background-size: cover;
                }
                b{
                    font-weight: bolder;
                    margin: 5px 0;
                }
                i{
                    color: rgb(31, 30, 30);
                    font-size: small;
                }
            }
            .chef1{
                background-image: url(chef1.jpg);
            }
            .chef2{
                background-image: url(chef2.jpg);
            }
            .chef3{
                background-image: url(chef3.jpg);
            }
            /* .baker:nth-child(1),.baker:nth-child(3){
                margin-top: 50px;
            } */
        }
    }

    /* Contacts section */
    #contacts{
        min-height: 50vh;
        padding: 50px;

        .contactsBtn{
            position: relative;
            display: block;
            margin: -20px auto;
            font-size: 2.7rem; 
            color: var(--black);
            background-color: transparent;
            border: none;

            &::before{
                content: '';
                position: absolute;
                height: 20px;
                width: 100%;
                padding: 0 20px;
                border-top-left-radius: 150px;
                border-bottom-right-radius: 150px;
                background-color: var(--blue);
                z-index: -1;
                bottom: 5px;
                left: -20px;
            }
        }
        .container{
            display: flex;
            flex-wrap: wrap;
            padding: 100px 0;
            justify-content: center;
            align-items: center;
            gap: 10px;

            .one{
                padding: 10px;
                display: flex;
                flex-direction: column;
                align-items: center;
                height: 12em;
                width: 15.5em;

                span{
                    font-size: 3.5em;
                }
                b{
                    font-size: 1.5em;
                }
                p{
                    margin-top: 5px;
                }
            }
            /* &:nth-child(odd){
                    background-color: red;
                    display: flex;
                    left: 0;
                } */
        }
        .subscribe{
            display: flex;
            flex-direction: row;
            margin: auto;
            height: 10em;
            box-shadow: 2px 3px 13px grey;
            border-radius: 13px;

            .innerContainer{
                display: flex;
                align-items: center;
                width: 70%;
                margin: auto ;
                justify-content: center;
                gap: 50px 100px ;

                .left{
                    display: flex;
                    flex-direction: column;

                    h2{
                        font-size: larger;
                        margin-bottom: 10px;
                        -webkit-text-stroke: 1px;
                        letter-spacing: 1.5px;
                    }
                    
                }
                .right{
                    width: 60%;

                    #inputEl{
                        display: flex;
                        position: relative;
                        height: 45px;
                        width: 100%;
                        border-radius: 15px;
                        border: 1px solid gray;
                        overflow: hidden;

                        input{
                            background-color: transparent;
                            width: 70%;
                            outline: none;
                            border: none;
                            padding: 0 10px;

                        }
                        button{
                            background-color: transparent;
                            height: 100%;
                            position: absolute;
                            right: 0;
                            width: 30%;
                            border-radius: 15px;
                            overflow: hidden;
                            border: 1px solid;
                            transition: .5s ease-in-out;

                            &:hover{
                                transform: translateX(-20px);
                                background-color: var(--blue);
                            }
                        }
                    }
                }
            }
        }
    } 

    /* Reviews section */
    #reviews{
        min-height: 50vh;

        .reviewsBtn{
            position: relative;
            display: block;
            color: var(--black);
            margin: -20px auto;
            font-size: 2.7rem; 
            background-color: transparent;
            border: none;

            &::before{
                content: '';
                position: absolute;
                height: 20px;
                width: 100%;
                padding: 0 20px;
                border-top-left-radius: 150px;
                border-bottom-right-radius: 150px;
                background-color: var(--blue);
                z-index: -1;
                bottom: 5px;
                left: -20px;
            }
        }
        .container{
            display: flex;
            flex-direction: row;
            padding: 50px;
            overflow: auto;
            gap: 50px;
            scroll-snap-type: x mandatory;
            scroll-behavior: smooth;
            height: 27em;

            .review{
                display: flex;
                height: 100%;
                width: 90%;
                box-shadow: 2px 3px 12px grey;
                flex: 0 0 70%;
                transition: .8s;
                scroll-snap-align: center;
                display: flex;
                padding: 30px;
                justify-content: center;
                border-radius: 10px;
                

                &:hover{
                    transform: scale(1.05);
                }

                .left{
                    width: 50%;
                    height: 100%;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;

                    h1{
                        /* font-size: x-large; */
                        font-weight: lighter;
                    }
                    p{
                        font-size: large;
                        color: rgb(46, 45, 45);
                    }
                }
                .right{
                    display: flex;
                    flex-direction: column;
                    width: 50%;
                    height: 100%;

                    img{
                        height: 10em;
                        width: 10em;
                        margin: auto;
                    }
                }
            }
        }
    }
}

/* Mobile devices responsiveness */
@media (max-width: 600px) {
    body{
        /* Top nav and logo */
        .topNav{
            padding: 10px 25px;
            ul{
                display: none;
            }
            .location{
                #loc,#accra{
                    display: none;
                }
                #menu{
                display: block;
                }
            }
        }
        /* Home section */
        #home{
            img{
                padding-top: 30px;
                display: flex;
                margin: auto;
                position: relative;
                max-height: 45%;
                max-width: 87%;
                top: 0;
                border-radius: 20px;
            }
            h1{
                font-size: 3.5em;
            }
            p{
                font-size: 1.5em;
            }

            .imgshowcase{
            height: 11rem;
            max-width: 80%;
            }
        }
        /* catalog section */
        #catalog{
            #cakes{
                display: flex;
                flex-direction: row;
            }
            #modal{
                display: none;
                flex-direction: column;

                .imgContainer{
                    display: flex;
                    flex-direction: column;

                    #cakeText{
                        width: 100%;
                        height: 50%;
                    }

                    #modalImg{
                        width: 100%;
                        height: 50%;
                    }
                }
            }
        }

        /* Made fresh */
        #madeFresh{
            /* min-height: 115vh; */
        }

        /* About section */
        #about{
            .container{
                flex-direction: column;

                .left{
                    width: 100%;
                }
                .right{
                    width: 100%;
                }
            }
            

        }

        /* Reviews section */
        #reviews{

        }

        /* Contacts section */
        #contacts{

        }
    }
}
/* Tablet device responsiveness */
@media (max-width: 768px) {
    body{
        /* Top nav and logo */
        .topNav{
            padding: 10px 25px;

            ul li{
                padding: 0 10px;
            }
        }

        /* Home section */
        #home{
            img{
                padding-top: 30px;
                display: flex;
                margin: auto;
                position: relative;
                max-height: 45%;
                max-width: 87%;
                top: 0;
                border-radius: 20px;
            }

            .imgshowcase{
            height: 11rem;
            max-width: 80%;
            }
        }

        /* About section */
        #about{
            .container{
                flex-direction: column;

                .left{
                    width: 100%;
                }
                .right{
                    width: 100%;
                }
            }

        }
        /* catalog section */
        #catalog{
            

        }
        /* Made fresh */
        #madeFresh{
            
        }

        /* How it works */
        #howitWorks{

        }

        /* Reviews section */
        #reviews{
            .container{
                height: 45em;

                    .review{
                    display: flex;
                    flex-direction: column;
                    height: 40em;
                    flex: 0 0 100%;

                    .left{
                        width: 100%;
                        font-size: small;
                        
                    }
                    
                    .right{
                        width: 100%;
                        height: 50%;
                    }
                }
            }

        }

        /* Contacts section */
        #contacts{

            .subscribe{
                height: 20em;
                

                .innerContainer{
                    display: flex;
                    flex-direction: column;

                    .left{
                        width: 100%;
                    }
                    .right{
                        width: 100%;

                        button{
                            padding: 00px;
                        }
                    }
                }
            }

        }

    }

    
}