@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

body {
    background: url('./images/background.jpg');
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px 0 10px;
    font-size: 14px;
}

body a {
    margin-top: 15px;
    color: #fff;
    text-decoration: none;
}

.container {
    background-color: #ffffff;
    border-radius: 10px;
    min-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px 0 10px;
}

.search-container {
    background-color: rgb(230, 230, 230);
    padding: 8px 15px ;
    margin: 0 20px 10px;
    width: 400px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
}

.search-container input {
    background-color: transparent;
    border: none;
    color: #969696;
    width: 350px;
}

.search-container input:focus-visible {
    outline: none;
}

.search-container button {
    background-color: transparent;
    border: none;
    color: #969696;
    cursor: pointer;
}

#result {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

img {
    height: 200px;
    margin: 10px 0 0;
}

.details {
    text-align: center;
    background-color: #FBA407;
    margin: -40px 0 20px;
    width: 300px;
    padding: 10px;
    border-radius: 30px 0 30px 0;
}

.details h2 {
    font-weight: 600;
    font-family: "Poppins", sans-serif;
}

.details h4 {
    font-weight: 400;
}

#show-recipe {
    background-color: #FBA407;
    border: none;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin: 20px;
    position: relative;
}

#show-recipe:hover {
    background-color: #fba607c5;
}

#recipe {
    position: absolute;
    background-color: #fff;
    width: 600px;
    border-radius: 10px;
    z-index: 2;
    display: none;
    box-shadow: 0px 0px 40px 5px rgba(0,0,0,0.4);
}

#recipe pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    padding: 30px 20px;
    font-size: 14px;
    color: #6d6d6d;
}

#hide-recipe {
    position: relative;
    width: 30px;
    height: 30px;
    border: none;
    top: 20px;
    left: 90%;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

ul {
    font-size: 1em;
    position: relative;
    display: grid;
    grid-template-columns: auto auto;
    gap: 15px 30px;
    color: #303040;
    text-transform: capitalize;
}

h3 {
    text-align: center;
    margin: 20px;
    color: #6d6d6d;
}