/*-------------------------------color used-----------------------------------*/
.color {
    color: #FCFCF5;
    color: #FBFBDC;
    color: #880000;
    color: #B60202;
    color: #919191;
    color: #FFF;
    color: #000;
    color: #000777;
    color: #34495e;
}

/*------------------------------main setting----------------------------------*/
*,
*:after,
*:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

::before,
::after {
    content: "";
}

@font-face {
    font-family: DroidNaskh;
    src: url(../fonts/DroidNaskh-Regular.ttf);
    font-weight: normal;
}

@font-face {
    font-family: DroidNaskh;
    src: url(../fonts/DroidNaskh-Bold.ttf);
    font-weight: bold;
}

@font-face {
    font-family: DroidKufi;
    src: url(../fonts/DroidKufi-Regular.ttf);
    font-weight: normal;
}

@font-face {
    font-family: DroidKufi;
    src: url(../fonts/DroidKufi-Bold.ttf);
    font-weight: bold;
}

html,
body {
    height: 100%;
    -webkit-font-smoothing: subpixel-antialiased;
}

html {
    font-size: 100%;
}

body {
    background: #FCFCF5;
    color: #34495e;
    font-family: 'DroidNaskh', 'DroidKufi', 'Lato', 'Arial', sans-serif;
    font-weight: 400;
    line-height: 1.2;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: #2c3e50;
    text-decoration: none;
}

.align {
    clear: both;
    margin: 90px auto 20px;
    width: 100%;
    max-width: 1300px;
    text-align: center;
}

.align > li {
    width: 280px;
    min-height: 300px;
    display: inline-block;
    margin: 30px 20px 30px 20px;
    padding: 0 0 0 60px;
    vertical-align: top;
}

/*-----------------------------side-nav start---------------------------------*/
.side-nav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 20;
    top: 6em;
    right: 0;
    background-image: linear-gradient(to right, rgba(251, 251, 220, 0.9), rgba(136,0,0,0.9) 3%);
    overflow-x: hidden;
    transition: 0.5s;
    text-align: right;
}

.side-nav a {
    padding: 0.6em 1.5em 0.6em 0.5em;
    margin-right: 30px;
    margin-left: 50px;
    text-decoration: none;
    font-size: 2em;
    color: #FBFBDC;
    display: block;
}

.side-nav a:hover {
    background-color: #FBFBDC;
    color: #880000;
    border-radius: 3px;
}

.r-side-nav-hr {
    border: 0.12em solid rgba(251, 251, 220, 0.7);
}

/* Media Queries for side nav */
@media screen and (max-width: 450px) {
    .side-nav {
        top: 4em;
    }
    .side-nav a {
    font-size: 1.5em;
}
}

/*-----------------------------top-nav start---------------------------------*/
.top-nav {
    height: 0;
    width: 100%;
    position: fixed;
    z-index: 10;
    top: 3em;
    right: 0;
    background-image: linear-gradient(#880000, rgba(251, 251, 220, 0.9), #880000 4%, rgba(109, 0, 0, 0.9));
    overflow-x: hidden;
    transition: 0.2s;
    text-align: center;
    font-size: 2em;
    color: #FBFBDC;
}

.top-nav-padding {
    padding-top: 27px;
}
.top-nav a {
    background-color: transparent;
    color: #FBFBDC;
    border: none;
    margin: 50px 0;
    padding: 0 30px;
}

.top-nav a:hover {
    background-color: #FBFBDC;
    color: #880000;
    border-radius: 3px;
}

.mob-top-nav {
    height: 0;
    width: 100%;
    position: fixed;
    z-index: 9;
    top: 0;
    right: 100em;
    background-image: linear-gradient(#880000, rgba(251, 251, 220, 0.9), #880000 5%, rgba(109, 0, 0, 0.9));
    overflow-x: hidden;
    transition: 0.3s;
    text-align: center;
    font-size: 2em;
    color: #FBFBDC;
}

/* Media Queries for top nav (1150px) */
@media screen and (max-width: 1150px) {
    .top-nav {
        top: 4em;
        font-size: 1.5em;
    }
}

/* Media Queries for top nav */
@media screen and (max-width: 450px) {
    .top-nav {
        top: 0;
        right: 100em;
    }

    .mob-top-nav {
        top: 4em;
        right: 0;
        font-size: 1.5em;
    }

    .mob-top-nav a {
        background-color: transparent;
        color: #FBFBDC;
        border: none;
        margin: 50px 0;
        padding: 0 30px;
        display: block;
    }

    .mob-top-nav a:hover {
        background-color: #FBFBDC;
        color: #880000;
        border-radius: 3px;
    }
}

/*-----------------------------dropdown menu---------------------------------*/
.dropdown-nav {
    display: inline-block;
}

.dropdown-nav-content {
    display: none;
    position: fixed;
    top: 5.4em;
    right: 0;
    background-image: linear-gradient(#880000, rgba(251, 251, 220, 0.9), #880000 0.25%, rgba(109, 0, 0, 0.9));
    width: 100%;
    height: 100%;
    z-index: 11;
    overflow: auto;
}

.dropdown-nav:hover .dropdown-nav-content {
    display: block;
}

.dropflex {
    display: flex;
    flex-direction: row;
    align-content: center;
    padding: 2em 10em;
}

.flex-0 {
    flex-grow: 4;
    margin: 0 1em;
}

.flex-0 h3 {
    font-size: 30px;
    background-color: #FBFBDC;
    color: #880000;
    padding: 0.5em 0;
    border-radius: 4px;
}

.flex-0 a {
    color: #FBFBDC;
    font-size: 24px;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    margin: 1.5em 0;
}
.flex-0 a:hover {
    color: #880000;
    background-color: #FBFBDC;
}
/*-----------------------------ca content---------------------------------*/
.ca-content {
    width: 100%;
    height: 100%;
    background-color: #FCFCF5;
    padding: 0 11em;
    margin: 8em auto 0 auto;
}

.ca-flex {
    display: flex;
    flex-direction: row;
    align-content: center;
    padding: 2em 10em;
}
.flex-ca {
    flex-grow: 4;
    margin: 0 2em;
    text-align: center;
}
.flex-ca h3 {
    font-size: 30px;
    background-color: #880000;
    color: #FBFBDC;
    padding: 0.5em 0;
    border-radius: 4px;
}
.flex-ca a {
    color: #880000;
    display: block;
    font-size: 24px;
    margin: 1.5em 0;
    padding: 12px 16px;
    text-decoration: none;
    border-radius: 4px;
}
.flex-ca a:hover {
    color: #FBFBDC;
    background-color: #880000;
}

/* Media Queries for top nav */
@media screen and (max-width: 450px) {
.ca-content {
    padding: 0;
    margin: 10em auto 0 auto;
}
.ca-content a {

}
.ca-flex {
    display: block;
    padding: 0;
}
.flex-ca {
    margin: 0;
}
.flex-ca h3 {
    font-size: 25px;
    margin: 0 1em;
}
.flex-ca a {
    color: #880000;
    display: block;
    font-size: 24px;
    margin: 1.5em 0;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 21px;
    margin: 0.7em 0;
}
}
/*-----------------------------nav start---------------------------------*/
.header {
    margin-bottom: 6.5em;
}

#lbm {
    width: 100%;
    height: 6em;
    background-color: #880000;
    padding: 0 10%;
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    position: fixed;
    overflow-x: hidden;
    top: 0;
    right: 0;
    z-index: 10;
}

#logo {
    height: 85%;
    flex-grow: 2;
}

.btn-l {
    background-image: url(../images/crn-logo-yel.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left;
    background-color: transparent;
    border: none;
    width: 100%;
    height: 100%;
    float: left;
}

.btn-l:hover {
    background-image: url(../images/crn-logo-red.svg);
}

#basmala {
    height: 85%;
    flex-grow: 4;
}

.btn-b {
    background-image: url(../images/basmala-yel.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-color: transparent;
    border: none;
    width: 100%;
    height: 100%;
}

.btn-b:hover {
    background-image: url(../images/basmala-red.svg);
}


#menu {
    height: 85%;
    flex-grow: 2;
}

.btn-m {
    background-image: url(../images/logo-menu-right-yel.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right;
    background-color: transparent;
    border: none;
    width: 100%;
    height: 100%;
    float: right;
}

.btn-m:hover {
    background-image: url(../images/logo-menu-right-red.svg);
}

/* Media Queries for nav (640px) */
@media screen and (max-width: 640px) {
    .header {
    margin-bottom: 8em;
    }
    #lbm {
        height: 8.01em;
        padding: 0;
        background-image: none;
        background-color: transparent;
        border-bottom: 2px solid #880000;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    #logo,
    #basmala,
    #menu {
        height: 4em;
    }

    #menu {
        width: 40%;
        background-position: center;
        background-color: #880000;
        order: 1;
    }

    #basmala {
        margin: 0 0.1px;
        order: 8;
        background-color: #880000;
        border-top: 2px solid #FCFCDC;
    }
    
    #logo {
        width: 60%;
        padding-left: 5px;
        padding-bottom: 5px;
        background-color: #880000;
        background-position: center;
        order: 2;
    }
}

/*-----------------------------ticker-line---------------------------------*/
@keyframes ticker {
    0% {
        transform: translate3d(0, 0, -100%);
    }

    100% {
        transform: translate3d(100%, 0, 0);
    }
}

#ticker-news-line {
    width: 80%;
    height: 80px;
    margin: 0 auto;
    color: #880000;
    font-size: 19px;
}

.ticker-content {
    width: 100%;
    overflow: hidden;
    padding-top: 25px;
}

.ticker-wrap {
    width: 100%;
    padding-left: 100%;
}

.ticker-move {
    display: inline-block;
    white-space: nowrap;
    padding-right: 100%;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-name: ticker;
    animation-duration: 160s;
}

.ticker-move:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    padding: 0 50px;
}

/* Media Queries for ticker (640px) */
@media only screen and (max-width: 640px) {
    #ticker-news-line {
        width: 80%;
        height: 60px;
        font-size: 16px;
    }

    .ticker-content {
        width: 100%;
        overflow: hidden;
        padding-top: 20px;
    }

    .ticker-move {
        animation-duration: 200s;
    }

}

/*-----------------------------slide-show start---------------------------------*/
#article-slide {
    position: relative;
    width: 100%;
    height: 22em;
    padding-left: 50px;
    padding-right: 50px;
}

.right-margin {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 100%;
    border-left: 1px solid #880000;
}

.left-margin {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 100%;
    border-right: 1px solid #880000;
}

/* slide 1 */

.slide-1 {
    background-image: url(../images/mountain-3.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding-bottom: 10px;
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    border: 1px solid #880000;
}

.slide-1-img2 {
    min-width: 220px;
    height: 100%;
    background-image: url("../images/IM-N/N_33.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin: 10px 5px 0 0;
    border: 1px solid #880000;
    border-radius: 5px;
    flex-grow: 2;
}

.slide-1-txt {
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    margin: 0 0 0 0;
    padding-top: 30px;
    font-size: 19px;
    flex-grow: 4.5;
}

.opacity-image {
    padding-top: 10px;
    width: 100%;
    height: 90%;
    background-image: url(../images/opacity.png);
}

.slide-1-txt h2,
h4,
b {
    color: #880000;
    text-shadow: 0px 2px 2px #FBFBDC;
}

.slide-1-txt b {
    font-size: 23px;
}

.slide-1-txt strong {
    color: #000070;
    text-shadow: 0px 2px 2px #FBFBDC;
}

.slide-1-txt li:first-child {
    margin-top: 10px;
    margin-bottom: 5px;
}

.slide-1-txt li:last-child {
    margin-top: 15px;
}

/* slide 2 */
.slide-2 {
    background-image: url(../images/library-3.jpg);
}

.slide-2 .slide-1-txt {
    height: 100%;
    position: relative;
    margin: 0 0 0 0;
    padding-top: 30px;
    font-size: 19px;
    flex-grow: 3.5;
}

.slide-2 .slide-1-txt li:first-child {
    margin-top: 20px;
}

.slide-2 .slide-1-txt li {
    margin-top: 0;
    margin-bottom: 15px;
}

/* slide 3 */
.slide-3 {
    background-image: url(../images/istanbul-1.jpg);
}

.slide-3 .slide-1-txt {
    height: 100%;
    position: relative;
    margin: 0 0 0 0;
    padding-top: 30px;
    font-size: 19px;
    flex-grow: 2;
}

.slide-3 .slide-1-txt li:first-child {
    margin-top: 20px;
}

.slide-3 .slide-1-txt li {
    margin-top: 0;
    margin-bottom: 15px;
}

/* slide 4 */
.slide-4 {
    background-image: url(../images/prison-2.jpg);
}

.slide-4 .slide-1-txt {
    height: 100%;
    position: relative;
    margin: 0 0 0 0;
    padding-top: 30px;
    font-size: 19px;
    flex-grow: 2;
}

.slide-4 .slide-1-txt li:first-child {
    margin-top: 20px;
}

.slide-4 .slide-1-txt li {
    margin-top: 0;
    margin-bottom: 15px;
}

/* slide 5 */
.slide-5 {
    background-image: url(../images/garden.jpg);
}

.slide-5 .slide-1-txt {
    height: 100%;
    position: relative;
    margin: 0 0 0 0;
    padding-top: 30px;
    font-size: 19px;
    flex-grow: 2;
}

.slide-5 .slide-1-txt li:first-child {
    margin-top: 20px;
}

.slide-5 .slide-1-txt li {
    margin-top: 0;
    margin-bottom: 15px;
}

/* slide 6 */
.slide-6 {
    background-image: url(../images/book-bg.jpg);
    background-position: bottom;
}

.slide-6 .slide-1-txt {
    height: 100%;
    position: relative;
    margin: 0 0 0 0;
    padding-top: 30px;
    font-size: 19px;
    flex-grow: 2;
}

.slide-6 .slide-1-txt li:first-child {
    margin-top: 20px;
}

.slide-6 .slide-1-txt li {
    margin-top: 0;
    margin-bottom: 15px;
}

/* slide 7 */
.slide-7 {
    background-image: url(../images/rn-ar-6.jpg);
}

.slide-7 .slide-1-txt {
    height: 100%;
    position: relative;
    margin: 0 0 0 0;
    padding-top: 30px;
    font-size: 19px;
    flex-grow: 2;
}

.slide-7 .slide-1-txt li:first-child {
    margin-top: 20px;
}

.slide-7 .slide-1-txt li {
    margin-top: 0;
    margin-bottom: 15px;
}

/* slide 8 */
.slide-8 {
    background-image: url(../images/mountain-4.jpg);
    background-size: cover;
}

.slide-8 .slide-1-img2 {
    min-width: 220px;
    background-image: url(../images/M-Z/Z-02.jpg);
    flex-grow: 2;
}

.slide-8 .slide-1-txt {
    height: 100%;
    position: relative;
    margin: 0 0 0 0;
    padding-top: 30px;
    font-size: 19px;
    flex-grow: 4.5;
}

.slide-8 .slide-1-txt li:first-child {
    margin-top: 20px;
}

.slide-8 .slide-1-txt li {
    margin-top: 0;
    margin-bottom: 15px;
}

.slide-8 h4 {
    line-height: 33px;
}

/* slide 9 */
.slide-9 {
    background-image: url(../images/BeirutMosque.jpg);
}

.slide-9 .slide-1-txt {
    height: 100%;
    position: relative;
    margin: 0 0 0 0;
    padding-top: 30px;
    font-size: 19px;
    flex-grow: 2;
}

.slide-9 .slide-1-txt li:first-child {
    margin-top: 20px;
}

.slide-9 .slide-1-txt li {
    margin-top: 0;
    margin-bottom: 20px;
}

/* slide 10 */
.slide-10 {
    background-image: url(../images/baalbak.jpg);
}

.slide-10 .slide-1-txt {
    height: 100%;
    position: relative;
    margin: 0 0 0 0;
    padding-top: 30px;
    font-size: 19px;
    flex-grow: 2;
}

.slide-10 .slide-1-txt li:first-child {
    margin-top: 20px;
}

.slide-10 .slide-1-txt li {
    margin-top: 0;
    margin-bottom: 20px;
}

/* Media Queries for slide-show (640px) */
@media screen and (max-width: 640px) {

    #section-slide {
        position: relative;
        width: 100%;
        height: 22em;
        padding-left: 0;
        padding-right: 0;
    }

    #article-slide {
        padding-left: 0;
        padding-right: 0;
    }

    .right-margin {
        display: none;
    }

    .left-margin {
        display: none;
    }

    /* slide-1*/
    .slide-1-img2 {
        display: none;
    }

    .slide-1-txt {
        padding-top: 15px;
        margin: 10px 0 0px 0;
        flex-grow: 1;
        line-height: 33px;
    }

    .opacity-image {
        padding-top: 15px;
        width: 100%;
        height: 95%;
        background-image: url(../images/opacity.png);
    }

    .slide-1-txt h2,
    h4,
    b {
        color: #880000;
        text-shadow: 0px 2px 2px #FBFBDC;
    }

    .slide-1-txt h2 {
        font-size: 18px;
    }

    .slide-1-txt h4 {
        margin-top: 20px;
        margin-bottom: 25px;
        font-size: 15px;
    }

    .slide-1-txt li {
        font-size: 14px;
    }

    .slide-1-txt b {
        font-size: 16px;
    }

    .slide-1-txt strong {
        color: black;
        text-shadow: 0px 2px 2px #FBFBDC;
    }

    .slide-1-txt br {
        display: none;
    }

    .slide-1-txt li:first-child {
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .slide-1-txt li:last-child {
        margin-top: 15px;
    }

    /* slide-2*/
    .slide-2 .slide-1-txt {
        padding-top: 15px;
        margin: 10px 0 0px 0;
        line-height: 22px;
    }

    /* slide-3*/
    .slide-3 .slide-1-txt {
        padding-top: 15px;
        margin: 10px 0 0px 0;
        line-height: 23px;
    }

    .slide-3 h4 {
        margin-top: 12px;
        margin-bottom: -5px;
    }

    .slide-3 li:first-child {
        margin-top: -10px;
        margin-bottom: 15px;
    }

    .slide-3 li:last-child {
        margin-top: -5px;
    }

    /* slide-4*/
    .slide-4 .slide-1-txt {
        padding-top: 15px;
        margin: 10px 0 0px 0;
        line-height: 23px;
    }

    .slide-4 h4 {
        margin-top: 15px;
        margin-bottom: -5px;
    }

    .slide-4 li:first-child {
        margin-top: -10px;
        margin-bottom: 15px;
    }

    .slide-4 li:last-child {
        margin-top: -5px;
    }

    /* slide-5*/
    .slide-5 .slide-1-txt {
        padding-top: 15px;
        margin: 10px 0 0px 0;
        line-height: 22px;
    }

    .slide-5 h4 {
        margin-top: 15px;
        margin-bottom: -5px;
    }

    .slide-5 li:first-child {
        margin-top: -10px;
        margin-bottom: 15px;
    }

    .slide-5 li:last-child {
        margin-top: -5px;
    }

    /* slide-6*/
    .slide-6 .slide-1-txt {
        padding-top: 15px;
        margin: 10px 0 0px 0;
        line-height: 22px;
    }

    /* slide-7*/
    .slide-7 .slide-1-txt {
        padding-top: 15px;
        margin: 10px 0 0px 0;
        line-height: 21px;
    }

    .slide-7 h4 {
        margin-top: 12px;
        margin-bottom: -15px;
    }

    .slide-7 li:first-child {
        margin-top: -20px;
        margin-bottom: 15px;
    }

    .slide-7 li:last-child {
        margin-top: -5px;
    }

    /* slide-8*/
    .slide-8 .slide-1-txt {
        padding-top: 15px;
        margin: 10px 0 0px 0;
        line-height: 33px;
    }

    /* slide-9*/
    .slide-9 .slide-1-txt {
        padding-top: 15px;
        margin: 10px 0 0px 0;
        line-height: 22px;
    }

    .slide-9 h4 {
        margin-top: 12px;
        margin-bottom: -15px;
    }

    .slide-9 li:first-child {
        margin-top: -15px;
        margin-bottom: 3px;
    }

    .slide-9 li:last-child {
        margin-top: -15px;
    }

    /* slide-10*/
    .slide-10 .slide-1-txt {
        padding-top: 15px;
        margin: 10px 0 0px 0;
        line-height: 22px;
    }

    .slide-10 h4 {
        margin-top: 12px;
        margin-bottom: -10px;
    }

    .slide-10 li:first-child {
        margin-top: -10px;
        margin-bottom: 3px;
    }

    .slide-10 li:last-child {
        margin-top: -10px;
    }
}

/*-----------------------------big book collection---------------------------------*/
.big-collection {
    margin: 0;
    padding: 0;
}

.t-b-t-border {
    width: 70%;
    margin: 50px auto -50px auto;
    display: flex;
    flex-direction: row;
}

.hr-1,
.hr-2 {
    flex-grow: 3;
    color: #880000;
}

.hr-1 hr,
.hr-2 hr {
    margin-top: 25px;
    border: 2px solid #880000;
    color: #880000;
}

.title-book {
    height: 60px;
    padding: 13px 50px;
    margin: 0 40px;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    background-color: #880000;
    color: #FFFFDF;
    border-radius: 4px;
}

.mid-collection {
    margin-top: -70px;
}

.sml-collection {
    margin-top: -70px;
}

.new-collection {
    margin-top: -100px;
}

/* Media Queries for big book collection (640px) */
@media screen and (max-width: 640px) {
    .t-b-t-border {
        width: 100%;
        margin: 20px auto;
    }

    .title-book {
        width: 80%;
        height: 50px;
        padding: 10px 0;
        margin: 10px auto -60px auto;
        font-size: 21px;
    }

    .hr-1,
    .hr-2 {
        display: none;
    }
}

/*-----------------------------modal  section ---------------------------------*/
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px 30px 20px 30px;
    border: 1px solid #888;
    width: 50%;
    height: 62%;
    max-width: 960px;
    max-height: 600px;
    -webkit-transform: translateX(0) translateY(40%);
    -moz-transform: translateX(0) translateY(40%);
    -ms-transform: translateX(0) translateY(40%);
    transform: translateX(0) translateY(40%);
}

.close-modal {
    color: rgba(136, 0, 0, 0.5);
    font-size: 38px;
    font-weight: bold;
}

.close-modal:hover,
.close-modal:focus {
    color: #880000;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    width: 100%;
    height: 80%;
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
}

.modal-img {
    height: 100%;
    flex-grow: 8;
    margin-left: 3em;
    min-width: 200px;
}

.modal-txt {
    height: 100%;
    flex-grow: 1;
    font-size: 1.3em;
    line-height: 2.25em;
    overflow: auto;
}

.modal-txt ul {
    list-style: initial;
}

#maqalat-modal .modal-img {
    background-image: url(../books/c1/01/cover/th/01-front-th.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
}

#maqalat-modal .modal-txt {}

#mektubat-modal .modal-img {
    background-image: url(../books/c1/02/cover/th/02-front-th.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
}

#mektubat-modal .modal-txt {}

#lema3at-modal .modal-img {
    background-image: url(../books/c1/03/cover/th/03-front-th.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
}

#lema3at-modal .modal-txt {}

#shu3a3at-modal .modal-img {
    background-image: url(../books/c1/04/cover/th/04-front-th.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
}

#shu3a3at-modal .modal-txt {}

#lawaheq-modal .modal-img {
    background-image: url(../books/c1/05/cover/th/05-front-th.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
}

#lawaheq-modal .modal-txt {}

#asamusa-modal .modal-img {
    background-image: url(../books/c2/01/cover/th/01-front-th.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
}

#asamusa-modal .modal-txt {}

#zulfikqar-modal .modal-img {
    background-image: url(../books/c2/02/cover/th/02-front-th.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
}

#zulfikqar-modal .modal-txt {}

#isharatz-modal .modal-img {
    background-image: url(../books/c2/03/cover/th/03-front-th.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
}

#isharatz-modal .modal-txt {}

#anwar-modal .modal-img {
    background-image: url(../books/c3/01/cover/th/01-front-th.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
}

#anwar-modal .modal-txt {}

#tafakur-modal .modal-img {
    background-image: url(../books/c3/02/cover/th/02-front-th.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
}

#tafakur-modal .modal-txt {}

#tesbihat-modal .modal-img {
    background-image: url(../books/c3/03/cover/th/03-front-th.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
}

#tesbihat-modal .modal-txt {}

.modal-btn {
    margin-top: -0.2em;
    padding-right: 40%;
}

.read-c-btn {
    font-size: 20px;
    margin-top: 10px;
    color: #FBFBDC;
    background-color: #880000;
    border: 2px solid #880000;
    border-radius: 5px;
    padding: 0 10px;
}

.read-c-btn:hover,
.read-c-btn:hover {
    color: #880000;
    background-color: #FBFBDC;
    border: 2px solid #880000;
}

/* Media Queries for modal (640px) */
@media screen and (max-width: 640px) {
    .modal-content {
        background-color: #fefefe;
        margin: auto;
        padding: 15px 30px 40px 30px;
        border: 1px solid #888;
        width: 95%;
        height: 100%;
        max-height: 670px;
        -webkit-transform: translateX(0) translateY(5%);
        -moz-transform: translateX(0) translateY(5%);
        -ms-transform: translateX(0) translateY(5%);
        transform: translateX(0) translateY(5%);
    }

    .close-modal {
        color: rgba(136, 0, 0, 0.5);
        font-size: 28px;
        font-weight: bold;
        margin-top: -50px;
    }

    .modal-body {
        width: 100%;
        height: 100%;
        display: block;

    }

    .modal-img {
        width: 50%;
        height: 40%;
        margin: 0 auto 10px;
    }

    .modal-txt {
        width: 100%;
        height: 50%;
        font-size: 18px;
    }

    .modal-btn {
        margin-top: -3.8em;
        padding-right: 0;
        text-align: center;
    }
}

/*----------------------------- about-us ---------------------------------*/
#about-us {
    margin-top: -3em;
}

#about-us,
#contact-us,
#links {
    width: 70%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2em;
    background-color: rgba(251, 251, 172, 0);
    color: #000;
}

.a-u-t-border {
    width: 100%;
    margin: 0 auto 3em auto;
}

.a-u-t-border hr {
    width: 77%;
    margin-top: -30px;
    margin-right: 22%;
    border: 2px solid #880000;
    color: #880000;
}

.about-us-title,
.contact-us-title,
.links-title {
    width: 20%;
    height: 60px;
    padding: 13px 0;
    margin: 0;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    border-radius: 4px;
    background-color: #880000;
    color: #FBFBDC;
}

.about-us-txt {
    font-size: 20px;
    line-height: 2.75em;
    text-align: justify;
    padding: 0.5em 4em;
    text-indent: 3em;
}

/* Media Queries for about-us (640px) */
@media screen and (max-width: 640px) {

    #about-us,
    #contact-us,
    #links {
        width: 100%;
    }

    .about-us-title,
    .contact-us-title,
    .links-title {
        width: 6em;
        height: 50px;
        padding: 13px 0;
        margin: 0 10px;
        font-size: 20px;
        font-weight: bold;
        text-align: center;
        border-radius: 4px;
        background-color: #880000;
        color: #FBFBDC;
    }

    .a-u-t-border hr {
        width: 55%;
        margin-top: -25px;
        margin-right: 40%;
    }

    .about-us-txt {
        font-size: 15px;
        line-height: 2.5em;
        text-align: justify;
        padding: 0.5em 1em;
        text-indent: 3em;
    }
}

/*----------------------------- contact-us ---------------------------------*/
.contact-us-container {
    display: flex;
    flex-flow: row;
}

.contact-us-address {
    margin-top: 1.3em;
    padding-right: 3em;
}

.contact-us-address li {
    margin-bottom: 0.7em;
}

.contact-us-location {
    margin-left: 1em;
    border-radius: 4px;
    width: 50%;
}

.contact-us-location iframe {
    width: 100%;
    height: 30em;
    border: none;
    border-radius: 5px;
}

.contact-us-form {
    width: 50%;
    border-radius: 4px;
    background-color: #f2f2f2;
    padding: 20px;
}

input[type=text],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
}

input[type=submit] {
    background-color: #880000;
    color: #FBFBDC;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type=submit]:hover {
    background-color: #B00000;
}

/* Media Queries for contact-us (640px) */
@media screen and (max-width: 640px) {
    .contact-us-container {
        display: flex;
        flex-flow: column;
    }

    .contact-us-location {
        margin: 10px;
        width: auto;
    }

    .contact-us-location iframe {
        height: 300px;
        border: none;
        border-radius: 5px;
    }

    .contact-us-address {
        line-height: 2em;
    }

    .contact-us-address li {
        margin-bottom: 0;
    }

    .contact-us-form {
        width: auto;
        border-radius: 4px;
        background-color: #f2f2f2;
        padding: 20px;
        margin: 10px;
    }
}

/*----------------------------- footer ---------------------------------*/
#footer {
    width: 100%;
    height: 10em;
    background-color: #880000;
    font-size: 22px;
    text-align: center;
    padding: 0 10%;
    margin-top: 60px;
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
}

#footer li {
    margin-top: 0.8em;
}

#footer a {
    color: #FBFBDC;
}

.r-footer {

    height: 90%;
    flex-grow: 3;
}

.m-footer {
    height: 90%;
    flex-grow: 6;
    padding-left: 8%;
}

.l-footer {
    height: 90%;
    flex-grow: 3;
}

/* Media Queries for footer (640px) */
@media screen and (max-width: 640px) {
    #footer {
        height: 30em;
        background-color: #880000;
        padding: 0;
        font-size: 18px;
        display: flex;
        flex-direction: column;
    }

    #footer li {
        margin-top: 0.9em;
    }

    .r-footer {
        width: 100%;
        height: 90%;
        border-bottom: 1px solid #FBFBDC;
    }

    .m-footer {
        width: 100%;
        height: 90%;
        border-bottom: 1px solid #FBFBDC;
        padding-left: 0;
    }

    .l-footer {
        width: 100%;
        height: 90%;
    }
}