.hazard {
  width: 600px;
  padding-top: 8%;
}

.hazard-title {
  padding-left: 25%;
  font-size: 36px;
  font-weight: 500;
  font-family: Arial, Helvetica, sans-serif;
  margin-bottom: -3%;
}
.hazard-text {
    margin-top: -3%;
    margin-bottom: 1%;
    margin-left: -25%;
    text-align: center;
    font-weight: 500;
    color: #fff;
    font-size: 36px;
    box-sizing: border-box;
}
.hazard-explanation {
  font-size: 22px;
  font-weight: 500;
  color: white;
  padding-left: 5%;
  padding-top: 2%;
  font-family: Arial, Helvetica, sans-serif;
}

.hazard-description {
  font-size: 22px;
  font-weight: 500;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
}

.hazard-effects {
  font-size: 22px;
  font-weight: 500;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
}

.hazard-list-item1 {
  padding-bottom: 1%;
}

.hazard-list-item2 {
  padding-bottom: 1%;
  padding-top: 2%;
}

.read-more {
  position: absolute;
  left: 36%;
  top: 92%;
  background-color: #ccc;
  color: #333;
  border: none;
  padding: 10px 40px;
  text-decoration: none;
  display: inline-block;
  font-size: 20px;
  margin: 10px 2px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.read-more:hover {
  background-color: #aaa;
}

/* Ocultar el contenido adicional por defecto */
.hidden {
  display: none;
}

/* Estilo para el div de información adicional */
.more-info {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border: 1px solid #ccc;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 300px;
  z-index: 1000;
  border-radius: 10px;
}

/* Estilo para el botón de cerrar */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  color: #333;
}

.close-btn:hover {
  color: red;
}

.verde-texto {
  color: #9bcd31;
  font-size: 36px;
  font-weight: 500;
}
.amarillo-texto {
  color: #f8d51b;
  font-size: 36px;
  font-weight: 500;
}
.naranja-texto {
  color: #f37306;
  font-size: 36px;
  font-weight: 500;
}
.rojo-texto {
  color: #e22a0e;
  font-size: 36px;
  font-weight: 500;
}

.dangerLevel {
  margin-left: -25%;
  text-align: center;
}
@media screen and (max-width: 1536px) {
  .hazard-title {
    padding-left: 16%;
    font-size: 36px;
    font-weight: 500;
    font-family: Arial, Helvetica, sans-serif;
    position: relative;
    left: 10vh;
  }
}

@media screen and (min-width: 2560px) {
  .hazard-title {
    padding-left: 25%;
    font-size: 36px;
    font-weight: 500;
    font-family: Arial, Helvetica, sans-serif;
    position: relative;
    left: 10vh;
  }
  .hazard {
    width: 600px;
    padding-top: 5%;
  }
  .hazard-text {
    margin-top: -3%;
    margin-bottom: 1%;
    margin-left: -25%;
    text-align: center;
    font-weight: 500;
    color: #fff;
    font-size: 42px;
    box-sizing: border-box;
}
.verde-texto {
  color: #9bcd31;
  font-size: 42px;
  font-weight: 500;
}
.amarillo-texto {
  color: #f8d51b;
  font-size: 42px;
  font-weight: 500;
}
.naranja-texto {
  color: #f37306;
  font-size: 42px;
  font-weight: 500;
}
.rojo-texto {
  color: #e22a0e;
  font-size: 42px;
  font-weight: 500;
}
}

@media screen and (max-width: 1366px) {
  .hazard {
    width: 450px;
    margin-top: -30%;
    text-align: center;
    position: relative ;
    left: -3%;
  }

  .hazard-title {
    padding-left: 0%;
    font-size: 20px;
    font-weight: 500;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
  }
  .hazard-text {
    padding-top: 2%;
    font-size: 28px;
    font-weight: 500;
    font-family: Arial, Helvetica, sans-serif;
  }

  .hazard-explanation {
    font-size: 16px;
    font-weight: 500;
    color: white;
    padding-left: 1%;
    padding-top: 2%;
    font-family: Arial, Helvetica, sans-serif;
  }

  .hazard-description {
    font-size: 16px;
    font-weight: 500;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
  }

  .hazard-effects {
    font-size: 16px;
    font-weight: 500;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
  }

  .hazard-list-item1 {
    padding-bottom: 1%;
  }

  .hazard-list-item2 {
    padding-bottom: 1%;
    padding-top: 2%;
  }

  .read-more {
    position: absolute;
    left: 36%;
    top: 90%;
    background-color: #ccc;
    color: #333;
    border: none;
    padding: 8px 30px;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 2px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
  }

  .read-more:hover {
    background-color: #aaa;
  }

  /* Ocultar el contenido adicional por defecto */
  .hidden {
    display: none;
  }

  /* Estilo para el div de información adicional */
  .more-info {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #ccc;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    z-index: 2;
    border-radius: 10px;
  }

  /* Estilo para el botón de cerrar */
  .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 16px;
    cursor: pointer;
    color: #333;
  }

  .close-btn:hover {
    color: red;
  }

  .verde-texto {
    color: #9bcd31;
    font-size: 32px;
    font-weight: 500;
  }
  .amarillo-texto {
    color: #f8d51b;
    font-size: 32px;
    font-weight: 500;
  }
  .naranja-texto {
    color: #f37306;
    font-size: 32px;
    font-weight: 500;
  }
  .rojo-texto {
    color: #e22a0e;
    font-size: 32px;
    font-weight: 500;
  }
}
@media screen and (max-width: 1024px) {
  .hazard {
    width: 450px;
    margin-top: -10%;
  }

  .hazard-title {
    padding-left: 30%;
    font-size: 4vh;
    font-weight: 500;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
  }
  .hazard-text {
    padding-top: 2%;
    font-size: 3vh;
    font-weight: 500;
    font-family: Arial, Helvetica, sans-serif;
  }

  .hazard-explanation {
    font-size: 16px;
    font-weight: 500;
    color: white;
    padding-left: 1%;
    padding-top: 2%;
    font-family: Arial, Helvetica, sans-serif;
  }

  .hazard-description {
    font-size: 16px;
    font-weight: 500;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
  }

  .hazard-effects {
    font-size: 16px;
    font-weight: 500;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
  }

  .hazard-list-item1 {
    padding-bottom: 1%;
  }

  .hazard-list-item2 {
    padding-bottom: 1%;
    padding-top: 2%;
  }

  .read-more {
    position: absolute;
    left: 36%;
    top: 90%;
    background-color: #ccc;
    color: #333;
    border: none;
    padding: 8px 30px;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 2px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
  }

  .read-more:hover {
    background-color: #aaa;
  }

  /* Ocultar el contenido adicional por defecto */
  .hidden {
    display: none;
  }

  /* Estilo para el div de información adicional */
  .more-info {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #ccc;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    z-index: 2;
    border-radius: 10px;
  }

  /* Estilo para el botón de cerrar */
  .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 16px;
    cursor: pointer;
    color: #333;
  }

  .close-btn:hover {
    color: red;
  }

  .verde-texto {
    color: #9bcd31;
    font-size: 3vh;
    font-weight: 500;
  }
  .amarillo-texto {
    color: #f8d51b;
    font-size: 3vh;
    font-weight: 500;
  }
  .naranja-texto {
    color: #f37306;
    font-size: 3vh;
    font-weight: 500;
  }
  .rojo-texto {
    color: #e22a0e;
    font-size: 3vh;
    font-weight: 500;
  }
}