#canvas {
    position: absolute;
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    touch-action: none;
}

:root {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@font-face {
    font-family: "Roboto Flex";
    src: url("/fonts/RobotoFlex.ttf") format("truetype-variations");
    font-weight: 100 1000;          /* variable range */
    font-stretch: 25% 151%;         /* variable width range (if supported) */
    font-style: oblique -10deg 0deg;/* lets browsers use the slnt axis for 'italic' */
    font-display: swap;             /* renders text with fallback until loaded */
}

html, body {
    overscroll-behavior: contain;
}

body {
    color: #00000094;
    font-family: "Roboto Flex";
    -webkit-tap-highlight-color: transparent;
    background-color: #1b1b1b;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    touch-action: none;
}

.content-element-div {
    height: fit-content;
    line-height: 1.2em;
}

.expandable {
    margin-bottom: 5em;
}

.padding2em {
    padding: 2em;
}

.center-notice {
    width: 50%;
    min-width: 300px;
    margin: 5em auto;
    border-radius: 4px;
    border: #ffffff94 1px solid;
    padding: 1em;
    font-size: 1.4em;
    line-height: 1.6em;
}

#tel-span {
    cursor: pointer;
    text-decoration: underline;
}

a {
    font: inherit;
    color: inherit;
    text-decoration: inherit;
}

.section-header {
    display: inline;
    font-size: 1.2em;
    font-weight: 350;
    text-decoration: underline;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

.center-container {
    max-width: max(60%, 300px);
    margin: 0 auto;
}

p {
    font-size: 1em;
}

.big {
    font-size: 1.6em;
}

.bigger {
    font-size: 2.2em;
}

#fps {
    z-index: 98;
    position: absolute;
    top: 0;
    right: 0;
    padding: 1em;
}

#floor-dropdown {
    position: absolute;
    top: 0.5em;
    left: 0.5em;
    z-index: 9;
}

#ui-wrapper {
    display: flex;
    width: 100%;
    height: 3em;
    position: absolute;
    bottom: 0.5em;
    left: 0;
    z-index: 98;
    justify-content: center;
    user-select: none;
}

.ui-btn {
    width: 3em;
    height: 2em;
    margin: 0 0.5em;
    border-radius: 4px;
    -webkit-transition : -webkit-filter 200ms ease-in-out;
    transition : -webkit-filter 200ms ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.ui-btn:hover, .ui-btn:active {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.6));
}

#light-btn {
    cursor: pointer;
    height: 2em;
}

#furniture-btn {
    cursor: pointer;
}

#scene-dropdown {
    width: 15em;
    height: 2em;
    border: 1px black solid;
    border-width: 0 1px 0 1px;
    text-align: center;
    line-height: 2em;
    font-size: 0.8em;
    font-weight: 500;
    cursor: pointer;
    -webkit-transition : -webkit-filter 0.1s ease-in-out;
    transition : -webkit-filter 0.1s ease-in-out;
    padding: 0 0.5rem;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}


#scene-dropdown:hover, #scene-dropdown:active {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.6));
}

#scene-dropdown-icon {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 1.5rem;
}

.light-btn-icon {
    width: 100%;
    height: 100%;
}

.ruler-icon {
    width: 80%;
    height: 80%;
}

#ui-bg {
    height: 3em;
    display: flex;
    max-width: calc(100vw - 2em);
    align-items: center;

    /*background-color: rgba(23, 23, 23, 0.8);*/
    /*align-items: center;*/
    /*border-radius: 4px;*/
    /*color: #fff;*/
    /*box-shadow: 0 0 2px rgba(255, 255, 255, 0.7);*/
}

#back-icon {
    width: 1.2rem;
    height: 1.2rem;
}

.icon-disabled {
    filter: opacity(0.5) !important;
    cursor: default !important;
}

#scene-selection-wrapper {
    z-index: 98;
    color: #000;
    position: absolute;

    font-size: 1em;
    text-align: center;

    display: none;
    flex-direction: column;
    align-items: stretch;
}

.option-img {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 1.5rem;
}

.option-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    width: 100%;
    height: 100%;
    font-size: 0.8em;
}

.scene-option {
    z-index: 98;
    padding: 1em;
    margin-bottom: 0.5rem;
    cursor: pointer;
    opacity: 0;
    transform: translate3d(0, 20px, 0);
}

.scene-option:hover span {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.6));
}

.scene-option:first-child {
    transition: all 0.3s ease-in-out !important;
    -webkit-transition: all 0.3s ease-in-out !important;
}

.scene-option:nth-child(2) {
    transition: all 0.4s ease-in-out !important;
    -webkit-transition: all 0.4s ease-in-out !important;
}

.scene-option:last-child {
    transition: all 0.5s ease-in-out !important;
    -webkit-transition: all 0.5s ease-in-out !important;
}

.shown .scene-option {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1;
}

#legal-hint {
    position: fixed;
    z-index: 96;
    color: #000;
    font-size: 0.8em;
    /*filter: drop-shadow(0 0 4px rgba(255, 255, 255, 1));*/
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 0 0 0 4px;
    padding: 0.25em 0.5em;
    top: 0;
    right: 0;
}

#fps-counter {
    position: fixed;
    z-index: 98;
    color: #00aa00;
    font-size: 0.8em;
    border-radius: 0 0 0 4px;
    padding: 0.25em 0.5em;
    top: 0;
    left: 0;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #333333;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 2s linear infinite;
}

.room-label {
    z-index: 95;
    position: absolute !important;
    top: 0;
    left: 0;

    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    background-color: #1b1b1b;

    margin-top: 2rem;
    opacity: 0;

    transition: translate 0s, margin-top 0.3s, margin-bottom 0.3s, opacity 0.3s !important;
    -webkit-transition: translate 0s, margin-top 0.3s, margin-bottom 0.3s, opacity 0.3s !important;
    pointer-events: none;
}

.room-label-active {
    margin-top: 0 !important;
    opacity: 1;
    cursor: pointer;
}

.room-label.label-2d {
    margin-top: 0 !important;
    cursor: default !important;
    opacity: 0.55 !important;
}


.room-label.label-2d .zoom-icon {
    display: none;
}

.edit-panel-inner-div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.object-edit-div {
    z-index: 95;
    position: absolute !important;
    top: 0;
    left: 0;

    margin-top: 2rem;
    opacity: 0;

    transition: translate 0s, margin-top 0.3s, margin-bottom 0.3s, opacity 0.3s !important;
    -webkit-transition: translate 0s, margin-top 0.3s, margin-bottom 0.3s, opacity 0.3s !important;

    width: 6rem;
    height: 6rem;

    border-radius:50%;
    background-color: transparent;

    border: 6px solid #ffffff;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    pointer-events: auto;
    cursor: grab;

    display: none;
}

.object-edit-div.shown {

    display: flex !important;
    margin-top: 0 !important;
    opacity: 1 !important;
}

.object-edit-div.enabled {
    pointer-events: auto !important;
}

.delete-btn-wrapper {
    height: 2.5rem;
    width: 2.5rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#delete-btn-2 {
    color: #000000;
    font-size: 0.8rem;
}

.enable-label {
    pointer-events: auto !important;
}

.label-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.room-title {
    font-weight: bold;
    font-size: 1.1rem;
}

.zoom-icon {
    height: 1rem;
    width: 1rem;
    margin-right: 0.3rem;
    border-radius: 8px;
    cursor: pointer;
    padding: 0.25rem 0.15rem;
    opacity: 0.58;
}

.label-wrapper:hover .zoom-icon {
    opacity: 1.0;
}

.edit-icon {
    height: 1.5rem;
    width: 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    padding: 0.5rem;
    opacity: 0.58;
}

.edit-icon:hover {
    opacity: 1.0;
}

.label-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 100;
    background-color: #242424;
    display: flex;
    justify-content: center;
    align-items: center;
}

.panel-3d {
    position: relative;
    display: inline-block;
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: 0.1rem 0.2rem 0.2rem #00000066,
    0 6px 6px #00000066;
    /*transition: transform 0.3s, box-shadow 0.3s;*/
    /*-webkit-transition: transform 0.3s, box-shadow 0.3s;*/

    /*border-bottom: 1px solid #000000cc;*/
    /*border-top: 1px solid #cccccc44;*/

    /*background-color: #131313;*/

    color: #000000;

    border-bottom: 1px solid #aaaaaacc;
    border-top: 1px solid #aaaaaa44;

    background-color: #ffffff;
}

.panel-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.25rem;
    z-index: 1;

    border-left: 1px solid #aaaaaa;
    border-right: 1px solid #aaaaaa;

    pointer-events: none;
}

.panel-3d.hoverable {
    cursor: pointer;
}

.panel-3d.img-container img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.25rem;
    transform: translateZ(20px);
}

.panel-3d.hoverable:hover::before {
    opacity: 1;
}

.panel-3d.hoverable:hover {
    transform: translateY(-10px);
    /*box-shadow: 0 2px 3px rgba(114, 33, 19, 0.93),*/
    /*0 5px 5px #EE422602;*/
}

.panel-3d.hoverable:hover .title {
    transform: translateY(0);
    opacity: 1;
}

#loader-div-1 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 50vh;
    z-index: 99;
    background-color: #ffffff;

    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;

    transition: transform 1.0s ease-in;
    -webkit-transition: transform 1.0s ease-in;
}

#loader-div-2 {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 50vh;
    z-index: 98;
    background-color: #ffffff;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: start;

    transition: transform 1.0s ease-in;
    -webkit-transition: transform 1.0s ease-in;
}

.loader-div-1-out {
    transform: translateY(-200%);
}

.loader-div-2-out {
    transform: translateY(200%);
}

#logo-div {
    width: 96px;
    height: 96px;
    margin-bottom: -48px;
    background-color: #ffffff;
    border-radius: 100rem;
    z-index: 100;
}

#logo {
    width: 100%;
    height: 100%;
    z-index: 100;
}

#progress-bar {
    height: 2px;
    width: 96px;

    transition: all 0.3s;
    -webkit-transition: all 0.3s;
}

.loader-shadow {
    box-shadow: 0.3rem 0.5rem 0.5rem rgba(0, 0, 0, 1),
    0 6px 6px rgba(0, 0, 0, 0.23);
}

#error-div {
    width: 100vw;
    height: 100vh;
    z-index: 100;
    background-color: #181818;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#error-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

#floor-select {
    position: fixed;
    top: 15px;
    left: 0;
    padding: 10px;
    z-index: 96;

    flex-direction: row;
    justify-items: start;
    align-items: center;

    cursor: pointer;
    color: black;
    /*font-weight: bold;*/
}

#floor-select:hover {
    text-decoration: underline;
}

#floor-select-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
}

#floor-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 180px;
    padding: 10px;
    z-index: 97;

    border: #00000064 solid 1px;
    border-width: 0 1px 0 0;

    transform: translateX(-100%);
    -webkit-transform: translateX(-100%);

    background-color: #fff;

    display: flex;
    flex-direction: column;
}

.floor-menu-item {
    width: 200px;
    padding-bottom: 10px;
    margin-left: -10px;
    margin-right: -10px;
    flex-direction: column;
    justify-items: center;
    cursor: pointer;
}

.floor-menu-item.active {
    cursor: default;
}

.floor-menu-item:not(:last-child) {
    border: #00000064 solid 1px;
    border-width: 0 0 1px 0;
}

.floor-menu-label {
    text-align: center;
    margin-top: 5px;
    color: black;
}

.floor-menu-label.active {
    font-weight: bold;
    text-decoration: underline;
}

.floor-menu-item:hover .floor-menu-label {
    font-weight: bold;
    text-decoration: underline;
}

#floor-menu-title {
    font-weight: bold;
    color: black;
    padding: 5px;
}

#floor-menu-close-btn {
    padding: 5px 10px;
    border-radius: 5px;
    color: black;
    font-weight: bold;
    display: flex;
    justify-content: center;
    justify-items: center;
    cursor: pointer;
}

#floor-menu-close-btn:hover {
    background-color: #ffffff33;
}

#floor-menu-title-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.slide-in {
    animation: slide-in 0.5s forwards;
    -webkit-animation: slide-in 0.5s forwards;
}

.slide-out {
    animation: slide-out 0.5s forwards;
    -webkit-animation: slide-out 0.5s forwards;
}

@keyframes slide-in {
    100% { transform: translateX(0%); }
}

@-webkit-keyframes slide-in {
    100% { -webkit-transform: translateX(0%); }
}

@keyframes slide-out {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

@-webkit-keyframes slide-out {
    0% { -webkit-transform: translateX(0%); }
    100% { -webkit-transform: translateX(-100%); }
}

#loader-baking {
    width: 100vw;
    height: 100vh;
    z-index: 100;
    background-color: #18181894;
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#baking-message {
    position: absolute;
    top: 20px;
    left: 50%;
    margin-left: -24px;
    width: 48px;
    height: 48px;
    z-index: 100;
    opacity: 80%;

    justify-content: center;
    align-items: center;
}

.loader-small {
    border: 4px solid #282828;
    border-top: 4px solid #949494;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 2s linear infinite;
}

#wrapper-2 {
    width: 100%;
    height: 100%;
    position: relative;
}

#logo-div-2 {
    width: 96px;
    height: 96px;
    margin-bottom: -48px;
    background-color: #181818;
    border-radius: 100rem;
    z-index: 100;
}

#logo-2 {
    position: absolute;
    /*left: 0;*/
    /*right: 0;*/
    /*height: 100%;*/
    /*width: 100%;*/

    left: 20px;
    top: 20px;
    height: calc(100% - 40px);
    width: calc(100% - 40px);

    object-fit: cover;


    z-index: 98;
}

#progress-bar-2 {
    height: 4px;
    width: 96px;

    transition: all 0.3s;
    -webkit-transition: all 0.3s;
}

.loader-svg {
    position: absolute;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;

    z-index: 99;
}
