/**
 * Theme Name: Quick Fix Bytes
 * Description: AI -powered recipe creator..... and more!
 * Author: Anthony Laurence
 * Version: 2.4
 * 
 */

body{
    background-color: #fffdfd;
    color: #1e1c1c;
    font-family: 'Exo 2', sans-serif;
    font-size: 16px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0!important;
    margin: 0!important;
}


.logo{
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (min-width: 600px) {
    .logo{
        margin: 25px 0 0;
    }
}

header #searchform div{
    display: flex;
    flex-direction: row;
}

header #searchsubmit{
    border: solid 2px transparent;
    outline: none;
    background: none;
    width: 80px;
    font-family: "Kode Mono", monospace;
    font-optical-sizing: auto;
    font-weight: bold;
    font-size: 1.2rem;
    font-style: normal;
    margin-top: 0;
    color: #f15a24;
    text-decoration:underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.3s ease-in;
   
}

@media (min-width: 600px) {
    .logo{
        margin: 25px 0 0;
    }

    header #searchsubmit{
        width: 75px;
    }
}

header #searchsubmit:hover{
    text-decoration-color: #f15a24;
    transition: text-decoration-color 0.3s ease-in;
    
}

header{

    width: 80%;
    margin: 0 auto 2rem;
    border-bottom: 3px solid #f15a24;
    padding: 0 0 3px;
}

@media (min-width: 767px) and (max-width: 1025px){
    header{
        margin-bottom: 15px;
    }
}


@media (min-width: 600px) {
    header{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
}


h1{
    font-family: "Megrim";
    font-weight: 400;
    font-style: normal;
    margin-top: 0;
    font-size: 2.7rem;
    margin-bottom: 2rem;
    color: #007C21;
}

@media (min-width: 767px){
h1{
    font-size: 4rem;
    margin-bottom:0;
}

}



.mobile-title{
    text-align: center;
}

@media (min-width:1025px){
    .mobile-title{
        display: none;
    }
}

@media (max-width:1024px){
    .desktop-title{
        display: none;
    }
}

h2{
    font-family: "Kode Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 3rem;
    font-style: normal;
    margin-top: 0;
    color: #f15a24;
}

h3{
    font-family: "Kode Mono", monospace;
    font-weight: 400;
    font-style: normal;
    margin-top: 0;
    font-size: 1.5rem;
}

.intro{
    width: 100%;
    font-size: 1.4rem;
    margin: 0 auto 2rem;
    padding: 0 15px;
}
.intro-image{
    max-width: 100%;
    display: block;
    margin: 0 auto 10px;
}

@media (min-width: 767px){
    .intro-image{
        max-width: 350px;
        float:left;
        margin-right: 20px;
        margin-bottom: 10px;
    }

    .intro{
        width: 80%;
        padding: 0;
    }
}

.content-max-width{
    width: 90%;
    margin: 0 auto;
}

@media (min-width: 767px){
.content-max-width{
    width: 80%;
}
}

#footer{
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    background-color: #007c21;
    color: #fff;
    padding-bottom: 10px;
}

#footer p{
    margin: 3rem 10px 0;
    font-size: .8rem;
}

#footer p a{
    color: #fff;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.3s ease-in;
}

#footer p a:hover{
    text-decoration-color: #fff;
    transition: text-decoration-color 0.3s ease-in;
}


.flex-box{
    display: flex;
    flex-direction: row;
}

/* INDEX PAGE STYLES */

#ingredient-form-page{
    background-color: #1e1c1c;
    margin: 2rem 0;

}

#ingredient-form-page label{
    color: #efefef;
}

@media (min-width: 1024px){
    #ingredient-form-page{
        display: flex;
        flex-direction: row;
        clear: both;
    }
}

.flex-col{
    width: 80%;
    margin: 0 auto;
}

@media (min-width: 1025px){
    .flex-col{
        width: 60%;
    }
}

@media (min-width: 1024px){
    .flex-col{
        flex-basis: 80%;
    }
}

form{
    padding: 1.2rem;
    border-radius: 20px;
}

form h2, form button.add-ingredient{
    display: inline-block;
}


form button, .green-btn{
    outline: none;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    padding: 10px;
    color: #fff;
    position: relative;
    cursor: pointer;
}

form button.delete{
    margin-left: 10px;
}


.button-section button.add-ingredient{
    background-color:#c57a89;
    color: #fff;
    transition: background-color .3s ease-in;
}


form button.add-ingredient:hover{
    background-color:#007c21;
    transition: background-color .3s ease-in;
}

form button.delete{
    color: #E35F7A;
    padding:0 10px;
    transition: color .3s ease-in;
}

.button-section{
    margin-top: 0;
    margin-bottom: 0;
    padding: 15px 15px 15px 0;
}


.button-section button.delete:hover{
color: #007c21;
transition: color .3s ease-in;
}

.button-section button{
    height: auto;
    margin-right: 10px;
}

form button.delete span:before{
    content: "\2212";
    position: relative;
    font-size: 1.5rem;
}

@media (min-width: 1000px){

    form button.delete span:before{
        content: "\2212";
        position: relative;
        font-size: 2rem;
    }

    form button.delete{
        color: #E35F7A;
        padding:0 20px;
        transition: color .3s ease-in;
    }
}

@media (min-width: 700px){
    .button-section button{
        height: 45px;
    }
}

.green-btn{
    background-color:#49B363;
    transition: background-color .3s ease-in;
}

.green-btn.center{
    display: block;
    margin: 1rem auto;
}
 
.green-btn a{
    color: #fff;
    text-decoration: none;
}


.green-btn:hover{
    background-color: #265C33;
    transition: background-color .3s ease-in;
}

form button.add-ingredient span:before{
    content: '\002B';
    position: relative;
    font-size: 1rem;
    left: -5px;
}




form input[type=text]{
    outline: none;
    border: 2px solid #007c21;
    border-radius: 10px;
    height: 2rem;
    width: 80%;
    position:relative;
    bottom:5px;
    margin-top:15px;
}

@media (min-width: 700px){
    form input[type=text]{
        margin-top:0px;
    }
}

.ingredient{
    display: block;
}

/* LOADING SCREEN STYLES */

.loading-screen{
    position: absolute;
    padding: 0;
    margin: 0;
    z-index: 99;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background : #efefef;
    color: #007c21;
}

.loading-screen h4{
    font-size: 3rem;
    text-align: center;
    margin-top: 20%;
}

/* RECIPE PAGE STYLES */

#recipesection{
    margin: 0 auto;
}

#recipesection h2{
    font-size: 2rem;
}

#recipesection h3{
    font-size: 1.5rem;
    color: #f15a24;
    text-align: center;
    border-bottom: 3px solid #f15a24;
}

#recipesection li, #recipesection p{
    font-size: 1.2rem;
    line-height: 1.5;
}

@media (min-width: 1025px){
    #recipesection{
        display: flex;
        flex-direction: row;
    }

    #recipesection h3{
        display: none;
    }
}

#recipesection img{
    display: block;
    height: auto;
    margin: 0 auto 15px;
    max-height: 250px;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
    
}

@media (min-width: 1025px){
    #recipesection img{
        max-width: 550px;
        max-height: 450px;
        border-top-left-radius: 20px;
        border-top-right-radius: 0px;
        margin-top: 15px;
    }
}

#recipe{
    padding: 0 1.2rem 1.2rem;
}

@media (max-width: 767px) {
    #recipe{
        padding-bottom: 0px;
    }
}


/* Related posts CSS */

#related-posts{
    margin: 2rem auto;
}

#related-posts h2{
    text-align: center;
}

#related-posts .flex-box{
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 667px){
    #related-posts .cards-container{
        margin-top: 2rem;
    justify-content: space-between;
    }
}

#related-posts .recipe-card{
    width: 100%;
    max-width: 330px;
    margin: 0 0 10px;
    text-align: center;
    padding: 15px;
    background-color: #097DF0;
    border-top-left-radius: 20px;
    border-right: 6px solid #034281;
    border-bottom: 5px solid #034281;
}

#related-posts .recipe-card img{
    border-top-left-radius: 20px;
    margin-bottom: 10px;
}


@media (min-width: 767px) and (max-width: 950px), (min-width: 1130px) and (max-width: 1300px) {
#related-posts .recipe-card{
    max-width: 250px;

}
}

@media (min-width: 767px){
    #related-posts .recipe-card{
    margin: 0 20px 40px;
    }
}

#related-posts .recipe-card a{   
    color: #efefef;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.3s ease-in;

}

#related-posts .recipe-card a:hover{
    text-decoration-color: #efefef;
    transition: text-decoration-color 0.3s ease-in;
}

/*Search page styles */

.search-result-count{
margin-bottom: 2rem;
}

#search-page{
    width: 80%;
    margin: 0 auto;
}

#search-page .flex-box{
    justify-content: space-evenly;
    flex-wrap: wrap;
}

#search-page .recipe-card{
    width: 100%;
    max-width: 330px;
    margin: 0 0 10px;
    text-align: center;
    padding: 15px;
    background-color: #097DF0;
    border-top-left-radius: 20px;
    border-right: 6px solid #034281;
    border-bottom: 5px solid #034281;
}

#search-page .recipe-card img{
   margin-bottom: 10px; 
   border-top-left-radius: 20px;
}


@media (min-width: 767px) and (max-width: 950px), (min-width: 1130px) and (max-width: 1300px) {
#search-page .recipe-card{
    max-width: 250px;

}
}

@media (min-width: 767px){
    #search-page .recipe-card{
    margin: 0 20px 40px;
    }
}

#search-page .recipe-card a{
    color: #efefef;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.3s ease-in;
}

#search-page .recipe-card a:hover{
    text-decoration-color: #efefef;
    transition: text-decoration-color 0.3s ease-in;
}

@media (min-width: 840px) {
    .mp_wrapper {
        display: block;
        background-color: #f15a24;
        margin-bottom: 0;
    }

    div#mepr-account-nav{
        margin-bottom: 0!important;
    }
}