body {
  font-family: monospace;
  margin: 0;
  padding: 1rem;
  background: #ffffff;
}

h1, h2 {
  text-align: center;
  color: #000000;
}

input, textarea, button {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #666666;
  border-radius: 6px;
  box-sizing: border-box;
}

button {
  background: #ffffff;
  color: #000000;
  border: 2px solid black;
  border-radius: 60px;
  font-weight: bold;
  cursor: pointer;
}

#travellink {
  display: inline-block;
  text-align: center;
  background: black;
  color: white;
  padding: 0.75rem 1.5rem;
  border: 2px solid black;
  border-radius: 60px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

#travellink:hover {
  background: white;
  color: black;
}
.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 700px;
  margin: 1rem auto;
}

#search {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 700px;
  margin: auto;
}

.recipe-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

.recipe-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.recipe-card:hover {
  transform: scale(1.02);
}

.recipe-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.recipe-card p {
  margin: 0.3rem 0;
  max-height: 100px;
  overflow-y: auto;
  white-space: pre-wrap;
}

form {
  max-width: 600px;
  margin: auto;
  background: #ffffff;
  padding: 2rem;
  border: 1px solid black;
  border-radius: 10px;
  box-shadow: 0 0 10px #ffffff;
}

#status {
  text-align: center;
  margin-top: 1rem;
  font-weight: bold;
  color: green;
}

#imagePreview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 6px;
}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-content {
  background: #fff;
  border-radius: 10px;
  padding: 2rem;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.popup-content img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #000000;
}

.close:hover {
  color: #ff0000;
}

@media (max-width: 600px) {
  .controls {
    flex-direction: column;
    align-items: stretch;
  }
}

#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

#submitOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(3px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #000;
}
