
/* Style the tab */
div.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
}

/* Style the buttons inside the tab */
div.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
}

/* Change background color of buttons on hover */
div.tab button:hover {
    background-color: #ddd;
}

/* Create an active/current tablink class */
div.tab button.active {
    background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
}

.map {
    height: 100%;
    width: 100%;
    border: thin gray;
    position: absolute;
    top: 0;
    left: 0;
}

#legendPanel {
    height: 100%;
    width: 300px;
    background-color: white;
    border: thin blue;
}

.closedLegendPanel {
    position: absolute;
    top: 0;
    right: -270px;
}

.openedLegendPanel {
    position: fixed;
    top: 0;
    right: 0;
}

.closedBottomPanel {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 30px;
}

.openedBottomPanel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
}

.ol-dragbox {
    background-color: rgba(255,255,255,0.4);
    border-color: rgba(100,150,0,1);
    border-style: solid;
}

#toolbar {
    background-color: rgba(255,255,255,0.5);
}

#toolbar>img {
    margin-left: 5px;
    margin-right: 5px;
    cursor: hand;

}

/*.selectedButton {
    border: none;
    background-color: rgba(0, 255, 0, 0.6);
    box-shadow: 0 0 10px rgb(0, 255, 0);
    border-radius: 5px;
}*/

#legendButton {
    position: relative;
    top:110px;
    left:0;
    width: 25px;
    height: 100px;
    background-color: lightgray;
    border: thin solid gray;
    writing-mode: vertical-rl;
    vertical-align: middle;
    text-align: center
}

#layers ul {
    background-image: url("images/rozbaleno.png");
    background-repeat: no-repeat;
    font-weight: bold;
    list-style-type: circle;
    padding-left: 20px;
}

#layers ul.packed {
    background-image: url("images/sbaleno.png");
}

#layers ul.unpacked {
    background-image: url("images/rozbaleno.png");
}

#layers li {
    font-weight: normal;
}

#layers li.selected {
    font-weight: bold;
    background-color: lightblue;
}

.tooltip {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    color: white;
    font-family: sans-serif;
    font-size: 10pt;
    padding: 4px 8px;
    opacity: 0.7;
    white-space: nowrap;
    pointer-events:none;
}
.tooltip-measure {
    opacity: 1;
    font-weight: bold;
}
.tooltip-static {
    background-color: #ffcc33;
    color: black;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 10pt;
    border: 1px solid white;
}
.tooltip-measure:before,
.tooltip-static:before {
    border-top: 6px solid rgba(0, 0, 0, 0.5);
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
    content: "";
    position: absolute;
    bottom: -6px;
    margin-left: -7px;
    left: 50%;
}
.tooltip-static:before {
    border-top-color: #ffcc33;
}

.numericScale {
    position: absolute;
    bottom: 40px;
    left: 10px;
    font-family: sans-serif;
    font-size: 10pt;
    font-weight: bold;
    padding: 3px;
    color: white;
    border-radius:4px;
    background-color: rgba(0,60,136,0.3);
}

/* Malé menu pro poznámkovou vrstvu */

.redlineMenu {
    background-color: rgba(255,255,255,0.5);
    display: flex;
    flex-direction: column;
    z-index: 99;
    padding: 5px;
    border-radius: 4px;
}

.redlineMenu > .buttonText {
    width: 30px;
    height: 25px;
    background: white url('images/addtext2.png') no-repeat center;
    margin-bottom: 5px;
    border-width: thin;
    border-radius: 4px;
}

.redlineMenu > .buttonDelete {
    width: 30px;
    height: 25px;
    background: white url('images/trash.gif') no-repeat center;
    margin-bottom: 5px;
    border-width: thin;
    border-radius: 4px;
}

.redlineMenu > input {
    width: 25px;
    height: 25px;
    background-color: white;
    margin-bottom: 5px;
    border-width: thin;
    border-radius: 4px;
}

.imageOverlay {
    background: white;
    border: solid black thin;
    padding: 5px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

.imageOverlay img {
    max-width: 100px;
    max-height: 100px;
    height: auto;
}

.imageOverlay .arrow1 {
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: none;
    border-bottom: 15px solid black;
    width: 0; height: 0;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.imageOverlay .arrow2 {
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: none;
    border-bottom: 15px solid white;
    width: 0; height: 0;
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
}

.imageOverlay .close {
    position: absolute;
    right: 5px;
    top: 5px;
    color: black;
    font-size: 22px;
    font-weight: bold;
    border: black thin;
    background: white;
    margin: -4px;
}