﻿/* Works on Chrome/Edge/Safari */
*::-webkit-scrollbar {
    width: 4px;
}

*::-webkit-scrollbar-track {
    background: var(--body-lightest);
}

*::-webkit-scrollbar-thumb {
    background-color: var(--body-lighter);
    border-radius: 20px;
}

*[draggable] {
    cursor: move !important;
}

#app {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

    #app[data-theme=dark] {
        background-color: var(--dark);
        color: white;
    }

menu {
    margin: 0;
}

header,
footer {
    flex: none;
}

footer {
    background-color: var(--dark);
    color: white;
}

header {
    background-color: var(--light);
    color: white;
    transition: all 0.3s ease-in-out;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.sticky-header {
    box-shadow: 0 3px 5px rgba(0,0,0,.2);
}

/* progress bar styles */
@keyframes slideSideToSide {
    0% {
        left: 0;
        width: 40px;
    }

    25% {
        width: 60px;
    }

    50% {
        left: calc(100% - 44px);
        width: 40px;
    }

    75% {
        width: 60px;
    }

    100% {
        left: 0;
        width: 40px;
    }
}

.progress {
    width: 200px;
    margin: auto;
    margin-top: 1rem;
    height: 11px;
    background-color: var(--light);
}

    .progress[data-indefinite] {
        position: relative;
    }

    .progress .progress-bar {
        width: var(--blazor-load-percentage);
        background-color: var(--primary);
    }

    .progress[data-indefinite] .progress-bar {
        width: 40px;
        height: 6px;
        position: absolute;
        animation: slideSideToSide 2s infinite ease-in-out;
    }

.loading-text {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.too-long {
    display: none;
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: auto;
}

.svg-logo {
    height: 40px;
}

.adhoc-project {
    width: 100%;
}

@media (min-width: 768px) {
    .svg-logo {
        height: 80px;
    }

    .adhoc-project {
        width: 500px;
    }
}

.badge {
    color: #fff;
}

.page {
    position: relative;
}

.main {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    height: 100%;
}

.content {
    flex: 1 0 auto;
}

.footer {
    display: block;
}

.footer-links {
    padding: 0.5em;
}

h3.footer-link-item {
    font-size: 0.8rem;
}

li.footer-link-item {
    font-size: 0.7rem;
}

a.footer-link {
    color: white;
}

a.footer-link[disabled] {
    cursor: default;
}
    a.footer-link[disabled]:hover {
        text-decoration: none;
    }

.footer-link-group {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 800px) {
    .footer-link-group {
        flex-basis: 33%;
    }
}

.footer-link-list {
    list-style-type: none;
    list-style-position: outside;
    margin: 0;
    padding: 0;
}

.footer-link-item {

}

.footer-link {

}

.nav-item {
    cursor: pointer;
}

.nav-mr-auto {
    margin-right: auto !important;
}

.navigation-list {
    list-style-type: none;
    list-style-position: outside;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: left;
    position: relative;
}

a.navigation-list {
    color: unset;
}

.navigation-submenu {
    visibility: hidden;
    opacity: 0;
    margin-left: 50%;
    margin-right: 50%;
    margin-top: 0.5em;
    z-index: 100;
    position: absolute;
    background-color: #fff;
    width: 0;
    left: 0;
    overflow-y: auto;
    padding: 1em;
    transition-delay: 0.3s;
    transition-property: width, margin, opacity, visibility;
    transition-duration: 0.4s;
    transition-timing-function: ease-in-out;
}

.navigation-list-item:hover .navigation-submenu {
    visibility: visible;
    opacity: 1;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

.navigation-submenu-list {
    list-style-type: none;
    list-style-position: outside;
    display: flex;
    flex-direction: row;
    justify-content: left;
    margin: 0;
    padding: 0;
}

.navigation-submenu-list-item {
    width: 15%;
}

.bg-navigation {
    border-top: 1px solid black;
    background-color: #e5e5e5;
}

.navigation-submenu-header {
    color: var(--dark);
}

.bg-navigation {
    border-top: 1px solid black;
    background-color: #efefef;
}

.navigation-link:hover,
.navigation-submenu-title-link:hover,
.navigation-submenu-link:hover {
    text-decoration: none;
}

.navigation-link {
    color: unset;
    transition: color 0s;
}

    .navigation-link:hover {
        color: unset;
    }

.navigation-link-text {
}

.navigation-list-item {
    padding: 0.5em;
    color: var(--dark);
}

    .navigation-list-item:hover {
        color: white;
        background-color: var(--primary);
    }

.validation-message {
    color: var(--danger);
    width: 100%;
    font-size: 0.8rem;
}

.hidden {
    display: none !important;
}

.show {
    display: block !important;
}

.modal {
    background-color: rgba(0, 0, 0, 0.25);
    animation-name: fadeIn;
    animation-duration: 0.3s !important;
    animation-fill-mode: forwards;
}

.htmlEditor {
    background-color: transparent;
}

.floating-container {
    position: fixed;
    bottom: 0;
    right: 0;
    margin: 35px 25px;
}

.floating-button {
    padding: 1rem;
    background: var(--secondary-opacity-50);
    bottom: 0;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    left: 0;
    right: 0;
    margin: auto;
    color: white;
    text-align: center;
    font-size: 14px;
    z-index: 100;
    box-shadow: 0 4px 12px 0 rgb(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s;
}

    .floating-button:hover {
        border: 2px solid var(--secondary-darker);
        background: var(--secondary);
        color: white;
        box-shadow: 2px 6px 12px 0 rgb(0, 0, 0, 0.25);
    }

.fixed-fullscreen {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.fixed-local {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: white;
    padding: 1rem;
    z-index: 1031;
    overflow: auto;
}

.foreground {
    z-index: 10;
}

.fadeIn {
    animation-name: fadeIn;
    animation-duration: 0.8s !important;
    animation-fill-mode: forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.fadeOut {
    animation-name: fadeOut;
    animation-duration: 0.5s !important;
    animation-fill-mode: forwards;
}

@keyframes fadeOut {
    100% { opacity: 0; }
    0% { opacity: 1; }
}

.search-panel {
    border: 1px solid #cdcdcd;
    border-radius: 4px;
    padding: 1em;
    position: relative;
}

.jumbotron {
    padding-top: 4rem;
}

@media (min-width: 576px) {
    .jumbotron {
        padding-top: 6rem;
    }
}

.mce-content-body {
    background-color: #e3bf90 !important;
}

.tox-fullscreen {
    z-index: 1040 !important;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

#cssContent {
    font-family: var(--font-family-monospace);
}

.oi-rotate-180 {
    transform: rotate(180deg);
}

.oi-rotate-90 {
    transform: rotate(90deg);
}

.page-heading-wrapper {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.accordion .card-header {
    cursor: pointer;
}

.accordion-content {
    max-height: 500px;
    transition: all 0.3s ease-in-out;
    overflow-y: auto;
}

.accordion-collapse {
    max-height: 0 !important;
}

.accordion-icon {
    transition: transform ease-in-out 0.20s
}

/* Switch Control */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

    /* Hide default HTML checkbox */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }

.clickable:hover {
    cursor: pointer;
}

/* CMS Layout classes */
.cms-canvas {
    display: flex;
}

.cms-layout {
    display: flex;
    flex-grow: 1;
    position: relative;
}

.cms-container {
    flex-grow: 1;
    background-clip: padding-box;
    position: relative;
}

.cms-row {
    flex-direction: row;
}

.cms-column {
    flex-direction: column;
}

@media (max-width: 800px) {
    .cms-row {
        flex-direction: column;
    }

    .cms-column {
        width: unset !important;
    }
}

*[data-anchor="true"] {
    scroll-margin-top: 6rem;
}

.login-content {
    background: linear-gradient(to bottom, var(--highlight), var(--primary), var(--info));
    padding: 0;
}

.login-container {
    height: 100vh;
    flex-direction: column;
    backdrop-filter: saturate(200%) blur(30px);
    background-color: rgba(255, 255, 255, 0.8) !important;
    padding: 2rem;
    margin: 0 -15px;
    overflow: hidden;
    overflow-y: auto;
    position: relative;
}

.app-logo {
    display: inline-block;
    height: 8rem;
    margin: 0.5rem;
    max-width: 50%;
}

.odd {
    background-color: #fafafa;
}

.td-chk {
    max-width: 6rem;
}

/* horizontal scroll support classes */
.hs-wrapper {
    position: relative;
}

.hs-container {
    display: flex;
    overflow-x: auto;
    max-width: 410px;
}

.hs-button-back {
    left: 12px;
}

.hs-button-next {
    right: 12px;
}

@media (min-width:576px) {
    .hs-container {
        max-width: unset;
    }

    .hs-button-back {
        left: 0;
    }

    .hs-button-next {
        right: 0;
    }
}

.hs-container::-webkit-scrollbar {
    display: none;
}

.hs-item {
    z-index: 60;
}

.hs-item-content {
    text-align:center;
    margin: 1rem;
    padding: 2rem;
    position: relative;
    height: 190px;
}

    .hs-item-content img {
        position: absolute;
        left: 0;
        top: 0;
        object-position: center;
        object-fit: contain;
        width: 100%;
        height: 100%;
    }

    .hs-item-content h3 {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

.hs-button {
    position: absolute;
    top: 30%;
    background-color: rgba(255,255,255,0.4);
    border: none;
    color: var(--body);
    border-radius: 0.5rem;
    z-index: 80;
    padding: 1rem;
    box-shadow: 0 4px 12px 0 rgb(0, 0, 0, 0.15);
    transition: all 0.3s ease-in-out;
}

    .hs-button:hover {
        background-color: rgba(255,255,255,0.9);
    }

    .hs-button:focus {
        outline: none;
    }

/* carousel support classes */
.carousel-wrapper {
    position: relative;
    min-height: 340px;
}

.carousel-container {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    overflow: hidden;
    counter-reset: carousel-item;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory
}

.carousel-item {
    position: relative;
    flex: 0 0 100%;
    counter-increment: carousel-item;
    transition-property: opacity, transform;
    transition-duration: 0.4s, 0.6s;
    transition-timing-function: linear, ease-in-out;
    transition-delay: 0.2s, 0s;
}

.carousel-item-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-item-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.carousel-button {
    position: absolute;
    background-color: rgba(255,255,255,0.4);
    border: none;
    color: var(--body);
    border-radius: 0.5rem;
    z-index: 80;
    padding: 1rem;
    box-shadow: 0 4px 12px 0 rgb(0, 0, 0, 0.15);
    transition: all 0.3s ease-in-out;
}

    .carousel-button:hover {
        background-color: rgba(255,255,255,0.9);
    }

    .carousel-button:focus {
        outline: none;
    }

.carousel-button-back {
    top: 50%;
    transform: translate(0, -50%);
    left: 12px;
}

.carousel-button-next {
    top: 50%;
    right: 12px;
    transform: translate(0, -50%);
}

.carousel-button-down {
    bottom: 12px;
    left: 50%;
    transform: translate(-50%, 0);
}

.camera-video-area {
    position: relative;
    /*overflow: hidden;*/
    width: 90%;
    max-width: 640px;
    height: 480px;
    display: inline-block;
}

.camera-stream {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 12px;
    width: 100%;
    height: 100%;
    border: none;
    backdrop-filter: saturate(200%) blur(30px);
    background-color: rgb(255,255,255, 0.5);
    box-shadow: 0 4px 12px 0 rgb(0, 0, 0, 0.15);
}

.camera-selector {
    position: relative;
    margin-top: 1em;
    margin-left: 5%;
    width: 90%;
}

.camera-video-area button {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 1em;
}

.camera-grab {
    left: 0;
}

.camera-stop-hidden {
    background-color: transparent;
    color: transparent;
}

.square {
    width: 50%;
    height: 50%;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}

.camera-stream-scan-overlay {
    width: 40%;
    height: 1%;
    border-top: 2px solid rgba(255, 255, 255, 0.65);
    position: absolute;
    transform: translate(-50%, -50%);
    transition: height 2s;
    top: 30%;
    left: 50%;
    animation-duration: 3s;
    animation-name: lineup;
    animation-direction: alternate;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes lineup {
    100% {
        top: 70%;
    }
}


.loading-indicator-box {
    height: 100%;
    width: 100%;
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1050;
}

.loading-indicator {
}

@keyframes bounce {
    0% {
        transform: translateY(0px);
    }

    30% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(0);
    }
}

.loading-ball {
    display: inline-block;
    background-color: white;
    height: 12px;
    width: 12px;
    border-radius: 10px;
    animation-name: bounce;
    animation-iteration-count: infinite;
    animation-duration: 0.6s;
    margin: 2px;
}

    .loading-ball:nth-child(1) {
        animation-delay: 0.05s;
    }

    .loading-ball:nth-child(2) {
        animation-delay: 0.1s;
    }

    .loading-ball:nth-child(3) {
        animation-delay: 0.15s;
    }
