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

body {
    background-color: white;
    color: black;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.wrapper {
    max-width: 350px;
    width: 100%;
}

/* header */
#brand-name {
    font-family: "Amatic SC", sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

#brand-name img {
    max-height: 60px;
}

.search {
    display: flex;
    border: 1px solid black;
    border-radius: 4px;
    padding: 5px;
}

.search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding-left: 5px;
}

.search-btn {
    background: none;
    border: none;
    border-left: 1px solid lightgrey;
    padding: 0 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.search-btn img {
    width: 20px;
}

.divider {
    border: 0;
    border-top: 1px solid lightgrey;
    margin: 15px 0;
}

/* recipes */
.recipe-card {
    display: flex;
    flex-direction: column;
    border: 1px solid black;
    border-radius: 6px;
    padding: 10px;
    gap: 8px;
}

.recipe-img {
    width: 100%;
    border-radius: 4px;
}

.tag {
    align-self: flex-start;
    background-color: lightgrey;
    border: 1px solid lightgray;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
}

.recipe-card h2 {
    font-family: "Amatic SC", sans-serif;
    color: cornflowerblue;
    margin: 0;
    font-size: 20px;
    text-transform: uppercase;
}

.rating {
    display: flex;
    gap: 2px;
}

.description {
    display: none;
}

/* footer */
.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000;
    color: #000;
    width: 30px;
    height: 30px;
    text-decoration: none;
    border-radius: 2px;
}

footer {
    text-align: center;
    font-size: 10px;
}

footer a {
    color: blue;
}

@media screen and (min-width: 650px) {
    .wrapper {
        max-width: 85%;
    }
    #brand-name {
        justify-content: center;
        margin-bottom: 2rem;
    }
    .recipe-card {
        flex-direction: row;
        align-content: flex-start;
        gap: 1.5rem;
        padding: 1rem;
    }
    .recipe-img {
        flex: 0 0 45%;
        max-width: 45%;
        object-fit: cover;
    }
    .recipe-info {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .description {
        display: block;
        margin-top: 0.5rem;
        font-size: 1rem;
        line-height: 1.6;
    }
    footer {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        padding-top: 1.5rem;
    }
    .social-links {
        margin: 0;
        gap: 1vw
    }
}