@import "https://cdn.skypack.dev/ol/ol.css";

html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100%;
  display: flex;
  flex-direction: column;
}

header {
  background-color: #1e1e1e;
  color: white;
  text-align: center;
  padding: 20px 10px;
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

header p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.8;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

#map {
  flex: 1;
  position: relative;
  border: 2px solid #ecf0f1;
  border-radius: 8px;
}

.popup {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ddd;
  padding: 15px;
  width: 320px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font-family: "Arial", sans-serif;
  color: #333;
  transition: all 0.3s ease-in-out;
}

.popup h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: bold;
  color: #007bff;
}

.popup p {
  font-size: 14px;
  margin: 5px 0;
  line-height: 1.5;
}

.popup .close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  background: #ff4d4d;
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  text-align: center;
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.popup .close-btn:hover {
  background: #d63031;
}

.controls {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn:hover {
  background-color: #2980b9;
}

.btn-danger {
  background-color: #e74c3c;
}

.btn-danger:hover {
  background-color: #c0392b;
}

.btn-success {
  background-color: green;
}

.btn-success:hover {
  background-color: greenyellow;
}

footer {
  background-color: #1e1e1e;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .popup {
    width: 200px;
    font-size: 14px;
  }
}
