body {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: Arial, sans-serif;
  padding: 20px;
  background-color: #fff;
  color: #000;
  transition: all 0.5s;
  font-family: 'Quicksand', sans-serif;
}

#menu {
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: space-around;
  font-size: 3em;
}

#menu a {
  text-decoration: none;
}

#ref-view {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 10px;
  padding-top: 2em;
  width: 100%;
  max-width: 600px;
}

#ref-view div {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-bottom: 1em; /* Added to space out each link set */
}

#ref-view div a {
  padding: 1.1em;
  text-decoration: none;
  display: flex; /* Ensure the icon and text are in-line */
  align-items: center; /* Aligns the icon and text vertically */
  width: 100%; /* Extend the clickable area across the entire width */
}

#ref-view h2 {
  margin: 0; /* Removes default margin to prevent layout shift */
  padding-left: 10px; /* Adds some space between the icon and text */
}

.manual h2 {
  text-decoration: none;
  color: #ddd;
}


#list-view {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  width: 100%;
  max-width: 600px;
}

#filter-type {
  width: 100%;
  padding: 10px;
  margin: 20px 0;
  font-size: 1.2em;
  border: 1px solid #ccc;
  border-radius: 5px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: 95% center;
  background-size: 20px;
}

#list-result {
  width: 100%;
  max-width: 600px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 20px;
}

#search-view {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  width: 100%;
  max-width: 600px;
}

#search {
  width: 80%;
  margin: 20px 0;
  padding: 10px;
  font-size: 1.5em;
  max-width: 600px;
}

#result {
  width: 100%;
  max-width: 600px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 20px;
}

.result-item {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
}

.result-item .type {
  font-weight: bold;
  font-size: 1.2em;
  color: #333;
}

.result-item .question {
  font-size: 1.1em;
  color: #666;
}

.result-item .answer {
  font-style: italic;
  color: #999;
}

.result-item .image_wrapper {
  font-style: italic;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result-item .image_wrapper img {
  width: auto;
}

.result-item .image {
  width: 100%;
  height: auto;
  margin: 10px 0;
}

#coordinates-view {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  width: 100%;
  max-width: 600px;
}

#coordinates-view label {
  display: block;
  margin: 20px 0;
}

#coordinates-view input {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#coordinates-view #differences {
  margin-top: 20px;
  padding: 10px;
  border-radius: 5px;
}



@media screen and (max-width: 600px) {
  body {
    font-size: 1em;
  }

  #filter-type {
    font-size: 1em;
  }

  .result-item {
    padding: 15px;
  }

  .result-item .type {
    font-size: 1.4em;
  }

  .result-item .image {
    margin: 15px 0;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #333;
    color: #fff;
  }

  body .result-item,
  body #search {
    background-color: #666;
    color: #fff;
  }

  .result-item .type,
  .result-item .question,
  .result-item .answer {
    color: #fff;
  }

  #filter-type {
    color: #fff;
    background-color: #666;

  }
}

.error-message {
  color: red;
  font-weight: bold;
  margin-top: 20px;
}
