* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Nunito, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
    Helvetica Neue, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    Segoe UI Symbol, "Noto Color Emoji";
  font-size: 14px;
}

body {
  /* font-family: Arial, sans-serif; */
  /* margin: 20px; */
  background-color: #ffffff;
  /* overflow: hidden;
  margin-right: 15px; */
}

#darkBackground {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 3; /* Asegúrate de que esté por encima de otros elementos */
}

#qrContainer {
  display: none;
  position: fixed; /* Hace que el cuadro esté fijo en la pantalla */
  top: 50%; /* Lo mueve al 50% desde arriba */
  left: 50%; /* Lo mueve al 50% desde la izquierda */
  transform: translate(-50%, -50%); /* Centra el cuadro perfectamente */
  width: 500px; /* 50% del ancho del viewport */
  height: 500px; /* 50% del ancho del viewport, para que sea cuadrado */
  border: 2px solid #333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: black;
  font-size: 1.5rem;
  text-align: center;
  background-color: #ffffff;
  z-index: 4; /* Asegúrate de que esté por encima de otros elementos */
}

#qrContainer p {
  font-size: 1.5rem;
  margin: 30px 30px;
}

#qrImg {
  width: 300px;
}

#closeQR {
  position: absolute; /* Lo posiciona relativamente al .cuadro-superpuesto */
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer; /* Cambia el cursor al pasar por encima */
  font-size: 1em;
  z-index: 4; /* Asegura que esté por encima del contenido del cuadro */
}

#header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0px 0px 0px;
  background-color: #376092;
  color: #fbfbfb;
}

#header > h1 {
  font-size: 2.5rem;
  font-weight: normal;
  margin-bottom: 10px;
  text-align: center;
}

#imgHeaderContainer {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  background-color: #ffffff;
}

.header-logo {
  display: flex;
  align-items: center;
  width: 410px;
  height: 110px;
}

.header-logoS {
  display: flex;
  align-items: center;
  height: 110px;
}

#forms-container {
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #376092;
}

#forms-container p {
  color: #fbfbfb;
  font-size: 1.2em;
  margin-right: 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#qrLink {
  color: #fbfbfb;
  cursor: pointer;
}

#table-container {
  padding: 0 30px;
  margin: 10px 0px 10px 0px;
}

#bodyContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#disclimerContainer {
  padding: 10px;
  font-size: 1.2em;
  font-weight: 700;
  color: #a80707;
  text-align: center;
  background-color: #f9f9f9; /* Fondo claro para el disclaimer */
  border-radius: 5px; /* Bordes redondeados */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}

#map {
  margin-top: 20px;
  height: 500px;
  width: 700px;
  border: 2px solid #ccc; /* Opcional: borde para el mapa */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Opcional: sombra para el mapa */
  z-index: 1; /* Asegúrate de que el mapa esté por encima de otros elementos */
}

#locateMe {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  gap: 10px;
}

#locateMeButton {
  width: 30px;
  height: 30px;
  cursor: pointer;
}

#locateMe p {
  font-size: 0.7em;
}

#location-accuracy {
  padding: 10px 15px; /* Más padding para un mejor aspecto */
  text-align: center; /* Centrar el texto */
  font-family: sans-serif;
  font-size: 0.7em;
  color: #333;
  /* width: 100%; Ocupa todo el ancho */
  box-sizing: border-box; /* Incluye padding en el ancho total */
}

#belowMapConainer {
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 700px;
}

#chart-container {
  margin-top: 50px;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 500px;
}

#guaireChart {
  width: 100%;
}

#help-text {
  padding: 10px;
  font-size: 1.2em;
  color: #333;
  text-align: center;
}

#imgContainer {
  margin-top: 50px;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 500px;
}

#imgContainer > img {
  width: 90%;
  height: auto;
}

#emergency-container {
  margin-top: 50px;
  padding: 10px;
  font-size: 1.2em;
  color: #333;
  text-align: center;
}

.location-error-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  text-align: center;
  color: #333;
  max-width: 80%;
}

/* Botones */
.btn {
  margin: 10px 10px 15px 0;
  padding: 8px 15px;
  background-color: #fbfbfb;
  color: #376092;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  text-decoration: none;
}

.btn:hover {
  background-color: #d1d1d1;
}

.btn2 {
  margin: 10px 10px 15px 0;
  padding: 8px 15px;
  background-color: #376092;
  color: #fbfbfb;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
}

.btn2:hover {
  background-color: #254162;
}

.btn3 {
  margin: 10px 10px 15px 0;
  padding: 8px 15px;
  background-color: #376092;
  color: #fbfbfb;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  font-size: 1em;
}

@media screen and (max-width: 768px) {
  body {
    margin: 0;
    padding: 0;
    font-size: 14px; /* Ajustar tamaño de fuente para pantallas más pequeñas */
  }

  #qrContainer {
    width: 80vw; /* Ajustar ancho para pantallas más pequeñas */
    height: 100vw; /* Ajustar alto para pantallas más pequeñas */
  }

  #qrImg {
    width: 60%; /* Ajustar el tamaño de la imagen del QR */
    height: auto; /* Mantener la proporción de la imagen */
  }

  #header > h1 {
    font-size: 1.5rem;
  }

  #map {
    width: 95%;
    height: 300px; /* Ajustar altura para pantallas más pequeñas */
  }

  #belowMapConainer {
    width: 95%;
  }

  .location-error-message {
    width: 90%;
    padding: 15px;
  }

  #imgHeaderContainer {
    height: 80px;
  }

  .header-logo {
    width: 180px;
    height: 50px;
  }

  .header-logoS {
    height: 60px;
  }

  #imgContainer {
    width: 90%;
  }

  #chart-container {
    width: 90%;
  }
}
