@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;700&display=swap');

body {
  font-family: 'Quicksand', sans-serif;
  background-color: #f0f8f0;
  color: #3e4e3e;
  padding: 20px;
  background-image: url('background.png');
  background-repeat: repeat;
  background-size: 700px auto;
  background-attachment: fixed;
  text-transform: lowercase;
}

header {
  text-align: center;
  background-color: #d6e8d6;
  padding: 20px;
  border-radius: 24px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 3px solid #a3c9a8;
  background-color: #eaf5ea;
  text-shadow: 1px 1px 2px #c0d9c0;
  position: relative
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.title {
  flex: 1;
  text-align: center;
}

.header-wrapper {
  position: relative;
  height: 100px;
}

.site-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 2.5em;
  color: #2f4f2f;
  text-shadow: 1px 1px 2px #c0d9c0;
}

.home-button {
  position: absolute;
  top: -60px;
  left: 20px;
  background-color: #a3c9a8;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 6px rgba(163, 201, 168, 0.5);
  transition: background-color 0.3s ease;
}

.header-buttons {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.new-recipe-button {
  background-color: #a3c9a8;
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  box-shadow: 0 0 6px rgba(163, 201, 168, 0.5);
  transition: background-color 0.3s ease;
  text-align: center;
  width: fit-content;
}

.home-button:hover {
  background-color: #7bad80;
}

.new-recipe-button:hover {
  background-color: #7bad80;
}

#deleteButton {
  background-color: #e88c8c;
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  margin: 20px;
}

#deleteButton:hover {
  background-color: #c76f6f;
}

.home-button.alt {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: #a3c9a8;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  box-shadow: 0 0 6px rgba(163, 201, 168, 0.5);
  transition: background-color 0.3s ease;
  z-index: 10;
}

.home-button.alt:hover {
  background-color: #7bad80;
}


#searchInput {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 3px dashed #a3c9a8; /* mossy green dashed border */
  background-color: #f0f8f0;
  font-size: 1em;
  width: 200px;
  box-shadow: 0 0 8px rgba(163, 201, 168, 0.4); /* soft mossy glow */
  transition: box-shadow 0.3s ease;
}

#searchInput:focus {
  outline: none;
  box-shadow: 0 0 12px rgba(123, 173, 128, 0.7); /* brighter glow on focus */
}

.search-container {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#frogIcon {
  transition: all 0.3s ease;
}

h1 {
  font-size: 2.5em;
  color: #2f4f2f;
}

.recipe {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #ffffffcc;
  border: 3px dashed #a3c9a8;
  padding: 20px;
  border-radius: 24px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
}

.recipe:hover {
  transform: scale(1.02);
  transition: transform 0.2s ease-in-out;
}

.recipe-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.recipe-link .recipe {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-link:hover .recipe {
  transform: scale(1.02);
  box-shadow: 0 0 10px rgba(163, 201, 168, 0.5);
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.full-recipe {
  max-width: 800px;
  margin: 40px auto;
}

main {
  padding: 20px;
}

@media (max-width: 700px) {
  .recipe-grid {
    grid-template-columns: 1fr;
  }
}

.no-hover:hover {
  transform: none;
  box-shadow: none;
}

.tags {
  margin-top: 10px;
}

.tag {
  display: inline-block;
  background-color: #a3c9a8;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8em;
  margin-right: 6px;
  font-family: 'Quicksand', sans-serif;
}

ul {
  list-style-type: '🌱 ';
  padding-left: 60px;
  font-size: 1.4em;
}

ol {
  font-size: 1.4em;
}

p {
  line-height: 1.6;
}

@media (max-width: 700px) {
  .site-title {
    font-size: 1.8em;
    text-align: center;
    padding: 10px;
  }

  .header-wrapper {
    height: auto;
  }

  .search-container {
    position: static;
    margin-top: 10px;
    justify-content: center;
  }

  #searchInput {
    width: 100%;
    max-width: 300px;
  }


