
/* --------------- General --------------- */

/* @import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&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 {
    text-align: center;
    margin: 0;
    font-family: var(--primary-font);
}

body * {
    width: 100%;
}

img {
	max-width: 100%;
}

h1, h2, h3, h4 {
    font-family: var(--secondary-font);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* --------------- Header --------------- */

.title {
    margin: 40px auto;
}

.title * {
    display: inline;
    vertical-align: bottom;
}

.title img {
    width: 100px;
}

.title h1 {
    font-family: var(--secondary-font);
    font-size: 4em;
}

.search-bar {
    margin: 20px auto;
    width: 80%;
    display: flex;
    height: 40px;
}

#search-input {
    font-size: 1.4em;
}

.search-bar img {
    width: 30px;
    padding: 5px;
    border: black 1px solid;
}


/* --------------- Main --------------- */

.recipe {
    width: auto;
    padding: 20px;
    margin: 20px;
    border-radius: 5px;
    border: solid black 1px;
    text-align: left;
}


.tags {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
    margin: 0;
}

.tags li {
    font-size: 1.4em;
    border: black solid 1px;
    padding: 10px; 
    margin: 5px;
    width: auto;
    display: inline-block;
}

.recipe h2 {
    color: var(--primary-color);
    font-size: 2.2em;
    margin: 0;
}

/* --------------- Footer --------------- */

footer {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

.social {
    display: flex;
    justify-items: space-between;
    margin: 0 auto;
    width: 300px;
}

.social img {
    width: 80px;
}

footer a {
    line-height: 2em;
}

/* --------------- Desktop --------------- */

@media screen and (min-width: 650px) {
    .recipe {
        display: flex;
    }
    .recipe img {
        width: 50%;
        min-width: 300px;
        object-fit: contain;
        align-self: flex-start;
    }
    .recipe-details {
        margin: 0 10px;
    }
    footer {
        flex-direction: row-reverse;
        align-items: center;
    }
    .social {
        margin-right: 20px;
    }
}

@media screen and (min-width: 960px) {
    body {
        padding: 0 10%;
    }
}