@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;600&display=swap");

* {
    box-sizing: border-box;
}

body {
    background: #ece9e6;
    background: -webkit-linear-gradient(
        to right,
        #ffffff,
        #ece9e6
    );
    background: linear-gradient(
        to right,
        #ffffff,
        #ece9e6
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "Poppins", sans-serif;
    margin: 0 0 3rem;
    min-height: 100vh;
}

header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 1rem;
}

header input {
    background-color: #eee;
    border: none;
    border-radius: 3px;
    padding: 0.5rem 1rem;
}

header button {
    background-color: transparent;
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    margin-left: 10px;
}

.recipe-container {
    background-color: #fff;
    width: 400px;
}

.recipe img {
    width: 100%;
    object-fit: cover;
}

.favorites {
    background-color: rgb(233, 199, 255);
    text-align: center;
}

.favorites p {
    text-align: center;
}

.favorites span {
    display: inline-block;
    font-size: 0.9rem;
    width: 75px;
}

.favorites img {
    width: 100%;
    object-fit: cover;
}

.favorites ul {
    display: flex;
    overflow-x: auto;
    /* flex-wrap: wrap;
    justify-content: center; */
    list-style-type: none;
    padding: 0;
}

.favorites ul::-webkit-scrollbar {
    display: none;
}

.favorites li {
    margin: 10px;
    width: 75px;
    position: relative;
}

.favorites li img {
    object-fit: cover;
    border-radius: 50%;
    width: 70px;
    height: 70px;
}

.recipes ul {
    display: flex;
    overflow-x: auto;
    list-style-type: none;
    padding: 0;
}

.recipe {
    margin: 1.2rem;
    box-shadow: 0 0 10px 2px #3333331a;
}

header button {
    background-color: transparent;
    border: none;
    color: rgb(138, 129, 141);
    font-size: 1.5rem;
    margin-left: 10px;
}

.recipe-header {
    position: relative;
}

.recipe-header span {
    position: absolute;
    top: 10px;
    background-color: white;
    padding: 0.25rem 1rem;
    text-align: center;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.recipe-photo img {
    border-radius: 1%;
    width: 100%;
    height: 250px;
}

.recipe-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.recipe-footer span {
    width: 80%;
    font-size: 1.2rem;

}

.recipe .fav-btn {
    border: none;
    background-color: transparent;
    color: rgb(197, 188, 188);
    cursor: pointer;
    font-size: 1.2rem;
}

.recipe .fav-btn.active {
    color: rebeccapurple;
}

h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 0;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin: 0.5rem 0;
    text-align: center;
}

li a {
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
}

footer {
    background-color: rgb(119, 65, 173);
    color: #f5f5f5;
    padding: 1rem;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer a {
    color: #f5f5f5;
}