html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}

.clearfix:after {visibility: hidden; display: block; font-size: 0; content: ''; clear: both; height: 0; }

html { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;}

*, *:before, *:after {box-sizing: inherit}

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; border: 0; padding: 0; white-space: nowrap; clip-path: inset(100%); clip: rect(0 0 0 0); overflow: hidden;}


/* 
GOOGLE FONTS
font-family: 'Josefin Slab', serif;
font-family: 'Niconne', cursive;
*/

html {
    font-size: 62.5%;
}

body {
    /* background-image: url(./images/image0.jpg); */
    background-size: cover;
    background-attachment: fixed;
    background-position: top right;
    width: 100%;
    height: 100vh;
    font-family: 'Josefin Slab', serif;
    font-size: 2rem;
    color: #292423;
    
}

.wrapper {
    text-align: center;
    max-width: 1200px;
    width: 85%;
    margin: 0 auto;
    padding-top: 25vh;
    transition: padding-top 0.5s ease;
}

h1 {
    font-family: 'Niconne', serif;
    margin: 0 0 20px 0;
    /* font-size: 9rem; */
    font-size: calc(4rem + 5vw);
    -webkit-text-stroke: 1px #c3a7a2;
    font-weight: 400;
}

h2 {
    color: #292423;
    -webkit-text-stroke: 0.5px #c3a7a2;
    font-weight: 700;
}

form {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.search-bar {
    display: flex;
    justify-content: space-between;
}

input,
button {
    font-family: 'Josefin Slab', serif;
    font-size: 2.4rem;
    padding: 10px;
    outline: none;
}

button {
    border: 2px solid #c3a7a2;
    background-color: white;
    cursor: pointer;
}

input {
    border: 1px solid white;
    background-color: #50392777;
    color: white;
    font-weight: 700;
    min-width: 85%;
}

::placeholder {
    color: #fff4f3;
    opacity: 0.8;
}

.search-bar button {
    width: calc(15% - 10px);
    min-width: 85px;
}

.note {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 5px 0;
    text-align: left;
}

h3 {
    margin: 0 0 10px 0;
}

a {
    color: rgb(51, 159, 196);
}

.recipes-list {
    display: grid;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch;
    justify-content: center;
}

.recipe {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 20px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 10px 9px 20px 0px rgba(0,0,0,0.5);
}

.recipe img {
    display: block;
    width: 100%;
    margin: 0 auto;
}

.ingredients {
    text-transform: capitalize;
}

.hidden {
    display: none;
}

.link {
    font-weight: 700;
}

footer {
    text-align: right;
    font-size: 1.6rem;
    padding: 10px 0;
    opacity: 90%;
    font-weight: 700;
}

footer a {
    color: #ea593e;
}

@media (max-width: 695px) {
    .search-bar {
        flex-direction: column;
        align-items: center;
    }

    input {
        width: 100%;

    }
    button {
        margin-top: 10px;
    }

    input, button {
        font-size: 2rem;
    }

}

@media (max-width: 450px) {
    .wrapper {
        width: 95%;
    }
}

@media (min-width: 1200px) {
    h1 {
        font-size: 10rem;
    }
}
