/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #1e1e2f;
  color: #fff;
}

h1,
h2 {
  text-align: center;
}

.container {
  width: 80%;
  margin: auto;
  padding: 20px;
}

#map {
  height: 500px;
  width: 100%;
  margin: 20px 0;
  border-radius: 8px;
  border: 2px solid #444;
}

#province-select {
  display: block;
  margin: 0 auto 20px auto;
  padding: 10px;
  font-size: 1rem;
  border-radius: 5px;
  width: 100%;
}

#results {
  text-align: center;
  margin-top: 20px;
}

#climate-data {
  list-style: none;
  padding: 0;
  font-size: 1rem;
}

/* Fondo oscuro bloqueante detrás del spinner */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

/* Estilos del spinner */
#loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  z-index: 1000;

  display: flex;
  align-items: center;
  gap: 10px;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: #09f;

  animation: spin 1s ease infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
