/*
    Cascade Style Sheet for Lernolibro
    developed by SerHack
*/

body{
    margin: 0px;
    padding: 0px;
    font-family: 'lft-etica', Arial, sans-serif;
}

.container{
    box-sizing: border-box;
}

/* FLEX and GENERAL LAYOUT */

.flex{
    display: flex;
}

a, a:visited{
    color: inherit;
    font-weight: 800;
    text-transform: none;
    text-decoration: none;
    letter-spacing: 0.5px;
}

/* menu */

.menu-flex{
    align-items: center;
    justify-content: space-between;
}

.menu-border{
    border-bottom: 1px solid #ededed;
}

.nav-item{
    font-weight: 500;
}

nav li{
    list-style: none;
    padding: 0px 10px;
}

.primary{
}

.menu-fixed{
    position: fixed;
}

/* Index */

.book{
    max-height: 800px;
}

.book-flex{
    justify-content: space-between;
    width: 80%;
    margin: 0px auto;
    padding: 50px 0px;
}

.book-box{
    background-color: #ffffff;
    height: 100%;
    width: fit-content;
}

.book-box h2{
    font-size: 2rem;
    font-weight: 700;
}

.book-box h3{
    font-weight: 400;
}

.book-cover{}

.book-cover-img{
    max-width: 500px;
    max-height: 500px;
    display: block;
}

.main-text{
    background-color: #d31b2a;
    color: white;
}

.privacy-text a{
    text-decoration: underline;
    text-underline-offset: 5px;
}

.blog-flex{
    justify-content: space-between;
}

/* Other elements */

.text-center{
    text-align: center;
}

.warning{
    background-color: #c73a3a;
    color: white;
}

.warning p{
    padding: 10px 0px;
    width: 70%;
    margin: 0 auto;
}

.special-text p{
    color: #BF1E2E;
    font-size: 3.2rem;
    font-weight: 700;
}

.background-green{
    background-color: #26715d;
}

.background-green .book-box{
    border: 10px solid #194d3f;
}

.background-sky{
    background-color: #584ae7;
}

.background-sky .book-box{
    border: 10px solid #2c2668;
}

.background-orange{
    background-color: #d2800f;
}

.background-orange .book-box{
    border: 10px solid #995D0B;
}

.background-blu{
    background-color: #1d3461;
}

.background-blu .book-box{
    border: 10px solid #345CAD;
}

.background-red{
    background-color: #cc2936;
}

.background-red .book-box{
    border: 10px solid #881B24;
}

.btn{
    background-color: #252570;
    color: white!important;
    padding: 10px 20px;
    display: block;
    width: fit-content;
}

/* Single page: book */

.book-head{
    justify-content: space-around;
    align-items: center;
    padding: 40px 0px;
    background-color: #bf1e2e;
}

.book-head .book-box{
    border: 10px solid #F4F4F4;
}

.book-body{
    flex: 1;
    line-height: 1.5rem;
}



.book-sidebar{
    flex: 0.4;
    line-height: 1.5rem;
}

.book-content{
    padding-top: 30px;
}

.book-body h3{
    font-size: 2.2rem;
    color: #5B5B65;
}

.related-book{
    padding: 20px 0px;
    background: #F4F4F4;
}

.gallery-items{
    width: 100%;
    justify-content: space-around;
    margin: 20px 0px;
    padding: 20px 0px;
}

.gallery-item{
    transition: opacity 0.3s ease-in-out;
    padding: 20px;
    margin: 0 auto;
    width: fit-content;
}

.img-box{
    width: 100%;
    background-color: #26715d;
}

.price{
    color: #5e5e5e;
    font-size: 1.6rem;
}

/* Author filetto */

.author{
    padding-bottom: 40px;
}

.author-flex{
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 20px;
}

.people-flex{
    justify-content: space-around;
}

.bio-body{
    flex: 0.7;
}

.bio-photo img{
    flex: 1;
    max-height: 120px;
    max-width: 120px;
}

.bio-photo{
    width: fit-content;
    margin: 0 auto;
}

.article a{
    font-weight: 400;
}

.people-box{
    padding: 20px;
}



/* Mobile devices */

@media (max-width:480px){

    .book-cover img{
        width: 100%;
    }

    .footer-flex{
        text-align: center;
    }

    .book-cover-img{
        margin: 0 auto;
    }

    .container{
        width: 100%;
        padding: 10px;
    }

    .privacy-text{
        padding: 40px 0px;
        line-height: 150%;
    }

    .privacy-text p{
        margin: 0px;
        padding: 0px;
    }

    .privacy-text h2{
        margin: 0px;
        padding: 0px;
    }

    .book-flex, .book-list-flex, .book-head, .book-content-flex, .footer-flex, .author-flex, .menu-flex{
        width: 100%;
        flex-direction: column;
    }

    .book-single{
        margin: 20px 0px;
    }

     .book-box{
        padding: 10px 20px;
        margin: 0 auto;
    }

    .flex-links{
    flex-direction: row;
}

    .flex-links a{
        padding: 10px;
    }

    .blog-padding{
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Tablets */
@media (max-width:960px){

}

/* Laptops */

@media (min-width:1025px){
    .flex-links{
        flex-direction: column;
    }

    .book-body{
        padding: 0 30px;
    }

    .book-box{
        padding: 20px 30px;
        margin: 20px;
    }

    .privacy-text{
        padding: 30px;
    }

    .container{
        width: 60%;
        margin: 0 auto;
    }

    .page{
        padding: 10px;
    }
}

/* Desktop */

@media (max-width:1280px){
    
}


/* Footer */
footer .container{
    border-top: 1px solid #ededed;
    padding-top: 10px;
}

footer{
    padding: 20px 0px;
}

.footer-flex{
    align-items: center;
    justify-content: space-between;
}