*{
    font-family: "Roboto", serif;
    font-optical-sizing: auto;
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
    transition: .2s;
}

body{
background-color: #eee;
}

.book-container {
    margin: 5%;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 70%;
    max-width: 900px;
    justify-self: center;
    align-content: center;
    height: 80vh;max-width: 90%;
    max-height: 90%;
    -o-object-fit: contain;
       object-fit: contain; /* Esto asegura que no se deforme ni se recorte */
    
}

.libro img{
    max-width: 90%;
    max-height: 90%;
    -o-object-fit: contain;
    object-fit: contain;
}

.cadanov{
    justify-self: center;
    width: 100%;
}

.book-cover{
    margin: 2%;
}

.boton {
    width: 130px;
    height: 40px;
    color: #000000;
    border-radius: 5px;
    padding: 10px 25px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    box-shadow:inset 2px 2px 2px 0px rgba(255,255,255,.5),
    7px 7px 20px 0px rgba(0,0,0,.1),
    4px 4px 5px 0px rgba(0,0,0,.1);
    outline: none;
    }


.boton:after {
    color: #fff;
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    direction: rtl;
    z-index: -1;
    box-shadow:
    -7px -7px 20px 0px #fff9,
    -4px -4px 5px 0px #fff9,
    7px 7px 20px 0px #0002,
    4px 4px 5px 0px #0001;
    transition: all 0.3s ease;
    }

.boton:hover {
    color: #fff;
    background-color: #000000;

}

.boton:hover:after {
    left: auto;
    right: 0;
    width: 100%;
}

.boton{
    text-align: center;
    grid-row: 4;
    grid-column: 4;
}

.book {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.book-cover img {
    width: 400px;
    height: auto;
    border-radius: 8px;
}

.book-info {
    max-width: 800px;
}

.book-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    color: #333;
}

.book-synopsis {
    font-size: 16px;
    color: #555;
    margin-top: 10px;
    line-height: 1.6;
}

.book-links {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}

.book-links li {
    margin-bottom: 10px;
}

.book-links a {
    text-decoration: none;
    color: #007BFF;
    font-size: 20px;
}

.book-links a:hover {
    text-decoration: underline;
}

.footer{
    justify-self: center;
    margin: 1em;
    padding: 0%;
}

@media (max-width: 768px) {
    .book-container {
        width: 95%;
        height: auto;
        margin: 10px auto;
        padding: 15px;
    }

    .book {
        flex-direction: column;
        align-items: center;
    }

    .book-cover img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    .book-info {
        max-width: 100%;
        text-align: center;
    }

    .book-title {
        font-size: 24px;
    }

    .book-synopsis {
        font-size: 15px;
        padding: 0 10px;
    }

    .book-links a {
        font-size: 18px;
    }

    .boton {
        width: 100%;
        max-width: 200px;
        margin: 10px auto;
        display: block;
    }

    .footer {
        font-size: 14px;
        text-align: center;
    }
}