/* draw buttons */

.kos-button-freehand {
    background-image: url("images/button-freehand.png");
}
.kos-button-line {
    background-image: url("images/button-line.png");
}
.kos-button-arrow {
    background-image: url("images/button-arrow.png");
}
.kos-button-ruler {
    background-image: url("images/button-ruler.png");
}
.kos-button-circle {
    background-image: url("images/button-circle.png");
}
.kos-button-rectangle {
    background-image: url("images/button-rectangle.png");
}
.kos-button-pin {
    background-image: url("images/button-pin.png");
}

/* edit buttons */

.kos-button-label-edit {
    background-image: url("images/button-label-edit.png");
}
.kos-button-label-popup {
    background-image: url("images/button-label-popup.png");
}
.kos-button-translate {
    background-image: url("images/button-translate.png");
}
.kos-button-angle {
    background-image: url("images/button-angle.png");
}
.kos-button-remove {
    background-image: url("images/button-remove.png");
}
.kos-button-calculate {
    background-image: url("images/button-calculate.png");
}

/* display buttons */

.kos-button-annot.on {
    background-image: url("images/button-annot-on.png");
}
.kos-button-annot.off {
    background-image: url("images/button-annot-off.png");
}

.kos-button-label.on {
    background-image: url("images/button-label-on.png");
}
.kos-button-label.off {
    background-image: url("images/button-label-off.png");
}

/* zoom buttons */
.kos-button-zoomin.on {
    background-image: url("images/button-plus.png");
}
.kos-button-zoomin.off {
    background-image: url("images/button-plus.png");
}
.kos-button-zoomout.on {
    background-image: url("images/button-minus.png");
}
.kos-button-zoomout.off {
    background-image: url("images/button-minus.png");
}

/* view buttons */

.kos-button-home {
    background-image: url("images/button-home.png");
}
.kos-button-refresh {
    background-image: url("images/button-refresh.png");
}
.kos-button-rotate div#compass {
    width: 44px;
    height: 44px;
    background-color: transparent;
    background-image: url("images/button-compass.png");
}
.kos-button-lupe {
    background-image: url("images/button-lupe.png");
}
.kos-button-grid {
    background-image: url("images/button-grid.png");
}
.kos-button-focus {
    background-image: url("images/button-focus.png");
}
.kos-button-history {
    background-image: url("images/button-history.png");
}
.kos-button-bgr {
    background-image: url("images/button-bgr.png");
}
.kos-button-bgr.on {
    transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
}
.kos-button-filter {
    background-image: url("images/button-filter.png");
}

/* information buttons */

.kos-button-info {
    background-image: url("images/button-info.png");
}
.kos-button-thumbnail {
    background-image: url("images/button-thumbnail.png");
}
.kos-button-list {
    background-image: url("images/button-list.png");
}
.kos-button-qrcode {
    background-image: url("images/button-qrcode.png");
}
.kos-button-cursor {
    background-image: url("images/button-cursor.png");
}

/* 3D buttons */

.kos-button-swap {
}
.kos-button-slit {
}

/* sync buttons */

.kos-button-sync {
    background-image: url("images/button-sync.png");
}
.kos-button-generate {
    background-image: url("images/button-generate.png");
    /*background-color: #66FF66 !important;*/
}
.kos-button-chair {
    background-image: url("images/button-chair.png");
    /*background-color: #66FF66 !important;*/
}
.kos-button-scan {
    background-image: url("images/button-scan.png");
    /*background-color: #FFFF66 !important;*/
}

/* syncomp buttons */

.kos-button-syncomp.on {
    background-image: url("images/button-syncomp-on.png");
}
.kos-button-syncomp.off {
    background-image: url("images/button-syncomp-off.png");
}
.kos-button-syncomp-lock.on {
    background-image: url("images/button-syncomp-lock-on.png");
}
.kos-button-syncomp-lock.off {
    background-image: url("images/button-syncomp-lock-off.png");
}

/* file I/O buttons */

.kos-button-load {
    background-image: url("images/button-load.png");
}
.kos-button-save {
    background-image: url("images/button-save.png");
}
.kos-button-capture {
    background-image: url("images/button-capture.png");
}

/* color buttons */

.kos-button-color-white {
    background-color: rgba(255, 255, 255, 1.0) !important;
}
.kos-button-color-black {
    background-color: rgba(  0,   0,   0, 1.0) !important;
}
.kos-button-color-red {
    background-color: rgba(255,   0,   0, 1.0) !important;
}
.kos-button-color-green {
    background-color: rgba(  0, 255,   0, 1.0) !important;
}
.kos-button-color-blue {
    background-color: rgba(  0,   0, 255, 1.0) !important;
}
.kos-button-color-yellow {
    background-color: rgba(255, 255,   0, 1.0) !important;
}

/* stroke buttons */

.kos-button-stroke-fine,
.kos-button-stroke-medium,
.kos-button-stroke-broad {
    background-color: #666 !important;
}

/* sidebar */

.ol-control.toggle-control {
    text-align: left;
    /*border: 1px;*/
    /*background-color: rgba(200, 200, 200, 0.75);*/
    background-color: rgba(48, 48, 48, 0.4);
}
.ol-control.toggle-control:hover {
    background-color: rgba(48, 48, 48, 0.6);
}
.ol-control.toggle-control.ol-hidden {
    display: none;
}

.ol-control.toggle-control-left,
.ol-control.toggle-control-right {
    position: absolute;
    top: 128px;
    display: flex;
}
.ol-control.toggle-control-left {
    left: 0px;
    flex-flow: column wrap;
}

.ol-control.toggle-control-right {
    right: 0px;
    flex-flow: column wrap-reverse;
}

.ol-control.toggle-control button {
    font-size: 30px;
    color: #077DFF;
    width: 46px;
    height: 46px;
    margin: 1px;
    outline: none;
    border: 4px;
    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;
}
.ol-control.toggle-control button:hover:not(.disabled) {
    background-color: rgba(255, 120, 120, 0.75);
}
.ol-control.toggle-control button.single {
    background-color: #FFFFFF;
}
.ol-control.toggle-control button.continuous {
    background-color: #FF0000;
}
.ol-control.toggle-control button.hidden {
    display: none;
}
.ol-control.toggle-control button.progress {
    text-decoration: none;
    border-style: solid;
}
.ol-control.toggle-control button.disabled {
    opacity: 0.5;
}

.space {
    text-decoration: none;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.0);
}

/* history box */

.ol-control.history-box {
    top: 0px;
    right: 52px;
    max-width: 388px;
}
.ol-control.history-box.ol-hidden {
    opacity: 0;
    visibility: hidden;
}
.history-box-control {
    display: flex;
    flex-flow: row-reverse nowrap;   
}
.history-box-button {
    display: flex;
    flex-flow: row wrap;   
    margin-top: 2px;
}
.history-box-button.ol-collapsed {
    display: none;
}
.ol-control.history-box button {
    font-size: 24px;
    font-weight: bold;
    width: 46px;
    height: 46px;
    margin: 1px;
    outline: none;
    border: 4px;
    border-radius: 4px;
    border-style: none;
    border-color: rgba(255, 64, 64, 0.75);
    background-repeat: no-repeat;
    background-position: center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;    
}
.ol-control.history-box button.ol-collapsed {
    display: none;
}
.ol-control.history-box button:not(.active):hover, 
.ol-control.history-box button:not(.active):focus {
    background-color: rgba(255, 128, 128, 0.75);
}
.history-box-control button {
    background-color: #FFF;
}
.history-box-button button {
    color: #000;
    background-color: #CCC;
}
.history-box-button button.flyable {
    background-color: #FFCC99;    
}
.history-box-button button.active {
    /*background-color: #F99200;*/
    border-style: solid;  
}
.history-box-control button#history-toggle {
    background-color: #99FFCC;
    background-image: url("images/button-file-close.png");
}
.history-box-control button#history-toggle.collapsed {
    background-image: url("images/button-file-edit.png");
}
.history-box-control button#history-next {
    background-color: #99FFCC;
    background-image: url("images/button-right.png");
}
.history-box-control button#history-prev {
    background-color: #99FFCC;
    background-image: url("images/button-left.png");
}
.history-box-control button#history-record {
    background-image: url("images/button-capture.png");
}
.history-box-control button#history-add {
    background-image: url("images/button-plus.png");
}
.history-box-control button#history-delete {
    background-image: url("images/button-minus.png");
}
.history-box-control button#history-reset {
    background-image: url("images/button-reset.png");
}
.history-box-control button#history-flymode {
    background-color: #99FFCC;
    background-image: url("images/button-animate-none.png");
}
.history-box-control button#history-flymode.flyover {
    background-image: url("images/button-animate-flyover.png");
}
.history-box-control button#history-flymode.linear {
    background-image: url("images/button-animate-linear.png");
}

/* grid button */

.map-grid-button-list {
    top: 128px;
    right: 52px;
    width: 52px;
    background-color: rgba(255, 255, 255, 0.4);
}
.map-grid-button-list.ol-hidden {
    display: none;
}
.map-grid-button-list button {
    position: relative;
    width: 46px;
    height: 28px;
    color: #ccc;
    background-color: rgba(0, 0, 0, 0.5);  
}
.map-grid-button-list button:not(.disabled):hover {
    background-color: rgba(255, 128, 128, 0.75);    
}
.map-grid-button-list button.progress {
    background-color: rgba(0, 0, 0, 1);      
}
.map-grid-button-list button.disabled {
    background-color: rgba(255, 255, 255, 0.5);      
}

/* toggle button */

.ol-toggle-map,
.ol-toggle-control {
    position: absolute;
    width: 52px;
    height: 52px;    
}
.ol-toggle-map {
    top: 0px;
    right: 0px;
}
.ol-toggle-control#left {
    top: 76px;
    left: 0px;    
}
.ol-toggle-control#right {
    top: 76px;
    right: 0px;    
}
.ol-toggle-map button,
.ol-toggle-map span,
.ol-toggle-control button,
.ol-toggle-control span {
  display: inline-block;
  transition: all .4s;
  box-sizing: border-box;
}
.ol-toggle-map button,
.ol-toggle-control button  {
    position: relative;
    width: 46px;
    height: 46px;
    margin: 1px;
    background-color: #FFF;
}
.ol-toggle-map button:focus,
.ol-toggle-control button:focus {
    background-color: #FFF;
}
.ol-toggle-map button:hover,
.ol-toggle-control button:hover {
    background-color: rgba(255, 120, 120, 0.75);
}

.ol-toggle-map button {
    background-image: url("images/button-toggle-map-full.png");
}
.ol-toggle-map.ol-collapsed button {
    background-image: url("images/button-toggle-map-half.png");
}

.ol-toggle-control span {
    position: absolute;
    left: 7px;
    width: 32px;
    height: 4px;
    background-color: #077DFF;
    border-radius: 4px;
}
.ol-toggle-control span#line1 {
    top: 12px;
}
.ol-toggle-control span#line2 {
    top: 21px;
}
.ol-toggle-control span#line3 {
    top: 30px;
}
.ol-toggle-control.ol-collapsed span#line1 {
    -webkit-transform: translateY(9px) rotate(45deg);
    transform: translateY(9px) rotate(45deg);
}
.ol-toggle-control.ol-collapsed span#line2 {
    opacity: 0;
}
.ol-toggle-control.ol-collapsed span#line3 {
    -webkit-transform: translateY(-9px) rotate(-45deg);
    transform: translateY(-9px) rotate(-45deg);
}
