*{
    direction: rtl;
    font-family: 'Tajawal', sans-serif;
    cursor: default;
    margin:0; padding: 0;
}
html,body{ height:calc(100vh);}
#container{
    min-height: calc(100vh - 124px);
    box-sizing: border-box;
    margin-bottom: 80px;
}
footer{
    background-color: #BFD7EA;
    margin-top: -65px;
    padding:20px;
    box-sizing: border-box;
    height: 65px;
}
.custom-input-group-text{
    display: block;
    width: 100%;
    text-align: center;
    margin:2px 0;
}
.category_label{
    display: inline;
}
.input-cat{
    margin-bottom: 15px;
    height: fit-content;
}
.custom-input-group{
    background-color:#BFD7EA;
    border-radius:  5px;
}
.form-control.is-invalid,.form-control.is-valid{
    padding-left: calc(1.5em + .75rem);
    padding-right: 12px;
    background-position: left calc(.375em + .1875rem) center;
}
.auther.is-invalid{
    border-color: #dc3545;
    padding-left: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}
.auther.is-valid{
    border-color: #28a745;
    padding-left: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}
.auther_label{
    border: 1px solid #ddd;
    padding: 0 5px;
    margin-left: 5px;
}
.auther_label:hover{
    border-color: skyblue;
}
.auther{
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
    position: relative;
    width: 100%;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    padding: 0 12px;
}
.auther_hover {
    border-color:#80bdff;
    outline:0;
    box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}
.auther_text{
    min-width: 400px;
    border: 0;
    display: block;
    height: calc(1.5em + .75rem + 2px);
    padding: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    outline: none;
    background-color: #fff;
    background-clip: padding-box;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
#sugg,#category_sugg{
    position: relative;
    z-index: 3000;
    max-width: 200px;
}
#sugg{
    margin-right: -10px;
}
#suggestions.dropdown-menu ,#category_suggestions.dropdown-menu, #owners_suggestions.dropdown-menu{
    display: list-item;
    padding: 0;
}
ul#suggestions ,ul#category_suggestions ,ul#owners_suggestions {
    border: 2px solid #ced4da;
    border-radius: .5rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
ul#suggestions li,ul#category_suggestions li,ul#owners_suggestions li{
    line-height: 1.8rem;
}
ul#suggestions li:hover,ul#category_suggestions li:hover,ul#owners_suggestions li:hover{
    background-color:  rgba(0,123,255,.25);
}

.added_auther,.added_category{
    border: 1px solid #CCC;
    padding: 0 5px;
    margin: 5px 2px;
    line-height: 1.5rem;
    border-radius: .25rem;
}
.border-red{
    border-color:red;
    outline:0;
    box-shadow:0 0 0 .1rem rgba(255, 0, 0, .25)
}
.close{
    float: left;
    margin-right: 4px;

}
.background-sky{
    background-color: #35A7FF;
    color: #F7F7FF;
}
.background-gold{
    background-color: #F5CB5C;
}
.color-gold{
    color:#F5CB5C;
    text-shadow: rgba(0, 0, 0, 0.5) 1px 2px 1px;
}
.number{
    display: inline-block;
    width: auto !important;
    height: auto !important;
    padding: 0 10px;
    line-height:1.6rem;
    border: 1px solid #aaa;
    border-radius: 25px;
    font-size: 1rem;
}
.size-small{
    width: auto !important;
    height: auto !important;
    line-height: 1.2rem !important;
    padding: 0 10px;
    border-radius: 10px;
    min-width: 25px;
}
.nav-bar{
    background-color:#BFD7EA;
    width: 100%;
    height: 65.6px;
    position: fixed;
    z-index: 999;
    border-top:5px solid #eee;
    border-bottom: 5px solid #eee;
}
.nav{
    background-color: #BFD7EA;
    margin-right:auto;
    margin-left: auto;
    display: table;
}
a.library-links,a.library-links:hover{
    cursor: pointer;
    text-decoration: none;
    color:#0B3954;
    background-color: #BFD7EA;
    padding: 5px 10px;
    margin: 0 0 10px 0;
    display: inline-block;
    border-radius: 13px;
    min-width: 160px;
    text-align: center;
}
.menu{
    border-radius: 5px!important;
    margin: 5px 3px!important;
    padding:5px 10px!important;
    float: right;
    min-width: auto!important;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}a.library-links.menu:hover{
    border-bottom: 5px solid #f90;
}
a.library-links:hover{
    color:#fff!important;
    background-color: #0B3954!important;
}
a.library-links.menu.active{
    border-bottom: 5px solid #f90;
    color:#fff!important;
    background-color: #222!important;
}
.nav-bar-margin{
    clear: both;
    padding-bottom: 44px;
}
.book-title{
    display: block;
    font-weight: bold;
}
.img-book{
    width: 135px;
    margin-bottom: 10px;
}
.book-info{
    margin-bottom: 10px;
}
.more-info{
    display: none;
}
.show-more-info{
    display: inline-flex;
    border-radius: 5px;
    padding: 0 3px;
    color: rgb(0, 151, 233);
    font-size:medium ;
    margin-top: -10px;
    cursor: pointer;
}
.show-more-info span{
    cursor: pointer;
}
.show-more-info:hover{
    color: #fff;
    background-color: #0B3954;
}
.fas{
    cursor: pointer;
    margin-top: 5px;
    margin-right: 3px;
}
.form-check-input{
    margin-top: 0.4rem;
    margin-right: -1rem;
}
.cat{
    border-bottom:2px solid #eee;
}
.slow .toggle-group label{
    margin-top: 2px;
}
.border-top{
    border-top: 1px solid #dee2e6;
}
.border-bottom{
    border-bottom: 1px solid #dee2e6;
}
.border-both{
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}
.bold{
    font-weight: bold;
}
.slow .toggle-group {  transition: left 1.5s; -webkit-transition: left 1.5s;}
.loading{
    background-image: url('../imgs/Spinner-1.4s-350px.gif');
    background-position: center;
    width:200px;
    height: 200px;
    margin: auto;
    display: none;
}
.background{
    width: 100%;
    height:100%;
    position:fixed;
    top:0;
    right:0;
    bottom:0;
    left:0;
    background-color: rgba(0, 0, 0, 0.5);
    display:none;
}
.color-red{
    color: red;
}
.delete,.edit,.add_auther{
    position: fixed;
    right: 25%;
    top:calc(50% - 150px);
    background-color: #ddd;
    z-index:9999;
    border-radius: 15px;
    padding: 0;
    display:none;
}
.edit{
    position: relative;
    right: 0;
    padding: 0 0 15px  0;
    margin:auto 10px;
    margin-top: 15%;
}
.title{
    padding:15px;
    text-align: center;
    border-top-right-radius: 15px;
    border-top-left-radius: 15px;
    background-color: #ccc;
    width: 100%;
}
#searched_books.table td,#searched_books.table th{
    padding:10px;
    vertical-align: middle;
}
.bootstrap-select .dropdown-menu li a{
    text-align: right;
}
.bootstrap-select .dropdown-toggle .filter-option-inner-inner{
    text-align: center;
}
#result{
    text-align: center;
    margin: 0 auto;
    width:50%;
    margin-top: 25%;

}
.shaker {
    /* Start the shake animation and make the animation last for 0.5 seconds */
    animation: shake 0.3s;
    /* When the animation is finished, start again */
    animation-iteration-count: 1;
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }
    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }
    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }
    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }
    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }
    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }
    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }
    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }
    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }
    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }
    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

@media (min-width: 576px) {
    .input-cat{
        padding-right: 15%;
    }
}
@media (min-width: 992px) {
    .input-cat{
        padding-right: 5%;
    }
}
@media (max-width: 767px) {
    .auther_text{min-width: calc(200% - 12px);}
}
@media (max-width: 576px) {
    .input-cat{
        padding:0;
        padding-right: 15px;
    }
    .auther_text{min-width: calc(175% - 12px);
    }
    .col.ml-auto.mr-auto.text-center.mb-4 a.library-links{
        min-width: auto;
    }
}
@media (max-width: 470px) {
    .auther_text{min-width:100%;
    }
}
@media (max-width: 345px) {
    .input-cat{padding-right:0;}
}
