body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
#modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1002; /* Ensure modal is above the map and controls */
  overflow-y: auto; /* Add scrollbar if content is too large */
}
.modal-content {
  text-align: center;
  max-width: 1024px;
  padding: 20px;
  background: #222;
  border-radius: 10px;
  overflow-y: auto; /* Add scrollbar if content is too large */
}
#threejs-container {
  width: 100%;
  height: 100vh;
  display: none;
}
#map-container {
  position: relative;
  width: 100%;
  height: 100vh;
}
#controls {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px;
  border-radius: 5px;
}
button {
  margin: 10px;
  padding: 10px 20px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
button.red {
  background-color: #dc3545;
}
button:hover {
  background-color: #218838;
}
button:hover.red {
  background-color: #c82333;
}
#camera-preview {
  width: 100%;
  max-width: 400px;
  margin: 10px auto;
}
.selected-flag {
  border: 4px solid #28a745;
  border-radius: 5px;
}
.databaseEntry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 5px 0;
  padding: 5px;
  background: #333;
  border-radius: 5px;
}
#status-container {
  color: black;
  display: flex;
  justify-content: space-around;
  margin: 10px 0;
}
#status-container div {
  padding: 5px 10px;
  background-color: #f0f0f0;
  border-radius: 5px;
}
.text-red {
  color: #dc3545;
  font-weight: bold;
}
.text-green {
  color: #28a745;
  font-weight: bold;
}
