html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  color: #222;

  background-image: url('../images/ASG-court.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.control-box {
  background-color: #e0e0e0;
  padding: 25px 40px;
  border-radius: 12px;
  margin-top: 30px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.control-box h1 {
  margin: 0 0 15px 0;
  font-weight: 600;
  font-size: 2rem;
}

button {
  padding: 12px 25px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

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

#playerInfo {
  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: 500;
}

.map-wrapper {
  width: 90%;
  max-width: 1000px;
  height: 600px; /* Fixes Leaflet rendering */
  margin: 30px auto;
}

#map {
  height: 100%;
  width: 100%;
  border: 2px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  box-sizing: border-box;
}

/* Leaflet internal fixes */
.leaflet-container {
  height: 100%;
  width: 100%;
}
