
/* layout */

/*
* {
    font-family: Lato, sans-serif;
    font-size: 14px;
}
*/

a {
    text-decoration: none;
    color: #000;
}
a:hover {
    color: #65c4d8;
}

/*
:xfocus:not(.modal)/*, :focus-visible*/ {
    /* box-shadow: 0 0 0 .25rem rgba(66,70,73,.5); */
    /* box-shadow: none !important; */
    /* border: 0 !important; */
    /* outline: 2px solid #3333332f !important; */
    /* border-radius: .25rem !important; */
/*    background: #DADADA !important;
    color: #333333 !important;
}

:focus-visible {
    outline: 2px solid #33333338 !important;
}
*/

body {
    background-color: #fff;
}

hr.separator {
    height: 2px;
    background-color: gray;
    opacity: 1;
}

.btn:focus {
    box-shadow: 0 0 0 .25rem rgba(66,70,73,.5);
}

h4 span {
    color: #999;
    font-size: 17px;
    font-weight: normal;
    margin-left: 5px;
    position: relative;
    top: 0px;
}

/* > bootstrap override */

.alert {
    /*border-radius: 1rem;*/
}

.modal-dialog {
    max-width: 560px;
}

.modal-content {
    border-radius: 10px;
    border: 0;
    box-shadow: 0 10px 40px 0px rgba(0,0,0,0.2);
}

.modal-header {
    margin: 10px;
    /*background: #f3f3f3;*/
    border-radius: 10px;
    border: 0;
}

.modal-header .btn-close {
    background-color: #eaeaea;
    background-size: 45%;
    border-radius: 5px;
}

.modal-title strong {
    font-size: inherit;
}

.modal-body {
    margin: 10px;
    /* background: #f3f3f3; */
    border-radius: 10px;
    margin: 0 10px;
    /* border: 1px solid #eeeeee; */
}

.modal-body form {
    background: #f3f3f3;
    padding: 10px;
    border-radius: 10px;
    /*margin: auto -10px;*/
    border: 1px solid #dddddd;
}

.modal-footer {
    margin: 10px;
    /*background: #f3f3f3;*/
    border-radius: 10px;
    border: 0;
}

.btn i[class^="bi-"] {
    margin-right: 5px;
    position: relative;
}
.btn-lg i[class^="bi-"] {
    top: -2px;
    margin-right: 10px;
    position: relative;
}

/* < bootstrap override */


.main {
    display: flex;
    /*background-color: #f3f3f1;*/
}
.side-menu {
    float: left;
    min-width: 300px;
    padding: 0;
    overflow: auto;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    transition: all 0.3s ease;
    /* margin-top: 0px; */
    position: relative;
}
.side-menu img.partner {
    height: 45px;
    margin-left: 30px;
    margin-bottom: 20px;
    margin-top: 15px;
}
.side-menu img.partner {
    height: 30px;
    margin-left: 30px;
    margin-bottom: 25px;
    margin-top: 0px;
    /* opacity: 0; */
    /* display: none; */
}

.side-menu a.btn-back {
    float: right;
    /* height: 60px; */
    line-height: 0;
    margin-right: 20px;
    transition: all 0.2s ease;
    /* top: 5px; */
    position: relative;
    margin-bottom: 20px;
}
.side-menu a.btn-back i {
    font-size: 24px;
}

.side-menu-header {
    position: fixed;
    width: 300px;
    z-index: 1;
    background: rgba(255,255,255,0.95);
    padding-top: 20px;
}

.side-menu .search {
    padding: 0 20px 20px;
    margin-top: 75px;
}

.content {
    /* padding: 20px 30px; */
    padding: 0;
    max-height: 100vh;
    max-height: calc(var(--vh, 1vh) * 100);
    overflow: hidden;
    width: 100%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    border-left: 1px solid #EFEFEF;
    /* position: relative; */
    position: relative;
    /*z-index: 10;*/
}
.content-inner {
    /* position: relative; */
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    overflow-y: auto;
    overflow-x: hidden;
    /*background-color: #f3f3f1;*/
}

.grid-container {
    margin: 0;
    padding: 20px 30px;
    background-color: #f3f3f1;
}

ul.grid {
    list-style-type: none;
    margin: -.5rem 0 0;
    padding: .5rem 0 2px;
}

.grid {
    display: grid;
    grid-gap: 15px 25px;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    width: 100%;
}

.media {
    align-self: self-end;
    position: relative;
}
.media a:not(.return-loan), .media .button {
    position: relative;
    top: 0;
    color: #000;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    border: 0;
    border-radius: .25rem;
    background: transparent;
    max-width: 100%;
    text-align: left;
    padding: 0;
}
.media a:hover:not(.return-loan), .media button.button:hover {
    top: -.5rem;
}

.media-image {
    position: relative;
}
.media-image .play {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    display: flex;
    /* align-items: center; */
    /* align-content: center; */
    text-align: center;
    /* margin: auto; */
    opacity: 0;
    transition: all 0.2s ease;
}
a:hover .media-image .play, .media-cover .media-image .play,
button:hover .media-image .play {
    opacity: 1;
}
.media-image .play i {
    background-color: #000;
    font-size: 32px;
    color: white;
    border-radius: 50%;
    display: block;
    /* text-align: center; */
    /* align-self: center; */
    align-content: space-around;
    margin: auto;
    position: relative;
    top: -10px;

    transition: all 0.3s ease, width 0.6s ease, height 0.6s ease;
    background-color: rgba(0,0,0,0.6);
    /*transform: scale(1.2);*/

    width: 48px;
    height: 48px;
    line-height: 48px;
}
a:hover .media-image .play i,
button:hover .media-image .play i {
    transform: scale(1.2);
    top: -10px;
}
.media-cover a:hover .media-image .play i,
.media-cover button:hover .media-image .play i {
    transform: scale(1.6);
    top: -10px;
}
.media-image .play i::before {
    content: "\f4f4";
    position: relative;
    left: 1px;
}

.media-image .btn-favorite,
.media button.btn-favorite {
    position: absolute;
    bottom: 90px;
    right: 5px;
    background-color: rgba(255,255,255, 0.8);
    border: 0;
    margin: 0;
    transition: all .3s ease;
}
.media-image .btn-favorite i,
.media button.btn-favorite i {
    margin: 0 !important;
}
.media-image .btn-favorite:hover,
.media button.btn-favorite:hover {
    background-color: rgba(255,255,255, 1);
}

.media img {
    width: 100%;
    border-radius: .25rem;
    border: 1px solid rgba(0,0,0,.2);
    transition: all 0.2s ease;
    min-height: 160px;
    min-height: 100px;/* majelan */
    background-color: #f0f0f0;
}
.media a:hover .media-image img,
.media button:hover .media-image img {
    box-shadow: 0 2px 5px rgba(0,0,0,.2);
}

.media-image .reflection {
    position: absolute;
    height: 20px;
    overflow: hidden;
    width: 100%;
    border-radius: .25rem .25rem 0 0;
    bottom: -21px;
    mask-image: linear-gradient(rgba(0,0,0,0.4) 2px, rgba(0,0,0,0.1) 12px, transparent 20px);
    /*-webkit-mask-image: linear-gradient(rgba(0,0,0,0.4) 2px, rgba(0,0,0,0.1) 12px, transparent 20px);*/
}
.media-image .reflection img {
    transform: scaleY(-1);
    width: 100%;
}
.media-cover .media-image .reflection {
    bottom: -22px;
}

.media h3 {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /*line-height: 40px;*/
    margin: 0;
}
.media span {
    color: #767676;
    font-size: 12px;
    line-height: 14px;
    display: inline-block;
    margin-top: 4px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}
.dark-mode .media span {
    color: #868686;
}

.media-content .features {
    width: 100%;
}
.media-content .format, .media-content .drm {
    /*width: 50%;*/
}
.media-content .features span {
    display: inline-block;
    margin: 0 5px 0 0;
    border: 1px solid #ddd;
    padding: 1px 8px;
    border-radius: .5rem;
    color: #000000;
    font-size: 13px;
}
.media-content .features span.label {
    border: 0;
    color: #666;
    min-width: 75px;
}
.media-content .drm span i {
    color: #cc0000;
}
.media-content .format span i {
    color: #3465a4;
}

.paging {
    text-align: center;
    color: #707070;
    font-weight: 300;
    padding: 1rem 0;
    position: absolute;
    width: 100%;
    bottom: 0px;
    background-color: #fff;
    background-color: rgba(255,255,255,0.90);

    /*display: none;*/
}
.paging span {
    font-weight: 500;
    color: #333;
}
.paging ul {
    list-style-type: none;
    display: inline-block;
    margin: 0;
    margin-left: 30px;
    padding: 0;
}
.paging li {
    display: inline-block;
    margin: 0 2px;
}
.paging a {
    color: #707070;
    display: block;
    padding: 1px 5px;
    font-size: 14px;
    /* border: 1px solid #fcfcfc; */
    border-radius: .25rem;
    background-color: #fcfcfc;
    min-width: 24px;
}
.paging li.active a {
    color: #333;
    font-weight: 600;
    /*text-decoration: underline !important;*/
}
.paging a:hover {
    color: #65c4d8;
}
.paging-previous a, .paging-next a {
    padding: 7px 5px;
    /* background: none; */
}
.paging-previous a i, .paging-next a i {
}

.side-menu {
    display: none;
}
.side-menu nav {

}
.side-menu nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #ccc;
}
.side-menu nav > ul > li > ul {
    border-top: 0;
}
.side-menu nav li {

}
.side-menu nav a {
    display: block;
    padding: 15px 15px 12px 30px;
    background-color: #fff;
    color: #000;
    border-bottom: 1px solid #ccc;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-weight: 600;
    transition: all 0.2s ease;
}
.side-menu nav > ul > li > a:hover {
    background-color: #000;
    color: #fff;
}
.side-menu nav > ul > li.active > a {
    background-color: #000;
    color: #fff;
}
.side-menu nav a img, .top-menu nav a img {
    width: 36px;
    position: relative;
    top: -3px;
    transition: all 0.2s ease;
    margin-right: 5px;
}
.side-menu nav a:hover img, nav > ul > li.active > a img {
    filter: invert(100%) sepia(1%) saturate(0%) hue-rotate(160deg) brightness(106%) contrast(101%);
}
.side-menu nav .nav-separator {
    border-bottom: 1px solid #ccc;
}

.top-menu {
    margin-bottom: 0;
    width: 100%;
    z-index: 100;
    position: relative;
}

.top-menu.sticky {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 30px 40px;
}

.double-menu .top-menu {
}
.triple-menu .top-menu {
}

.top-menu nav {
    /*transition: all ease .3s;*/
    background-color: #fff;
}
.dark-mode .top-menu nav {
    background-color: #000;
}

.top-menu .list-container {
    width: 100%;
    overflow: auto;
    border-bottom: 1px solid #ccc;
    scrollbar-width: none;
}
.dark-mode .top-menu .list-container {
    border-bottom: 1px solid #4c4c4c;
}

.top-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 5px 30px;
    background: #fff;
    white-space: nowrap;
    text-align: center;
}
.dark-mode .top-menu ul {
    background: #000;
}
.top-menu nav > ul {
    position: relative;
    border-bottom: 1px solid #ccc;
    text-align: center;
}
.top-menu ul.themes, .top-menu ul.sub-themes {

}
.top-menu li.active ul.themes, .top-menu li.active ul.sub-themes {
    display: block;
}
.top-menu ul li {
    display: inline-block;
}
.top-menu ul li a {
    padding: 8px 10px !important;
    background: #fff;
    border-radius: .25rem;
    display: inline-block;
    font-size: 16px;
    margin: 0 4px;
    transition: all ease .3s;
}
.dark-mode .top-menu ul li a {
    background: #131313;
    color: #fff;
}
.top-menu ul li a:hover {
    font-weight: normal !important;
    background: #eee;
    color: #000;
}
.top-menu ul.themes li a {
}
.top-menu nav a img {

}
.top-menu ul.themes li:last-child > a {
    border-bottom: 0;
}

.top-menu li.active > a {
    background: #eee;
    font-weight: normal;
}
.top-menu ul.themes li.active > a, .top-menu ul.sub-themes li.active > a {
    background: #eee;
    font-weight: normal;
}

.top-menu li.active.color-all > a {
    background: #57B8CF !important;
    color: #fff;
}

.top-menu li.active.color-bd > a,
.top-menu .color-bd li.active > a,
a.color-bd {
    background: rgb(161, 92, 204) none repeat scroll 0% 0% !important;
    color: #fff;
}
.top-menu .color-bd ul.themes li.active a {
    background: rgba(161, 92, 204, 0.5) none repeat scroll 0% 0% !important;
    color: #000;
}

.top-menu li.active.color-livres > a,
.top-menu .color-livres li.active > a,
a.color-livres {
    background: rgb(101, 109, 208) none repeat scroll 0% 0% !important;
    color: #fff;
}
.top-menu .color-livres ul.themes li.active > a, .top-menu .color-livres ul.sub-themes li.active > a {
    background: rgba(101, 109, 208, 0.5) none repeat scroll 0% 0% !important;
    color: #000;
}

.top-menu li.active.color-livres-audio > a,
.top-menu .color-livres-audio li.active > a,
a.color-livres-audio {
    background: rgb(10, 147, 180) none repeat scroll 0% 0% !important;
    color: #fff;
}
.top-menu .color-livres-audio ul.themes li.active > a {
    background: rgba(10, 147, 180, 0.5) none repeat scroll 0% 0% !important;
    color: #000;
}

.top-menu li.active.color-podcasts > a,
.top-menu .color-podcasts li.active > a,
a.color-podcasts {
    background: rgb(44, 61, 130) none repeat scroll 0% 0% !important;
    color: #fff;
}
.top-menu .color-podcasts ul.themes li.active > a {
    background: rgba(44, 61, 130, 0.5) none repeat scroll 0% 0% !important;
    color: #000;
}

.dark-mode .top-menu ul.themes li.active > a,
.dark-mode .top-menu ul.sub-themes li.active > a {
    color: #fff;
}

.top-menu a.nav-scroll {
    line-height: 51px;
    background: #fff;
    display: inline-block;
    text-align: center;
    width: 30px;
    opacity: 1;
}
.dark-mode .top-menu a.nav-scroll {
    background: #000;
}
.top-menu a.nav-scroll.previous {
    border-right: 1px solid #eee;
}
.top-menu a.nav-scroll.next {
    border-left: 1px solid #eee;
}
.dark-mode a.nav-scroll.previous, .dark-mode a.nav-scroll.next {
    border-color: #4c4c4c;
}
.top-menu a.nav-scroll:hover {
    color: #000;
}
.dark-mode .top-menu a.nav-scroll:hover {
    color: #fff;
}
.top-menu a.nav-scroll.disabled {
    opacity: 0.3;
}
.top-menu .nav-container {
    width: calc(100% - 60px);
    overflow: hidden;
}
.top-menu .bi-arrow-left-circle,
.top-menu .bi-search,
.top-menu .bi {
    font-size: 18px;
    line-height: 15px;
}


.breadcrumb-container {
    float: left;
    margin-bottom: 1rem;
    padding: 7px 0;

    display: none;
}
.breadcrumb {
    clear: both;
    margin-bottom: 0;
}

.section {
    padding: 20px 30px;
    border-bottom: 1px solid #ccc;
    background: #f3f3f1;
}

ul.themes {
    border-top: 0;
}
ul.themes li {

}
ul.themes li a {
    padding: 10px 15px 10px 73px;
    border-bottom: 0;
    color: #000;
    font-weight: 400;
}
ul.themes li:last-child > a {
    border-bottom: 1px solid #ccc;
}
ul.themes li a:hover {
    background-color: #f0f0f0;
    font-weight: 600;
}
ul.themes li.active > a, ul.sub-themes li.active > a {
    background-color: #f0f0f0;
    font-weight: 600;
}

ul.sub-themes {

}
ul.sub-themes a {
    padding-left: 93px !important;
}


.mobile-top-bar {
    display: none;
}
.mobile-close-menu {
    display: none;
}

/* list */

.grid-one-row {
    grid-auto-flow: column;
    grid-template-columns: repeat(999, 180px);
    grid-gap: 15px 25px;
    padding-top: 10px;
    overflow: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}
.grid-one-row::-webkit-scrollbar { /* WebKit */
    display: none;
}

.box-category-loader {
    position: relative;
    clear: both;
    /*
    background: #eee;
    border-radius: 1rem;
    height: 300px;
    margin-bottom: 1rem;

    display: none;
    */
}
.box-category-loader .element {
    border-radius: .25rem;
    background-color: #e4e4e4;

    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);

    background: linear-gradient(-45deg, #c7c7c7, #EFEFEF);
    background-size: 400% 400%;
    animation: loading-gradient 3s ease infinite;
    /* height: 100vh; */
}

@keyframes loading-gradient {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}


.box-category {
    position: relative;
    clear: both;
}

.title-category {
    /*border-top: 1px solid #EFEFEF;*/
    padding-top: 10px;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

.grid-container .box-category:first-child .title-category {
    border-top: 0;
    padding-top: 0;
}

.theme-head {
    float: right;
    height: 26px;
    line-height: 26px;
}

.theme-head a.btn-previous, .theme-head a.btn-next {
    position: absolute;
    z-index: 99;
    /*bottom: 130px;*/
    border-radius: .25rem;
    /*background: rgba(255,255,255,0.8);*/
    width: 24px;
    height: 90px;
    line-height: 90px;
    text-align: center;
    font-weight: bold;
    /*border: 1px solid #efefef;*/
    /*background: #efefef;*/
    transition: all ease .3s;
    display: none;

    bottom: 50%;
    margin-bottom: -45px;
}
.theme-head a i {
    font-size: 18px !important;
    font-weight: 900 !important;
}
/*.theme-head a i[class^="bi-"]::before, .theme-head a i[class*=" bi-"]::before {
    font-weight: 800 !important;
    font-size: 30px !important;
    color: red !important;
}*/
.theme-head a.btn-previous {
    left: -22px;
    /*border-radius: .25rem 0 0 .25rem;*/
}
.theme-head a.btn-next {
    right: -22px;
    /*border-radius: 0 .25rem .25rem 0;*/
}
.theme-head a.btn-previous:hover, .theme-head a.btn-next:hover {
    color: #000;
    /* background-color: #000; */
    /* border-color: #000; */
}

a.show-all {
    color: #0070c9;
    /* text-transform: uppercase; */
    /* font-size: 1.1rem; */
    position: relative;
    top: 2px;
    border: 1px solid #ddd;
    background: #ffffff;
    color: #000;
    padding: 5px 15px;
}

/* sorting */

.sorting {
    float: right;
}

/* detail */

.media-detail {
    display: flex;
}
.media-cover {
    position: relative;
    /* min-width: 320px; */
    /* max-width: 320px; */
    min-width: 50%;
    width: 50%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    overflow: auto;
    background-color: #f3f3f1;
    text-align: center;
    padding-top: 70px;
}
.media-cover a {
    position: relative;
    top: 0;
    transition: all 0.2s ease;
    display: inline-block;
    max-width: 600px;
    max-height: 700px;
    margin: auto auto 40px;
    width: auto;
}
.media-cover a:not(.btn-back):hover {
    top: -.5rem;
}
.media-cover img.cover {
    border-radius: .25rem;
    border: 1px solid rgba(0,0,0,.2);
    transition: all 0.2s ease;
    min-height: 160px;
    background-color: #f0f0f0;
    width: auto;
    /*min-width: 380px;*/
    max-width: 600px;
    max-height: 700px;
}
.media-cover a:hover img.cover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
}
.media-cover p {
    text-align: left;
    width: 85%;
    margin: auto;
    color: #555555;
}
.media-content {
    width: 50%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    /*max-width: 740px;*/
    padding: 60px 30px 20px;
    overflow: auto;
    /* border-right: 1px solid #f0f0f0; */
    /* margin-right: 10px; */
    background-color: #fff;
}
.media-title {
    font-weight: 800;
    font-size: 42px;
}
.media-authors {
    font-size: 16px;
    line-height: 19px;
}
.media-authors span {
    color: #666;
    display: inline-block;
    width: 60px;
}
.dark-mode .media-authors span {
    color: #777;
}
.media-content hr {
    border-top: 1px solid #000;
    opacity: 1;
    margin: 30px 0;
}
.media-summary h3 {
    font-size: 20px;
    font-weight: 800;
}
.media-summary p {
    margin: 20px 0;
}
h3.same-series {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 40px;
}

.media-info {
    /*
    min-width: 360px;
    max-width: 360px;
    padding-top: 70px;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    overflow: auto;
    */
}
.media-info ul {
    list-style: none;
    padding: 0;
    display: flex;
}
.media-info li {
    padding-bottom: 5px;
    /* margin-bottom: 10px; */
    /* border-bottom: 1px solid #000; */
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* width: 100%; */
    text-align: center;
    padding: 0 5px 5px;
    flex: 1 1 auto;
    border-right: 1px solid #ddd;
}
.dark-mode .media-info li {
    color: #777;
}
.media-info li:last-child {
    border: 0;
}
.media-info li > span {
    padding-left: 5px;
    padding-left: 0px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.media-info li > span > span {
    /* float: right; */
    /* width: 75%; */
    color: #000;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.media-detail .media img {
    min-height: 120px;
}

img.media-icon-type, .media img.media-icon-type {
    width: 26px;
    height: 22px;
    min-height: 22px !important;
    opacity: 0.5;
    /* float: right; */
    border: 0;
    padding: 0;
    margin: 0;
    background-color: #fff;
    box-shadow: none;
    position: relative;
    margin-top: -4px;
    border-left: 1px solid #CCCCCC;
    padding-left: 4px;
    margin-left: 5px;
    border-radius: 0;

    filter: invert(0%) sepia(10%) saturate(100%) hue-rotate(0deg) brightness(100%) contrast(90%);
    filter: invert(0%) sepia(10%) saturate(100%) hue-rotate(0deg) brightness(100%) contrast(100%);
}
.grid-detail img.media-icon-type, .grid-detail .media img.media-icon-type {
    filter: none;
}
button.button:focus img.media-icon-type,
.media button.button:focus img.media-icon-type, .media-content:focus img.media-icon-type {
    filter: invert(0%) sepia(10%) saturate(100%) hue-rotate(0deg) brightness(100%) contrast(75%);
}

img.media-icon-type.bd {

}
img.media-icon-type.livres {

}
img.media-icon-type.livres-audio {
    height: 20px;
    min-height: 20px !important;
}
img.media-icon-type.podcasts {
    height: 15px;
    min-height: 15px !important;
    opacity: 0.4;
    margin-top: 0px;
    top: -2px;
}

.media-rating {
    /*display: inline-block;
    line-height: 42px;*/
    display: block;
}

.media-content .btn-back .bi {
    font-size: 32px;
    line-height: 60px;
}

.grid-container.grid-detail {
    padding: 20px 0;
    background: #fff;
}
.media-content:focus .grid-container.grid-detail {
    background: #DADADA;
}
.grid-container.grid-with-paging {
    padding: 20px 30px 60px;
}
.grid-detail .grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    grid-gap: 15px 20px
}

.store {
    display: grid;
    grid-template-columns: 45% 55%;
    grid-gap: 0px;
    width: 85%;
    margin: auto;
    margin-top: 20px;
}
.store img {
    /* width: 100%; */
    height: 41px;
}

/* bootstrap override */

.input-group {

}
/*
.input-group-text {
    color: #212529;
    background-color: #fff;
    border: 1px solid #4e545a;
    border-radius: 1.5rem;
}

.form-control {
    color: #4e545a;
    border: 1px solid #ced4da;
    border-radius: 1.5rem;
}
.form-control:focus {
    color: #212529 !important;
    background-color: #fff !important;
    border-color: #4e545a;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(0,0,0,.25);
}

.form-select {
    color: #4e545a;
    border: 1px solid #ced4da;
    border-radius: 1.5rem;
}
.form-select:focus {
    color: #212529 !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right .75rem center !important;
    background-size: 16px 12px !important;
    border-color: #4e545a;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(0,0,0,.25);
}
*/

.form-control-error {
    color: #dc3545;
}

.form-check {
    position: relative;
}
.form-check input {
    visibility: hidden;
}
.form-check label::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid #CCC;
    top: 4px;
    left: 0px;
    background: white;
    border-radius: 3px;
    line-height: 10px;
    font-size: 16px;
    text-align: center;
    font-family: bootstrap-icons !important;
    text-indent: -3px;
    transition: ease all .3s;
}
.form-check:hover label::before {
    border-color: #999;
}
.form-check.checked label::before {
    /*content: "✔";*/
    content: "\f26e";
    color: #fff;
    background-color: #0087FF;
    border-color: #0087FF;
}


.btn {
    border-radius: 17px;
}
.btn.selected {
    background-color: #212529;
    color: #ffffff;
}

.btn-group-lg > .btn, .btn-lg {
    border-radius: 30px;
}
.btn-group-lg > .btn.btn-read i, .btn-lg.btn-read i {
    border-radius: 30px;
    font-size: 1.25rem;
    position: relative;
    top: -1px;
    left: 2px;
}
.btn-group-lg > .btn i, .btn-lg i::before {
    transform: scale(1.6);
}

.btn-group-lg > .btn.btn-favorite i, .btn-lg.btn-favorite i {
    /*margin-left: 5px;*/
    margin-left: 0;
}
.btn-favorite {
    /* margin-right: 10px; */
}
.media.reading .btn-favorite {
    bottom: 146px;
}
.btn-favorite.active i {
    color: #ff1736;
}

.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    margin-left: -1px;
    border-top-right-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
    border-color: #4e545a;
    border-left-width: 0;
}
.form-select:focus {
    box-shadow: 0 0 0 .25rem rgba(0,0,0,.25);
}

.reader, .media-dialog {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    text-align: center;
    z-index: 1000;
    background: white;
    overflow: hidden;
}
.reader {
    left: 100%;
    opacity: 0;
    transition: ease all .3s;
}
.reader.show {
    left: 0;
    opacity: 1;
}
.reader-toolbar {
    position: absolute;
    top: 10px;
    left: 7px;
    width: auto;
    height: auto;
    background: transparent;
}
.reader-toolbar > a, .reader-toolbar > button {
    font-size: 16px;
    /* line-height: 16px; */
    background: #efefef;
    border: 0px solid #ccc;
    color: #000;
    font-size: 0;
    width: 31.5px;
    /* text-align: center; */
    border-radius: 5px;
}
.reader-toolbar > a .bi-x::before, .reader-toolbar > button .bi-x::before {
    scale: 1.5;
    margin-left: -1.5px;
}
.reader iframe {
    margin-top: 0;
    width: 100%;
    /*height: calc(100% - 40px);*/
    height: 100%;
}

.media-dialog {
    /*background-color: transparent;*/
    box-shadow: 0 0px 600px 600px rgba(0,0,0,0.6);
    background-color:  rgba(0,0,0,0.6);

    transform: scale(0.7);
    opacity: 0;
    transition: ease all .3s;
}
.media-dialog.show {
    transform: scale(1);
    opacity: 1;
}
.media-dialog-toolbar {
    z-index: 10;
    opacity: 0.7;
    display: none;
}
.media-dialog-content {
    /*padding: 70px;*/
    background: rgba(0,0,0,0);
    height: calc(var(--vh, 1vh) * 100);
    overflow: auto;
    overflow: hidden;
}
.media-dialog-content .content-inner {
    /*border-radius: 15px;*/
    /*box-shadow: 0 0px 600px 600px rgba(0,0,0,0.6);*/
    /*height: auto;*/
}
.media-dialog-content .media-cover {
    /* height: calc(var(--vh, 1vh) * 100 - 140px); */
    /*height: auto;*/
}
.media-dialog-content .media-content {
    /* height: calc(var(--vh, 1vh) * 100 - 140px); */
    /*height: auto;*/
    text-align: left;
}

.media span.reading-progress {
    color: #808080;
    font-size: 14px;
    line-height: 18px;
    text-overflow: unset;
    white-space: normal;
    /* border: 1px solid #ddd; */
    border-radius: .25rem;
    padding: 5px 0px;
    /* background: #f4f4f4; */
    margin: 1rem 0 -.5rem;
    /* display: none; */
}

.reading-progress-bar-container {
    display: flex;
}
.reading-progress-bar-container > div {

}
.reading-progress-bar-container div:first-child {
    width: 100%;
}
.reading-progress-bar {
    border-top: 1px solid #dddddd;
    margin-top: 10px;
    position: relative;
}
.reading-progress-bar-read {
    border-top: 1px solid #63c8da;
    margin-top: -1px;
}
.reading-progress-bar-progress {
    position: absolute;
    width: 2px;
    height: 11px;
    border: 1px solid #63c8da;
    border-radius: 20%;
    top: -6px;
    margin-left: 0px;
    background: #63c8da;
}
.reading-progress-bar-percent {
    /* border: 1px solid #aaaaaa; */
    padding: 1px 0 1px 5px;
    /* border-radius: 0 .25rem .25rem 0; */
    font-size: 11px;
    color: #808080;
}

/*
#top-search {
    position: absolute;
    background: rgba(255,255,255,0.98);
    margin: auto;
    width: 100%;
    opacity: 0;
    top: 81px;
    left: 0;
    padding: 20px 20px 15px;
    z-index: 999;
    border-bottom: 1px solid #ccc;
    transition: all ease 0.3s;
    box-shadow: 0 20px 20px rgba(0,0,0,0.3);
}
#top-search .search {
    width: 300px;
    margin: auto;
}
*/

#top-search {
    position: absolute;
    margin: auto;
    width: 100%;
    opacity: 0;
    top: 81px;
    left: 0;
    z-index: 100;
    transition: all ease 0.3s;
}
#top-search .search {
    width: 431px;
    margin: auto;
    background: #fff;
    padding: 20px 20px 15px;
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 30px 40px rgba(0,0,0,0.1);
    border: 1px solid #ccc;
    border-top: 0;
}

#top-search.visible {
    opacity: 1;
    top: 51px;
}

.btn-tag {
    display: inline-block;

    background-color: #fff;
    border: 3px solid white;
    transition: all 0.2s;

    border-radius: .25rem;
    font-size: 16px;
    line-height: 18px;
    padding: 5px 40px !important;
    margin: 0 15px 15px 0;
}
.btn-tag:hover {
    background-color: #eee;
}

.progress {
    display: block;
    width: 40px;
    height: auto;
    border: 1px solid #8c8c8c;
    border-radius: 5px;
    overflow: hidden;
    margin: auto;
    background-color: #ddd;
}
.progress-bar {
    height: 3px;
    background-color: #fff;
    width: 0%;
}
.btn-scroll-top {
    position: absolute;
    top: 5px;
    right: 25px;
    color: #000 !important;
    background: none !important;
}
.btn-scroll-top i {
    font-size: 24px;
}

.searchFilter-select {
    display: none;
}
.searchFilter-buttons {
    display: flex;
    margin: 0 -5px;
}

.filter-secondary-category {
    float: none;
    max-width: none;
}
.filter-secondary-category-buttons {
    display: block;
}
.filter-secondary-category-select {
    display: none;
}

.form-select {
    text-overflow: ellipsis;
}

body.menu-hidden .top-menu,
body.menu-hidden .mobile-top-bar
{
    display: none;
}

.media-cover .btn-back {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 16px;
    background: #fff;
    border: 1px solid #ccc;
}


/* MOBILE APP V4 */

.mobile-app-v4  .mobile-top-bar {
    border-bottom: 0;
}
.mobile-app-v4 .mobile-app-v4-hide {
    display: none;
}
.mobile-app-v4-show {
    display: none;
}
.mobile-app-v4 .mobile-app-v4-show {
    display: block;
}

span.top-bar-title {
    font-weight: 600;
    font-size: 18px;
    display: block;
    text-align: center;
    line-height: 38px;
}
.mobile-app-v4 .mobile-app-v4-show:not(.font-black) span.top-bar-title {
    color: #fff;
    white-space: nowrap;
}
.mobile-app-v4 .mobile-top-bar .btn-back {
    position: absolute;
    top: 8px;
    left: 20px;
    background: url('../img/icons/arrow-back.svg') center left no-repeat;
    width: 36px;
    background-size: 60%;
    margin: 0;
    float: none;
}
.mobile-app-v4 .mobile-top-bar .btn-back i::before {
    display: none;
}

.mobile-app-v4 span.top-bar-title {
    margin-top: 40px;
    font-size: 24px;
    width: 0;

    transition: all ease .3s;
}
.mobile-app-v4 span.top-bar-title.reduced {
    text-align: center;
    margin-top: 0;
    font-size: 18px;
    width: 100%;
}

.mobile-app-v4 .grid-container:not(.grid-detail) {
    padding-top: 120px;

    transition: all ease .3s;
}
.mobile-app-v4 .grid-container.reduced {
    padding-top: 80px;
}

.shortcut-container {
    background: #fff;
    margin: 0 -20px;
    padding: 20px 10px;
    padding-bottom: 0;
}
.shortcut-btn {
    background-color: #fff;
    display: block;
    padding: 25px 10px;
    margin-bottom: 20px;
    border-radius: .25rem;
    font-size: 18px;
}
.shortcut-btn img {
    width: 36px;
    transition: all 0.2s ease;
    float: right;
    margin-top: -5px;
}
.shortcut-btn-center {
    text-align: center;
    height: calc(100% - 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 20px;
    padding: 0 15px;
    min-height: 72px;
    font-size: 16px;
}

.mobile-app-v4 .content {
    border-left: 0;
}

.mobile-app-v4 .side-menu {
    display: none;
}

/* darkMode */

.dark-mode {

}

body.dark-mode {
    background-color: #101010;
    color: #fff;
}

.dark-mode a {
    color: #fff;
}

.dark-mode .mobile-top-bar {
    background-color: #101010;
    background-color: rgba(15, 15, 15, 0.97);
}

.mobile-app-v4.dark-mode .mobile-top-bar .btn-back,
.mobile-app-v4 .mobile-top-bar .mobile-app-v4-show:not(.font-black) .btn-back
{
    background-color: white;
    -webkit-mask-image: url('../img/icons/arrow-back.svg');
    mask-image: url('../img/icons/arrow-back.svg');
    background-size: 0%;
    -webkit-mask-size: 60%;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center left;
    mask-size: 60%;
    mask-repeat: no-repeat;
    mask-position: center left;
}

.dark-mode .shortcut-container {
    background: #101010;
}

.dark-mode .grid-container {
    background-color: #202020;
}

.dark-mode .title-category {
    color: #fff;
}

.dark-mode .media img {
    /*border: 1px solid rgba(0,0,0,1);*/
    background-color: #101010;
}

.dark-mode .media-cover {
    background-color: #202020;
}

.dark-mode .media-content {
    background-color: #101010;
}

.dark-mode .media-cover img.cover {
    border: 1px solid rgba(0,0,0,1);
}

.dark-mode .media-info li > span > span {
    color: #fff;
}

.dark-mode .grid-container.grid-detail {
    background: #101010;
}

.dark-mode .media-content hr {
    border-top: 1px solid #2f2f2f;
}

.dark-mode .box-category-loader .element {
    background-color: #101010;
    background: linear-gradient(-45deg, #404040, #101010);
    animation: loading-gradient 3s ease infinite;
}

.dark-mode .theme-head a.btn-previous, .dark-mode .theme-head a.btn-next {
    /*border: 1px solid #202020;*/
    /*background: #202020;*/
}

.dark-mode .theme-head a.btn-previous {
    left: -22px;
}
.dark-mode .theme-head a.btn-next {
    right: -22px;
}

.dark-mode .theme-head a.btn-previous:hover, .dark-mode .theme-head a.btn-next:hover {
    color: #fff;
    /* background-color: #000; */
    /* border-color: #000; */
}

.dark-mode .paging {
    color: #EFEFEF;
    background-color: #101010;
    background-color: rgba(15,15,15,0.90);
}

.dark-mode .paging span {
    color: #FFFFFF;
}

.dark-mode .progress {
    border: 1px solid #7c7c7c;
    background-color: #4d4d4d;
}

.dark-mode .progress-bar {
    background-color: #000;
}

.dark-mode .media-cover .btn-back {
    background: #101010;
    border: 1px solid #4c4c4c;
    color: #ccc;
}

.dark-mode img.media-icon-type, .dark-mode .media img.media-icon-type {
    opacity: 0.6;
}

.dark-mode .reading-progress-bar {
    border-top: 1px solid #4d4d4d;
}

.dark-mode .reading-progress-bar-progress {
    width: 2px;
    border-radius: 20%;
    top: -6px;
    margin-left: 0px;
}

.dark-mode .input-group-text {
    color: #fff;
    background-color: #101010;
    border: 1px solid #404040;
}

.dark-mode .form-select {
    color: #FFFFFF;
    background-color: #101010;
    border: 1px solid #404040 !important;
}

.dark-mode .btn-scroll-top i {
    color: #afafaf;
}