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

body {
  font-family: 'Quicksand', sans-serif;
  background: #cee7cd;
  color: #2e3e2e;
  display: flex;
  justify-content: center;
  padding: 2em 1em;
  margin: 0;
}

.container {
  max-width: 600px;
  background: #fff;
  padding: 2em;
  border-radius: 24px;
  box-shadow: 0 10px 25px #38663c33;
  text-align: center;
  width: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.container:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 30px #38663c4d;
}

h1 {
  font-size: 2.2em;
  color: #2f4f2f;
  margin-bottom: 1.5em;
  font-weight: 700;
}

form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 2.5rem;
}

form input,
form select,
form button {
  padding: 1em;
  border-radius: 12px;
  border: 1px solid #cfe8d4;
  font-size: 1em;
  transition: all 0.25s ease;
}

form input,
form select {
  flex: 1 1 20%;
  background: #f8fff8;
}

form input:focus,
form select:focus {
  border-color: #66bb6a;
  background-color: #effaf1;
  outline: none;
}

form button {
  flex: 1 1 100%;
  background:  #4a9c4f;
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

form button:hover {
  background: #2f4f2f;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#plantList li {
  background: #f0fff5;
  border-left: 8px solid #6b8e23;
  border-radius: 16px;
  padding: 1.5em;
  margin-bottom: 1.5em;
  box-shadow: 0 5px 15px #5a965a1f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  transition: transform 0.2s, box-shadow 0.3s;
}

#plantList li:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px #46824633;
}

 .plant-info h3 {
  margin: 0;
  font-family: Quicksand,sans-serif;
  font-size: 1.5em;
  color: #2e512d;
  font-weight: 700;
}

.plant-info p {
  margin: 0.3em 0 0;
  font-size: 1em;
  font-weight: 500;
  color: #466b46;
} 

.button-group {
  display: flex;
  gap: 10px;
  margin-top: 0.6em;
}

button {
  padding: 0.5em 1em;
  border-radius: 10px;
  border: none;
  font-size: 0.95em;
  font-weight: bold;
 
}

.water-btn {
  background-color: #4c8c9c;
  color: #fff;
}

.remove-btn {
  background-color: #d9534f;
  color: #fff;
}

.water-btn:hover {
  background-color: #367480;
}

.remove-btn:hover {
  background-color: #c12e2a;
}

@media (max-width: 500px) {
  form input,
  form select,
  form button {
    flex: 1 1 100%;
  }

  #plantList li {
    flex-direction: column;
    align-items: flex-start;
  }

  .button-group {
    flex-direction: column;
    align-items: stretch;
  }
}
