body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding-top: 20px;
}

.container {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

h1 {
  text-align: center;
  color: #0056b3;
  margin-bottom: 20px;
}

.language-selector {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.language-selector label {
  font-weight: bold;
}

.language-selector select {
  padding: 8px 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  background-color: #f9f9f9;
  cursor: pointer;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.controls label {
  font-weight: bold;
}

.controls select,
.controls button,
.controls input[type="text"] {
  padding: 10px 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.controls select,
.controls input[type="text"] {
  background-color: #f9f9f9;
  cursor: pointer;
}

.controls input[type="text"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* For datalist options */
datalist option {
  padding: 10px 15px;
  background-color: #fff;
  color: #333;
}

datalist option:hover {
  background-color: #e9e9e9;
}

.controls button {
  background-color: #007bff;
  color: white;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease;
}

.controls button:hover {
  background-color: #0056b3;
}

#exit-selection-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

#exit-selection-container select {
  padding: 10px 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
  background-color: #f9f9f9;
  cursor: pointer;
}

.map-container {
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #e9e9e9;
}

canvas {
  max-width: 100%;
  height: auto;
  display: block; /* Remove extra space below canvas */
  background-color: #fff; /* White background for the map itself */
}

.route-summary {
    background-color: #e6f7ff; /* Light blue background */
    border: 1px solid #91d5ff; /* Blue border */
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #003a8c; /* Dark blue text */
}

.route-summary h3 {
    color: #0056b3;
    margin-top: 0;
    margin-bottom: 10px;
}

.route-summary p {
    margin-bottom: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding: 15px;
    width: 95%;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
  }

  .controls select,
  .controls button {
    width: 100%;
  }
  
  #exit-selection-container {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  .controls select,
  .controls button {
    font-size: 0.9rem;
    padding: 8px 10px;
  }
  
  .language-selector {
    justify-content: center;
  }
}