:root {
    --oc3droom-win-width: 90vw;
    --oc3droom-win-height: 90vh;
    --oc3droom-win-top: 20px;
    --oc3droom-win-left: 0;

    --oc3droom-board-height: 82vh;
    --oc3droom-board-width: 800px;
    --oc3droom-board-top: 38px;
    --oc3droom-board-left: 0;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    -ms-content-zooming: none;
}

a, a:hover, a:active, a:visited {
    color: var(--hotspot-button-text);
}

/* 3d-room */
#autorotateToggle,
#fullscreenToggle {
    top: 32px;
}

#cover {
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 10000;
}

.mobile {
    .room-popup-frame {
        --oc3droom-win-top: 0px;
        --oc3droom-win-width: 100vw;
        --oc3droom-win-height: 100vh;
        top: 0;
    }
    .room-popup-frame.board {
        --oc3droom-board-top: 0px;
        --oc3droom-board-width: 100vw;
        top: 0;
    }
    .btn-hotspot.link-button {
        margin-top: 8px !important;
    }
    .btn-close-frame {
        top: 6px;
    }
    .modal-dialog {
        margin: 0 auto;
        top: 30px;
    }
}

.btn.consultations {
    top: 32px !important;
    left: 0;
    /*background-color: var(--ui-button-background);*/
    border-radius: 0;
}

#popupModal {
    .modal-dialog {
        width: fit-content;
        max-width: fit-content;
    }
    .modal-body {
        --bs-modal-padding: 0;
    }
    .modal-content {
        border-radius: var(--bs-modal-border-radius) 0 var(--bs-modal-border-radius) var(--bs-modal-border-radius);
        border: 0;
    }
    .modal-content.video {
        border-radius: 0;
    }
}

.room-popup-frame {
    position: relative;
    width: 100%;
    background-color: #000000d0;
    border-radius: var(--bs-modal-border-radius) 0 0 0;
}

.room-popup-frame.board {
    height: var(--oc3droom-board-height);
}

.btn-close-frame.board {
    top: -22px;
    right: 0;
    position: absolute;
    z-index: 1000;
}

.room-popup-frame iframe {
    width: 100%;
    height: 100%;
}

.desktop.no-touch .info-hotspot .info-hotspot-header:hover {
    width: 40px;
    border-radius: 20px;
    background-color: #000000a0;
    transition: background-color 0.3s ease-in-out;
}

/*
@keyframes tilt-shake-start {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-50deg); }
}

@keyframes tilt-shake-end {
    0% { transform: rotate(-50deg); }
    100% { transform: rotate(0deg); }
}

@keyframes tilt-shake {
    0% { transform: rotate(-50deg); }
    25% { transform: rotate(0deg); }
    50% { transform: rotate(50deg); }
    75% { transform: rotate(0deg); }
    100% { transform: rotate(-50deg); }
}

.info-hotspot-header:hover {
    animation-name:
        tilt-shake-start, tilt-shake, tilt-shake-end;
    animation-duration:
        500ms, 1000ms, 500ms;
    animation-timing-function:
        ease-in, linear, ease-out;
    animation-iteration-count:
        1, 2, 1;
}
*/
.info-hotspot .info-hotspot-i {
    width: 90%;
    height: 90%;
    margin: 5%;
}

.btn-hotspot.link-button {
    background-color: var(--hotspot-link-background);
}

.btn-hotspot.link-button.hidden {
    display: none;
}

.black-bar-top-background {
    display: none;
}

#popupModal {
    --bs-modal-zindex: 10000;
}

#popupModal {
    .board .modal-content {
        width: var(--oc3droom-board-width) !important;
        max-width: none;
    }
    /*
    .modal-dialog-centered {
        min-height: unset;
    }
    */
    .modal-footer {
        justify-content: space-around;
        border-top: 0;
    }
}

/* fix for close button not visible on small screens */
.video-holder .btn-close-frame.small {
    margin-left: 3px;
    top: 3px;
    z-index: 10;
}

@media (min-width: 576px) {
    #popupModal .modal-dialog {
        max-width: none !important;
    }
}

@media only screen and (max-width: 799px) {
    :root {
        --oc3droom-board-top: 0px;
        --oc3droom-board-width: 100vw;
    }
/*
    .room-popup-frame,
    .room-popup-frame.board {
        top: 0;
    }

    .room-popup-frame.board {
        height: 71vh;
    }

    .mobile .btn-close-frame.board {
        margin-left: 0;
        left: 0;
    }
*/
}
