@charset "UTF-8";
body {
	background: #D6F8D6;
    color: #92bbf0;
    font-size: medium;
	text-align: center;
    font-family: 'Alkatra', cursive;
}

canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Place canvas behind content */
}

.navbar {
    font-family: 'Alkatra', cursive;
    overflow: hidden;
    background-color: #D6F8D6;
    width: 100%;
    display: flex;
    justify-content: center; /* Center align navbar items */
}

.navbar a {
    font-size: 28px;
    color: #7FC6A4;
    text-align: center;
    padding: 1px 20px; /* Reduced padding */
    text-decoration: underline;
    margin: 20px 10px; /* Equal margin for better spacing */
    transition: background-color 0.3s;
}

.navbar a:hover {
    background-color: #45a049; /* Hover effect for navbar links */
}



.text1 {
  text-align:center;
 background-color: transparent;
  color:#7FC6A4;
  font-family:'Alkatra', cursive;
  font-weight:500;
  font-size:48px;
  padding-top:5vh;
  padding-bottom:48px;
  padding-right:4vh;
  height:30vh;
  width: 35vh;
	overflow:hidden;
  -webkit-backface-visibility: hidden;
  -webkit-perspective: 1000;
  -webkit-transform: translate3d(0,0,0);
}


h1{
    font-size: 36px;
    text-align: center;
    color: #7FC6A4;
    font-weight: bold;
    margin-top:50px;
    
}

p {
  font-size:24px;
  color:#55505C;
  margin-top:24px;
  margin-left:200px ;
  margin-right: 200px;
}

h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 30px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Search Input */
#searchInput {
    border: none;
    padding: 12px 20px;
    font-size: 1em;
    width: 300px;
    border-radius: 30px 0 0 30px;
    outline: none;
}

/* Search Button */
button {
    background-color: #ff7f50;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 0 30px 30px 0;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #ff5722;
}

/* Centered Results Container */
#results {
    margin: 20px auto; /* Center container horizontally */
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center individual result cards */
}

/* Recipe Result Style */
#results div {
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%; /* Make each result card take up the full width of the #results container */
    box-sizing: border-box;
}

/* Adjust Recipe Paragraph */
#results p {
    color: #666;
    margin: 0; /* Remove default margin to make text fit the container */
    width: 100%; /* Ensure paragraph fills the width */
}