#map {
  height: 600px;
  width: 100%;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  background-color: #222;
}

.wither-circle-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 12px;
}

.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: #171717 !important;
  color: #fff;
}

.leaflet-marker-icon.wither-circle-marker {
  margin-left: -10px;
  margin-top: -10px;
}

.ping-green {
  background-color: #4CAF50;
}

/* Low ping */

.ping-yellow {
  background-color: #e2d805;
  color: #856404;
}

/* Medium ping */

.ping-red {
  background-color: #e20505;
}

/* High ping */

.ping-gray {
  background-color: #777;
}

/* No ping or error */

.best-ping-marker {
  border: 3px solid #057ae2;
  box-shadow: 0 0 10px rgba(0, 0, 255, 0.7);
}

.best-location-banner {
  background-color: #4CAF50;
  color: white;
  padding: 5px 10px;
  text-align: center;
  font-weight: bold;
  font-size: 1.1em;
  border-radius: 5px;
  margin-bottom: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.leaflet-popup-content-wrapper .leaflet-popup-content {
  text-align: center;
}

#ping-boxes-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  width: 100%;
}

.ping-box {
  width: 150px;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  background: #171717;
  text-align: center;
  box-sizing: border-box;
  transition: transform 0.2s ease-in-out;
}

.ping-box:hover {
  transform: translateY(-3px);
}

.location-name {
  font-weight: bold;
  font-size: 1em;
  margin-bottom: 5px;
  word-break: break-word;
  max-height: 60px;
  overflow: hidden;
}

.ping-value {
  font-size: 1.2em;
  font-weight: bold;
  padding: 5px 8px;
  border-radius: 4px;
  min-width: 60px;
  margin-top: auto;
}

.best-location-banner {
  background-color: #28a745;
  color: white;
  padding: 8px 15px;
  text-align: center;
  font-weight: bold;
  font-size: 1.2em;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 400px;
}

#loading {
  text-align: center;
  padding: 20px;
  font-size: 1.2em;
  color: #666;
  width: 100%;
}

/* Highlight for the best ping box */

.ping-box.best-ping {
  border: 3px solid #007bff;
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
  transform: scale(1.05);
  order: -1;
}

