/*Estilos de header*/

.baner{
    background-image: url("https://images.squarespace-cdn.com/content/v1/528a31e5e4b00863f1646510/1563383021032-6F2XUJ1QYJMUTK9GFNY6/Rick+And+Morty+Banner+copy.jpg?format=2500w");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    height: 350px;
    width: 100%;
    background-color: darkgray;
    border-radius: 25px;
}

/*Estilos de personajes*/
#contenedor{
  display: grid;
  
  grid-template-columns: 130px 130px 130px 130px 130px 130px;
  grid-template-rows: 100px 100px 100px 100px 100px;
  grid-column-gap: 60px;
  grid-row-gap: 40%;
  
}
#personajes{
    position: relative;
    margin-left: 100px;
    margin-bottom: 20px;
    border: 2px darkgray solid;
    box-shadow: 3px 0px 10px;
    margin-top: 20px;
    border-radius: 5px;
    height: 250px;
    width: 130px;
    font-size: 11px;
    padding: 10px;
    
}    

#personajes:hover{
  margin-top: -10px;
}
.contenedor{
  margin-bottom: 200px;
}

img{
    
    margin-left: 10px;
    height: 70px;
    width: 100px;
    border-radius: 5%;
}



/*Estilos Botones*/
.botones{
  
  position: relative;
  text-align: center;
  top: 750px;
  
}


@media (max-width: 600px) {
  #contenedor{
    grid-template-columns: 100px ;
    grid-template-rows: 180px ;
    grid-row-gap: 100px;
  }
  
  #personajes{
  
    position: flex;
    margin-bottom: -100px;
    width: 300px;
    text-align: center;    
    }
    
    img{
      
      height: 100px;
    }
    
    #personajes:hover{
      margin-top:-1 ;
      margin-left: -5px;
      z-index:1;
      background-color: black;
      color: white;
    }
    .botones{
  
      position: relative;
      text-align: center;
      top: 150px;
      
    }
    #anterior:hover{
      background-color: black;
      color: white;
    }

    #siguiente:hover{
      background-color: black;
      color: white;
    }
}