/* General Styles */
/* Apply Lora globally */
body {
    font-family: 'Lora', serif;
    text-align: center;
    padding: 0;
    margin: 0;
    background-color: #f4f4f4;
  }
  
  /* Make headers bold and elegant */
  h1, h2, h3 {
    font-family: 'Lora', serif;
    font-weight: 700;
  }
  
  /* Make paragraph text more readable */
  p, label, button {
    font-family: 'Lora', serif;
    font-weight: 400;
  }
  
  /* Optimize text rendering for better readability */
  * {
    text-rendering: optimizeLegibility;
  }
  
  
  /* Header */
  header {
    background-color: #4caf50;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  /* Hero Section */
  #hero {
    position: relative;
    background: url("assets/eco-bg.jpg") center/cover no-repeat;
    color: white;
    padding: 80px 20px;
    text-align: center;
    z-index: 1;
  }
  
  #hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Black shadow layer */
    z-index: -1;
  }
  
  #hero h2 {
    font-size: 2.5rem;
  }
  
  #hero p {
    font-size: 1.2rem;
  }
  
  /* Form */
  form {
    max-width: 500px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* Form Fieldset */
  fieldset {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 15px;
    text-align: left;
  }
  
  fieldset legend {
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
  }
  
  fieldset legend img {
    width: 30px;
    margin-right: 10px;
  }
  
  label {
    display: block;
    margin-bottom: 10px;
  }
  
  input, select {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
  }
  
  /* Buttons */
  button {
    padding: 10px 15px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #4caf50;
    color: white;
  }
  
  button:hover {
    background-color: #3e8e41;
  }
  
  /* Dark Mode */
  .dark-mode {
    background-color: #1e1e1e;
    color: white;
  }
  
  .dark-mode form {
    background: #333;
    color: white;
  }
  
  .dark-mode button {
    background-color: #ff9800;
  }
  
  /* Results */
  #results img {
    max-width: 100%;
    border-radius: 8px;
  }
  #ai-section {
  background: #f4f4f4;
  padding: 20px;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#ai-section h3 {
  font-size: 1.5rem;
  color: #4caf50;
}

#ai-suggestions {
  list-style: none;
  padding: 0;
}

#ai-suggestions li {
  background: white;
  padding: 10px;
  margin: 8px 0;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

#ai-suggestions li:hover {
  transform: scale(1.02);
}

  
  /* Footer */
  footer {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
  }
  #chart-container {
    max-width: 350px; /* Limit the width */
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }
  
  #chart {
    width: 100%; 
    height: auto;
    max-height: 250px; /* Set a height limit */
  }
