﻿
.book {
    width: 100%;
    height: 300px;
    background: #fff;
    position: relative;
    perspective: 1000px;
    transition: 0.5s;
    /*background: url('/images/multimedia/old-paper.jpg') center center no-repeat;*/
    /*background-size: cover;*/
    /*background: linear-gradient(to left, rgba(255,255,255,1) , rgba(0,0,0,0.1) );*/
    background: rgb(199,199,199);
    background: linear-gradient(90deg, rgba(199,199,199,1) 0%, rgba(224,222,222,1) 11%, rgba(255,255,255,1) 100%, rgba(0,212,255,1) 100%);
    box-shadow: 4px 4px 8px 1px rgba(0,0,0,0.2)
}

.cover {
    width: 100%;
    height: 300px;
    position: absolute;
    transform: rotateY(0deg);
    transform-style: preserve-3d;
    transform-origin: left;
    transition: all .5s ease-in;
}

.book:hover {
    z-index: 9999;
}

    .book:hover .cover {
        transform: rotateY(-80deg);
    }

figure {
    margin: 0;
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

    figure.front img {
        width: 100%;
        height: 100%
    }

    figure.back {
        background: #f5f5f5;
        transform: rotateY(180deg);
    }

.btn-box {
}

.openBook {
    max-width: 60px;
    max-height: 60px
}
/*Custom*/
.books-container {
    display: grid;
    grid-template-columns: repeat(8,1fr);
    grid-gap: 20px;
}

.book-content {
    width: 100%;
    position: absolute;
    text-align: center;
    margin-top: 10px;
    padding-left: 20px;
    padding-right: 10px;
}

.book-name-box {
    font-size: 0.8rem;
    font-weight: 600;
    max-height: 80px;
    overflow-y: auto;
    color: #be5937
}

.page-count-text {
    font-size: 0.78rem;
    display: block;
    color: #bf8b85;
    display: block;
}

.author-text {
    font-size: 0.8rem;
}

.publication-text {
    font-size: 0.7rem;
}

@media only screen and (max-width: 1810px) {
    .book, .cover {
        height: 280px;
    }
}

@media only screen and (max-width: 1700px) {
    .book, .cover {
        height: 270px;
    }
}

@media only screen and (max-width: 1600px) {
    .books-container {
        display: grid;
        grid-template-columns: repeat(6,1fr);
        grid-gap: 20px;
    }

    .book, .cover {
        height: 300px;
    }
}

@media only screen and (max-width: 1400px) {
    .book, .cover {
        height: 280px;
    }
}

@media only screen and (max-width: 1300px) {

    .book, .cover {
        height: 270px;
    }
}

@media only screen and (max-width: 1260px) {

    .book, .cover {
        height: 260px;
    }
}

@media only screen and (max-width: 1200px) {
    .books-container {
        grid-template-columns: repeat(4,1fr);
    }

    .book, .cover {
        height: 340px;
    }
}

@media only screen and (max-width: 1100px) {
    .book, .cover {
        height: 320px;
    }
}

@media only screen and (max-width: 1000px) {
    .book, .cover {
        height: 300px;
    }
}

@media only screen and (max-width: 960px) {
    .book, .cover {
        height: 280px;
    }
}

@media only screen and (max-width: 880px) {
    .book, .cover {
        height: 260px;
    }
}

@media only screen and (max-width: 800px) {

    .book, .cover {
        height: 240px;
    }
}

@media only screen and (max-width: 760px) {
    .books-container {
        grid-template-columns: repeat(2,1fr);
        grid-gap: 50px;
    }

    .book, .cover {
        height: 400px;
    }
}

@media only screen and (max-width: 730px) {
    .books-container {
        grid-gap: 30px;
    }
}

@media only screen and (max-width: 700px) {
    .books-container {
        grid-gap: 20px;
    }
}

@media only screen and (max-width: 680px) {
    .books-container {
        grid-template-columns: repeat(1,1fr);
    }

    .book, .cover {
        margin: auto;
        width: 280px;
        height: 370px;
    }
}

.pagination-column {
    display: flex;
    justify-content: center;
    padding-top: 8px
}

.pagination-buttons .btn {
    min-width: 30px;
    min-height: 30px;
    padding: 2px 6px;
    border-radius: 0;
}

.filterForm {
    display: flex;
    max-width: 500px !important;
    align-items: center;
    grid-gap: 6px;
}

    .filterForm button {
        border-radius: 0 !important
    }

.searchAdvanced {
    padding: 0px !important;
    line-height: 10px !important;
    height: 40px;
    width: 60px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    padding-bottom: 6px !important;
}

.form-control {
    border-radius: 0 !important;
}

.result {
    padding: 5px 8px;
    margin-left: 14px;
}

    .result span:nth-child(1) {
        color: #4cb963;
        font-weight: 600;
    }

    .result span:nth-child(2) {
        font-weight: 500;
        font-style: italic;
    }

.result-0 {
    color: #a5243d !important;
}
