﻿/*pill*/
.nav-item a.active {
    background-color: #ff7236 !important;
    border-color: #ff7236 !important;
    color: #fff !important;
}

.nav a:hover {
    color: #ff7236 !important;
}

a.active:hover {
    color: #fff !important;
}

/*display grid*/
.book-grid figure {
    border: 5px solid #f3f3f3;
}



    .book-grid figure:hover img {
        border: 0;
        transform: scale(1.027);
        transition: all 1s ease;
    }

.red-icon {
    background-image: url(/files/img/book-list-icons.png);
    background-repeat: no-repeat;
    width: 55px;
    height: 55px;
    left: 15px;
    padding: 14px 13px;
    position: absolute;
    top: 0;
    background-color: #f56363;
    background-position: -215px 15px;
}

figure figcaption {
    background-color: #fff;
    bottom: 0;
    left: 0;
    padding: 15px 14px 18px;
    position: absolute;
    transform: scaleX(1);
    transform-origin: left center 0;
    transition: all 0.4s linear 0s;
    width: 100%;
    z-index: 15;
}

.book-grid figure:hover figcaption {
    transform: scaleX(0);
}

.book-box {
    display: block;
    border: none;
    margin-bottom: 0;
    transition: all 0.1s ease-in-out 0s;
    top: 20%;
    background-color: white;
    left: 33px;
    z-index: 9999;
    border: 5px solid #f3f3f3;
    padding: 30px;
}

@media (min-width: 1200px) {
    .book-grid img {
        width: 253px;
        height: 402px;
    }

    .book-box {
        opacity: 0;
        display: block;
        border: none;
        margin-bottom: 0;
        transition: none;
        top: 20%;
        background-color: white;
        left: 20%;
        z-index: 9999;
        border: 5px solid #f3f3f3;
        padding: 30px;
        position: absolute;
        width: 320px;
    }

    .book-grid figure:hover .book-box {
        opacity: 1;
    }
}

@media (min-width: 768px) and (max-width: 1200px) {
    .book-box {
        box-shadow: 0 0 14px 0 rgb(0 0 0 / 7%);
    }
}

.page-item .pre-btn {
    background-color: white;
    border: 0;
    left: 0;
}

.page-item .next-btn {
    background-color: white;
    border: 0;
    right: 0;
}

.pagination a {
    cursor: pointer;
}

    .pagination a.active {
        color: #fff !important;
        background-color: #ff7236 !important;
        border-color: #ff7236 !important;
    }

.book-link {
    color: #282828;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
}

    .book-link:hover {
        color: #ff7236;
    }