* {
    box-sizing: border-box;
    flex-wrap: wrap;
    position: relative
}


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

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

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: plum;
    background-color: black;
    text-decoration: none;
    padding: 0px;
    border: none;
}

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

/* Estilos para el main */
main {
    margin-top: 110px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    background: linear-gradient(white, plum, lightsteelblue, midnightblue);
}

h1 {
    font-family: 'IM Fell DW Pica', serif;
    text-align: center;
}

p {
    font-size: large;
    position: relative;
}


/* botones */
.button {
    display: inline-block;
    border-radius: 7px;
    border: none;
    background: linear-gradient(black, fuchsia, purple);
    color: white;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    font-size: 13px;
    box-shadow: 0px 14px 56px -11px black;
    width: 10em;
    padding: 1em;
    transition: all 0.4s;
    cursor: pointer;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.button:hover {
    background: linear-gradient(purple, fuchsia, black);
    box-shadow: none;
    text-decoration: none;
}

.button span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.4s;
}

.button span:after {
    content: 'Gratis';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.7s;
}

.button:hover span {
    padding-right: 3.55em;
}

.button:hover span:after {
    opacity: 4;
    right: 0;
}

/* containers */
.container {
    border-top: dotted white 10px;
    margin: 5px;
    width: 400px;
    height: 450px;
    text-align: center;
    position: relative;
    background-image: url('../imagenes/papel.jpg');
}

.container_novelas {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
}

.imgETO {
    width: 180px;
    height: 240px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.container_poemario_cuento {
    position: absolute;
    left: 0;
    right: 0;
}

/*redes*/
.container_redes {
    display: flex;
    flex-direction: row;
    justify-content: end;
    padding: 33px 5px 5px 0px;
    position: relative;
    width: 100%;
}

.redes {
    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;
}

.redes: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 screen and (max-width:1200px) {
    header {
        flex-direction: column;
        height: 120px;
    }

    nav {
        text-align: center;
    }

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

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

    h2 {
        margin: 0px;
        font-size: 20px;
    }
    .icon {
        font-size: large;
    }   
    .redes {
        margin: 0px;
    }
    .creditos{
        font-size: 10px;
    }
}