/* ==== EcoLife: Professional Nature-Themed CSS ==== */

body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background: #eef2f1;
  background-image: url('https://source.unsplash.com/1600x900/?forest,mountain');
  background-size: cover;
  background-attachment: fixed;
  color: #2d3e50;
}

header {
  background-color: rgba(34, 92, 58, 0.85);
  color: white;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

main {
  max-width: 960px;
  margin: 40px auto;
  padding: 25px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

form {
  background: rgba(255,255,255,0.95);
  padding: 20px;
  border-radius: 10px;
  background-image: url('https://source.unsplash.com/800x400/?leaves,nature');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

form label {
  font-weight: bold;
  display: block;
  margin-top: 15px;
}

input,
select {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

input:focus, select:focus {
  outline: none;
  border-color: #2f6d41;
  box-shadow: 0 0 5px rgba(47, 109, 65, 0.3);
}

button {
  margin-top: 20px;
  padding: 12px 20px;
  background: #3a7d44;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #2d5d33;
}

section {
  margin-top: 30px;
  padding: 20px;
  background: rgba(255,255,255,0.95);
  border-left: 6px solid #3a7d44;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

#weeklyChallenge {
  background-image: url('https://source.unsplash.com/800x400/?challenge,mountain');
  background-size: cover;
  background-repeat: no-repeat;
  color: #0f0f0f;
  padding: 30px;
}

#results h2 {
  color: #1e4d2b;
}

#tips ul {
  padding-left: 20px;
  text-align: left;
}

#communityWall {
  max-height: 200px;
  overflow-y: auto;
  background: #f7f7f7;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-align: left;
}

.post {
  margin-bottom: 10px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 8px;
}

a#newsLink {
  display: inline-block;
  margin-top: 25px;
  font-weight: 600;
  text-decoration: none;
  color: #2b5d3a;
  border-bottom: 2px solid #2b5d3a;
  transition: color 0.2s ease;
}
a#newsLink2 {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  text-decoration: none;
  color: #2b5d3a;
  border-bottom: 2px solid #2b5d3a;
  transition: color 0.2s ease;
}

a#newsLink:hover {
  color: #1d4028;
}

@media screen and (max-width: 600px) {
  main {
    margin: 20px 10px;
    padding: 15px;
  }

  input, select {
    width: 100%;
  }
}
