﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f4c531;
}

#result {
    position: relative;
}

.container {
    background-color: #fff;
    padding: 3em 2.8em;
    font-size: 16px;
    height: fit-content;
    width: 90vw;
    max-width: 32em;
    position: absolute;
    transform: translateX(-50%);
    left: 50%;
    top: 1em;
    border-radius: .6em;
    box-shadow: 0 1.2em 2.5em rgba(42,32,0,0.2);
}

.search-container {
    width: 100%;
    display: grid;
    grid-template-columns: 9fr 3fr;
    gap: 1.2em;
}

.search-container input {
    border: none;
    outline: none;
    border-bottom: 2px solid #202030;
    font-size: 1em;
    padding: .6em;
    width: 100%;
}

.search-container button {
    border: none;
    padding: 6px;
    cursor: pointer;
    background-color: #f4c531;
    border-radius: .3em;
    font-size: 1em;
    font-weight: 600;
}

img {
    display: block;
    width: 50%;
    margin: 1.8em auto 0 auto;
}

.details {
    background-color: #f4c531;
    position: relative;
    margin: -4.3em 0 0 0;
    text-align: center;
    padding: .6em 0;
}

.details h2 {
    font-size: 1.2em;
    font-weight: 600;
}

.details h4 {
    font-size: 1em;
    font-weight: 400;
}


#recipe {
    position: absolute;
    background-color: #fff;
    height: 100%;
    overflow-y: auto;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    border-radius: .6em;
    display: none;
}

#recipe pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    padding: 2.5em 1.2em 1.2em 1.2em;
}

#hide-recipe {
    font-size: 1em;
    position: relative;
    width: 1.8em;
    height: 1.8em;
    background-color: #f4c531;
    border: none;
    top: 1.2em;
    left: 90%;
    border-radius: .3em;
    cursor: pointer;
}

#show-recipe {
    font-size: 1em;
    font-weight: 600;
    border: none;
    border-radius: .3em;
    position: absolute;
    right: 10px;
    bottom: -40px;
    background-color: #f4c531;
    padding: .9em .6em;
    cursor: pointer;
}

ul {
    font-size: 1em;
    position: relative;
    display: grid;
    grid-template-columns: auto auto;
    gap: .8em 1.1em;
    padding: 1.2em 0 0 1.2em;
}

h3 {
    text-align: center;
    margin: 1.8em;
    color: #202030;
}
@media screen and (max-width: 561px) {
    
    .container {
        font-size: 14px;
        padding: 3em 1.8em;
    }
    /* .search-container input {
        width: 100%;
    } */
    img {
        width: 70%;
    }
    .details {
        margin: -3.3em 0 0 0;
        padding: .3em 0;
    }
    /* #show-recipe {
        padding: .6em .3em;
        left: 65%;
    } */
   
}