/** this reset all bootstrap css */
.reset {
    all: revert;
}

:root {
    --bs-border-width: 2px;
} 

html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    overflow: auto;
}


.loadingoverlay{
    justify-content: center !important;
    background-color: var(--bs-tertiary-color) !important;
}

#loginForm .username *{
    display:none;
}

/** bootstrap modal css starts **/
.modal-header, .modal-footer {
    background-color: var(--bs-secondary-bg-subtle) !important;
    color: var(--bs-secondary-text-emphasis) !important;
}
.modal-header .btn-close {
    color: var(--bs-secondary-text-emphasis) !important;
}
/** bootstrap modal css ends **/




/* When the theme is dark, change btn-outline-dark to appear like btn-outline-light */
[data-bs-theme="dark"] .btn-outline-dark {
    border-color: var(--bs-light-border-subtle); /* Use Bootstrap's light color */
    color: var(--bs-light); /* Use Bootstrap's light text color */
}

[data-bs-theme="dark"] .btn-outline-dark:hover {
    background-color: rgba(var(--bs-light-rgb)); /* Light background on hover */
    border-color: var(--bs-light-border-subtle); /* Keep light border on hover */
    color: var(--bs-dark); /* Keep text light on hover */
}

[data-bs-theme="dark"] .btn-dark {
    background-color: rgba(var(--bs-light-rgb)); /* Light background on hover */
    border-color: var(--bs-light-rgb); /* Keep light border on hover */
    color: var(--bs-dark);
}

[data-bs-theme="dark"] .btn-dark:hover {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-bg);
}


.bootstrap-tagsinput {
    background-color: var(--bs-body-bg);
    border: var(--bs-border-width) solid var(--bs-border-color);
    box-shadow: unset;
    padding: .375rem .75rem;
}   


.modal,
.pixieOverlay,
.customModal {
    backdrop-filter: blur(2px) brightness(50%);
}


.form-text {
    font-size: smaller;
}

.pulse {
    box-shadow: 0 0 0 0 currentColor;
    transform: scale(1);
    animation: pulse-black 2s infinite;
}

.pulse-circle {
    background: currentColor;
    border-radius: 50%;
    height: var(--bs-body-font-size);
    width: var(--bs-body-font-size);
}

@keyframes pulse-black {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 inherit;
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}



:focus:not([data-focusvisible-polyfill]) {
    outline: none;
}

/* .btn {
    padding: 0.3rem 0.75em 0.3rem;
    font-size: 0.75rem !important;
    letter-spacing: 0.02rem;
    text-transform: uppercase;
    border-radius: 0.2rem;
    outline: none;
    -webkit-transition: 0.15s linear;
    transition: 0.15s linear;
} */

.fav_pub>i {
    color: var(--bs-gray-100);
}

.fav_pub>i.active {
    color: var(--bs-red);
}

.fav_pub:hover i {
    color: var(--bs-red);
}

.btn,
.btn:focus {
    outline: 0;
    box-shadow: 0 0 0;
}

/* ::-webkit-scrollbar:vertical {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar:horizontal {
    height: 0;
    display: none;
}

::-webkit-scrollbar-thumb {
    background-color: var(--bs-gray-600);
} */


/** masonry-grid starts*/

.grid-item{
    height:180px;
}

.grid-item .background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    z-index: 0; /* Keep the blur in the background */
}

.grid-item .img {
    position: relative; /* Position relative to the parent .grid-item */
    z-index: 1; /* Ensure the image is above the blurred background */
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.5s ease;
}
  
/* On hover of the parent container */
.grid-item:hover .img {
    object-fit: contain; /* This ensures the entire image is visible without cropping */
    transform: scale(1.1);
}

.grid-item-overlay-tags{
    background: linear-gradient(rgba(25, 27, 38, .65) 0%,rgba(25, 27, 38, 0) 100%);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
    width: 100%;

    flex-wrap: wrap;
    align-items: center;
    column-gap: 8px;
    display: flex;
}

.grid-item-overlay-tags span.tag {
    color: rgba(255, 255, 255, .8);
    pointer-events: auto;
    text-decoration: none;
    cursor: pointer;
}
.grid-item-overlay-tags span.tag:hover {
    color: #fff;
}

.grid-item-overlay-controls {
    cursor: pointer;
    pointer-events: none;
    background: linear-gradient(rgba(25, 27, 38, 0) 0%,  rgba(25, 27, 38, .65)100%);
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    width: 100%;
    display: flex;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
}


.grid-item-overlay {
    background: linear-gradient(0, rgba(44, 43, 68, 0), rgba(44, 43, 68, .75), rgba(44, 43, 68, .85));
    border-radius: 4px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
    left: 0;
    /* opacity: 0; */
    position: absolute;
    top: 0;
    transition: opacity .6s ease-out;
    width: 100%;
    z-index: 1001;
}

/** masonry-grid  ends*/

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    margin-top: -1px;
    overflow-x: auto;
    color: rgba(255, 255, 255, .75);
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

@media (pointer:none),
(pointer:coarse) {
    /* .nav-scroller .nav {
        padding-bottom: 1rem;
    } */
}

/* @media all and (orientation: landscape) {
    // css only for mobile landscape
} */

/* @media (pointer:none), (pointer:coarse) {
	// css only for mobile version
} */

.btn-group-xs>.btn,
.btn-xs {
    padding: .35rem .45rem;
    font-size: .75rem;
    line-height: .5;
    border-radius: .2rem;
}

.hr-text {
    line-height: 1em;
    position: relative;
    outline: 0;
    border: 0;
    color: rgba(var(--bs-body-color-rgb));
    text-align: center;
    height: 1.5em !important;
    opacity: .5;
    background-color: transparent;
}

.hr-text:before {
    content: '';
    background: linear-gradient(to right, transparent, var(--bs-secondary-color), transparent);
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
}

.hr-text:after {
    content: attr(data-content);
    position: relative;
    display: inline-block;
    padding: 0 .5em;
    line-height: 1.5em;
    color: rgba(var(--bs-body-color-rgb));
    /* background-color: #fcfcfa;  */
    background-color:rgb(var(--bs-body-bg-rgb));
}

.nav-tabs .nav-link.active {
    color: #636b6f;
    background-color: transparent !important;
    border-radius: 0 !important;
    border-color: transparent !important;
    border-bottom: 2px solid #636b6f !important;
}

.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:hover {
    text-decoration: none;
    border-color: transparent !important;
    border-bottom: 2px solid #636b6f !important;
    isolation: isolate;
}




.customModal {
    --bs-modal-zindex: 1055;
    --bs-modal-width: 500px;
    --bs-modal-padding: 1rem;
    --bs-modal-margin: 0.5rem;
    --bs-modal-color: ;
    --bs-modal-bg: var(--bs-body-bg);
    --bs-modal-border-color: var(--bs-border-color-translucent);
    --bs-modal-border-width: var(--bs-border-width);
    --bs-modal-border-radius: var(--bs-border-radius-lg);
    --bs-modal-box-shadow: var(--bs-box-shadow-sm);
    --bs-modal-inner-border-radius: calc(var(--bs-border-radius-lg) -(var(--bs-border-width)));
    --bs-modal-header-padding-x: 1rem;
    --bs-modal-header-padding-y: 1rem;
    --bs-modal-header-padding: 1rem 1rem;
    --bs-modal-header-border-color: var(--bs-border-color);
    --bs-modal-header-border-width: var(--bs-border-width);
    --bs-modal-title-line-height: 1.5;
    --bs-modal-footer-gap: 0.5rem;
    --bs-modal-footer-bg: ;
    --bs-modal-footer-border-color: var(--bs-border-color);
    --bs-modal-footer-border-width: var(--bs-border-width);
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--bs-modal-zindex);
    background: rgba(0, 0, 0, 0.5);
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}


.customModal .online_library_search .example span {
    cursor: pointer;
}



/* body {
    background: #f5f8fa;
    background: -webkit-linear-gradient(to bottom, #f5f8fa, #ffffff);
    background: linear-gradient(to bottom, #f5f8fa, #ffffff);
    background-repeat: no-repeat;
    background-size: cover;
} */


.truncate {

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/***************** side bar starts  **********/
#sidebar {
    width: 45vh;
    position: fixed;
    top: 0;
    left: -46vh;
    height: 100vh;
    z-index: 1002;
    background-color: #3097d1;
    transition: all 0.3s;
    overflow-y: scroll;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2);
    max-width: 320px;
}

#sidebar.active {
    left: 0vh;
}

@media (min-width: 768px) {
    #sidebar {
        width: 30vw;
        left: -30vw;
    }

    #sidebar.active {
        left: 0vw;
    }

}


#dismiss {
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    color: #636b6f;
    background-color: #ffffff;
    border: 1px solid #636b6f;

}

/*  #dismiss:hover { background: #fff; color: #7386D5; } */

.overlayS {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    transition: all 0.2s ease-in-out;
    top: 0;
    left: 0;
    cursor: pointer;
}

.overlayS.active {
    display: block;
    opacity: 1;
}


#sidebar .sidebar-header {
    /* padding: 20px; */
    background: #2579a9;
    color: #ffffff;
    float: none;
    border: 1px solid transparent;

}

#sidebar .h3,
#sidebar h3 {
    font-size: 1.75rem;
    margin-top: 0px;
}

#sidebar ul ul a {
    padding-left: 38px !important;
}

#sidebar p {
    margin: 12px 0px;
    padding: 0px 8px;
}

#sidebar ul li a {
    padding: 10px;
    display: block;
    text-decoration: none;
    color: #ffffff;
}

#sidebar ul li a:hover {
    background-color: #2579a9;
}

#sidebar ul li.active>a,
#sidebar a[aria-expanded="true"] {
    background-color: #2579a9;
}

#sidebar a[data-toggle="collapse"] {
    position: relative;
}

#sidebar ul li a .fa-caret-left {
    transition-duration: 0.5s;
}

#sidebar ul li a[aria-expanded="true"] .fa-caret-left {
    transform: rotate(-90deg);
}

/***************** side bar ends  **********/


.animated-background {
    background: transparent;
    line-height: 0;
    min-height: 70px;
    visibility: hidden;
}

.animated-background:before {
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: placeHolderShimmer;
    animation-timing-function: linear;
    background: #f6f7f8;
    background: linear-gradient(to right, #eee 8%, #ddd 18%, #eee 33%);
    background-size: 800px 104px;
    content: " ";
    display: block;
    height: 70px;
    position: absolute;
    visibility: visible;
    width: calc(100% - 20px);
}

@media (min-width: 767px) {

    .animated-background:before {
        height: 170px;
        width: calc(100%);
    }
}

/***************** photo editor  **********/

.remove_scroll {
    overflow-y: hidden !important;
}

.s_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
}

.editorScreen__zoom {
    opacity: .7;
    display: table;
    margin: auto;
    width: auto;
    height: 100%;
    table-layout: fixed;
}

.topBar__button,
.topBar__button:hover,
.topBar__button:visited {
    border-radius: 4px;
    position: relative;
    display: inline-block;
    margin: 0 5px;
    height: 30px;
    padding: 0 6px 0 9px;
    background: #1b1b1b;
    cursor: pointer;
    color: #ffffff !important;
    line-height: 30px;
    text-decoration: none !important;

}

.bgBlue {
    background: #3078ff !important;
}

.editorScreen__zoom__button {
    opacity: .5;
    display: table-cell;
    cursor: pointer;
    vertical-align: middle;
    padding: 0 7px;
    color: #ffffff;
}

.editorScreen__zoom__label {
    display: table-cell;
    vertical-align: middle;
    color: #ffffff;
}

.controls__list__item {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    padding: 0 5px;
}

.controls__list__separator {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 0 5px;
    width: 1px;
    height: 48px;
    background: #464646;
    padding-left: 0px !important;
    padding-right: 0px !important;
}


.controls__button {
    border-radius: 1px;
    display: inline-block;
    width: 64px;
    /* height: 48px; */
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* padding: 5px; */
    min-height: 48px;
}


.controls__button.active {
    background: #3078ff;
}

.controls__button__label {
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
    opacity: .8;
    /* font-weight: 400;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 110%; */
    font-size: 11px;
    color: #fff;
    /* height: 12px; */
    /* background: #2b2b2b; */
    /* line-height: 0 !important; */
    margin: 5px 0;
}

.controls__button__canvas,
.controls__button__icon {
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
    opacity: .8;
    width: 100%;
    /* font-size: 24px; */
    font-size: 16px !important;
    font-weight: lighter;
}

.controls__button * {
    line-height: 1;
    /* line-height: 0; */
}


.controls_slider {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    /* height: 72px; */
    padding: 2px 0;
    white-space: nowrap;
    margin: 0;
    color: #fff;
}


.s-image-editor {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.s_editor_footer .mCSB_scrollTools_horizontal {
    bottom: -12px !important;
}

.canvas-container {
    /*
    top: 50%;
    transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -webkit-transform: translateY(-50%); */
    margin: auto;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.control_overlay_slider {
    position: absolute;
    z-index: 3;
    bottom: 99%;
    left: 0;
    overflow: hidden;
    width: 100%;
    height: 58px;
    /* padding: 15px 0 10px; */
    background: rgba(43, 43, 43, .7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.slider_container {
    margin: auto;
    width: 95%;
}

.control_overlay_slider .slider_container {
    max-width: 280px;
}

.translateY_30 {
    -webkit-transform: translateY(30%);
    transform: translateY(30%);
}

.translateY_40 {
    -webkit-transform: translateY(40%);
    transform: translateY(40%);
}

.translateY_50 {
    -webkit-transform: translateY(50%);
    transform: translateY(50%);
}

.translateY_60 {
    -webkit-transform: translateY(60%);
    transform: translateY(60%);
}

.slider_labels {
    display: table;
    table-layout: fixed;
    width: 100%;
    font-size: 9px;
    color: #ffffff;
    margin-top: 5px;
}

.slider_label_low,
.slider_label_high {
    width: 15%;
    display: table-cell;
}

.slider_label_current {
    display: table-cell;
}

.rainbow_background {
    background: linear-gradient(90deg, #ff00d9, #ff00ae, #ff0084, #ff0059, #ff002b, red, #ff2b00, #ff5900, #ff8400, #ffae00, #ffd900, #f6ff00, #cf0, #a1ff00, #73ff00, #48ff00, #1eff00, #00ff0d, #00ff3c, #0f6, #00ff91, #00ffbf, #00ffea, #00eaff, #00bfff, #0091ff, #06f, #003bff, #000dff, #1e00ff, #4800ff, #7300ff, #a200ff, #c0f, #f600ff, #ff00d9);
}

.color_active {
    background: #1b1b1b;
}

.transparent_bg {
    background-image:
        /* tint image */
        linear-gradient(to right, rgba(192, 192, 192, 0.75), rgba(192, 192, 192, 0.75)),
        /* checkered effect */
        linear-gradient(to right, black 50%, white 50%),
        linear-gradient(to bottom, black 50%, white 50%);
    background-blend-mode: normal, difference, normal;
    background-size: 1em 1em;
}


.control_overlay_slider .slider_container {
    -webkit-transform: translateY(5%);
    transform: translateY(5%);
}

.controls__button__label {
    position: absolute;
    bottom: 0%;
    text-shadow: 2px 2px 4px #2b2b2b;

}


.noSvg .controls__button__label {
    position: relative;
    top: 0;
    left: 0;
}

/* input[type=range]{
    height:4px;
} */
#hue,
#tint,
#multiply {
    outline: 0;
    /* background: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet); */
    background: linear-gradient(to right, hsl(0, 100%, 88%) 0%, hsl(30, 100%, 88%) 8.37%, hsl(60, 100%, 88%) 16.6%, hsl(90, 100%, 88%) 25%, hsl(120, 100%, 88%) 33.3%, hsl(150, 100%, 88%) 41.6%, hsl(180, 100%, 88%) 50%, hsl(210, 100%, 88%) 58.3%, hsl(240, 100%, 88%) 66.6%, hsl(270, 100%, 88%) 75%, hsl(300, 100%, 88%) 83.3%, hsl(330, 100%, 88%) 91.6%, hsl(360, 100%, 88%) 100%);
}

/***************** photo editor  **********/


/***********  gallery starts ***************/
/* .galleryBox {
    margin: 10px 0;
    transition: all 0.5s ease 0s;

}

.galleryGrid img,
.galleryTable img {
    object-fit: contain;
    width: 100%;
    height: 100%;
} */

.square {
    position: relative;
    width: 100%;
    float: left;
}

.square:before {
    content: "";
    display: block;
    margin-top: 100%;
}

.squareContent {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/*
.galleryBox .item-action {
    top: -25px;
    position: absolute;
    display: flex;
    width: 100%;
    justify-content: flex-end;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0, rgba(0, 0, 0, 0) 100%);
    color: #ffffff;
    font-size: 12px;
    transition: .25s;
    padding-right: 5px;
}

.galleryBox:hover .item-action {
    top: 0px;
    padding-top: 5px;
}

.galleryBox .item-name {
    bottom: -30px;
    position: absolute;
    display: flex;
    width: 100%;
    justify-content: left;
    align-items: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0, rgba(0, 0, 0, 0) 100%);
    color: #ffffff;
    font-size: 12px;
    transition: .25s;
    padding-left: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 1px 1px 5px white;
}

.galleryBox:hover .item-name {
    bottom: 0px;
    padding-bottom: 5px;
    padding-top: 5px;
}

.table {
    display: table;
    width: 100%;
    height: 100%;
}

.table-cell {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
} */

/***********  gallery ends ***************/


.select_template {
    opacity: 0;
    z-index: -1;
}
.template_image_view:hover div.select_template {
    opacity: 1;
    z-index: 1;
}
/* .select_template button {
    transform: translate3d(0, -10px, 0);
    transition: transform .4s ease-out, opacity .3s ease-out;
}
.template_image_view:hover .select_template button {
    transform: translateZ(0);
} */

/* table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control,
table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control {
    padding-left: 40px !important;
} */

td.details-control {
    border-right: 0px solid #fff !important;
}

th.details-control {
    border-right: 0px solid #fff !important;
    align-items: center;

}