/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: #000;
  color: white;
}

/* Body Layout */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #111;
  padding: 0 2rem;
  height: 10vh;
  position: sticky;
  top: 0;
}

nav .logo {
  font-family: cursive;
  color: #00ff00;
  font-size: 1rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav ul li {
  cursor: pointer;
  transition: color 0.3s;
}

nav ul li:hover {
  color: #00ff00;
}

/* Hero Section */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
              url('./assets/hero.webp') center/cover no-repeat;
  text-align: center;
  padding: 2rem;
}

.hero-info {
  font-family: 'Brush Script MT', cursive;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
}

/* Search Box */
#search-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

#search-box {
  width: 300px;
  height: 3.5rem;
  border-radius: 50px;
  padding: 0 1.5rem;
  border: 2px solid #00ff00;
  background-color: rgba(0, 50, 0, 0.5);
  color: white;
  font-size: 1rem;
  text-align: center;
  outline: none;
}

#search-box::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

#searchBtn {
  height: 3.5rem;
  padding: 0 2rem;
  border-radius: 50px;
  border: 2px solid #00ff00;
  background-color: rgba(0, 50, 0, 0.5);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

#searchBtn:hover {
  background-color: rgba(0, 255, 0, 0.3);
  transform: scale(1.05);
}

/* Recipe Cards */
#recipe-container {
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.recipe-card {
  width: 250px;
  background-color: #111;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,255,0,0.2);
  transition: 0.3s;
  text-align: center;
}

.recipe-card:hover {
  transform: scale(1.05);
}

.recipe-card img {
  width: 100%;
  height: 150px;

}

.recipe-card h3 {
  padding: 0.5rem 1rem;
  color: #00ff00;
  font-size: 1.2rem;
}

.recipe-card p {
  padding: 0 1rem 1rem;
  color: #aaa;
  font-size: 0.9rem;
}

/* Footer */
footer {
  display: flex;
  justify-content: space-between;
  gap:2rem;
  align-items: center;
  background-color: #111;
  padding: 0.5rem 2rem;
  height: 10vh;
  margin-top: auto;

}

footer .logo {
  color: #00ff00;
}

footer ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

footer ul li {
  cursor: pointer;
}

footer ul li:hover {
  color: #00ff00;
}

.viewRecipe {
  padding: 0.5rem 1rem;
  background-color: rgba(0, 50, 0, 0.6);
  color: #00ff00;
  font-weight: bold;
  font-size: 1rem;
  border: 2px solid #00ff00;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.viewRecipe:hover {
  background-color: #00ff00;
  color: #000;
  transform: scale(1.05);
  box-shadow: 0 0 15px #00ff00;
}

/* Recipe Modal */
.recipeModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.recipeDetailsBox {
  background: #111;
  border: 2px solid #00ff00;
  border-radius: 15px;
  padding: 20px;
  position: relative;
  box-shadow: 0 0 20px #00ff00;
  max-height: 400px;
  width: 600px;
  overflow: auto;
}
.recipeDetailsContent img {
  display: block;
  margin: 10px auto;
  width: 100%;
  max-width: 250px; 
  border-radius: 10px;
}


.recipeClose {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  color: #00ff00;
  font-size: 1.5rem;
  cursor: pointer;
}

.recipeDetailsContent h2 {
  color: #00ff00;
  margin-bottom: 1rem;
}

.recipeDetailsContent p {
  color: #ccc;
  line-height: 1.4rem;
}

#randomBtn {
  height: 3.5rem;
  padding: 0 2rem;
  border-radius: 50px;
  border: 2px solid #00ff00;
  background-color: rgba(0, 50, 0, 0.5);
  color: #00ff00;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

#randomBtn:hover {
  background-color: #00ff00;
  color: #000;
  transform: scale(1.05);
  box-shadow: 0 0 10px #00ff00;
}
