body, html {
    font-family: Verdana, Arial, sans-serif;
    background-color: #FFFFFF;
    height: 100%;
    font-size: 15px;
}
body {
    display: flex;
    flex-direction: column;
}
#wrapper {
    margin: 57px 0 30px 0;
    flex: 1 0 auto;
}

.hide {
    display: none;
}
.center-child-block > div {
    margin: 20px auto 10px;
}

.loading > span {
    display: inline-block;
}
.book-preview {

}
h1 {
    font-size: 22px;
    font-weight: 900;
}
h2 {
    font-size: 18px;
}
a {
    transition: all 0.3s;
}
nav.navbar {
    background-color: #311b92;
    font-weight: bold;
}
nav.navbar > div {
    max-width: 1500px;
}
nav.navbar a {
    color: white !important;
}
nav.navbar .dropdown-menu a {
    color: black !important;
}
nav.navbar a.navbar-brand {
    flex: 1;
}
.navbar a.tg {
    color: white;
}
.navbar-dark .navbar-nav .nav-link:hover {
    color: white;
}
.navbar-light .navbar-toggler-icon {
    fill: white;
}
.navbar-dark .navbar-toggler {
    color: white;
    border: none;
}


.book-preview .book-poster-box {
    position: relative;
    height: 100%;
    width: 100%;
}
.book-preview .card-img-top {
    height: 250px;
    object-fit: fill;
}
.book-preview .card-text {
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.book-preview .card-title {
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    font-size: 14px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.book-preview a {
    font-size: 12px;
}

.card-body ul {
    padding-left: 10px;
}
.mg-0 {
    margin-left: 10px;
}
.mg-1 {
    margin-left: 10px;
}
.mg-2 {
    margin-left: 20px;
}
.mg-3 {
    margin-left: 30px;
}
.mg-4 {
    margin-left: 40px;
}
.mg-5 {
    margin-left: 50px;
}
.mg-6 {
    margin-left: 60px;
}
a.btn span {
    vertical-align: middle;
}



.main-container {
    max-width: 1500px;
}
.site-title-block {

}
.site-title {
    max-width: 700px;
    margin: 0 auto;
    padding-top: 30px;
    text-align: center;

}
.site-title h1 span.lib {
    font-size: 45px;
    font-weight: 900;
    background: linear-gradient(to right, #311b92, #525993);
    color: #311b92;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.site-title h1 span.sub {
    display: block;
    background: linear-gradient(to right, #311b92, #525993);
    font-size: 19px;
    color: white;
    line-height: 35px;
}

.category-title {

}
h3 {
    font-size: 16px;
}
.category-title h2, .category-title h1 {
    font-size: 16px;
    font-weight: 900;
    color: #343A40;
    text-align: center;
}
.index-page .category-title h2 {

}
.category-title .subtitle {
    text-align: center;
}
.borderless {
    border: none;
}
.borderfull {
    border: 1px solid #311b92;
}

.grey-back {
    box-shadow: 0 0 5px 2px gainsboro;
}

.chips {
    text-align: center;
}
.chips li {
    display: inline-block;
    padding: 0 15px;
    height: 40px;
    font-size: 14px;
    line-height: 40px;
    border-radius: 25px;
    background-color: #f1f1f1;
    margin: 8px;
    transition: all 0.3s;
}
.chips li:hover {
    background-color: #311b92;
}
.chips li a {
    color: black;
    text-decoration: none;
}

.sidebar {

}
.sidebar .sidebar-box {
    border: 1px solid rgba(0, 0, 0, 0.125);
    box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.125);

}
.sidebar .sidebar-box.tg {
    box-shadow: 0 0 5px 0 #32AEE1;
}
.sidebar .sidebar-box.insta {
    box-shadow: 0 0 5px 0 #E317C8;
}

.sidebar .sidebar-box.vk {
    box-shadow: 0 0 5px 0 #5181B8;
}

.tg-btn {
    background-color: #32AEE1;
    border-radius: 5px;
    color: #FFFFFF;
    display: block;
    line-height: 50px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
}
.tg-btn:hover {
    text-decoration: none;
    box-shadow: 0 0 10px 0 #32AEE1;
    color: white;
}

.insta-btn {
    border-radius: 5px;
    background: linear-gradient(to right, #FCDD31, #E317C8);
    color: #FFFFFF;
    display: block;
    line-height: 50px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
}
.insta-btn:hover {
    text-decoration: none;
    box-shadow: 0 0 10px 0 #E317C8;
    color: white;
}

.vk-btn {
    border-radius: 5px;
    background: #5181B8;
    color: #FFFFFF;
    display: block;
    line-height: 50px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
}
.vk-btn:hover {
    text-decoration: none;
    box-shadow: 0 0 10px 0 #5181B8;
    color: white;
}


.sidebar .sidebar-content {
    padding: 0 10px;
    max-width: 270px;
    margin: 0 auto;
    text-align: center;
}
.sidebar .sidebar-content a img {
    border-radius: 200px;
    width: 30px;
    vertical-align: middle;
}
.sidebar .sidebar-content img {
    width: 26px;
    vertical-align: text-top;
}
.sidebar .sidebar-content img.qr {
    height: 100%;
    width: 100%;
    max-height: 200px;
    max-width: 200px;
}
.sidebar .sidebar-content p {
    font-size: 14px;
}
.sidebar .sidebar-content .sidebar-title {
    font-size: 20px;
    font-weight: 900;
    margin: 15px 0;
}
.grey-line {
    border-top: 2px solid #311b92;
}
#rating {
    text-align: left;
    padding: 5px 0;
}
.btn-outline-dark {
    color: #343a40;
    border-color: #311b92;
}
.btn-dark {
    background-color: #311b92;
    border-color: #311b92;
    font-weight: bold;
}


.home-container {
    max-width: 1500px;
}
.home-container a {
    color: black;
    transition: all 0.3s;
}
.home-container a.nav-link.active {
    background-color: #343A40;
}
.home-container a:hover {
    color: #343A40;
}



.book-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #FDFDFD;
    padding: 7px;
    transition: all 0.6s;
    box-shadow: 0 0 5px 2px gainsboro;
}
.book-card:hover {
    box-shadow: 0 0 10px 5px #C6C5C5;
}
.book-card .genre-box {

}
.book-card .poster-box {
    position: relative;
}
.book-card .poster-box .rating-box {
    position: absolute;
    top: 25px;
    left: -8px;
    background: #311b92;
    padding: 8px;
    color: white;
    font-weight: 700;
}
.book-card .poster-box img {
    object-fit: fill;
    width: 100%;
}
.book-card .card-title {
    min-height: 40px;
}
.book-card .card-title a {
    color: black;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}
.book-card .authors-box {
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 13px;
    margin-bottom: 15px;
}
.book-card .genre-box {
    height: 65px;
    background: url("/img/2-block-2.png") no-repeat;
    background-size: 100% 100%;
    font-size: 12px;
    color: #FFFFFF;
    margin: 4px 0 8px -8px;
    padding: 0 8px;
    display: flex;
    align-items: center;
}
.book-card .genre-box p {
    margin: 0 0 4px 0;
    line-height: 15px;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.book-card .body-box {
    margin: 10px 6px;
    flex-grow: 1;
}
.book-card .card-title a {
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    line-height: 18px;
}

.book-card .authors-box {
    line-height: 16px;
}

.book-card .buttons-box {
    background-color: white;
    border-top: 1px solid #311b92;
    border-bottom: 1px solid #311b92;
    height: 40px;
    line-height: 40px;
    margin: -10px -8px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.book-card .buttons-box a,
.book-card .buttons-box button {
    text-decoration: none;
    color: black;
    font-size: 11px;
    font-weight: bold;
    display: block;
    flex: 1;
    transition: all 0.3s;
}
.book-card .buttons-box form{
    width: 100%;
    height: 100%;
}
.book-card .buttons-box button {
    width: 100%;
    height: 100%;
}
.book-card .buttons-box a:hover,
.book-card .buttons-box button:hover {
    color: white;
    background-color: #343A40;
    border-color: #343A40;
}
.book-card .buttons-box a:not(:first-child) {
    border-left: 1px solid #311b92;
}


footer {
    background-color: #311b92;
    flex-shrink: 0;
}
footer .footer-content {
    display: flex;
    justify-content: center;
    max-width: 1500px;
    margin: 0 auto;
}
footer .footer-content .start {
    flex-grow: 1;
}
footer .footer-content .center {
    flex-grow: 1;
}
footer .footer-content .end {
    padding: 0 10px;
}
footer .footer-content .end span:first-child {
    color: indigo;
    font-size: 18px;
    font-weight: bold;
}
footer .footer-content .end span {
    font-size: 12px;
    color: white;
}
footer a {
    color: rgba(255, 255, 255, 0.5);
}
footer a:hover {
    color: white;
}


.card h1 {
    font-size: 1.2rem;
}

h1.book-title {
    font-size: 1.4rem;
    text-align: center;
}
h2.book-title {
    font-size: 1.3rem;
    border-top: 2px solid #311b92;
    text-align: center;
}

.book-info-poster-img {
    max-width: 300px;
}

.btn i.fas, .btn i.fa {
    vertical-align: middle;
}

.book-info .btn {
    max-width: 300px;
}
.book-info .btn.contents {
    text-align: left;
}
.book-info-body ul {
    margin: 0;
}

#list-pagination li {
    padding: 0 10px;
}
#list-pagination li.active a {
    color: black;
}


@media (min-width: 576px) {

    .category-title h1,
    .category-title h2 {
        font-size: 20px;
        text-align: left;
    }
    .category-title h2 {
        font-size: 17px;
    }

    .index-page .category-title h2 {
        text-align: center;
    }

    h3 {
        font-size: 17px;
    }

    .category-title .subtitle {
        text-align: left;
    }

    .book-card {
        width: 100%;
    }
    .book-card .poster-box img {
        height: 100%;
    }

    .book-card .genre-box {
        width: 210px;
        background-size: 210px 100%;
    }

    .book-card .card-title a {
        font-size: 15px;
        font-weight: bold;
    }

    .book-card .buttons-box a {
        font-size: 12px;
    }

    .book-preview {
        width: 212px;
    }
    .book-preview a {
        font-size: 14px;
    }

    .book-preview .card-title {
        font-size: 16px;
    }

    .book-info .btn {
        max-width: initial;
    }

    .book-preview .card-img-top {
        height: 320px;
        object-fit: fill;
    }

    h1.book-title {
        font-size: 1.7rem;
        text-align: left;
    }
    h2.book-title {
        font-size: 1.4rem;
        border-top: 2px solid #311b92;
        text-align: left;
    }

}
@media (min-width: 992px) {
    nav.navbar a.navbar-brand {
        flex: 0;
    }
}


@media (min-width: 1200px) {
    .site-title-block {
        background-image: url("/img/1-block-1.jpg"), url("/img/1-block-2.jpg");
        background-position: left center, right center;
        background-repeat: no-repeat, no-repeat;
        height: 250px;
    }
}

@media (min-width: 1500px) {
    .row-cols-xxl-5>* {
        flex: 0 0 20%;
        max-width: 20%;
    }
}
