body {
    background-color: var(--secondary-color-dark);
    overflow: hidden;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 0 10px;
    /*background: var(--primary-color-light);*/
    font-size: 8px;
    height: 12px;
    line-height: 12px;
    color: var(--primary-color-light);
}

img, canvas {
    user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    max-width: 100%;
}
label {
    font-weight: normal;
}

.btnLine.btn {
    display:inline-block;
    margin:0 10px;
}

.btn {
    background-color: var(--secondary-color-light);
    color: var(--primary-color-light);
    text-align:center;
    line-height: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 0;
}

.btn:not(.btnFilter):hover, .btn:not(.btnUploadImg):hover, .btn.selectedBtn {
    background-color: var(--tertiary-color);
}
.btn:hover, .btn.selectedBtn {
    color: var(--secondary-color-dark);
}

.btn:focus {
    background-color: #444;
    color: var(--primary-color-light);
}

.float-left {
    float: left;
}
.float-right {
    float: right;
}
.displayNone {
    display:none !important;
}

#errorDiv {
    position: fixed;
    bottom: 0px;
    width: 100%;
    height: 50px;
    background-color: #9D0023;
    color: var(--primary-color-light);
    z-index:1000;
    padding-left: 20px;
    line-height: 50px;
    display: none;
}

.btnError {
    border: none;
    float: right;
}
.headerLogo {
    width: 200px !important;
}

#funixMini, .loader {
    position: fixed;
    z-index: 1;
    left: 50%;
    top: 50%;
    box-sizing: content-box;
    z-index: 5;
}

#funixMini {
    width: 80px;
    height: 80px;
    margin-left: -40px;
    margin-top: -45px;
}

.loader {
    margin-left: -66px;
    margin-top: -66px;
    border: 6px solid var(--primary-color-light);
    border-top: 6px solid #333;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    backdrop-filter: blur(8px);
}
input {
    border: none;
    border-bottom: 1px solid #999;
    color: var(--primary-color-light);
    line-height: 24px;
    padding: 0;
    margin: 0 5px;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#unityContainer {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent !important;
}

#unityContainer.hovering canvas {
    cursor: pointer !important;
}

#webContainer {
    width: 100%;
    height: 100%;
    display: none;
    height: calc(100vh - 12px) !important; /* 12 is footer dimension. To prevent issue when scrolling. */
}

#unityContainer #unityProgress {
    position: absolute;
    left: 0;
    top: 0;
    height: 5px;
    width: 100%;
}

#unityContainer #unityProgress .empty {
    background-color: #333;
    float: right;
    width: 100%;
    height: 100%;
    display: inline-block;
}
#unityContainer #unityProgress .full {
    background-color: var(--primary-color-light);
    float: left;
    width: 0%;
    height: 100%;
    display: inline-block;
    margin-top: -5px;
}

#logo {
    position: fixed;
    top: 0;
    left: 0;
    transition: 1s all;
}
#logo a {
    display: block;
    text-align: center;
}
#logo img {
    height: 50px;
    margin: 5px 20px;
}

header {
    height: 0;
    background: transparent;
    color: black;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 19;
}

#mobileMenu {
    color: var(--primary-color-light);
    border-radius: 0 0 0 6px;
    position: fixed;
    top: 0;
    right: 0;
    padding: 10px;
    cursor: pointer;
    transition: 1s all;
}

.toggleMenu {
    cursor: pointer;
}

#navMenu ul {
    padding: 0;
}
#navMenu {
    background: #eee;
    width: 250px;
    position: fixed;
    top: 0;
    bottom: 0;
    right: -250px;
    margin: 0;
    padding: 10px;
    transition: right 1s;
    text-align: right;
    overflow: hidden auto;
}

#navMenu.menuOpen {
    right: 0;
}

#navMenu, #navMenu li.settings {
    line-height: 40px;
}

#navMenu li {
    display: block;
    margin: 0 5px;
}

#navMenu li.settings small {
    font-size: 12px;
    float: left;
}

#navMenu li a, #navMenu li.active a, #navMenu li a:hover  {
    color: #333;
}
#navMenu li a {
    text-decoration: none;
    padding: 5px 10px;
}
#navMenu li.active a {
    pointer-events: none;
}
#navMenu li.active a, header li a:hover {
    border: 1px solid var(--tertiary-color);
    border-left: 0;
    border-right: 0;
    border-top: 0;
    color: var(--tertiary-color) !important;
}

#navMenu .menuItem.title {
    color: var(--primary-color-light) !important;
}

#navMenu #roomNavigationMenu {
    border-top: 1px solid var(--primary-color-light) !important;
    border-bottom: 1px solid var(--primary-color-light) !important;
    padding-bottom: 15px;
    padding-top: 15px;
    margin-top: 10px;
}

#navMenu .menuMoveTo {
    cursor: pointer;
}
#navMenu .menuMoveTo:hover {
    text-decoration: underline;
}

#elements_autocomplete.ui-autocomplete-input {
    background-color: var(--primary-color-light);
    height: 40px;
    width: 250px;
    border-radius: 15px;
    color: var(--secondary-color-dark);
    padding: 5px 35px 5px 10px;
    margin: 0 0 15px 0;
}
.autocomplete-spinner {
    visibility: hidden;
    padding: 5px;
    margin-left: -28px;
}
.ui-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 160px;
    padding: 5px;
    margin: 0 10px 10px 25px;
    list-style: none;
    background-color: var(--primary-color-light);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    background-clip: padding-box;
    color: var(--secondary-color-dark);
    max-height: 400px;
    overflow-y: auto;
    font-weight: bold;
}
li.ui-menu-item {
    margin-bottom: 5px;
}
li.ui-menu-item:last-child {
    margin-bottom: 0;
}
.ui-menu-item-wrapper {
    line-height: 16px;
}
.ui-menu-item span.sublabel {
    font-weight: normal;
    font-size: 12px;
    line-height: 15px;
    display: inline-block;
    margin-left: 10px;
}
.ui-menu-item > a.ui-corner-all {
    display: block;
    padding: 3px 15px;
    clear: both;
    font-weight: normal;
    line-height: 18px;
    color: #555555;
    white-space: nowrap;
    text-decoration: none;
}
.ui-state-hover, .ui-state-active {
    color: var(--primary-color-light);
    text-decoration: none;
    background-color: #0088cc;
    border-radius: 0px;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    background-image: none;
}
.tooltipNav {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted #222;
    cursor: pointer;
}
.tooltipNav.noBorder {
    border: none;
}

.tooltipNav .tooltipText {
    visibility: hidden;
    width: 120px;
    background-color: #222;
    color: var(--primary-color-light);
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 150%;
    left: 50%;
    margin-left: -60px;
    line-height: 22px;
}

.tooltipNav .tooltipText::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
}

.tooltipNav .tooltipText.rightTooltip {
    top: -5px;
    left: 110%;
    bottom: initial;
    margin-left: 0;
    border-color: transparent #222 transparent transparent;
}

.tooltipNav .tooltipText.rightTooltip::after {
    top: 50%;
    right: 100%;
    left: initial;
    margin-top: -5px;
    margin-left: 0;
}
.tooltipNav .tooltipText.leftTooltip {
    top: -5px;
    right: 200%;
    left: initial;
    bottom: initial;
    margin-left: 0;
}

.tooltipNav .tooltipText.leftTooltip::after {
    top: 50%;
    left: 100%;
    margin-top: -5px;
    margin-left: 0;
    border-color: transparent transparent transparent #222;
}

.tooltipNav:hover .tooltipText {
    visibility: visible;
}

.isMobile .tooltipNav:hover .tooltipText {
    visibility: hidden;
}

body.isMobile .desktopOnly, body:not(.isMobile) .mobileOnly {
    display: none;
}

body:not(.isMobile) .desktopOnly, body.isMobile .mobileOnly {
    display: block;
}


#navigationPopupTitle {
    font-size: 20px;
    font-weight: bold;
    margin: 20px 0 30px;
}
.navigationPopupIcon {
    max-height: 50px;
    margin: 10px auto;
}

.navigationPopupText {
    font-size: 12px;
    margin: 10px 0;
}

.navigationRightSeparator {
    border-bottom: none;
}
.navigationBottomSeparator {
    border-bottom: 1px solid white;
}
.navigationPopupButton {
    margin: 10px 0 20px;
}

@media (min-width: 768px) {
    .navigationRightSeparator {
        border-right: 1px solid white;
    }
    .navigationBottomSeparator {
        border-bottom: none;
    }
    .navigationPopupIcon {
        max-height: 100px;
        margin: 20px auto;
    }
    .navigationPopupText {
        margin: 20px 0;
    }
    .navigationPopupButton {
        margin: 0;
    }
}