body {
  margin: 0;
  font-family: Arial, sans-serif;
}
#map {
  height: 100vh;
  width: 100%;
}

.modal {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  overflow-y: auto;
  max-height: 80vh;
  display: none;
}

.modal.active {
  display: block;
}

.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 999;
}

.overlay.active {
  display: block;
}

#controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

#loading {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 10px;
  border-radius: 5px;
  z-index: 10000;
  font-weight: bold;
}

@media (max-width: 600px) {
      #controls {
        flex-direction: column;
        align-items: center;
      }
}
/*
@media (max-width: 480px) 
{
  .modal {
    top: 5%;
    padding: 15px;
    font-size: 0.95em;
  }

  #flag {
    width: 80px;
  }

  #conversion-link {
    font-size: 0.8em;
  }
}
*/

body.dark-mode {
  background-color: #121212;
  color: #f1f1f1;
}

.dark-mode .modal {
  background-color: #1e1e1e;
  color: #f1f1f1;
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.1);
}

.dark-mode input,
.dark-mode select,
.dark-mode button {
  background-color: #2a2a2a;
  color: #f1f1f1;
  border: 1px solid #444;
}