:root,[data-bs-theme="light"] {
    --dg-nav-box-bg-color: #fff;
    --dg-nav-box-shadow: 0 0 5px #3d3d3d;
    --dg-page-mark-color: #ff06;
    --dg-page-animation0-color: #fff;
    --dg-page-animation50-color: #e9eef9;
    --dg-page-animation100-color: #fff;
    --dg-number-spinner-wait-color: #98bcf0;
    --dg-slider-range-color: #c4c4c4;
    --dg-overlay-bg-color: #e0daff;
    --dg-overlay-text-color: #344e69;
    --dg-overlay-path-color: red;
    --dg-overlay-path-parent-color: #e09d00;
    --dg-overlay-shadow-color: #5e5e5e;
    --dg-overlay-scrollbar-track: #f1f1f1;
    --dg-overlay-scrollbar-thumb: #888;
    --dg-overlay-scrollbar-thumb-hover: #555;
    --dg-noui-handle-bg-color: #0daaff;
    --dg-noui-handle-border-color: #68B9CF;
    --dg-noui-handle-shadow-color: inset 0 0 1px #FFF,inset 0 1px 7px #067BBA,0 3px 6px -3px #BBB;
    --dg-noui-handle-after-bg-color: #D2F1F9;
    --dg-noui-target-bg-color: #FAFAFA;
    --dg-noui-target-border-color: #D3D3D3;
    --dg-noui-target-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;
    --dg-noui-connect-bg-color: #59BBF0;
    --dg-bigsearch-input-border-color: #cdcdcb;
    --dg-bigsearch-btn-border-color: #0fa3d1;
    --dg-bigsearch-btn-bg-color: #4eb4e5;
    --dg-formcontrol-color: #555;
    --dg-formcontrol-placeholder-color: #999;
    --dg-filter-invert: 0;
}

[data-bs-theme="dark"] {
    --dg-nav-box-bg-color: #121212;
    --dg-nav-box-shadow: 0 0 2px #525252;
    --dg-page-mark-color: #ff06;
    --dg-page-animation0-color: #252525;
    --dg-page-animation50-color: #28303d;
    --dg-page-animation100-color: #252525;
    --dg-number-spinner-wait-color: #76859b;
    --dg-slider-range-color: #c4c4c4;
    --dg-overlay-bg-color: #34314e;
    --dg-overlay-text-color: #a8c2e2;
    --dg-overlay-path-color: #ff1203;
    --dg-overlay-path-parent-color: #de9b02;
    --dg-overlay-shadow-color: none;
    --dg-overlay-scrollbar-track: #424242;
    --dg-overlay-scrollbar-thumb: #686868;
    --dg-overlay-scrollbar-thumb-hover: #7b7b7b;
    --dg-noui-handle-bg-color: #0daaff;
    --dg-noui-handle-border-color: #123f81;
    --dg-noui-handle-shadow-color: inset 1px 0px 7px #003687;
    --dg-noui-handle-after-bg-color: #375eab;
    --dg-noui-target-bg-color: #000000;
    --dg-noui-target-border-color: #4f4f6c;
    --dg-noui-target-shadow: none;
    --dg-noui-connect-bg-color: #0d6efd;
    --dg-bigsearch-input-border-color: #cdcdcb;
    --dg-bigsearch-btn-border-color: #0fa3d1;
    --dg-bigsearch-btn-bg-color: #4eb4e5;
    --dg-formcontrol-color: #555;
    --dg-formcontrol-placeholder-color: #999;
    --dg-filter-invert: 1;
}


#comment {
    float: left;
}

body {
    position: relative;
    overflow-x: hidden;
}
body,
html { height: 100%;}
.nav .open > a,
.nav .open > a:hover,
.nav .open > a:focus {background-color: transparent;}

body
{
    font-family: 'IRANSans', tahoma, serif;
    font-size: 16px;
}

html {
    scroll-behavior: smooth;
}

:lang(ar) body
{
    font-family: 'Droid Arabic Kufi', tahoma, serif;
    font-size: 16px;
}
nav {
    background-color: var(--dg-nav-box-bg-color);
    box-shadow: var(--dg-nav-box-shadow);
}
.auth-abs .dropdown-toggle::after {
    display:none;
}
.auth-abs img {
    filter: invert(var(--dg-filter-invert));
}
/*-------------------------------*/
/*           Wrappers            */
/*-------------------------------*/

/*#wrapper {*/
/*background-image: url({{ URL::asset('img/bk.png') }});*/
/*background-repeat: repeat;*/
/*padding-left: 0;*/
/*!*-webkit-transition: all 0.5s ease;*!*/
/*!*-moz-transition: all 0.5s ease;*!*/
/*!*-o-transition: all 0.5s ease;*!*/
/*!*transition: all 0.5s ease;*!*/
/*}*/

#wrapper.toggled {
    padding-left: 320px;
}

#sidebar-wrapper {
    direction: rtl;
    z-index: 1000;
    left: 320px;
    width: 0;
    height: 100%;
    margin-left: -320px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #1a1a1a;
    /*-webkit-transition: all 0.5s ease;*/
    /*-moz-transition: all 0.5s ease;*/
    /*-o-transition: all 0.5s ease;*/
    /*transition: all 0.5s ease;*/
}

#sidebar-wrapper::-webkit-scrollbar {
    display: none;
}

#wrapper.toggled #sidebar-wrapper {
    width: 320px;
}

#page-content-wrapper {
    width: 100%;
    padding: 70px 0 50px;
}

#wrapper.toggled #page-content-wrapper {
    position: absolute;
    margin-right: -220px;
}

/*-------------------------------*/
/*     Sidebar nav styles        */
/*-------------------------------*/

/*.sidebar-nav {*/
/*    position: absolute;*/
/*    top: 0;*/
/*    width: 320px;*/
/*    !*width: 100%;*!*/
/*    margin: 0;*/
/*    padding: 0;*/
/*    list-style: none;*/
/*}*/

/*.sidebar-nav li, .sidebar-nav p {*/
/*    position: relative;*/
/*    line-height: 20px;*/
/*    display: inline-block;*/
/*    width: 100%;*/
/*}*/

/*.sidebar-nav li:before, .sidebar-nav p:before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    z-index: -1;*/
/*    height: 100%;*/
/*    width: 3px;*/
/*    background-color: #555555;*/
/*}*/

/*.sidebar-nav li:hover:before,*/
/*.sidebar-nav li.open:hover:before {*/
/*    width: 100%;*/
/*}*/

/*.sidebar-nav li a {*/
/*    display: block;*/
/*    color: #ddd;*/
/*    text-decoration: none;*/
/*    padding: 10px 15px 10px 30px;*/
/*}*/

/*.sidebar-nav li a:hover,*/
/*.sidebar-nav li a:active,*/
/*.sidebar-nav li a:focus,*/
/*.sidebar-nav li.open a:hover,*/
/*.sidebar-nav li.open a:active,*/
/*.sidebar-nav li.open a:focus{*/
/*    color: #fff;*/
/*    text-decoration: none;*/
/*    background-color: transparent;*/
/*}*/

/*.sidebar-nav > .sidebar-brand {*/
/*    height: 65px;*/
/*    font-size: 20px;*/
/*    line-height: 44px;*/
/*}*/
/*.sidebar-nav .dropdown-menu {*/
/*    position: relative;*/
/*    width: 100%;*/
/*    padding: 0;*/
/*    margin: 0;*/
/*    border-radius: 0;*/
/*    border: none;*/
/*    background-color: #222;*/
/*    box-shadow: none;*/
/*}*/

/*-------------------------------*/
/*            Overlay            */
/*-------------------------------*/

/*.overlay {*/
/*position: fixed;*/
/*display: none;*/
/*width: 100%;*/
/*height: 100%;*/
/*top: 0;*/
/*left: 0;*/
/*right: 0;*/
/*bottom: 0;*/
/*background-color: rgba(250,250,250,.3);*/
/*z-index: 1;*/
/*}*/



.form-pagenum {
    padding-top: 15px;
}

.number-spinner input.form-control{
    font-size: 20px;
    line-height: 28px;
    direction: ltr;
}

.number-spinner .input-wait{
    color: var(--dg-number-spinner-wait-color)!important;
}

.wrap-slider {
    margin-top: 15px;
}

.wrap-slider span {
    font-weight: 200;
    display: inline-block;
    color: #7f8c8d;
    font-size: 13px;
}


/*********************/
.run-animation {
    position: relative;
    -webkit-animation: fancy-animation .9s linear;
}

@-webkit-keyframes fancy-animation {

    0%  {
        background-color: var(--dg-page-animation0-color);
    }
    50% {
        background-color: var(--dg-page-animation50-color);
        border: 1px solid #d7d7d7;
    }
    100%  {
        background-color: var(--dg-page-animation100-color);
    }

}

img {
    max-width: 100%;
    height: auto;
    min-width: 36px;
}
/***************** change theme ******************/
.bd-theme button.btn {
    padding-right: 0.25rem;
    padding-left: 0.25rem;
    /*color: rgba(255,255,255,0.85);*/
}
.bd-theme .bi {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentcolor;
}
.bd-theme .dropdown-menu .dropdown-item {
    border-radius: 0.25rem;
}
.bd-theme .dropdown-menu li+li {
    margin-top: 0.125rem;
}
.bd-theme .dropdown-menu {
    --bs-dropdown-min-width: 8rem;
    --bs-dropdown-padding-x: .25rem;
    --bs-dropdown-padding-y: .25rem;
    --bs-dropdown-link-hover-bg: rgba(13, 110, 253, .15);
    --bs-dropdown-font-size: .875rem;
    font-size: .875rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}
.bd-theme .dropdown-menu .active {
    font-weight: 600;
}
.bd-theme .dropdown-menu .dropdown-item {
    border-radius: 0.25rem;
    font-weight: 300;
}
.bd-theme .dropdown-menu .active .bi {
    display: block !important;
}
/***********************************/
#page_slider .noUi-tooltip {
    display: none;
    direction: rtl;
}
#page_slider .noUi-active .noUi-tooltip {
    display: block;
}
.sliderrange {
    font-size: 16px;
    line-height: 0.8;
    color: var(--dg-slider-range-color);
    direction: ltr;
}
.sliderrange .slidermin {
    float: right;
}
.sliderrange .slidermax {
    float: left;
}
/*********** selectpicker **********/

/*.bootstrap-select.btn-group .dropdown-menu li small {*/
/*    padding-left: 0;*/
/*    padding-right: .5em;*/
/*}*/
/*.bootstrap-select.btn-group.show-tick .dropdown-menu li a span.text {*/
/*    margin-right: 0;*/
/*    margin-left: 34px;*/
/*}*/
/*.bootstrap-select.btn-group.show-tick .dropdown-menu li.selected a span.check-mark {*/
/*    right: unset;*/
/*    left: 15px;*/
/*}*/
/*.bootstrap-select.btn-group .dropdown-toggle .filter-option {*/
/*    text-align: right;*/
/*}*/
/*.bootstrap-select.btn-group .dropdown-toggle .caret {*/
/*    right: unset;*/
/*    left: 12px;*/
/*}*/
/*.bootstrap-select > .dropdown-toggle {*/
/*    padding-right: 12px;*/
/*    padding-left: 25px;*/
/*}*/

/*.dropdown-menu {*/
/*    font-size: 14px;*/
/*    text-align: right;*/
/*    right:0;*/
/*    left: auto;*/
/*}*/
/*.dropdown-menu > li > a {*/
/*    padding: 8px 20px;*/
/*}*/

/*****************overlay*****************/
#overlay {
    position: fixed;
    z-index: 1000;
    top: 57px;
    left: 0;
    right: auto;
    /*border-top: 1px solid #9e9c9c;*/
    background-color: var(--dg-overlay-bg-color);
    overflow-x: hidden;
    box-shadow: 4px 0 4px -4px var(--dg-overlay-shadow-color);

    height: calc(100vh - 106px);
    transform: translate3d(-300px, 0, 0);
    -webkit-transform: translate3d(-300px, 0, 0);
    transition-duration: .25s;
    width: 300px;
    pointer-events: none;
    will-change: transform;
}
#overlay.offcanvas--open{

    transform: translate3d(0,0,0);
    -webkit-transform: translate3d(0,0,0);
    pointer-events: auto;
}
#overlay .index {
    -webkit-overflow-scrolling: touch;
}

/** custom scrollbar **/
/* width */
#overlay::-webkit-scrollbar {
    width: 10px;
}

/* Track */
#overlay::-webkit-scrollbar-track {
    background: var(--dg-overlay-scrollbar-track);
}

/* Handle */
#overlay::-webkit-scrollbar-thumb {
    background: var(--dg-overlay-scrollbar-thumb);
}

/* Handle on hover */
#overlay::-webkit-scrollbar-thumb:hover {
    background: var(--dg-overlay-scrollbar-thumb-hover);
}
/********************index**********************/
.index ol, .index ul {
    padding-right: 10px;
}
.index a {
    font-family: IRANSans,Tahoma,Geneva,sans-serif;
    font-size: 14px !important;
    word-spacing: -2px;
    font-weight: 100;

    padding: 3px;
    text-decoration: none;
    color: var(--dg-overlay-text-color);
    display: block;
}

/*.index > ul > li > ul > li > ul > li > ul > li > ul > li > ul > li ul{*/
/*display: none;*/
/*}*/


.path-parent > a {
    color: var(--dg-overlay-path-parent-color) !important;
    font-weight: 500;
    text-decoration: underline;
    /*text-decoration-color: green;*/
}

.path > a {
    color: var(--dg-overlay-path-color) !important;
    font-weight: bold;
    text-decoration: underline;
    /*text-decoration-color: green;*/
}
/**************** noUiSlider *****************/
.noUi-handle {
    background: var(--dg-noui-handle-bg-color) none repeat scroll 0 0;
    border: 1px solid var(--dg-noui-handle-border-color);
    box-shadow: var(--dg-noui-handle-shadow-color);
}
.noUi-handle::after, .noUi-handle::before {
    background: var(--dg-noui-handle-after-bg-color);
}
.noUi-handle:after {
    left: 18px;
}
.noUi-connect {
    background: var(--dg-noui-connect-bg-color);
}
.noUi-target {
    background: var(--dg-noui-target-bg-color);
    border-radius: 4px;
    border: 1px solid var(--dg-noui-target-border-color);
    box-shadow: var(--dg-noui-target-shadow);
}

.nano > .nano-content {
    -webkit-overflow-scrolling: touch;
}
/*.modal .btn {*/
/*	!*margin-bottom: 5px;*!*/
/*}*/
/*.btn.trigger {*/
/*    padding: 6px 4px;*/
/*}*/
/*.btn-circle {*/
/*	width: 30px;*/
/*	height: 30px;*/
/*	text-align: center;*/
/*	padding: 6px 0;*/
/*	font-size: 12px;*/
/*	line-height: 1.428571429;*/
/*	border-radius: 15px;*/
/*}*/

/*remove caret from select tag*/
#vol select, #part select{
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;

    min-width: 90px;
    max-width: 165px;
    text-align: right;
}
#vol, #part {
    float:left;
    margin-right: 3px;
}
/*#header-right {*/
/*	line-height: 1.6;*/
/*	direction: rtl;*/
/*	color: #fff;*/
/*	font-size: 1.5em;*/
/*}*/
/*.panel {*/
/*	line-height: 1.9em;*/
/*}*/
/*.panel-heading,*/
/*.panel-body p,*/
/*.panel .list-group-item {*/
/*	direction: rtl;*/
/*	text-align: right;*/
/*}*/

/*.panel .list-group-item {*/
/*	font-size: 1em;*/
/*	font-weight: 300;*/
/*}*/

/*.panel .list-group-item .glyphicon {*/

/*}*/
/*#header-right .glyphicon {*/
/*	color: #fff;*/
/*	top: 5px;*/
/*}*/
/*.glyphicon.glyphicon-book {*/
/*	margin-left: 5px;*/
/*}*/

/*.glyphicon.glyphicon-chevron-right {*/
/*	padding-left: 4px;*/
/*}*/
/*.glyphicon.glyphicon-info-sign {*/
/*	padding: 0px 10px 0;*/
/*}*/

/*.glyphicon.glyphicon-blackboard {*/
/*	color:#5ba3cb;*/
/*	position: relative;*/
/*	top: 4px;*/
/*	right: 0;*/
/*}*/

/*.glyphicon.glyphicon-play-circle {*/
/*	color:#e60a0a;*/
/*	position: relative;*/
/*	top: 4px;*/
/*	right: 0;*/
/*}*/

/*.glyphicon.glyphicon-user {*/
/*	color:#31db33;*/
/*	position: relative;*/
/*	top: 2px;*/
/*	right: 0;*/
/*}*/

/*.header-left .glyphicon.glyphicon-search{*/
/*	line-height: 1.6;*/
/*	direction: rtl;*/
/*	color: #fff;*/
/*	font-size: 1.5em;*/
/*	padding: 0px 10px;*/
/*}*/

/*.modal-header {*/
/*	padding: 15px 15px 0;*/
/*}*/
/*.modal-dialog {*/
/*	direction: rtl;*/
/*}*/

/*.close {*/
/*	float: left;*/
/*	font-size: 40px;*/
/*	line-height: 0.9;*/
/*}*/

/*.thumbnail {*/
/*	border: none;*/
/*}*/
/*.thumbnail img {*/
/*	box-shadow: 0 0 6px 0 gray;*/
/*	margin-top: 10px;*/
/*}*/
/*.caption {*/
/*	padding: 5px 21px;*/
/*}*/
/*.caption p {*/
/*	line-height: 2.1;*/
/*}*/
.highlight {
    background-color: var(--dg-page-mark-color);
    padding:0;
}
mark{
    background: var(--dg-page-mark-color);
    padding:0;
}
/***************** search *****************/
/*bootstrap rtl*/
/*.input-group .form-control:first-child, .input-group-btn:first-child > .btn, .input-group-btn:first-child > .btn-group > .btn, .input-group-btn:last-child > .btn-group:not(:last-child) > .btn, .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {*/
/*    border-top-left-radius: 0;*/
/*    border-bottom-left-radius: 0;*/
/*}*/
/*.input-group .form-control:last-child, .input-group-btn:first-child > .btn-group:not(:first-child) > .btn, .input-group-btn:first-child > .btn:not(:first-child), .input-group-btn:last-child > .btn, .input-group-btn:last-child > .btn-group > .btn {*/
/*    border-top-right-radius: 0;*/
/*    border-bottom-right-radius: 0;*/
/*}*/
#bigSearchForm {
    margin:30px 0px 50px;
    border: solid rgba(0,0,0,.12) 4px;
    border-radius: 2px;
    font-size: 14px;
    line-height: 1.42857143;
    font-family: IRANSans, tahoma, serif;
    direction:rtl;
}
#bigSearchForm .input-group .form-control {
    padding: 0;
    height: 46px;
    border: 1px solid var(--dg-bigsearch-input-border-color);
    z-index: 0;
    border-left: none;
}
#bigSearchForm .input-group .form-control input {
    padding: 10px;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    font-size: 16px;
}

#bigSearchForm .input-group .search-btn button {
    background-color: var(--dg-bigsearch-btn-bg-color);
    border-color: var(--dg-bigsearch-btn-border-color);
    height: 46px;
    border-radius: 0;
    width: 46px;
    padding: 0;
}
.form-control{ /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: var(--dg-formcontrol-color);
    opacity:1 /* Firefox */
}
.form-control::-moz-placeholder {
    color: var(--dg-formcontrol-placeholder-color);
    opacity:1
}
.form-control:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: var(--dg-formcontrol-placeholder-color);
}
.form-control::-ms-input-placeholder { /* Microsoft Edge */
    color: var(--dg-formcontrol-placeholder-color);
}
.form-control::-webkit-input-placeholder {
    color: var(--dg-formcontrol-placeholder-color);
}
/***************** end search *****************/

div#mpart_page {
    height:3px;

    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    /*-webkit-flex-direction: row-reverse; !* Safari 6.1+ *!*/
    /*-ms-flex-direction: row-reverse;*/
    /*flex-direction: row-reverse;*/
}
div#mpart_page  > div{
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -moz-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}
@media only screen and (max-width: 490px) {
    .logo, .searchinbook {
        display: none;
    }
}
