
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/IRANSansWeb.eot');
    src: url('../fonts/IRANSansWeb.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
    url('../fonts/IRANSansWeb.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
    url('../fonts/IRANSansWeb.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../fonts/IRANSansWeb.ttf') format('truetype');
}

@font-face {
    font-family: Vazir;
    font-weight: 300;
    src: url('../fonts/Vazir-Light.ttf');
}

@font-face {
    font-family: Vazir;
    font-weight: 400;
    src: url('../fonts/Vazir-Thin.ttf');
}

@font-face {
    font-family: Vazir;
    font-weight: 500;
    src: url('../fonts/Vazir-Regular.ttf');
}

@font-face {
    font-family: Vazir;
    font-weight: 600;
    src: url('../fonts/Vazir-Medium.ttf');
}

@font-face {
    font-family: Vazir;
    font-weight: 700;
    src: url('../fonts/Vazir-Bold.ttf');
}

@font-face {
    font-family: Vazir;
    font-weight: 800;
    src: url('../fonts/Vazir-Black.ttf');
}

.treejs-label {
    font-family: Vazir !important;
    font-weight: 700;
}

.jstree-open > .jstree-anchor, .jstree-closed > .jstree-anchor {
    font-weight: bold;
}

.titleNewBook {
    font-family: 'Atkinson Hyperlegible', sans-serif !important;
    font-weight: 700;
    color: white;
}

.textNewBook {
    margin-bottom: 80px;
    color: #CCC;
    position: relative;
}


.request-section {
    background-image: url(../images/back.png);
    background-position: center;
    background-size: cover;
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 20px;
    align-items: center;
    box-shadow: -2px 14px 33px -24px rgba(0,0,0,0.5);
    -webkit-box-shadow: -2px 14px 33px -24px rgba(0,0,0,0.5);
    -moz-box-shadow: -2px 14px 33px -24px rgba(0,0,0,0.5);
}

.imgNewBook {
    width: 200px;
    -moz-transition: all .3s ease-in;
    -o-transition: all .3s ease-in;
    -webkit-transition: all .3s ease-in;
    transition: all .3s ease-in;
    border-radius: 0.5rem;
}

#mobile-filter {
    background-color: #e8eaec;
    padding: 10px;
    border-radius: 5px;
}

.download-section {
    position: absolute;
    bottom: 0;
    display: flex;
    align-items: center;
}

.card-text {
    text-align: left;
    font-family: 'Atkinson Hyperlegible', sans-serif !important;
}

.card-img-top {
    border-radius: 0.5rem;
    -moz-transition: all .3s ease-in;
    -o-transition: all .3s ease-in;
    -webkit-transition: all .3s ease-in;
    transition: all .3s ease-in;
}

    .card-img-top:hover {
        filter: brightness(0.8);
    }

.card-img-caption {
    border-top-left-radius: calc(.25rem - 1px);
    border-top-right-radius: calc(.25rem - 1px);
}

    .card-img-caption .card-img-top {
        z-index: 0;
    }

    .card-img-caption .card-tex {
        text-align: center;
        width: 100%;
        margin: 33% 0;
        position: absolute;
        z-index: 1;
    }

.download-link {
    position: absolute;
    bottom: 0;
    cursor: pointer;
    width: 100%;
    border-radius: 0 0 0.5rem 0.5rem;
    text-align: center;
    background-color: #b6ffc3;
    -moz-transition: all .3s ease-in;
    -o-transition: all .3s ease-in;
    -webkit-transition: all .3s ease-in;
    transform: translate(0px,30px);
    transition: all .3s ease-in;
    color: #53845c;
}

.download-count {
    display: flex;
    color: #CCCCCC;
    align-self: center;
    margin-right: 10px;
    position: absolute;
    bottom: 0;
}

.card:hover .download-link {
    transform: translate(0px,0px);
    padding-top: 10px;
}

.card:hover .card-img-top {
    filter: brightness(0.8);
}

.card-tex {
    color: white;
}

.card-body {
    margin-top: 0.5rem;
}

.ribbon {
    font-family: iranyekan !important;
    width: 160px;
    height: 32px;
    font-size: 12px;
    z-index: 10;
    text-align: center;
    color: #fff;
    font-weight: bold;
    box-shadow: 0px 2px 3px rgba(136, 136, 136, 0.25);
    background: #be4a3b;
    transform: rotate(45deg);
    position: absolute;
    right: -42px;
    top: 20px;
    padding-top: 7px;
}

.main-title {
    color: #22a2f5;
    font-family: IRANsans !important;
    font-weight: 800;
    margin-bottom: 20px;
}

.ad-img {
    margin-bottom: 20px;
    height: 300px;
    border-radius: 10px;
    box-shadow: 0px 25px 33px -24px rgba(0,0,0,1);
    -webkit-box-shadow: 0px 25px 33px -24px rgba(0,0,0,1);
    -moz-box-shadow: 0px 25px 33px -24px rgba(0,0,0,1);
}

.card {
    border-radius: 0.5rem;
    margin: 10px;
    -moz-transition: all .3s ease-in;
    -o-transition: all .3s ease-in;
    -webkit-transition: all .3s ease-in;
    transition: all .3s ease-in;
    border-style: solid;
    overflow: hidden;
    border-width: 2px;
    border-style: none none solid none;
    border-color: #b6ffc3;
    box-shadow: 0px 14px 33px -24px rgba(0,0,0,1);
    -webkit-box-shadow: 0px 14px 33px -24px rgba(0,0,0,1);
    -moz-box-shadow: 0px 14px 33px -24px rgba(0,0,0,1);
}

    .card:hover {
        box-shadow: 0px 25px 33px -24px rgba(0,0,0,1);
        -webkit-box-shadow: 0px 25px 33px -24px rgba(0,0,0,1);
        -moz-box-shadow: 0px 25px 33px -24px rgba(0,0,0,1);
        transform: scale(1.05);
    }

.searchbar {
    margin-bottom: 5px;
}

.imgNewBook:hover {
    box-shadow: -2px 14px 33px -24px rgb(255 255 255 / 40%);
    -webkit-box-shadow: -2px 14px 33px -24px rgb(255 255 255 / 40%);
    -moz-box-shadow: -2px 14px 33px -24px rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

#sidebar {
    width: 20%;
    padding: 10px;
    margin: 0;
    float: left;
    background-color: #e8eaec;
    border-radius: 5px;
    height: 100%;
}

#products {
    width: 80%;
    padding: 10px;
    margin: 0;
    float: right
}

ul {
    list-style: none;
    padding: 5px
}

li a {
    color: darkgray;
    text-decoration: none
}

    li a:hover {
        text-decoration: none;
        color: #22a2f5
    }

.fa-circle {
    font-size: 20px
}

#red {
    color: #e94545d7
}

#teal {
    color: rgb(69, 129, 129)
}

#blue {
    color: #0000ff
}

.card {
    width: 250px;
    display: inline-block;
    height: 300px;
    padding-bottom: 19.4rem;
}

.card-img-top {
    width: 250px;
    height: 210px
}

.card-body p {
    margin: 10px;
}

.card-body {
    padding: 0;
    padding-left: 2px
}

.filter {
    display: none;
    padding: 0;
    margin: 0
}

@media(min-width:991px) {
    .navbar-nav {
        margin-left: 35%
    }

    .nav-item {
        padding-left: 20px
    }

    .card {
        width: 210px;
        display: inline-block;
        height: 300px
    }

    .card-img-top {
        width: 188px;
        height: 210px
    }

    #mobile-filter {
        display: none
    }
}

@media(min-width:768px) and (max-width:991px) {
    .navbar-nav {
        margin-left: 20%
    }

    .nav-item {
        padding-left: 10px
    }

    .card {
        width: 230px;
        display: inline-block;
        height: 300px;
        margin-bottom: 10px
    }

    .card-img-top {
        width: 230px;
        height: 210px
    }

    #mobile-filter {
        display: none
    }
}

@media(min-width:568px) and (max-width:767px) {
    .navbar-nav {
        margin-left: 20%
    }

    .nav-item {
        padding-left: 10px
    }

    .card {
        width: 205px;
        display: inline-block;
        height: 300px;
        margin-bottom: 10px
    }

    .card-img-top {
        width: 203px;
        height: 210px
    }

    .fa-circle {
        font-size: 15px
    }

    #mobile-filter {
        display: none
    }
}

@media(max-width:567px) {
    .imgNewBook {
        margin-bottom: 30px;
    }

    .navbar-nav {
        margin-left: 0%
    }

    .nav-item {
        padding-left: 10px
    }

    #sidebar {
        width: 100%;
        padding: 10px;
        margin: 0;
        float: left
    }

    #products {
        width: 100%;
        padding: 5px;
        margin: 0;
        float: right
    }

   .card {
        width: 230px;
        display: inline-block;
        height: 300px;
        margin-bottom: 10px;
        margin-top: 10px
    }

    .card-img-top {
        width: 230px;
        height: 210px
    }

    .list-group-item {
        padding: 3px
    }

    .offset-1 {
        margin-left: 8%
    }

    .filter {
        display: block;
        margin-left: 70%;
        margin-top: 2%
    }

    #sidebar {
        display: none
    }

    #mobile-filter {
        padding: 10px
    }
}
