:root {
    --bodybg: #FF8700;
    --heading: #535353;
    --box: #DDA15E;
    --hov-box: #cb9e6b;
    --text: #000000;
}

/* universal selector */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Mobile first style*/


body {
    background-color: var(--bodybg);
    width: 100%;
    font-size: 21px;
    font-family: "Roboto", sans-serif;
    font-weight: bold;
    text-align: center;
}

nav {
    display: flex;
    justify-content: space-between;
    margin: 1em;
}

.nav-bar {
    background-color: var(--box);
    padding: .5em .8em;
    border-radius: 100px;
    font-size: 1rem;
}

a{
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--box);
}

a.btn:hover {
    color: var(--heading);
    background-color: var(--hov-box); 
    border-color: var(--text);
}


h1 {
    font-family: 'Libre Baskerville', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--heading);
}

h3 {
    font-weight: 400;
    font-size: 1.4rem;
}

.recipe-container {
    margin: 2em auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.recipe-img {
    width: 60%;
    margin: 0 auto;
    border-radius: 1em;
}

.foot-container {
    font-size: 1.5rem;
    margin-top: 1em;
}

.foot-conatiner:active {
    color: var(--heading);
}

/* Other page style*/

.food-img {
    margin: 2em;
}

.food-img img {
    width: 70%;
    max-width: 500px;
    border-radius: 20px;
}

.food-img figcaption{
    font-family: 'Libre Baskerville', sans-serif;
}

.food-description {
    width: 80%;
    font-size: 1rem;
    margin: 0 auto;
}

.food-description p {
    font-weight: 400;
}

.food-description h2 {
    margin: .5em 0;
    font-family: 'Libre Baskerville', sans-serif;
    font-weight: 700;
}

.food-description .ul-ol {
    margin: 0;
    padding: 0;
    list-style-position: inside;
    font-weight: 400;
    text-align: left;
    display: inline-block;
}


/*Desktop code*/

@media (min-width: 425px) {

    body {
        width: 100%;
    }

    .nav-bar {
        font-size: 1.1em;
    }

    h1 {
        font-size: 3rem
    }

    .recipe-container {
        margin: 4em auto;
        width: 80%;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 4em;
        column-gap: 6em;
    }

    .recipe-info {
        width: 40%;
    }
    
    .recipe-img {
        transition: box-shadow 0.3s ease-in-out; /* Adds a smooth transition effect */
    }

    .recipe-img:hover {
        box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5); /* Adjust values for your desired effect */
    }

    .food-img figcaption {
        font-size: 2rem;
        font-weight: 700;
    }
    
    .desk-flex {
        margin: 3em 0 5em;
        display: flex;
    }

    .instruction, .ingredient {
        width: 50%;
    }
}
