body {
  margin: 0;
  font-family: 'Georgia', serif;
  background-color: #fdf8f1;
  color: #3e3e3e;
}

header {
  background-color: #3c2f2f;
  padding: 2rem 0;
  text-align: center;
}

h1 {
  font-family: 'Georgia', serif;
  font-size: 3.5rem;
  color: #fefefe;
  margin-bottom: 0.5rem;
}

.select-control {
  margin: 2rem auto;
  width: 100%;
  max-width: 400px;
}

select {
  width: 100%;
  padding: 1rem;
  border-radius: 10px;
  border: none;
  background-color: #fff8ec;
  font-size: 1.25rem;
  color: #3e3e3e;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  cursor: pointer;
}

main {
  padding: 2rem;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 300px;
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card p {
  font-size: 1.2rem;
  font-weight: bold;
  padding: 1rem;
  text-align: center;
  background-color: #fdf8f1;
}

.recipe-details {
  background: #ffffff;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 12px;
  max-width: 800px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.recipe-details h2 {
  color: #3c2f2f;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.recipe-details img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.recipe-details ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.recipe-details li {
  background-color: #fff8ec;
  margin: 0.5rem 0;
  padding: 0.75rem;
  border-radius: 5px;
}

.recipe-details p {
  line-height: 1.6;
}

button.back-button {
  background-color: #3c2f2f;
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  cursor: pointer;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

button.back-button:hover {
  background-color: #5a4646;
}

/* Loader and overlay */
.overlay {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(255,255,255,0.8);
  z-index: 999;
}

.loader-wrapper {
  display: flex;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.error {
  color: red;
  text-align: center;
  font-weight: bold;
  margin-top: 1rem;
}

.hidden {
  display: none;
}