@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* font-family: "Montserrat", sans-serif; */
}

body{
   font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.navbar{
  width: 100%;
  background-color: tomato;
  display: flex;
  justify-content: space-between;
  padding: 15px;
  position: sticky;
}

.navbar .logo{
  font-size: 30px;
  font-weight: 500;
  margin-left: 40px;
}

.auth-icons{
  gap: 7px;
  margin-right: 100px;
  display: flex;
  align-items: center;
}

.auth-icons a{
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  text-align: center;
  color: black;
}

#navbar-icon{
  width: 30px;
}

.intro{
  font-size: max(2vw,25px);
  text-align: center;
  margin: 20px;
  margin-top: 50px;
}

.search-section{
  width: 80%;
  /* background-color: rgb(249, 244, 244); */
  /* min-height: 100vh; */
  margin: auto;
  /* border-radius: 20px; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 50px;
  
}

#searchInput{
  width: 80%;
  margin: auto;
  padding: 15px 20px;
  border: 1px solid gray;
  border-radius: 10px;
  margin-right: 20px;
}

#search-Btn{
  max-width: 410px;
  padding: 15px 25px;
  background-color: tomato;
  border: none;
  outline: none;
  border-radius: 15px;
  font-size: 15px;
  cursor: pointer;
}

#search-Btn:hover{
  background-color: aliceblue;
}

.main-recipes-container{
  width: 80%;
  margin: auto;
  /* background-color: rgb(247, 247, 240); */
  min-height: 70vh;
  margin-top: 40px;
  border-radius: 20px;
  
}
.main-recipes-container h1{
  text-align: center;
  padding: 30px;
  font-size: max(2vw, 30px);

}
.main-recipes-container span{
  color: tomato;
}  

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.recipe-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  align-items: center;
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.recipe-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.recipe-card .recipe-info {
  padding: 15px;
}

.recipe-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
  text-align: center;
}

.recipe-card a {
  text-decoration: none;
  color: #f06595;
  font-weight: 600;
  display: inline-block;
  margin-top: 5px;
}
 .recipe-card .view-more-btn{
  max-width: 180px;
  padding: 10px 15px;
  background-color: transparent;
  border: none;
  outline: none;
  border-radius: 15px;
  font-size: 15px;
  cursor: pointer;
  width: 40%;
  margin-left: 110px;
  margin-bottom: 10px;
 
}

.view-more-btn:hover{
  background-color: tomato;
}



.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}


.modal-content {
  background: white;
  padding: 30px;
  max-width: 600px;
  width: 80%;
  border-radius: 10px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  font-family: Roboto;
  /* align-items: center; */
  display: flex;
  flex-direction: column;
}

.modal-content img {
  width: 80%;
  border-radius: 10px;
  margin-bottom: 30px;
  margin-left: auto;
  margin-right: auto;
}

.modal-content h2{
  text-align: center;
  margin-bottom: 20px;
  text-decoration: underline;
}
.modal-content h2,
.modal-content h3 {
  margin-top: 10px;
  color: #333;
}

.modal-content ul {
  padding-left: 20px;
  margin: 10px 0;
   
}

.modal-content a {
  color: #0077cc;
  text-decoration: underline;
  
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.footer{
  background-color:#747474;
  width: 100%;
  height: 10vh;
  color: black;
}

.footer p{
  padding:30px;
  text-align: center;
}



