html, body{
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding and borders don’t affect total width */
    overflow-x: hidden;
}
/*Global*/
header{
    background-color: #525760;
    display: flex;
    flex-direction: row;
}
footer{
    background-color: #1C1854;
    display: grid;
    grid-template-columns:1fr 1fr 1fr 1fr;
    grid-template-areas: "footerlogo footerpara1 footerpara2 footersocials";
    width: 100%;
    height: 130px;
    gap: 10px;
    position: relative;
}
nav{
    background-color: #525760;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}
/*Grids*/
#home-page{
    display: grid;
    grid-template-columns:repeat(3,1fr);
    grid-template-areas: "RecipeSection1 RecipeSection2 RecipeSection3" "RecipeSection4 RecipeSection5 RecipeSection6" "RecipeSection7 RecipeSection8 RecipeSection9";
    width: 95%;
    gap: 30px;
    clear: both;
    position: relative;
    height: auto;
    box-sizing: border-box;
    padding: 20px;
    margin: auto;
}
.recipe-submenu-main{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-template-areas: "BackButtonSection MainSectionPiece RightHandSection" "BackButtonSection2 MainSectionPiece2 RightHandSection2" "BackButtonSection3 MainSectionPiece3 RightHandSection3" "BackButtonSection4 MainSectionPiece4 RightHandSection4" "BackButtonSection5 MainSectionPiece5 RightHandSection5";
    width: 100%;
    gap: 20px;
    clear: both;
    position: relative;
    height: auto;
    box-sizing: border-box;
    padding: 20px;
}
#main-recipe-page{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-template-areas: "GridSection1 GridSection2 GridSection3" "GridSection4 GridSection5 GridSection6" "GridSection7 GridSection8 GridSection9";
    width: 95%;
    gap: 20px;
    clear: both;
    position: relative;
    height: auto;
    box-sizing: border-box;
    padding: 20px; 
    margin: auto; 
}
#faq-grid{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-template-areas: "faqsec1 faqsec2 faqsec3" "faqsec4 faqsec5 faqsec6" "faqsec7 faqsec8 faqsec9" "faqsec10 faqsec11 faqsec12" "faqsec13 faqsec14 faqsec15";
    width: 100%;
    gap: 20px;
    clear: both;
    position: relative;
    height: auto;
    box-sizing: border-box;
    padding: 20px; 
}
#about-us-grid{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-template-areas: "absec1 absec2 absec3" "absec4 absec5 absec6" "absec7 absec8 absec9" "absec10 absec11 absec12" "absec13 absec14 absec15";
    width: 100%;
    gap: 20px;
    clear: both;
    position: relative;
    height: auto;
    box-sizing: border-box;
    padding: 20px;  
}
/*faq grid area selection*/
#faq-grid-object1{
    grid-area: faqsec2;
}
#faq-grid-object2{
    grid-area: faqsec5;
}
#faq-grid-object3{
    grid-area: faqsec8;
}
#faq-grid-object4{
    grid-area: faqsec11;
}
#your-recipe-submission-section{
    grid-area: faqsec14;
}
/*About us Page Grid Area selections*/
#about-us-section1{
    grid-area: absec2
}
#about-us-section2{
    grid-area: absec5;
}
#about-us-section-2{
    grid-area: absec8;
}
#about-us-section3{
    grid-area: absec11;
}
#recipe-submission-about-us-section{
    grid-area: absec14;
}
/*Main Recipe Page Grid Areas selection*/
#egg-bhurji-section{
    grid-area: GridSection1;
}
#sheepherders-breakfast-section{
    grid-area: GridSection2;
}
#breakfast-pancakes-section{
    grid-area: GridSection3;
}
#baklava-section{
    grid-area: GridSection4;
    grid-column: span 2;
}
#pot-beef-stew-section{
    grid-area: GridSection6;
}
#roast-potatoes-section{
    grid-area: GridSection7;
}
#prawn-noodles-section{
    grid-area: GridSection8;
}
#hummus-chicken-section{
    grid-area: GridSection9;
}
/*Recipe route example grid areas*/
.recipe-page-back-button{
    grid-area: BackButtonSection;
}
.submenu-recipe-header{
    grid-area: MainSectionPiece;
}
.submenu-recipe-description{
    grid-area: BackButtonSection2;
    grid-column: span 3;
}
.submenu-recipe-ingredients{
    grid-area: BackButtonSection3;
    grid-column: span 3;
}
.submenu-recipe-steps{
    grid-area: BackButtonSection4;
    grid-column: span 3;
}
.recipe-page-back-button-bottom{
    grid-area: BackButtonSection5;
}
/*Home Page Grid Areas for containers*/
#pan-fried-grid-object{
    grid-area: RecipeSection1;
    grid-column: span 2;
}
#pasta-bake-grid-object{
    grid-area: RecipeSection3;
}
#ranch-steaks-grid-object{
    grid-area: RecipeSection4;
}
#ravioli-lasangna-grid-object{
    grid-area: RecipeSection5;
    grid-column: span 2;
}
#home-page-recipe-submission-section{
    grid-area: RecipeSection8;
}
/*Footer Grid Area's for containers*/
.footer-logo-div{
    grid-area: footerlogo;
}
.foot-object1{
    grid-area: footerpara1;
    grid-column: span 2;
}
.foot-object2{
    grid-area: footersocials;
}
.foot-object3{
    grid-area: footersocials;
}
/*index Page content styling*/
.home-page-recipes-style1{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}
.home-page-recipes-style1 img{
    width: 100%;
    height: 75vh;
}
.home-page-recipes-style2{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}
.home-page-recipes-style2 img{
    width: 100%;
    height: 75vh;
    justify-self: center;
    align-self: center;
}
.recipe-headers{
    font-size: 35px;
    color: black;
    font-family: Garamond, serif;
}
.recipe-descriptions{
    font-size: 25px;
    color: black;
    font-family: Garamond, serif;
}
#home-page-recipe-submission-article{
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

#home-page-recipe-submission-article h3{
    font-size: 35px;
    align-items: center;
    align-content: center;
    text-align: center;
    font-family: Garamond, serif;
}
#home-page-recipe-submission-article p{
    font-size: 25px;
    align-items: center;
    align-content: center;
    text-align: center;
    font-family: Garamond, serif;
}
@media screen and (min-width: 602px) {
    #mobile-footer-design{
        display: none;
    }
}
/*Header Styling*/
nav a{
    text-decoration: none;
    color: white;
    margin: 10px;
    font-size: 25px
}
.logo-div{
height: 10vh;
}
.logo-div img{
    height: 100%;
}
/*Home Page Banner styling*/
.home-page-banner{
    position: relative;
}
.home-page-banner img{
    width: 100%;
    height: 25vh;
    z-index: 1;
}
.home-page-banner h2{
    position: absolute;
    top: 25%;
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 35px;
    font-family: Garamond, serif;
    z-index: 2;
}
/*Recipe submission form content styling*/
form{
    width: 100%;
    max-width: 700px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}
.form-headings{
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
}
input, textarea{
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 10px
    
}
/*About us page content styling*/
.about-us-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
}
.about-us-content h1{
    font-size: 35px;
    font-family: Garamond, serif;
}
.about-us-content p{
    font-size: 25px;
    font-family: Garamond, serif;
}

#about-us-content2{
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
}
#about-us-content2 img{
    display: flex;
    justify-content: center;
    align-items: center;
}
/*Recipe page content styling*/
#recipe-page-banner-title{
    color: white;
    font-family: Garamond, serif;
    font-size: 35px;
}
.recipe-image-sizing{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    text-decoration: none;
}
.recipe-image-sizing img{
    width: 95%;
    height: 50vh;
}
.recipe-image-sizing{
    text-decoration: none;
    color: black;
}
.recipe-image-sizing p{
    width: 80%;
}
#baklava-recipe-image-styling img{
    display: flex;
    flex-direction: column;
    justify-content: left;
    width: 100%;
    height: 50vh;
}
.recipe-page-headers{
    font-family: Garamond, serif;
    font-size: 35px;
}
.recipe-page-descriptions{
    font-family: Garamond, serif;
    font-size: 25px;
}
#baklava-recipe-image-styling{
    text-decoration: none;
    color: black;
    font-size: 20px;
}
/*Recipe Route Example styling*/
.recipe-page-back-button img{
    width: 20%;
    height: auto;
    object-fit: contain;
}
.recipe-page-back-button-bottom img{
    width: 20%;
    height: auto;
    object-fit: contain;
}
.submenu-recipe-banner{
    display: flex;
    flex-direction: row;
}
.submenu-recipe-banner img{
    width: 100%;
    height: 30vh;
}
.sub-recipe-header{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center; 
    width: 100%;
}
.sub-recipe-header h2{
    text-align: center;
    font-family: Garamond, serif;
    font-size: 45px;
}
.recipe-info-headers{
    font-size: 40px;
    font-family: Garamond, serif;
}
.recipe-info-text{
    font-size: 20px;
}
/*FAQ content styling*/
.your-recipes-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    font-size: 25px;

}
.your-recipes-content h1{
    font-size: 35px;
    font-family: Garamond, serif;
}
.your-recipes-content p{
    font-size: 25px;
    font-family: Garamond, serif;
}

#your-recipe-submission-article{
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    font-size: 25px;
}
#your-recipe-submission-article h3{
    font-size: 30px;
    font-family: Garamond, serif;
}
#your-recipe-submission-article h2{
    font-size: 30px;
    font-family: Garamond, serif;
}
#dishydelights-social-handle p{
    font-size: 35px;
    text-decoration: none;
    color: #866625;
}
#dishydelights-social-handle{
    text-decoration: none;
}
/*FAQ page banner styling*/
.your-recipe-banner{
    position: relative;
}
.your-recipe-banner img{
    width: 100%;
    height: 35vh;
}
/*Styling for footer elements*/
.footer-logo-div{
    width: 10vh;
}
.footer-logo-div img{
    width: 10vh;
}
#footer-paragraph p{
    color: white;
    justify-content: center;
    align-items: center;
}
#footer-links a{
    text-decoration: none;
    display: flex;
    color: white;
    position: relative;
    top: 25px;
}
#footer-socials img{
    width: 5vh;
    display: flex;
    float: right; 
    position: relative;
    top: 40px;
}
/*Recipe submission form styling*/
#recipe-submission-form-main{
    display: flex;
    justify-content: center;
    align-items: center;
}
/*Home Page Content styling for tablet*/
@media screen and (max-width: 602px) {
    body {
        font-size: 16px;
        line-height: 1.5;
    }

    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: sticky;
        top: 0;
        z-index: 3;
    }

    nav {
        display: none;
    }

    .logo-div img {
        max-width: 100%;
        height: 10vh;
    }
    #home-page{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    .home-page-recipes-style1 img,
    .home-page-recipes-style2 img{
        max-width: 90%;
        height: auto;
    }
    .footer-logo-div,
    .foot-object1,
    .foot-object2,
    .foot-object3{
        display: none;
    }
    #footer-buttons {
        display: flex;
        align-items: center;
        padding: 10px;
        gap: 20px;
    }
    footer{
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
    }
    #footer-buttons a{
        text-decoration: none;
        font-size: 30px;
        color: white;
        font-family: Garamond, serif;
    }
    .recipe-page-back-button img{
        width: 50%;
        height: auto;
        object-fit: contain;
    }
    .recipe-page-back-button-bottom img{
        width: 50%;
        height: auto;
        object-fit: contain;
    }
    #main-recipe-page{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    .recipe-image-sizing img{
        max-width: 90%;
        height: auto;
    }
    #about-us-grid{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    #faq-grid{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    .home-page-banner h2{
        font-size: 25px;
    }
    input, textarea {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 10px;
        box-sizing: border-box;
    }
    .about-us-content img{
        display: flex;
        width: 80%;
        height: auto;
    }
    #about-us-content2 img{
        display: flex;
        width: 80%;
        height: auto;
    }
}
/*Home Page Content styling for mobile.*/
@media screen and (max-width: 361px) {
    body {
        font-size: 16px;
        line-height: 1.5;
    }

    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: sticky;
        top: 0;
        z-index: 3;
    }

    nav {
        display: none;
    }

    .logo-div img {
        max-width: 100%;
        height: 10vh;
    }
    #home-page{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    .home-page-recipes-style1 img,
    .home-page-recipes-style2 img{
        max-width: 90%;
        height: auto;
    }
    .footer-logo-div,
    .foot-object1,
    .foot-object2,
    .foot-object3{
        display: none;
    }
    #footer-buttons {
        display: flex;
        align-items: center;
        padding: 10px;
        gap: 20px;
    }
    footer{
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
    }
    #footer-buttons a{
        text-decoration: none;
        font-size: 20px;
        color: white;
        font-family: Garamond, serif;
    }
    .recipe-page-back-button img{
        width: 50%;
        height: auto;
        object-fit: contain;
    }
    .recipe-page-back-button-bottom img{
        width: 50%;
        height: auto;
        object-fit: contain;
    }
    #main-recipe-page{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    .recipe-image-sizing img{
        max-width: 90%;
        height: auto;
    }
    #about-us-grid{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    #faq-grid{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    .home-page-banner h2{
        font-size: 20px;
    }
    input, textarea {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 10px;
        box-sizing: border-box;
    }
    .about-us-content img{
        display: flex;
        width: 80%;
        height: auto;
    }
    #about-us-content2 img{
        display: flex;
        width: 80%;
        height: auto;
    }
}