* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background-image: url("Image/Fondo2.png");
  background-size: 2150px;
  background-attachment: fixed;
  overflow: scroll;
  /*Buscar background-attachment o scroll para dejar fijo el fondo y desplazar solo las imágenes*/
}

header {
  padding: 100px;
  text-align: center;
  color: white;
  font-size: 2rem;
}

nav {
  text-align: center;
  margin: 0;
}


main { /*selector de elemento/tipo/etiqueta (a partir de <etiqueta> en MDN)*/
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  gap: 60px;
  padding: 60px;
  position: center;
}


.character-card {
  width: 100%;
  border-radius: 5px;
  border: 2px solid #043b1f;
  box-shadow: 10px 10px 10px rgb(0, 0, 0);
  background-color: azure;
  position: relative;
}

.character-card>img {
  width: 100%;
  height: 90%;
  filter: grayscale(80%);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #0c663f;
}

.character-card:hover .caracteristicas {
  display: block;
}

.character-card>img:hover {
  filter: none;
  border: 3px solid #0c663f;
  width: 100%;
  height: 70%;
}

.caracteristicas {
  display: none;
  position: relative;
  top: 5%;
  left: 0;
  right: 0;
  color: rgb(64, 15, 25);
  text-align: center;
  font-size: 1rem;
  padding: 1px 0 0 0;
  background-color: azure;
  font-weight: bold;
}

.character-card>h3 {
  color: rgb(64, 15, 25);
  text-align: center;
  font-size: 1.3rem;
  padding: 2px 2px 2px 2px;
  background-color: #f7f3e2;
  position: static;
  font-weight: bold;
}

button {
  margin: 0.5em;
  min-width: 130px;
  height: 40px;
  color: #f7f3e2;
  padding: 5px 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  outline: none;
  border-radius: 5px;
  border: 2px solid #eef0ef;
  background: #0d603cbd;
  font-size: 1.2rem;
  box-shadow: 5px 5px 5px rgb(253, 252, 252);
}

button:hover { /*selector pseudoclase*/
  background: #fff;
  color: #0c663f;
  border: 2px solid #0c663f;
}

.btnBuscar {
  margin: 0.1em;
  min-width: 40px;
  height: 30px;
  font-size: 1rem;
}

.btnProcesar {
  margin: 0.1em;
  min-width: 40px;
  height: 40px;
  font-size: 1.2rem;
  background: #2d2a1db4;
  color: white;
}

.Personaje {
  margin: 0.5em;
  min-width: 120px;
  height: 40px;
  color: #0c663f;
  padding: 5px 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  outline: none;
  border-radius: 5px;
  border: 2.3px solid #10784b;
  background: #f7f3e2;
  font-size: 1.2rem;
  box-shadow: 5px 5px 5px rgb(3, 54, 10);
}

.Personaje:hover {
  border: 2px solid #0c663f;
  background: transparent;
}

::placeholder { /*selector pseudoelemento*/
  color: rgb(64, 15, 25)
}

select {
  min-width: 130px;
  height: 40px;
  color: #fff;
  padding: 5px 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  outline: none;
  border-radius: 5px;
  border: 2.5px solid #0c663f;
  color: rgb(7, 57, 31);
  background: transparent;
  font-size: 1.2rem;
  font-weight: bold;
}

select:hover {
  border: 2px solid #0c663f;
  background: #f7f3e2;
}

.selector {
  font-size: 1.4rem;
  font-weight: bold;
  color: rgb(64, 15, 25);
}

#Calculo {
  font-size: 1.2rem;
  font-weight: bold;
  color: #f7f3e2;
  background: rgba(7, 57, 13, 0.6);
  padding: 5px 10px;
  border-radius: 5px;
}

#calculoContainer {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2;
  cursor: pointer;
  background-image: url("https://hips.hearstapps.com/hmg-prod/images/breaking-bad-resumen-cinco-temporadas-1570700511.jpg");
  background-size: cover;
  background-attachment: fixed;
  overflow: scroll;
  background-size: cover;
  background-attachment: fixed;
}

#calculoContainer>h2 {
  color: rgb(64, 15, 25);
  text-align: center;
  font-size: 2.6rem;
  padding: 10px 10px;
  background-color: #b19e4c92;
  position: static;
  font-weight: bold;
}

.nombre,
.signo,
.elemento {
  margin: 10px;
  color: white;
  font-family: bold;
  font-size: 1.3em;
  padding: 7px;
  display: flex;
  background-color: #2d2a1dbe;
  left: 39%;
  max-width: 20%;
  position: relative;
  border-radius: 10px;
  box-shadow: 5px 5px 5px rgb(253, 252, 252);
}

.NombreCalculo,
.SignoCalculo,
.ElementoCalculo {
  display: flex;
  font-family: bold;
  font-size: 1.3em;
  color: #0c663f;
  padding: 10px;
  border: 3.5px solid #0c663f;
  border-radius: 10px;
  max-width: 30%;
  left: 39%;
  text-align: center;
  margin: 10px;
  position: relative;
  box-shadow: 5px 5px 5px rgb(253, 252, 252);
}

audio {
  display: flex;
  font-family: bold;
  font-size: 0.5em;
  padding: 5px;
  border-radius: 5px;
  max-width: 13.5%;
  align-items: center;
  text-align: center;
  left: 20%;
  margin: 0;
  position: relative;
  background: #0c663f98;
  height: 30px;
  box-shadow: 5px 5px 5px rgb(253, 252, 252);
}

#resultado {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
  cursor: pointer;
  background-image: url("Image/Imagenes/bb_walter-white-large.jpg");
  background-size: 2150px;
}

span { /*Selector de tipo*/
  font-size: 1.3rem;
  font-weight: bold;
  color: #f7f3e2;
  background: rgba(7, 57, 13, 0.6);
  padding: 5px 10px;
  border-radius: 5px;
}



/* Media Queries para tabletas y celulares */
@media screen and (max-width: 900px) {
  body {
    background-size: 900px;
    /* Ajustar el fondo para que cubra toda la pantalla */
  }

  header {
    padding: 5px;
    /* Reduce el padding en pantallas pequeñas */
    font-size: 1.5rem;
    /* Reduce el tamaño de fuente en pantallas pequeñas */
    color: rgb(0, 0, 0);
  }

  nav {
    align-items: center;
    text-align: center;
    background-color: rgba(250, 235, 215, 0.531);
    max-width: 65%;
    display: block;
    position: relative;
    left: 15%;
    padding: 2px;
  }

  main {
    grid-template-columns: 1fr 1fr 1fr;
    /* Cambia a 2 columnas en pantallas pequeñas */
    gap: 50px;
    /* Reduce el espacio entre elementos en pantallas pequeñas */
    padding: 50px;
    /* Reduce el padding en pantallas pequeñas */
  }

  .character-card>img {
    width: 100%;
    height: 80%;
    /* Ajusta la altura de la imagen proporcionalmente */
  }

  .character-card>img:hover {
    filter: none;
    border: 3px solid #0c663f;
    width: 100%;
    height: 60%;
  }

  .character-card>h3 {
    font-size: 1rem;
  }

  #resultado {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
    cursor: pointer;
    background-image: url("Image/Imagenes/bb_walter-white-large.jpg");
    background-size: 600px;
    background-position: center;
    background-repeat: no-repeat
  }

  audio {
    display: flex;
    font-family: bold;
    font-size: 0.5em;
    padding: 5px;
    border-radius: 5px;
    max-width: 100%;
    align-items: center;
    text-align: center;
    left: 20%;
    margin: 0;
    position: relative;
    background: #0c663f98;
    height: 30px;
    box-shadow: 5px 5px 5px rgb(253, 252, 252);
  }
}