* {
    font-family: 'Open Sans', sans-serif;
    box-sizing: border-box;
}
:root {
    --dark: #1E6F5C;
    --green: #29BB89;
    --offwhite: #F8EDE3;
    --text: black;
    --shadow: #dfe0df;
    --textlight: white;
  }

body, .modal-content{
    background-color: var(--offwhite);
}

.input-group {
    max-width: 60%;
}

.card {
    border-radius: 1.5rem;
    box-shadow: 3px 3px 5px var(--shadow);
    text-align: center;
}

#recipes .card {
    width: 20rem;
    height: 30rem;
    padding: 2rem;
    transform: scale(1);
}

.card a {
    max-width: 70%;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 3rem;
    background-color: var(--dark);
    color: var(--textlight);
    text-align: center;
}

header h1 {
    font-weight: 600;
    font-size: 2rem;
}

.form-control {
    height: 3rem;
}

.recipe-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    padding: 0 3rem 3rem 3rem;
    max-width: 70%;
    margin: 0 auto;
    position: relative;
}

.not-favourite {   
    position: absolute;
    right: 0.8rem;
    top: 0.7rem;
    width: 1.25rem;   
    content: url(images/love.png);
}

.favourite {
    position: absolute;
    right: 0.6rem;
    top: 0.5rem;
    width: 1.6rem;   
    content: url(images/heart.png);
    transition: 300ms;
}

.btn {
    background-color: white;
    border-color: grey;
    color: grey;
}

.ingredient-container {
    width: 70%;
    max-width: 60rem;
    margin: 0 auto;
    align-items: center;
    padding: 2rem;
    justify-content: space-around;
    margin-bottom: 3rem;
    border-radius: 
}

.ingredients {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    grid-template-rows: repeat(1, 1fr);
    gap: 2rem;
    justify-items: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.ingredient-card {
    background-color: var(--green);
    padding: 0.8rem 2rem; 
    border-radius: 0.9rem;
    text-align: center;
    position: relative;
}

.remove-button {
    border-style: none;
    border-radius: 0.9rem;
    background-color: rgba(0,0,0,0);
    position: absolute;
    right: 2px;
    top: 1.5px;
}

.remove-button:hover {
    color: rebeccapurple;
}

.btn:hover, .btn-outline-secondary:focus, #btn:focus {
    background-color: var(--green);
}


/*MODALLLL*/
.fav {
    color: var(--offwhite);
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: black;
}

.container {
    display: flex;
    gap: 0.5rem;
}
.heart {
    height: 1.5rem;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
    padding: 3rem;
    gap: 2em;
    justify-content: space-around;
    align-items: center;
    width: 100%
}

.modal-dialog {
    margin: 10%;
}

.close {
    border-radius: 5px;
    background-color: transparent;
    font-size: 1.2rem;
    border-style: none;
}

.modal-body .card {
    padding: 2.5rem;
    gap: 0.25rem;
    display: flex;
    flex-direction: column;
    transform: scale(1);
    max-width: 20rem;
}

#recipes .card:hover, .modal-body .card:hover {
    transform: scale(1.03);
    transition: 500ms;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--dark);
    color: var(--textlight);;
}

a {
    color: var(--textlight);
    text-decoration: none;
}

.page-container {
    position: relative;
    min-height: 100vh;
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 2.5rem;            /* Footer height */
}

@media (max-width: 600px) {
    .recipe-container {
        width: 100vw;
        padding: 0;
        
    }
    #recipes .card {
        padding: 1.9rem;
        width: 100%;
    }

    .card h5 {
        font-size: 1rem;
        margin: -0.7rem 0 -0.2rem 0;
    }
    
    .card a {
        max-width: 100%;
        font-size: 1rem;
        margin: 0 auto;
    }
    
}

@media (max-width: 900px) {
    .full-text {
        display: none;
    }
    .fav {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.25rem 0;
    }
    
    header {
        padding: 1.2rem ;
    }
}