html {
    position: absolute;
    top:  0px;
    left: 0px;
    width:  100%;
    height: 100%;
    padding: 0;
    margin:  0;
    touch-action: manipulation;
    -ms-touch-action: manipulation;
}
body {
    width:  100%;
    height: 100%;
    padding: 0;
    margin:  0;
    overflow: hidden;
    /*background: #ddd;*/
    /*touch-action: none;*/
}

/* connect */

div#connect {
    position:absolute;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    /*width: 512px;*/
    height: 256px;
    margin: auto;
    text-align: center;
    display: none;
}
div#connect h4 {
    font-size: 24px;
}

div#connect label {
    width: 128px;
    text-align: left;
    font-size: 18px;
    font-weight: normal;
    margin: 10px;
}

div#connect input {
    width: 256px;
    height: 24px;
    font-weight: bold;
    border: 1px solid #333;
    margin: 10px;
}

div#connect button {
    width: 160px;
    font-size: 18px;
    /*font-weight: bold;*/
    border: 1px solid #333;
    border-radius: 4px;
    margin: 20px auto;
    background-color: #abc;
    display: block;
}

/* content */

div#content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
}

/* separator */

div#separator {
    width: 10px;
    height: 100%;
    background-color: #333;
    cursor: e-resize; 
}

/* map */

div.map {
    /*position: relative;*/
}
div#map {
    width:  100%;
    height: 100%;
}
div#map1, div#map2 {
    /*width:  50%;*/
    /*height: 100%;*/      
}

/* shadow */

div#shadow {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.5; 
}

/* button */

button.disabled {
    opacity: 0.5;
}
button.hidden,
button.ol-hidden {
    display: none;
}
button.active {
    background-color: #F99200 !important;
}
button:not(.disabled):not(.active):hover, 
button:not(.disabled):not(.active):focus {
    /*background-color: rgba(255, 128, 128, 0.75);*/
} 

/* overview map */
div.ol-overviewmap {
    /*bottom: 4px;*/
    /*right: 4px;*/
    padding: 10px;
}
div.ol-overviewmap.ol-uncollapsible {
    bottom: 0;
    left: 0;
    border-radius: 0 54px 0 0;
}
div.ol-overviewmap.ol-collapsed .ol-overviewmap-map,
div.ol-overviewmap.ol-uncollapsible button {
    display: none;
}
div.ol-overviewmap:not(.ol-collapsed) {
    background: rgba(7,125,255,0.5);
    border: 1px solid black;
}
div.ol-overviewmap .ol-overviewmap-map {
    border: none;
    width:  200px;
    height: 200px;
    background: rgba(255,255,255,0.75);
    border-radius: 4px;
    cursor: auto;
}
div.ol-overviewmap .ol-overviewmap-box {
    border: 1px solid black;
    cursor: pointer;
    background: rgba(0,0,0,0.0);
}
div.ol-overviewmap.ol-collapsed button,
div.ol-overviewmap.ol-collapsed button:hover,
div.ol-overviewmap.ol-collapsed button:focus,
div.ol-overviewmap:not(.ol-collapsed) button,
div.ol-overviewmap:not(.ol-collapsed) button:hover,
div.ol-overviewmap:not(.ol-collapsed) button:focus {
    position: absolute;
    top:  auto;
    left: auto;
    right:  1px;
    bottom: 1px;
    /*font-size: 16px;*/
    font-family: sans-serif;
    text-align: center;
    background: #000;
    /*border: 1px solid #ddd;*/
}
div.ol-overviewmap.ol-collapsed button {
    width: auto;
    height: 28px;
    padding: 4px;
    color: #FFF;
}
div.ol-overviewmap:not(.ol-collapsed) button {
    width: 28px;
    height: 28px;
    color: #F00;
}

/* zoom slider */

div.ol-zoom-slider {
    bottom: 60px;
    left: 0px;
    width: 102px;
    display: flex;
    flex-flow: column wrap;
}
div.ol-zoom-slider.ol-hidden {
    display: none;
}
div.ol-zoom-slider-slider {
    width: 46px;
}
button.ol-zoom-slider-thumb {
    position: relative;
    width: 46px;
    height: 46px;    
}
button.ol-zoom-slider-step {
    position: relative;
    width: 46px;
    height: 28px;
    background-color: rgba(7, 125, 255, 0.75) !important;       
}
button.ol-zoom-slider-step:hover,
button.ol-zoom-slider-step:focus {
    background-color: rgba(255, 128, 128, 0.75) !important;       
}
button.ol-zoom-slider-thumb {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* focus slider */

div.ol-focus-slider {
    top: 128px;
    right: 52px;
    width: 52px;
}
div.ol-focus-slider.ol-hidden {
    display: none;
}
div.ol-focus-slider-slider {
    width: 46px;
    min-height: 200px;
}
div.ol-focus-slider button {
    position: relative;
    width: 46px;
    height: 46px;    
    font-size: 150%;
}
button.ol-focus-slider-thumb {
    background-color: rgba(128, 128, 255, 1) !important;
}

/* slider button */

button.ol-slider-plus,
button.ol-slider-minus {
    position: relative;
    width: 46px;
    height: 46px;    
}
button.ol-slider-plus {
    top: 0px;
}
button.ol-slider-minus {
    bottom: 0px;
}
button.ol-slider-plus.on {
    background-image: url("images/button-slider-plus-on.png");
}
button.ol-slider-plus.off {
    background-image: url("images/button-slider-plus-off.png");
}
button.ol-slider-minus.on {
    background-image: url("images/button-slider-minus-on.png");
}
button.ol-slider-minus.off {
    background-image: url("images/button-slider-minus-off.png");
}

/* overlay element */

div.ol-scale-line,
div.ol-magnification,
div.ol-resolution,
div.ol-rotation,
div.ol-custom-mouse-position {
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
    position: absolute;
    color: #eee;
    font-size: 12px;
    text-align: center;
}
div.ol-scale-line-inner {
    border: 1px solid #eee;
    border-top: none;
    color: #eee;
    font-size: 12px;
    text-align: center;
    margin: 1px;
    will-change: contents, width;
}
div.ol-scale-line {
    bottom: 4px;
    left: 4px;  
    height: 24px;  
    padding: 2px;
}
div.ol-magnification {
    top: 4px;
    left: 4px;
    width: 60px;
    height: 24px;
    padding: 4px;
}
div.ol-resolution {
    top: 4px;
    left: 68px;
    width: 60px;
    height: 24px;
    padding: 4px;
}
div.ol-rotation {
    top: 4px;
    left: 132px;
    width: 60px;
    height: 24px;
    padding: 4px;
}
div.ol-custom-mouse-position {
    bottom: 32px;
    left: 4px;
    /*width: 114px;*/
    height: 24px;
    padding: 4px;
}

div.watermark {
    position: absolute;
    top: 0px;
    right: 0px;
    /*width: 120px;*/
    height: 76px;
    font-size: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    margin: 0px;
    padding: 10px;
    color: #333;
}

div.copyright {
    position: absolute;
    bottom: 0px;
    right: 0px;
    height: 18px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.5);
    margin: 0px;
    padding: 0.5px;
    color: #333;
}

div.viewer-version {
    position: absolute;
    bottom: 8px;
    /*width: 100%;*/
    text-align: center;
    font-size: 8px;
    margin: 0px auto;
    padding: 0px;
    color: rgba(0, 0, 0, 0.1);
}

@media print {
    .watermark{ display:block; }
    .copyright{ display:block; }
}

/* cursor */

div.cursor {
    position: absolute;
    top: 0px;
    left: 0px;
    display: block;
}
div.cursor-name {
    height: 30px;
    color: #000000;
    font-size: 24px;
    text-align: left;
    text-shadow:  2px  2px 0px #ffffff,
                  2px -2px 0px #ffffff,
                 -2px  2px 0px #ffffff,
                 -2px -2px 0px #ffffff;
}

/* popup */

div.ol-popup {
    display: none;
    position: absolute;
    background-color: white;
    padding: 10px 25px 10px 10px;
    border: 1px solid #cccccc;
    bottom: 12px;
    left: -50px;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.4);
}
div.ol-popup.marker {
    margin-bottom: 30px;
}
div.ol-popup:after, .ol-popup:before {
    /*top: 100%;*/
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}
div.ol-popup:after {
    border-top-color: white;
    border-width: 10px;
    bottom: -20px;
    left: 48px;
    margin-left: -10px;
}
div.ol-popup:before {
    border-top-color: #cccccc;
    border-width: 11px;
    bottom: -22px;
    left: 48px;
    margin-left: -11px;
}
div.ol-popup-content {
    width: 240px;
    /*min-width: 64px;*/
    /*max-width: 240px;*/
    /*max-height: 180px;*/
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
a.ol-popup-closer {
    position: absolute;
    top: 2px;
    right: 6px;
    font-size: 130%;
    color: gray;
    text-decoration: none;
}
a.ol-popup-closer:after {
    content: "\2716";
}
div.ol-popup-label {
    font-size: 150%;
    overflow: hidden;
}
input.ol-popup-label-edit {
    background-color: #ffffee;
    width: 240px;
    height: 30px;
}
div.ol-popup-description {
    background-color: #eeffff;
    padding: 5px;
    border: 1px solid #cccccc;
    max-height: 140px;
    overflow-x: hidden;
}
textarea.ol-popup-description-edit {
    background-color: #ffffee;
    width: 240px;
    height: 140px;
}

/* master button (discussion) */

div.master-button {
    position: absolute;
    top: 0px;
    left: 0px;
}
div.master-button button,
div.master-button button:hover,
div.master-button button:focus {
    min-width: 96px;
    height: 32px;
    font-size: 16px;
    /*font-weight: bold;*/
    text-align: center;
    line-height: 1;
    background-color: #66FF66;
    /*opacity: 0.5;*/
    margin: 0px;
    padding: 4px;
    color: #000;
    border: 4px solid #66FF66;
}
div.master-button button.sync,
div.master-button button.sync:hover,
div.master-button button.sync:focus {
    background-color: #FF6666;
}
div.master-button button.sync.master,
div.master-button button.sync.master:hover,
div.master-button button.sync.master:focus {
    background-color: #FFFF66;
}
div.master-button button.chair,
div.master-button button.chair:hover,
div.master-button button.chair:focus {
    border-color: transparent;
}

/* playback text (discussion) */

div.playback-text {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    width: 120px;
    height: 32px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    line-height: 1;
    background-color: #FFF;
    margin: 0px auto;
    padding: 4px;
    color: #F00;
    border: 4px solid #F00;
    border-radius: 16px;
    animation: flash 1s infinite;
}

@keyframes flash {
    50% { opacity: 0 }
}

/* stereo player (video) */

div#stereo {
    width: 100%;
    height: 100%;
    background-color: #333;
}
.stereo-time {
    position: absolute;
    top: 0;
    left: 0;
    width: 96px;
    height: 24px;
}
.stereo-player {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
}
.stereo-player img,
.stereo-player video,
.stereo-player canvas {
    margin: 0; 
    object-fit: fill;
}

.stereo-control {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.stereo-control button {
    font-size: 30px;
    color: #077DFF;
    width: 46px;
    height: 46px;
    margin: 1px;
    outline: none;
    border: 4px;
    border-radius: 2px;
    border-style: none;
    border-color: rgba(255, 120, 120, 0.75);
    background-color: #FFFFFF;
    background-repeat: no-repeat;
    background-position: center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}
.stereo-control button:hover:not(.disabled) {
    background-color: rgba(255, 120, 120, 0.75);
}
.stereo-control button.progress {
    text-decoration: none;
    border-style: solid;
}
.stereo-control button.disabled {
    opacity: 0.5;
}
.stereo-control button#play {
    background-image: url("images/button-play.png");
}
.stereo-control button#pause {
    background-image: url("images/button-pause.png");
}
.stereo-control button#stop {
    background-image: url("images/button-stop.png");
}
.stereo-control button#skip {
    background-image: url("images/button-skip.png");
}
.stereo-control button#scan {
    background-image: url("images/button-scan.png");
}
.stereo-control button#side-by-side {
    background-image: url("images/button-side-by-side.png");
}
.stereo-control button#line-by-line {
    background-image: url("images/button-line-by-line.png");
}
.stereo-control button#parallax-barrier {
    background-image: url("images/button-parallax-barrier.png");
}
.stereo-control button#swap {
    background-image: url("images/button-swap.png");
}
.stereo-control button#swap.left {
    background-image: url("images/button-swap-left.png");
}
.stereo-control button#swap.right {
    background-image: url("images/button-swap-right.png");
}
.stereo-control button#left {
    background-image: url("images/button-left.png");
}
.stereo-control button#right {
    background-image: url("images/button-right.png");
}
.stereo-control button#up {
    background-image: url("images/button-up.png");
}
.stereo-control button#down {
    background-image: url("images/button-down.png");
}
.stereo-control button#rotate {
    background-image: url("images/button-rotate.png");
}
.stereo-control button#target {
    background-image: url("images/button-target.png");
}
.stereo-control button#cursor {
    background-image: url("images/button-cursor.png");
}
.stereo-control input[type="range"] {
    height: 21px;
    padding: 0px;
    vertical-align: middle;
}

.stereo-control-buttons,
.stereo-control-sliders {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    display: flex;
    justify-content: center;
}
.stereo-control-buttons {
    bottom: 0;
    flex-direction: row;
}
.stereo-control-sliders {
    bottom: 48px;
    flex-direction: column;
    align-items: center;
}
