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

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

/* Estilos para el encabezado*/
header {
    background-color: black;
    color: lightsteelblue;
    display: flex;
    justify-content: space-between;
    padding: 1em;
    font-family: 'IM Fell DW Pica', serif;
    position: fixed;
    width: 100%;
    z-index: 1;
}

nav {
    text-align: right;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

nav li {
    display: inline-block;
    margin-left: 1em;
}

nav a {
    color: #fff;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

a:hover {
    color: black;
    background-color: lightsteelblue;
    border: 5px solid lightsteelblue;
    text-decoration: underline;
}

.icon {
    color: lightsteelblue;
    text-decoration: none;
    padding: 1px;
    font-size: xx-large;
}

.icon:hover {
    color: white;
    background-color: black;
    text-decoration: none;
    padding: 0px;
    border: none;
}

.portada {
    width: 100%;
    height: 710px;
    background-image: url(../imagenes/gif.estrellas.gif);
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

.textportada {
    display: flex;
    height: 600px;
    align-items: center;
    justify-content: center;
    color: black;
    text-shadow: -1px -1px 0 white,
        1px -1px 0 purple,
        -1px 1px 0 plum,
        1px 1px 0 pink;
    font-family: 'IM Fell DW Pica', serif;
    font-size: 40px;
    text-align: center;
}

.textportada:hover {
    color: black;
    text-shadow: -1px -1px 0 white,
        1px -1px 0 white,
        -1px 1px 0 white,
        1px 1px 0 white;
    cursor: context-menu;
}

.wave {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 0;
}


/* Estilos para el main */
main {
    position: relative;
    background: linear-gradient(white, plum, lightsteelblue, midnightblue);
}

h2 {
    color: purple;
    margin: 2px;
    font-family: 'IM Fell DW Pica', serif;
    font-size: xx-large;
    display: block;
    width: 100%;
}

/*Mi primer libro*/
.book {
    background-color: lightsteelblue;
    width: 98%;
    height: 450px;
    margin: auto;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: gray solid 1px;
    margin-top: 120px;
}

.textbook {
    font-family: 'Times New Roman', Times, serif;
    font-size: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding-left: 160px;
    z-index: 0;
}

.imgbook {
    width: 370px;
    height: 460px;
    position: absolute;
    top: -90px;
    right: 200px;
    z-index: 0;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.5);
}

/*Blog personal*/
.blog {
    overflow: hidden;
    padding: 20px 20px 20px 0px;
    margin: 50px 0px 50px 0px;
}

.imgblog {
    float: left;
    width: 50%;
    height: 650px;
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.5);
}

.creditos {
    display: flex;
    color: lightgray;
}

.textblog {
    float: right;
    width: 50%;
    padding: 60px 100px 60px 100px;
    text-align: center;
    font-size: 18px;
}

.firma {
    margin: 80px;
    width: 100px;
    height: 50px;
}

/*opiniones de lectores*/
/* .opiniones {
    text-align: center;
    padding: 80px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    width: 98%;
    margin: auto;
}

.lector {
    margin-top: 30px;
    background-color: white;
    padding: 50px;
    border-radius: 50%;
    width: 40%;
    height: 40%;
    transition: all 0.3s ease;
    border: solid black;
}

.lector:hover {
    width: 50%;
    height: 50%;
}

.imglector {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: double black;
} */

/*agradecimientos*/
/* .agradecimientos {
    display: flex;
    flex-direction: column;
    padding: 30px;
    text-align: center;
    margin: 80px;
    background-color: white;
    border: black solid 2px;
}

.gracias {
    margin: auto;
    width: 1000px;
} */

/*redes*/
.redes {
    display: flex;
    flex-direction: row;
    justify-content: end;
    margin-right: 10px;
}

.red {
    color: beige;
    background-color: violet;
    border: solid gray 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    font-size: x-large;
}

.red:hover {
    color: #fff;
    background-color: black;
    border: solid 1px black;
    text-decoration: none;
}

/* Estilos para el pie de página */
footer {
    display: flex;
    flex-direction: column;
    background-color: black;
    color: white;
    font-family: 'Times New Roman', Times, serif;
    font-size: small;
    padding: 5px 0px 5px 0px;
}

/*Media querys*/
@media screen and (max-width:1200px) {
    header {
        flex-direction: column;
        height: 120px;
    }

    nav {
        text-align: center;
    }

    .icon {
        text-align: center;
    }

    .portada {
        height: 600px;
        background-size: cover;
    }

    .book {
        height: 600px;
        text-align: center;
    }

    .textbook {
        padding-left: 100px;
    }

    .imgbook {
        top: 70px;
        right: 100px;
        z-index: 0;
    }

    .textblog {
        width: 48%;
        padding: 0px;
    }

    .opiniones {
        margin: 0%;
        padding: 0%;
    }

    .gracias {
        width: 600px;
    }

    .redes {
        justify-content: center;
    }
}


@media screen and (max-width:900px) {
    .textportada {
        text-align: center;
    }

    .book {
        height: 600px;
        text-align: center;
    }

    .textbook {
        padding-left: 50px;
    }

    .imgbook {
        top: 70px;
        right: 60px;
        z-index: 0;
    }

    .textblog {
        width: 30%;
    }

    .lector {
        width: 50%;
        height: 50%
    }

    .lector:hover {
        width: 60%;
        height: 60%;
    }
}

@media screen and (max-width: 800px) {
    .textbook {
        padding-left: 5px;
    }

    .imgbook {
        right: 5px;
    }

    .textblog {
        width: 25%;
    }

    .opiniones {
        flex-direction: column;
    }

    .gracias {
        margin: auto;
        width: 400px;
    }
}

@media screen and (max-width: 700px) {
    .book {
        height: 600px;
        flex-direction: column;
        justify-content: start;
    }

    .textbook {
        margin: 60px;
    }

    .imgbook {
        width: 220px;
        height: 300px;
        top: 230px;
        right: auto;
    }

    .imgblog {
        width: 100%;
        height: 100%;
    }

    .textblog {
        width: 100%;
        margin: auto;
        padding: 30px;
    }

    .opiniones {
        margin: 0%;
        padding: 0%;
    }

    .gracias {
        width: 400px;
    }

    .redes {
        justify-content: center;
    }
}

@media screen and (max-width: 600px) {
    .imgbook {
        top: 250px;
    }

    .lector {
        width: 60%;
        height: 60%
    }

    .lector:hover {
        width: 70%;
        height: 70%
    }

    .agradecimientos {
        padding: 5px;
        margin: 20px;
    }

    .gracias {
        padding: 2px;
        width: 300px;
    }
}

@media screen and (max-width: 500px) {
    .book {
        height: 630px;
    }
}

@media screen and (max-width: 400px) {
    header {
        padding: 0px;
        justify-content: space-around;
    }

    .book {
        width: 100%;
        height: 800px;
    }

    .imgbook {
        top: 400px;
    }

    .gracias {
        width: 200px;
    }
}

@media screen and (max-width: 300px) {
    header {
        font-size: small;
        height: 100px;
    }

    .textportada {
        font-size: 20px;
    }

    .book {
        width: 100%;
        height: 700px;
        text-align: center;
    }

    .imgbook {
        top: 300px;
    }

    .blog {
        margin: 5px;
        padding: 2px 2px 2px 0px;
    }

    .firma {
        margin: 20px;
    }

    .textbook {
        padding-left: 0px;
        margin: 2px;
        font-size: 20px;
    }

    .textblog{
        padding: 5px;
    }

    .redes {
        margin-right: 0px;
    }

    h2 {
        margin: 0px;
    }
    .red {
        width: 30px;
        height: 30px;
        font-size: large;
    }
}

@media screen and (max-width: 220px){
    .icon {
        font-size: large;
    }    
    .book{
        height: 400px;
    }
    .imgbook{
        width: 120px;
        height: 170px;
        top: 200px;
    }
    .textbook{
        font-size: medium;
    }
    h2 {
        font-size: 20px;
    }
    .firma{
        margin: 0px;
    }
    .creditos{
        font-size: 10px;
    }
}

@media screen and (max-width: 140px){
    .imgbook{
        width: 90px;
        height: 130px;
        top: 200px;
    }
    footer{
        font-size: x-small;
    }
}
