
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    /* border: 1px solid red; */
}

body {
    width: 100%;
    height: 100%;
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.6;
    font-family: 'Lato', sans-serif;
    background-repeat: no-repeat;
    background-size: 100%;
}

.hidden {
    display: none;
}

.intro {
    width: 100%;
    height: 100%;
    background-image: url(/images/bgf.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.logo {
    margin-left: 5rem;
    margin-right: .5rem;
    margin-top: 5rem;
    margin-bottom: 0; 
    padding-left: 2.5rem;
    /* padding-right: 3rem; */
}

.logo img {
    width: 80px;
    height: 100px;
}

.meal-search h1 {
    color: #fff;
    width: 400px;
    font-size: 3rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    padding-top: 0; 
    padding-bottom: 0; 
}

.containerIntro {
    min-height: 100vh;
    display: flex;
    padding-top: 2rem;
}

.meal-search {
    width: 100%;
    margin-top: 3rem;
    border-radius: 1rem;
    padding: 0;
}

.meal-search p {
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0;
}

.mealHeader {
    display: flex;
    margin: 0;
    padding: 1rem;
}

.enter {
    display: grid;
    margin-right: 8rem;
    padding-top: 18rem;
}

.homeButton {
    background-color: rgb(213, 155, 8);
    border: none;
    width: 150px;
    height: 40px;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 10rem;
    border-radius: 10px;
}

.homeButton p {
    color: #fff;
    font-size: large;
    cursor: pointer;
}


/* searchPage*/
.mainPage {
    width: 100%;
    height: 100%;
    background: rgb(48, 58, 76);
    background: linear-gradient(to left, cyan,30%,rgb(48, 58, 76));
}

.searchBg {
    display: flex;
    /* justify-content: space-evenly; */
    background-color: rgb(213, 155, 8);
    opacity: 0.9;
    padding-right: 2.5rem;
    padding-bottom: 1rem;
}

.searchBg img {
    width: 30px;
    height: 45px;
    margin-top: 15px;
    margin-left: 3rem;
    align-items: left;
    background-color: #fff;
    border-radius: 5px;
}

.searchBg p {
    color: #fff;
    font-weight: bolder;
    font-size: large;
    padding-left: 1.5rem;
    margin-top: 25px;
    margin-bottom: 0;
    padding-bottom: 0;

}

.searchBg button {
    background-color: rgb(213, 155, 8);
    border: none;
    margin-left: 36rem;
}

.backToHome {
    color: #fff;
    font-weight: bold;
    cursor: pointer;
   
}

.btn {
    font-family: inherit;
    cursor: pointer;
    outline: 0;
    font-size: 1.05rem;
}

.text {
    opacity: 0.8;
}


.meal-result h2 {
    font-size: 1rem;
    color: #fff;
    margin-top: 1.8rem;
    margin-bottom: .5rem;
    text-align: center;
}

.meal-search-box {
    width: 75%;
    margin-top: 4rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
}

.search-control,
.searchButton {
    width: 100%;
}

.search-control {
    padding: 0 1rem;
    font-size: 1.1rem;
    font-family: inherit;
    outline: 0;
    border: 1px solid #000000;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
}

.search-control ::placeholder {
    color: #000000;
}

#searchButton img {
    width: 35px;
    height: 35px;
    margin-right: 2px;
    margin-top: 2px;
}

.searchButton {
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
    background: rgb(213, 155, 8);
    color: #fff;
    border: none;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
    transition: all 0.4s linear;
}

.searchButton:hover {
    background: #e65555;
}

.meal-result {
    margin-left: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0;
    padding-bottom: 0;
    text-align: center;
}

#meal {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1rem;
    margin: 2.4rem 0;
}

.meal-item {
    background-color: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 21px -12px rgba(0, 0, 0, 0.79);
}

.meal-img img {
    width: 100%;
    height:auto;
    display: block;
}

.meal-name {
    padding: 1.5rem 0.5rem;
}

.meal-name h3 {
    font-size: 1.4rem;
    text-align: center;
}

.recipeButton {
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: rgb(213, 155, 8);
    font-weight: 500;
    font-size: 1.1rem;
    display: block;
    width: 175px;
    margin: 1rem auto;
    border-radius: 2rem;
    transition: all 0.4s linear;
}

.recipeButton:hover {
    background: #e65555;
}

.meal-details {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    background: rgb(48, 58, 76);
    border-radius: 1rem;
    width: 90%;
    height: 90%;
    overflow-y: scroll;
    display: none;
    padding: 2 rem 0;
}

.meal-details::-webkit-scrollbar {
    width: 10px;
}

.meal-details::-webkit-scrollbar-thumb {
    background: #f0f0f0;
    border-radius: 2rem;
}

/* for js */
.showRecipe {
    display: block;
}

.meal-details-content {
    margin: 2rem;
    text-align: center;
}

.recipe-instruct p {
    padding: 1rem 0;
}

.recipe-close-btn {
    position: absolute;
    right: 2rem;
    top: 2rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.recipe-title {
    letter-spacing: 1px;
    padding-bottom: 1rem;
}

.recipe-category {
    background: #fff;
    font-weight: 600;
    color:#f19a6b;
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
}

.recipe-category {
    background: #fff;
    font-weight: 600;
    color: #f19a6b;
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
}

.recipe-instruct {
    padding: 1rem 0;
}

.recipe-meal-img img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    margin: 0 auto;
    display: block;
}

.recipe-link {
    margin: 1.4rem 0;
}

.recipe-link a {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.4s linear;
}

.recipe-link a:hover {
    opacity: 0.8;
}

.notFound {
    grid-template-columns: 1fr;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    width: 100%; 
    padding-left: 25rem;
    margin-right: 0;
    padding-right: 0;

}



/* media query */
@media screen and (max-width: 480px) {
    .meal-search-box {
        width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* media 768*/
@media screen and (max-width: 768px) {
    .searchBg {
        width: 100%;
        padding-right: 1rem;
        padding-bottom: 1rem;
    }
    
    .searchBg img {
        width: 30px;
        height: 45px;
        margin-top: 15px;
        margin-left: 1.5rem;
        align-items: left;
        background-color: #fff;
        border-radius: 5px;
    }
    
    .searchBg p {
        color: #fff;
        font-weight: bolder;
        font-size: large;
        padding-left: 1.5rem;
        margin-top: 25px;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .searchBg button {
        background-color: rgb(213, 155, 8);
        border: none;
        margin-left: 17rem;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    .backToHome {
        color: #fff;
        font-weight: bold;
        cursor: pointer;
        margin-top: 0;
       
    }
    .meal-search-box {
        width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .meal-result h2 {
        font-size: 1rem;
        color: #fff;
        margin-top: 1.8rem;
        margin-bottom: .5rem;
        padding-left: 1rem;
        margin-right: auto;
        text-align: left;
    }
    
    #meal {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 0;
    }

    .meal-result {
        width: 50%;
    }

    .meal-item {
        width: 220px;
    }
}




















