html {
    display: flex;
    justify-content: center;
}
body {
    margin-top: 2em;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1000px;
}
header {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

#title {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}
#title img{
    height: 200px;
    width: auto;
}
#title h1 {
    font-family: 'Amatic SC', cursive;
    font-size: 100px;
}

#search {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 2px;
    border: 1px solid black;
    border-radius: 5px;
}
#search input {
    width: 100%;
    font-size: 1em;
    padding: 0.5em;
    margin: 2px;
    border: none;
}
#search button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}
#search img {
    height: 2em;
    width: auto;
    padding-left: 5px;
    border-left: 1px solid black;
}

hr {
    width: 100%;
}
main {
    width: 100%;
}
.recipe {
    width: 100%;
    border: 1px solid black;
    border-radius: 5px ;
    display: flex;
}
.recipe img {
    margin: 20px;
    width: 40%;
    flex-shrink: 0;
}
.recipe .info {
    margin: 20px;
    margin-left: 0;
}
.recipe .info h2 {
    font-family: 'Amatic SC', cursive;
    font-size: 2em;
    color: rgb(53, 157, 222);
    margin: 0;
}
.tags {
    display: flex;
    margin-bottom: 1em;
}
.tag {
    border: 1px solid gray;
    background-color: lightgray;
    padding: 2px;
    width: auto;
    margin: 0;
}

footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin: 1em;
}
.social{
    flex-wrap: nowrap;
    display: flex;
}
.social a {
    margin: 2px;
    display: inline-block;
    height: 32px;
}
.social img {
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 700px) {
    .recipe {
        display: flex;
        flex-direction: column;
    }
    .recipe img {
        width: calc(100% - 40px);
        margin-bottom: 0;
    }
    .recipe .info {
        margin: 20px;
        margin-top: 1px;
    }
    .recipe .info .desc {
        display: none;
    }

    footer {
        display: flex;
        flex-direction: column-reverse;
        justify-content: space-between;
        align-items: center; 
    }
    .social {
        margin-bottom: 1em;
    }
}