@import url('https://fonts.googleapis.com/css2?family=Itim&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sour+Gummy:ital,wght@0,100..900;1,100..900&display=swap');

body {
    background-image: linear-gradient(to bottom right, rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0.3)), url('../img_assets/autores/paper.webp');

}

main>section {
    display: block;
    -webkit-box-shadow: none;
    box-shadow: none;
    margin-top: 70px;
}

.container-libros-autor {
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: .3s  ease;
}

.dark-mode  {
    background-image: linear-gradient(to bottom right, rgba(65, 65, 65, 0.3), rgba(0, 0, 0, 0.87)), url('../img_assets/autores/paper.webp');
}

.dark-mode .lista-autores ul li, .dark-mode .imagen-recomendados img{
    -webkit-box-shadow: 10px 7px 5px -1px rgba(0,0,0,0.205); 
    box-shadow: 10px 7px 5px -1px rgba(0, 0, 0, 0.205);
}

.dark-mode .lista-autores ul li{
    background-color: rgb(190, 138, 40);
}

.dark-mode .lista-autores ul li a{
    color: rgb(0, 0, 0);
}

.imagen-recomendados {
    width: 100%;
    margin: 0 auto;
    position: relative;
    height: 500px;
    
}

.imagen-recomendados img {
    display: block;
    width: 95%;
    filter: brightness(50%);
    height: 100%;
    object-fit: cover;
    margin: 0 auto;
    margin-top: 20px;
    transform: rotateX(-3deg)rotateY(6deg); 
    position: relative;
    -webkit-box-shadow: 10px 7px 5px -1px rgba(0,0,0,0.48); 
    box-shadow: 10px 7px 5px -1px rgba(0,0,0,0.48);
}



.imagen-recomendados .titulo-imagen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}



.titulo-imagen h1 {
    font-size: 70px;
    text-align: center;
    color: white;
    font-family: 'Lobster', cursive, Arial, Helvetica, sans-serif;
    text-shadow: 3px 1px 0 black, 3px 3px 0 black, 3px 3px 0 black, 3px 3px 0 black;
    position: relative;
    display: flex;
    align-items: center;
    letter-spacing: 1px;
}

.titulo-imagen h1::before,
.titulo-imagen h1::after {
    content: '';
    display: block;
    width: 5rem;
    height: 2px;
    background-color: currentColor;
    margin: 0 1rem;
}



.fa-chevron-right::before {
    content: "\f054";
}

.container-list-author {
    width: 100%;
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

}

.lista-autores ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.lista-autores ul li {
    width: 20rem;
    background-color: rgb(252, 192, 80);
    margin: 20px;
    margin-bottom: 0;
    cursor: pointer;
    transform: rotateX(-3deg)rotateY(10deg); 
    position: relative;
    -webkit-box-shadow: 10px 7px 5px -1px rgba(0,0,0,0.48); 
    box-shadow: 10px 7px 5px -1px rgba(0,0,0,0.48);
    transition: 300ms ease;
    overflow: hidden;
}

.lista-autores ul li:nth-of-type(even) {
    transform: rotateX(-3deg)rotateY(-10deg); 
}

.lista-autores ul li:hover{
   transform: scale(1.1);
   -webkit-box-shadow: 16px 17px 13px -1px rgba(0,0,0,0.48); 
box-shadow: 16px 17px 13px -1px rgba(0,0,0,0.48);
background-color: rgb(247, 217, 188);
}

.lista-autores ul li a {
    display: block;
    padding: 1rem 2rem;
    width: 100%;
    font-size: 23px;
    color: rgb(0, 81, 255);
    font-family: "Sour Gummy", sans-serif, 'Nunito';
}

@media only screen and (max-width: 768px) {
    main section {
        margin-top: 60px;
    }
    
}



@media only screen and (max-width: 500px) {
    .container-list-author {
        width: 100%;
    }


    .titulo-imagen h1 {
        font-size: 50px;
    }

}


@media only screen and (max-width: 400px) {
    .imagen-recomendados {
        width: 100%;
        height: 350px;
        margin: 0 auto;
    }

    .imagen-recomendados img {
        height: 100%;
        object-fit: cover;
    }


}