/* Basic Styling for Calculator */
.calculator {
  font-family: 'Arial', sans-serif;
  margin: 20px auto;
  padding: 30px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
  max-width: 900px;
  background-color: #f9f9f9;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #4CAF50;
}

h2 {
  font-size: 22px;
  color: #333;
}

/* Category Selection, Search Bar, and Form Styling */
select, input[type="text"], input[type="number"] {
  width: 80%;
  padding: 10px;
  font-size: 16px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
}

input[type="number"]:focus {
  border-color: #4CAF50;
  outline: none;
}

/* Scrollable Plant Selection */
.scroll-container {
  display: flex;
  flex-wrap: wrap; /* Change from nowrap to wrap to allow wrapping */
  overflow-x: auto;
  gap: 10px;
  padding: 10px;
  justify-content: flex-start;
}

.plant-btn {
  background-color: #4CAF50;
  color: white;
  padding: 15px 25px;
  font-size: 18px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.plant-btn:hover {
  background-color: #45a049;
}

/* Mutation Buttons */
.mutation-selection {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping */
  justify-content: center;
  gap: 10px;
  overflow: hidden; /* Prevent overflow beyond the container */
}

.mutation-btn {
  background-color: #FF9800;
  color: white;
  padding: 12px 25px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  min-width: 100px; /* Ensure the button doesn't shrink too small */
}

.mutation-btn:hover {
  background-color: #FB8C00;
}

/* Calculate Button */
button {
  width: 80%;
  padding: 12px;
  font-size: 18px;
  color: white;
  background-color: #4CAF50;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background-color: #45a049;
}

/* Result Output */
#result {
  margin-top: 20px;
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

/* Plant Image Styling */
#plantImageContainer {
  margin-top: 20px;
}

#plantImage {
  width: 200px;
  height: auto;
  max-width: 100%;
  margin-top: 20px;
}

/* Additional Features Section */
.additional-features button {
  padding: 12px 20px;
  font-size: 18px;
  background-color: #FF9800;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.additional-features button:hover {
  background-color: #FB8C00;
}

/* Discord Links Section */
.discord-links {
  margin-top: 30px;
}

.discord-link {
  display: inline-block;
  background-color: #7289DA;
  color: white;
  padding: 12px 25px;
  font-size: 18px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

.discord-link:hover {
  background-color: #5A6A94;
}

/* Responsive Design */
@media screen and (max-width: 600px) {
  .calculator {
    padding: 20px;
    width: 90%;
  }

  h1 {
    font-size: 28px;
  }

  button, .plant-btn, .mutation-btn {
    font-size: 16px;
    padding: 10px;
  }

  #result {
    font-size: 18px;
  }

  .mutation-selection {
    justify-content: space-evenly; /* Ensure buttons are spaced evenly */
  }

  .mutation-btn {
    min-width: 80px; /* Ensure mutation buttons are not too small on smaller screens */
  }
}
