@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body{
    font-family: 'Noto Sans', sans-serif;
    margin: 0 auto;
    max-width: 600px;
}

header{
    display: flex;
    align-items: center;
    justify-content: center;
}

header img{
    max-width: 60px;
}

header h1{
    font-family: 'Amatic SC';
    font-size: 3rem;
}

.search-bar{
    display: flex;
    padding: 3px;
    border: 1px solid gray;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 8px;
}

.search-bar input{
    flex: 1;
    border: none;
    border-right: 1px solid gray;
}

.search-bar button img{
    width: 25px;
    padding-left: 5px;
}

.search-bar button{
    background-color: white;
    border: none;
}

hr {
    border: 1px solid rgb(214, 214, 214);
    border-radius: 5px;
}

.recipe{
    display: flex;
    flex-direction: column;
    border: 1px solid black;
    padding: 20px;
    border-radius: 10px;
    margin-top: 8px;
}

.recipe img{
    width: 100%;
    object-fit: cover;
    max-height: 350px;
}

.recipe-info{
    flex: 1;
    padding-left: 10px;
}

.recipe-info h2{
    font-family: 'Amatic SC';
    color: rgb(34, 177, 177);
    font-size: 2.5rem;
}

.tag{
    background-color: rgb(233, 233, 233);
    border: 1px solid black;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 0.8rem;
}

.recipe-info p{
    display: none;
}

footer{
    display: flex;
    justify-content: space-around;
    padding: 10px;
}

.social img{
    width: 25px;
}

@media (min-width: 768px){

    body{
        max-width: 1000px;
    }

    .recipe{
        flex-direction: row;
    }

    .recipe img{
        width: 40%;
    }
    .recipe-info p{
        display: block;
    }
    footer{
       justify-content: space-between;
    }
}