body{
    margin: 0;
    padding: 0;
    background-color: #FBF4F1; 
}

/*INDEX */
/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #9CBF1F; 
    padding: 20px 80px; 
    margin-top: 0;
    margin-bottom: 0;
    font-size: 30px;
}

.logo img {
    width: 150px; /* Adjust the width to make the logo bigger */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Ensure the image behaves like a block element */
    margin: 0; 
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px; /* Adjust margin between menu items */
}

nav ul li:last-child {
    margin-right: 0; /* Remove margin from the last menu item */
}

nav ul li a {
    text-decoration: none;
    color: #FBF4F1;
    padding: 40px 10px;
}

nav ul li a:hover {
    color:#4E342E;
    font-size: 30px;
}


/* Section */
.section {
    background-color: #FBF4F1;
    padding: 20px;
    margin-top: 0; 
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset;
}

.section p {
    color: #BF6B04;
    font-size: 50px;
    white-space: nowrap; /* Prevent line breaks */
    margin: 0; 
    padding: 30px;
}

.section p span {
    display: block; /* Make the text wrap */
    white-space: normal; /* Allow wrapping */
}


/* Second Section */
.second-section {
    background-color: #DFEEAE; 
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.25) 0px 0px 15px 0px;
}

.second-section .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.second-section .content p {
    margin-bottom: 10px; 
    color: #4E342E;
    font-size: 35px;
    margin-top: 85px;
    margin-bottom: 20px;
}

.second-section .image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.second-section .image-container img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin: 30px; 
    margin-bottom: 0px;
    border-radius: 10px; 
    transition: transform 0.5s ease; 
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3); 
}

.second-section .image-container p {
    text-align: center; 
    font-size: 18px; 
    margin: 0; 
    color: #4E342E; 
    margin-top: 10px;
    margin-bottom: 50px;
}

.second-section .image-container img:hover {
    transform: scale(1.1); 
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5); 

}


/* Footer */
footer {
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #9CBF1F;
    color: #FBF4F1;
    text-align: center;
    font-size: 16px; 
    padding-top: 15px;
    padding-bottom: 15px;
}

footer p {
    margin: 0; 
}


/* Button Index */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFD9DA; 
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease; 
    margin: 30px;
    border: 1px solid #BF6B04; 
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); 
    color:#BF6B04;
    font-size: 20px;
}

.button:hover {
    background-color: #CC7178; 
    transform: translateY(-5px); /* Move button 5 pixels up when hovered */
    color:#FBF4F1;
}


/* RECIPES */
.recipe-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns with equal width */
    gap: 20px; /* Gap between items */
    padding: 20px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 22px 23px px inset; /* Adjusting shadow */
}

.recipe-item {
    text-align: center;
    font-size: 20px;
    color: #4E342E;
}

.recipe-item img {
    width: 100%; /* Fill the entire width of the container */
    height: auto; /* Maintain aspect ratio */
    max-height: 200px; /* Limit the height */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease;
    margin-bottom: 10px;
    margin-top: 50px;
}

.recipe-item img:hover {
    transform: scale(1.1);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
}


/* CONVERSION */
.section-conversion{
    margin-bottom: 40px; /* Adjust the value as needed */
    position: relative;
}

.section-conversion article:first-child::before {
    content: '';
    position: absolute;
    top: -20px; /* Adjust the value as needed */
    left: 0;
    width: 100%;
    height: 40px; /* Adjust the height of the shadow as needed */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0)); /* Gradient for the shadow */
}

.section-conversion article {
    position: relative; /* Ensure relative positioning for z-index */
    z-index: 1; /* Ensure content is above shadow */
    margin-bottom: 40px; /* Adjust margin as needed */
}

.section-conversion table {
    margin-bottom: 30px; /* Add this line */
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    text-align: center;
    border: 1px solid #BF6B04;
    border-style:dashed;
}

th {
    background-color: #e8eed2;
    color:#4E342E;
}

.section-conversion h2{
    text-align: center;
    color:#BF6B04;
    padding-top: 30px;
}


/* SNACKS */
.snacks-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns with equal width */
    gap: 20px; /* Gap between items */
    padding: 20px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset;
}

.snacks-item {
    text-align: center;
    font-size: 20px;
    color: #4E342E;
}

.snacks-item img {
    width: 100%; /* Fill the entire width of the container */
    height: auto; /* Maintain aspect ratio */
    max-height: 200px; /* Limit the height */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease;
    margin-bottom: 10px;
    margin-top: 50px;
}

.snacks-item img:hover {
    transform: scale(1.1);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
}


/* SNACKS */
.recipe1-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.recipe1-container h1 {
    font-size: 34px;
    margin-bottom: 10px;
    color:#4E342E;
    text-align: center;
    padding-bottom: 25px;
}

.recipe1-container p {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
    color:#BF6B04;
}

.recipe1-container img {
    width: 100%;
    max-width: 600px;
    display: block;
    margin: 0 auto;
    border-radius: 5px;
    padding-top: 55px;
}

.ingredients,
.instructions {
    margin-bottom: 30px;
}

.ingredients h2,
.instructions h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.ingredients ul,
.instructions ol {
    list-style-type: none;
    padding-left: 0;
}

.ingredients li,
.instructions li {
    font-size: 16px;
    margin-bottom: 10px;
}

.ingredients .ingredient-item:nth-child(even) {
    background-color:#DFEEAE;
    box-shadow: rgba(0, 0, 0, 0.10) 0px 10px 15px, rgba(0, 0, 0, 0.12) 0px -12px 30px;
}

.ingredients .ingredient-item:nth-child(odd) {
    background-color: white;
}

.ingredients h2{
    color:#BF6B04;
    padding-left: 50px;
    font-size: 30px;
    margin-bottom: 35px;
    padding-top: 75px;
}

.ingredient-item{
    padding: 12px;
}

.ingredient-item p{
    color:#4E342E;
    padding-left: 50px;
    margin: 0;
    font-size: 25px;
}

.instructions{
    margin: 0;
}

.instructions h2{
    color:#BF6B04;
    padding-left: 50px;
    font-size: 30px;
    margin-bottom: 35px;
    margin-top: 105px;
}

.step:nth-child(even) {
    background-color: pink;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.step:nth-child(odd) {
    background-color: white;
    padding-top: 25px;
    padding-bottom: 25px;
}

.step p{
    color:#4E342E;
    padding-left: 50px;
    margin: 0;
    font-size: 25px;
    padding-right: 50px;
}

.step{
    padding: 12px;
}

.info {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Align items vertically */
}

.info-item {
    text-align: center;
}

.info-item p {
    margin: 0; /* Reset default margin */
}

.icon {
    margin-right: 5px; /* Adjust the right margin of the icon */
}

.servings {
    margin: 0 5px; /* Adjust the horizontal margin of servings */
}

.cost {
    margin-left: 5px; /* Adjust the left margin of cost */
}


/* FILTER */
.button-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
    padding-bottom: 25px;
    padding-top: 25px;
}

.button-section {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.button-section p{
    color:#BF6B04;
    font-size: 33px;
}

.wrapper{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.textbox {
   width: 300px; /* Adjust the width as needed */
   padding: 8px;
   border: 1px solid #CC7178;
   border-radius: 4px;
   flex: 1;
   margin-right: 10px;
}

.textbox:focus {
    outline: #9CBF1F; /* Change the color to your desired color */
}

.button-button {
    display: inline-block;
    padding: 9px 25px;
    background-color: #FFD9DA; 
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease; 
    margin: 30px;
    border: 1px solid #BF6B04; 
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); 
    color:#BF6B04;
    font-size: 13px;
}

.button-button:hover {
    background-color: #CC7178; 
    transform: translateY(-5px); /* Move button 5 pixels up when hovered */
    color:#FBF4F1;
}

.categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr); /* Two rows */
    gap: 10px;
    background-color: #FFD9DA;
    box-shadow: rgba(50, 50, 93, 0.10) 0px 30px 60px -12px inset, rgba(50, 50, 93, 0.10) 0px -30px 60px -12px inset; /* Bottom shadow */

}

.category {
    text-align: center;
    color:#4E342E;
    font-size: 20px;
    padding-bottom: 25px;
    padding-top: 40px;
    padding-left: 25px;
    padding-right: 25px;
}

.category img{
    border: 1px solid #9CBF1F;
    background-color: #FBF4F1;
    border-radius: 5px;
    padding-inline: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    transition: transform 0.5s ease; 
}

.category img:hover{
    transform: scale(1.1);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.05);
}


/* SEARCH */
.footer-search{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #9CBF1F;
    color: #FBF4F1;
    text-align: center;
    font-size: 16px;
    padding-top: 15px;
    padding-bottom: 15px;
}

.recipe-container-search {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns with equal width */
    gap: 20px; /* Gap between items */
    padding: 20px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset;
    padding-bottom: 185px;
}

/* jsknfks */