body {
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

/* The Modal (background) */
.book-modal {
    display: none; /* Hidden by default */
    direction: ltr;
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: left;
    z-index: 200;
}

    .book-modal a {
        text-decoration: none;
    }

*, ::after, ::before {
    box-sizing: border-box;
}

/* Modal Content */
.book-modal .book-container {
    width: 100%;
    height: 100%;
    max-width: 940px;
    max-height: 480px;
    background-color: #fefefe;
    margin: auto;
    padding: 40px;
    position: relative;
    border: 3px solid #d3d3d3;
    max-width: 65vw;
    max-height: 65vh;
    padding-top: 50px;
}

@media (max-width: 1199) {
    .book-modal {
        padding-top: 0px !important;
        width: 100vw !important;
        height: 100vh !important;
    }

        .book-modal .book-container {
            width: 100%;
            height: 100%;
            max-width: 940px;
            max-height: 480px;
            background-color: #fefefe;
            margin: auto;
            padding: 40px;
            position: relative;
            border: 3px solid #d3d3d3;
            max-height: 100vh !important;
            max-width: 100vw !important;
        }

    .book-modal-cover {
        position: relative !important;
        width: 100vw !important;
        margin: 0 15px !important;
        flex: 0 0 41.666667% !important;
        max-width: 80vw !important;
        max-height: 100% !important;
    }

    .book-modal .book-cover {
        width: 100vw !important;
        text-align: center !important;
    }

        .book-modal .book-cover img {
            height: 100% !important;
            width: 70% !important;
        }

    .book-modal .book-counter-title {
        background: #eb5300;
        color: white;
        padding: 5px;
        border-radius: 5px;
        height: 40px !important;
    }

    .book-modal .book-cover img {
        height: 100%;
        width: 70% !important;
    }

    .book-modal .book-cover {
        width: 100vw;
        max-width: 100vw !important;
        text-align: center;
    }

    .book-modal .book-counters {
        width: 100vw !important;
    }
}

/* The Close Button */
.book-modal .close-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 0;
    color: white;
    text-shadow: 0 1px 0 #fff;
    opacity: .45;
    padding: 5px 11px;
    background-color: #3C4142;
}


.close-btn:hover,
.close-btn:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.book-modal .book-body {
    width: 100%;
    padding: 0 10px;
    margin-top: 60px;
}

.book-modal .book-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-modal .book-title {
    /*color: #eb5300;*/
    color: #87878a;
    font-size: 24px;
    font-weight: bold;
    /* text-align: justify; */
    direction: rtl;
}

.book-modal .book-author {
    color: #888c90;
    font-size: 24px;
    padding-top: 10px;
}

.book-modal .book-counters {
    margin: 70px 0;
}

.book-modal .book-header {
    text-align: right;
}

.book-modal .book-counter {
    display: inline-block;
    width: 150px;
    text-align: center;
    margin: 5px;
}

.book-modal .book-counter-title {
    background: #eb5300;
    color: white;
    padding: 5px;
    border-radius: 5px;
    /* font-weight: bold; */
}

.book-modal .book-count {
    padding: 5px;
    background-color: #e7e8ea;
    color: #ea5a0b;
    font-weight: bold;
}

.book-modal .book-cover {
    width: 100%;
    height: 100%;
    text-align: center;
    margin: 0px 10px;
}

    .book-modal .book-cover img {
        height: 100%;
        width: auto;
        max-width: 100%;
    }

.book-modal .book-social-media {
    width: 100%;
    display: flex;
    border-top: 1px solid #888c906b;
    padding: 10px;
    position: absolute;
    bottom: 0px;
}

.book-modal .book-social-links {
    width: 100%;
    text-align: center;
}

.book-modal .book-social-links-item {
    display: block;
    color: #888c90;
    font-size: 16px;
}

.book-modal .book-counter-title {
    display: block;
}

    .book-modal .book-counter-title:hover {
        text-decoration: none;
        opacity: .8;
        color: white;
    }

.book-modal .book-social-links-item:hover {
    text-decoration: none;
    color: #888c90;
    font-size: 18px;
}

.book-modal .book-social-media i {
    /*color: #eb5300;*/
    color: #87878a;
    font-size: 20px;
    margin-left: 2px;
    vertical-align: middle;
}

.book-modal .book-social-links-item:hover {
    font-weight: 500;
}

@media (max-width: 992px) {
    .book-modal .book-container {
        max-height: 700px;
        max-width: 600px;
    }

    .book-modal .book-cover {
        width: 100%;
        max-width: 300px;
        margin: auto;
    }

    .book-modal .book-title {
        font-size: 20px;
    }

    .book-modal .book-author {
        font-size: 18px;
    }

    .book-modal .book-counters {
        margin: 30px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .book-modal .book-social-links {
        width: 50%;
    }

    .book-modal .book-social-media {
        flex-wrap: wrap;
    }

    .book-modal .book-container {
        max-height: 600px;
        max-width: 470px;
    }

    .book-modal .book-cover {
        width: 100%;
        max-width: 180px;
    }

    .book-modal .book-title {
        font-size: 18px;
    }

    .book-modal .book-author {
        font-size: 16px;
    }

    .book-modal .book-counters {
        margin: 20px;
    }

    .book-modal .book-counter {
        width: 115px;
        font-size: 16px;
    }
}

.modal-row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.book-modal-content {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    max-height: 100%;
}

.book-modal-content {
    margin-top: 1rem !important;
}

.book-modal-cover {
    position: relative;
    width: 100%;
    /*  padding-right: 15px;
    padding-left: 15px;*/
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
    max-height: 100%;
}

.h-100 {
    height: 100% !important;
}


@media (min-width: 992px) {

    .book-modal-content {
        margin-top: 0 !important;
        -ms-flex-order: 1;
        order: 1;
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }

    .book-modal-cover {
        -ms-flex-order: 2;
        order: 2;
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }
}

.book-overview-container {
    position: relative;
    margin: 0 auto;
    width: 100%;
    height: 0px;
    bottom: 60px;
    text-align: center;
}

.book-overview {
    height: 40px;
    position: absolute;
    background-color: #f55506;
    opacity: 0;
    /*color: #383f47;*/
    color: #FFFFFF;
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    width: 80%;
    left: 10%;
}

.BookCover:hover .book-overview {
    opacity: 1;
    transition: 0.4s;
}

.fa-brands, .fab {
    font-family: "Font Awesome 6 Brands" !important;
}

.fa-classic, .fa-regular, .fa-solid, .far, .fas {
    font-family: "Font Awesome 6 Free" !important;
}

i.fa-icons {
    padding: 5px;
}
