body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}

header {
  background-color: #4caf50;
  padding: 20px;
  text-align: center;
  color: white;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  margin: 0;
}

nav {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

nav a {
  text-decoration: none;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  background-color: #66bb6a;
  margin: 0 10px;
  transition: background-color 0.3s ease;
}

nav a:hover {
  background-color: #81c784;
}

.compare-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding: 20px;
  background-color: #e8f5e9;
  max-width: 100%;
  box-sizing: border-box;
}

.mushroom-column {
  flex: 1 0 300px; /* Set a fixed width for the columns */
  margin: 10px;
  background: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  box-sizing: border-box;
  position: relative;
}

.search-container {
  position: relative;
}

.mushroom-column input.search {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
  box-sizing: border-box;
  overflow: hidden; /* Ensures content does not overflow */
  white-space: nowrap; /* Prevents text from wrapping */
  text-overflow: ellipsis; /* Adds ellipsis when text overflows */
}

.mushroom-column .suggestions {
  border: 1px solid #ccc;
  max-height: 150px;
  overflow-y: auto;
  position: absolute;
  background-color: white;
  z-index: 1000;
  width: 100%; /* Ensure it matches the input box width */
  border-radius: 5px;
  box-sizing: border-box;
  left: 0;
}

.mushroom-column .suggestion {
  padding: 10px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mushroom-column .suggestion:hover {
  background-color: #e2e2e2;
}

.mushroom-column .mushroom-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  margin-bottom: 10px;
  border-radius: 10px;
  box-sizing: border-box;
}

.mushroom-column .moveUp,
.mushroom-column .moveDown {
  padding: 10px 20px;
  font-size: 16px;
  margin: 5px;
  cursor: pointer;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.mushroom-column .moveUp:hover,
.mushroom-column .moveDown:hover {
  background-color: #81c784;
}
