:root.light {
    /* grey */
    --lightest-color: #414141;
    --lighter-color: #6d6d6d;
    --light-color: #a1a1a1;
    --back-color: #ffffff;
    --back1-color: #e9e9e9;
    --disabled-color: #888888;
    --dark1-color: #e4e4e4;
    --dark-color: #c9c9c9;
    --black-color: #000000;
    /* text */
    --text-color: #000000;
    /* red */
    --ctcurrent-color: #e5bdbdcc;
    /* tooltip */
    --tooltip-color: #b3b3b3;
    --tooltip-color-trans: rgba(179, 179, 179, 0.8);
}

:root {
    --transparent: rgba(0, 0, 0, 0);
    /* grey */
    --lightest-color: #b3b3b3;
    --lighter-color: #636363;
    --light-color: #383838;
    --back-color: #292929;
    --back1-color: #252525;
    --disabled-color: #242424;
    --dark1-color: #1d1d1d;
    --dark-color: #141414;
    --black-color: #000000;
    /* transparent grey */
    --trans-color: rgba(0, 0, 0, 0.702);
    /* text */
    --text-color: #ffffff;
    /* red */
    --accent-color: #b51833;
    --accent-light: #ec2848;
    --ctcurrent-color: #3b2121cc;
    --dark-red: #5f0000;
    --light-red: #b40000;
    --error-color: rgba(77, 0, 0, 0.8);
    --room-color: #ff0055;
    --room-color-trans: rgba(255, 0, 85, 0.918);
    /* tooltip */
    --tooltip-color: #3a3a3a;
    --tooltip-color-trans: rgba(58, 58, 58, 0.8);
    /* vr */
    --vr: 10%;
}

#copy {
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

#slashWarn {
    display: none;
}

.light .icon,
.light .info-hotspot img {
    -webkit-filter: invert(100%);
    filter: invert(100%);
}

html:not(.light) .link-hotspot-icon {
    -webkit-filter: invert(90%);
    filter: invert(90%);
}


/* text selection */

::-moz-selection {
    background-color: var(--light-color);
    color: var(--lighter-color);
}

::selection {
    background-color: var(--light-color);
    color: var(--lighter-color);
}

.light ::-moz-selection {
    background-color: var(--back-color);
}

.light ::selection {
    background-color: var(--back-color);
}


/* scrollbars */

::-webkit-scrollbar {
    width: 6px;
    height: 1px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    height: 1px;
    background-color: var(--back-color);
    border-top: 1px solid var(--transparent);
    border-right: 1px solid var(--transparent);
    border-bottom: 1px solid var(--transparent);
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    height: 1px;
    background-color: var(--light-color);
    border-top: 1px solid var(--transparent);
    border-right: 1px solid var(--transparent);
    border-bottom: 1px solid var(--transparent);
    background-clip: padding-box;
}

::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}

::-webkit-scrollbar-corner {
    background-color: transparent;
}

::-webkit-input-placeholder {
    /* Edge */
    color: var(--lightest-color);
}

:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: var(--lightest-color);
}

::-moz-placeholder {
    color: var(--lightest-color);
}

::-ms-input-placeholder {
    color: var(--lightest-color);
}

::placeholder {
    color: var(--lightest-color);
}

:root:not(.light) ::-ms-reveal {
    -webkit-filter: invert(1);
    filter: invert(1);
}

input[type=number] {
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
    appearance: textfield;
    margin: 0;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input {
    -moz-user-select: text !important;
    -webkit-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

* {
    position: static;
    box-sizing: border-box;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -ms-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    -ms-content-zooming: none;
    -webkit-tap-highlight-color: var(--transparent);
    -webkit-tap-highlight-color: transparent;
    z-index: 0;
    /* Edge and IE */
    -ms-overflow-style: -ms-autohiding-scrollbar;
    /* Firefox */
    scrollbar-color: var(--back-color) var(--light-color);
    border-style: solid;
    border-width: 0;
    outline: none;
}

html,
body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    background-color: var(--back-color);
    color: var(--text-color);
    -webkit-transition: background-color 0.1s;
    transition: background-color 0.1s;
}

a,
a:hover,
a:active,
a:visited {
    text-decoration: none;
    color: inherit;
}

.button {
    position: absolute;
    color: var(--text-color);
    background-color: var(--dark-color);
    border-width: 0px;
    height: 30px;
    -webkit-transition: background-color 0.1s, color 0.1s;
    transition: background-color 0.1s, color 0.1s;
    border-radius: 2px;
    margin: 5px;
}

.button:hover {
    background-color: var(--light-color);
    cursor: pointer;
}

#infoText1,
#infoText2 {
    -webkit-transition: color 0.1s;
    transition: color 0.1s;
}

b {
    font-weight: bold;
}

i {
    font-style: italic;
}

.hidden {
    display: none !important;
}


/* ----------------------------
POPUP
---------------------------- */

.headerPU {
    height: 40px;
    width: 100%;
    background-color: var(--dark-color);
    position: absolute;
    top: 0px;
    border-radius: 2px 2px 0px 0px;
    /*border-width: 1px;
    border-color: var(--back-color);*/
    border-bottom: 1.5px solid var(--accent-color);
}

.headingPU {
    text-align: center;
    font-size: 20px;
    letter-spacing: 0.5px;
}

.imgcontainer {
    pointer-events: none;
}

.close {
    position: absolute;
    right: 20px;
    top: -7px;
    color: var(--lighter-color);
    font-size: 35px;
    font-weight: bold;
    z-index: 1009;
    -webkit-transition: color 0.05s;
    transition: color 0.05s;
    pointer-events: auto;
}

.close:hover,
.close:focus {
    color: var(--light-color);
    cursor: pointer;
}

.animate {
    -webkit-animation: zoom 0.45s;
    animation: zoom 0.45s
}

@-webkit-keyframes zoom {
    from {
        -webkit-transform: scale(0);
        transform: scale(0)
    }
    to {
        -webkit-transform: scale(1);
        transform: scale(1)
    }
}

@keyframes zoom {
    from {
        -webkit-transform: scale(0);
        transform: scale(0)
    }
    to {
        -webkit-transform: scale(1);
        transform: scale(1)
    }
}


/* The Modal (background) */

.modal {
    display: none;
    position: fixed;
    z-index: 1009;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.modal.visible {
    display: block;
}

.touch .modal {
    overflow: auto;
    pointer-events: auto;
}

.modal-background {
    display: block;
    position: fixed;
    z-index: 1008;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--black-color);
    background-color: var(--trans-color);
    opacity: 0;
    pointer-events: none;
    -webkit-transition: opacity 0.5s;
    transition: opacity 0.5s;
}

.modal-background.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    background-color: var(--back-color);
    width: 95%;
    padding-top: 20px;
    z-index: 1010;
    border-radius: 2px;
    border-width: 1px;
    border-color: var(--dark-color);
    overflow: hidden;
    pointer-events: auto;
    -webkit-transition: border-color 0.4s;
    transition: border-color 0.4s;
}

.touch .modal-content {
    margin: 80px auto 10px auto;
}

body:not(#tourPU) .modal-text {
    height: calc(100% - 40px);
    width: 100%;
}

body:not(#tourPU) .modal-text {
    position: static;
    overflow: hidden;
    overflow-y: auto;
}

#tourPU .modal-text,
#floorPlanPU .modal-text {
    overflow: hidden !important;
}

#createTourPU .modal-text,
#helpPU .modal-text,
#infoPU .modal-text {
    position: absolute !important;
}

.modal-text::-webkit-scrollbar-thumb {
    background: var(--dark-color);
}

.modal-text::-webkit-scrollbar-thumb:hover {
    background: var(--light-color);
}


/* expand / collapse */

.modal-content:not(#floorPlanPU),
#floorPlanPU.initialized {
    -webkit-transition: min-height 0.5s, height 0.5s, width 0.5s, border-color 0.5s;
    transition: min-height 0.5s, height 0.5s, width 0.5s, border-color 0.5s;
}

.modal-content.collapsed {
    min-height: 40px !important;
    height: 40px !important;
    width: 300px !important;
}

.modal-content.collapsed {
    /*border-bottom-color: var(--back-color);*/
    border-color: var(--back-color);
}

.modal-content .headerPU {
    -webkit-transition: border-color 0.4s, border-radius 0.4s;
    transition: border-color 0.4s, border-radius 0.4s;
}

.modal-content.collapsed .headerPU {
    border-bottom-color: var(--dark-color);
    border-radius: 2px;
}

.modal-content .close,
.modal-content .helpBtn {
    -webkit-transition: opacity 0.3s;
    transition: opacity 0.3s;
}

.modal-content .modal-text {
    -webkit-transition: opacity 0.5s;
    transition: opacity 0.5s;
}

.modal-content.collapsed .close,
.modal-content.collapsed .backBtn,
.modal-content.collapsed .helpBtn,
.modal-content.collapsed .modal-text {
    opacity: 0;
    pointer-events: none;
}


/* Center the image and position the close button */

.imgcontainer {
    position: relative;
    top: -10px;
}

@media only screen and (max-width: 473px) {
    .heading {
        font-size: 19px;
    }
}

.tooltip {
    position: absolute;
    left: calc(100% + 5px);
    font-size: 12px;
    padding: 5px;
    border-radius: 2px;
    background-color: var(--tooltip-color);
    background-color: var(--tooltip-color-trans);
    color: var(--text-color);
    border-width: 1px;
    border-color: var(--dark-color);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    display: none;
    z-index: 100000;
}

.tooltipOF {
    display: none;
    position: absolute;
    height: 22px;
    width: 5px;
    left: 100%;
}

.tooltip.left {
    right: calc(100% + 5px);
    left: auto;
}

.tooltipOF.left {
    height: 22px;
    width: 5px;
    right: 100%;
    left: auto;
}

.tooltip.bottom {
    top: calc(100% + 5px);
    left: -40px;
    right: auto;
}

.tooltipOF.bottom {
    height: 5px;
    width: 22px;
    top: 100%;
    left: -2px;
    right: auto;
}

.tooltip.bottom.left {
    top: 100%;
    right: -40px;
    left: auto;
    margin-top: 5px;
    margin-right: 0;
    margin-left: 0;
}

.tooltipOF.bottom.left {
    height: 5px;
    width: 22px;
    top: 100%;
    left: -2px;
    right: auto;
}

.icon-info {
    position: relative;
    top: -1px;
    height: 20px;
    width: 20px;
    padding: 1px 7px 0 7px;
    color: var(--lighter-color);
    border-color: var(--lighter-color);
    border-width: 1.5px;
    border-radius: 50%;
    -webkit-transition: border-color 0.1s, color 0.1s;
    transition: border-color 0.1s, color 0.1s;
    cursor: help;
    overflow: visible;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    font-family: icomoon;
    z-index: 10000;
}

.icon-info:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.icon-info .tooltip {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: normal;
    background-color: var(--tooltip-color);
}

.icon-info:hover .tooltip,
.icon-info:hover .tooltipOF {
    display: inline-block;
}

.hideAll #loading,
.hideAll #notUpToDate,
.hideAll #vr_projX,
.hideAll #hideTitleBarTour,
.hideAll #titleBar,
.hideAll #demoPlan,
.hideAll #debugPlan,
.hideAll #floorPlanRooms,
.hideAll #floorPlanArea {
    display: none !important;
}

.hideAll:not(.hideAllH) .info-hotspot,
.hideAll:not(.hideAllH) .link-hotspot {
    display: none !important;
}

.mui .info-hotspot,
.mui .link-hotspot {
    display: none !important;
}

select {
    height: 30px;
    color: var(--text-color);
    background-color: var(--dark-color);
    outline: none;
    border-radius: 2px;
}

.allowDrag>* {
    -webkit-user-drag: element !important;
}

.backBtn {
    position: absolute;
    color: var(--text-color);
    background-color: var(--dark-color);
    font-size: 20px;
    width: 38.5px;
    height: 38.5px;
    margin-top: -41px;
    margin-left: 2px;
    padding-top: 2px;
    border-radius: 2px;
    text-align: center;
    -webkit-transition: background-color 0.1s, color 0.1s, opacity 0.2s;
    transition: background-color 0.1s, color 0.1s, opacity 0.2s;
    cursor: pointer;
    opacity: 1;
    pointer-events: auto;
    z-index: 1006;
}

.backBtn:hover {
    background-color: var(--light-color);
}

.backBtn.hide {
    opacity: 0;
    pointer-events: none;
}