@import url("https://fonts.googleapis.com/css2?family=Amatic+SC&display=swap");

:root {
    --primary-color: #1B98E0;
    --secondary-color: #59c3c3;
    --text-dark: #333;
    --text-light: #ebebeb;
    --primary-font: Arial, Helvetica, sans-serif;
    --secondary-font: "Amatic SC";
}

body {
    font-size: 20px;
    max-width: 1280px;
    margin: auto;
    padding: 1rem;
    font-family: var(--primary-font);
}

img {
    max-width: 100%;
    height: auto;
}

header {
    display: flex;
    flex-direction: row;
    color: var(--text-dark);
    font-family: var(--secondary-font);
    justify-content: center;
    font-size: 2rem;
    margin-top: 20px;
}

header img {
    height: 7rem;
}

.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

#search {
    border: 2px solid black;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    padding: 0.5rem 1rem;
    width: 350px;
    font-size: 18px;
}

#search::placeholder {
    font-size: 18px;
}

#submit-img {
    border: 2px solid black;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    background-color: white;
    cursor: pointer;
    height: 3rem;
    width: 3rem;
}

#submit-img img {
    height: 100%;
    width: 100%;
}

.recipes-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
    align-items: center;
}

.recipe-card {
    display: flex;
    flex-direction: column;
    align-items: start;
    border: 2px solid black;
    border-radius: 15px;
    padding: 20px;
    width: 360px;
}

.recipe-img img {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.recipe-card-content {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
}

.recipe-type {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0 0 10px 0;
}

.recipe-type li {
    border: 2px solid black;
    padding: 5px 8px;
    font-family: var(--primary-font);
    color: var(--text-dark);
    background: white;
}


#food-type {
    font-family: var(--secondary-font);
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 5px;
}

.rating {
    display: flex;
    gap: 2px;
    margin-bottom: 10px;
}


#description {
    font-family: var(--primary-font);
    color: var(--text-dark);
    line-height: 1.4;
    margin-top: 10px;
}

footer {
    display: flex;
    flex-direction: column-reverse;
    text-align: center;
    margin-top: 50px;
}

footer a {
    text-decoration: none;
    font-family: var(--primary-font);
    font-size: medium;
    color: var(--primary-color);
}

.social {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.social > a {
    height: 4rem;
    width: 4rem;
}

@media screen and (min-width: 700px) {
    .recipe-card {
        flex-direction: row;
        gap: 20px;
        width: 95%;
        max-width: 900px;
        align-items: flex-start;
    }

    .recipe-img img {
        width: 360px;
        height: auto;
    }

    .recipe-card-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    #food-type {
        font-size: 2.5rem;
        margin-bottom: 5px;
    }

    .recipe__tags {
        margin-top: 10px;
    }

    #description {
        font-size: 1rem;
    }

    footer {
        flex-direction: row;
        justify-content: space-between;
        margin-top: 100px;
    }

    footer > a {
        margin-top: auto;
        margin-bottom: auto;
    }
}
