/*---------------------
-----------------------*/

/*the recipe page*/

main{
    background: linear-gradient(#c3dbe7, #c3dbe7 15%,#d1a497, #d1a497 70%, #54231e59 98%);
}

.recipeHero{
    width: 100%;
}

.rhC{
    display: flex;
    justify-content: space-between;
}

.rhC h1{
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.rhc p{
    width: 30ch;
    font-size: clamp(1rem, 3vw, 1.5rem);
    letter-spacing: .12rem;
    color: #343434;
}

.rhC img{
    width: 60%;
    height: auto;
}

.recipeHeader{
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content:space-evenly;
    align-items: center;
}

@media only screen and (max-width: 800px) {
    .rhC{
        flex-direction: column-reverse;
        align-items: center;
    }
    .recipeHeader{
        width: 70%;
    }
}

.filterForm{
    position: relative;
}

.filterForm::before{
    content: "";
    width: 2px;
    height: 20%;
    background-color: green;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-1rem);
}

.recipeFormArea{
    position: relative;
}

.recipeFormArea::after{
    content: "";
    width: 50.05%;
    height: 2px;
    background-color: green;
    position: absolute;
    top: 20%;
    left: 0;
    transform: translateX(-1rem);
}

.recipeFormArea form{
    max-width: 75%;
    margin: 0 auto;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.recipeFormArea form::after{
    content: "";
    width: 2px;
    height: 1rem;
    background-color: green;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateY(2px);
    transform: translateX(-1rem);
}


.recipeFormArea .formLabel{
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    width: 40%;
    text-align: right;
    letter-spacing: .14rem;
    float: left;
}

.recipeFormArea p{
    padding: 1rem 0;
}

.recipeFormArea select{
    width: 15%;
    margin-left: .5rem;
}



.recipeFormArea form button{
    clear: both;
    border: none;
    max-width: 100px;
    align-self: center;
    padding: .75rem 1rem;
    margin-top: 1rem;
    letter-spacing: .15rem;
    border-radius: 50vw;
    background-color: #54231e;
    color: #e7bcb2;
    transition: all .15s ease-in-out;
    cursor: pointer;
}

.recipeFormArea form button:hover{
    color:#54231e;
    background-color: #e7bcb2;
}

.recipeFound{
    padding: 5rem 0;
    width: 100%;
}



.recipeFound .foundContent{
    width: 100%;
}

.foundContent{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content:space-between;
}

.recipeRow{
    min-height:500px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr) );
    gap: 20px;
}


.recipeRow a{
    margin-top: 4rem!important;
    font-size: .9rem;
    max-width: 120px;
    height: fit-content;
    align-content: flex-end;
    text-decoration: none;
    padding: .5rem .8rem;
    border-radius: 50vw;
    letter-spacing: .12rem;
    background-color: #54231e;
    color:#c3dbe7;
    transition: all .15s ease-in-out;
}

.recipeRow a:hover{
    background-color:#c3dbe7;
    color: #54231e;
    outline: 1px solid #54231e;
}

.foundContent img{
    max-width: 200px;
    height: auto;
    font-size: 0;
}

.foundContent::after{
    content: "";
    width: 35%;
    height: 2px;
    background-color: green;
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateX(-1rem);
    transform: translateY(1rem);
}

.rTitle {
    font-size: clamp(1.3rem, 1.5vw, 1rem);
    font-weight: bold;
    text-transform: capitalize;
}

.rDisc {
    font-size: 1rem;
    font-weight: 200;
    width: 30ch;
    letter-spacing: .15rem;
    padding-top: 1rem;
}


@media only screen and (max-width: 800px) {
    .recipeFormArea form{
        max-width: 100%;
    }
    
    .recipeFormArea select{
        width: 30%;
    }

    .recipeFormArea .formLabel{
        text-align: left;
    }
}

@media only screen and (max-width: 650px) {
    .recipeFormArea .formLabel{
        width: 100%;
    }
    .recipeFormArea select{
        height: 1.4rem;
    }
    .recipeFormArea form::after{
        height: 0;
    }

}