﻿/* COLLECTION OF CUSTOM STYLES RELATED TO MAP WIDGED */

#map {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    position:relative;
}

.map:-moz-full-screen {
    height: 100%;
}
.map:-webkit-full-screen {
    height: 100%;
}
.map:fullscreen {
    height: 100%;
}
/* position the rotate control lower than usual */            
                  
.ol-scale-line                              { top: 10px; left: 150px; bottom: auto; background: rgba(60, 60, 60, .5); padding: 0; position: absolute }
.ol-scale-line-inner                        { border: 1px solid #eee; border-top: none; color: #eee; font-size: 11px; text-shadow: none; text-align: center; margin: 1px; will-change: contents, width, left }

.ol-overlay-container                       { will-change: left, right, top, bottom }
.ol-unsupported                             { display: none }
.ol-viewport .ol-unselectable               { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent }
.ol-zoom                                    { float:left; top: 8px; left: 8px; position:absolute; }
.ol-rotate                                  { top: 69px; left: 8px; transition: opacity .25s linear, visibility 0s linear }
.ol-rotate.ol-hidden                        { opacity: 0; visibility: hidden; transition: opacity .25s linear, visibility 0s linear .25s }
.ol-compass                                 { display: block; font-weight: 400; font-size: 1.2em; will-change: transform }
.ol-touch .ol-control button                { font-size: 1.5em }
.ol-zoom .ol-zoom-in                        { border-radius: 4px 4px 0 0; height: 30px; width:30px; }
.ol-zoom .ol-zoom-out                       { border-radius: 0 0 4px 4px; height: 30px; width:30px; }

.ol-control                                 { background-color: rgba(255, 255, 255, .4); border-radius: 4px; padding: 3px }
.ol-control:hover                           { background-color: rgba(255, 255, 255, .85) }
.ol-control button:focus,
.ol-control button:hover                    { text-decoration: none; background-color: #4c6079; background-color: rgba(60, 60, 60, .7) }
.ol-control button                          { display: block; padding: 0; color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; text-align: center; background-color: rgba(60, 60, 60, .5); border: none; border-radius: 4px }
.ol-control button: : -moz-focus-inner      { border: none; padding: 0 }
.ol-attribution                             { display: none; }

.ol-box                                     { box-sizing: border-box; border: 1px solid #fff; }
.ol-dragbox                                 { border: 1px #fff dashed; }
.ol-dragbox-hidden                          { display: none; }

            
            
.tooltip {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    color: white;
    padding: 4px 8px;
    opacity: 0.7;
    white-space: nowrap;
    }
    .tooltip-measure {
    opacity: 1;
    font-weight: bold;
    }
    .tooltip-static {
    background-color: #ffcc33;
    color: black;
    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;
    }
            
.toolbar {
    width: auto;
    height: auto;
    padding: 4px;
    position:absolute;
    top:8px;
    right:8px;
    z-index:50;
    background-color: rgba(255, 255, 255, .4);    
    border-radius: 4px;                
}
            
.toolbutton
{
    display:inline-block;
    border-radius: 4px;
    width: 30px;
    height: 30px;                              
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;    
    background-color: rgba(60, 60, 60, .5);       
    border-color:transparent;                
}
            
.activetool
{
    background-color:  rgba(60, 60, 60, .85);            
}            
.toolbutton:hover
{
    background-color:  rgba(60, 60, 60, .85);            
}   
      
.layerlistBtn
{
    background-image: url("/css/original/images/layerlist.png");           
             
}
            
.eraserBtn
{
    margin-left:5px;  
    background-image: url("/css/original/images/eraser.png");           

}
            
.measureLineStringBtn
{
    margin-left:5px;
    background-image: url("/css/original/images/measuredistance.png");          
                   
}
            
.measurePolygonBtn
{
    margin-left:5px;
    background-image: url("/css/original/images/measurearea.png");           
}
            
.toolPanel
{
    position: absolute;
    top: 48px;
    right: 8px;
    z-index: 50;
    margin: 0px;
    padding: 4px;
    display: inline;
    width: auto;
    height: auto;
    visibility: hidden;            
    background-color: rgba(255,255,255, .4); 
    border-radius:4px;
}

.maptoolscontainer {
    position:relative;
    height:100%; width:100%; padding:0px; margin:0px;
}


/* map notifier area */
#map span.map_notification {
    position:absolute;
    bottom: 40px;
    left: 20px;
    background-color: #666;
    overflow-y:hidden;
    font-size:20px;
    color:#fff;
    border:solid 1px #000;
    border-radius:6px;
    padding:8px;
}

#map span.map_notification > span {
    padding-left:10px;
}

/* map notifier area */


/* LAYER SWITCHER STYLES */
.layer-switcher 
{
    padding: 0 1em 0 0;      
    border-radius: 4px;    
    background-color: rgba(60, 60, 60, .85);    
    color:White;
    overflow-y: auto;   
    display: block;  
    position:static;     
    
}

.layer-switcher ul {
    padding-left: 1em;
    list-style: none;
}

.layer-switcher li.group {
    padding-top: 5px;
    padding-bottom: 5px;
}

.layer-switcher li.group > label {
    font-weight: bold;
    font-size:18px;
    text-decoration:underline;
}

.layer-switcher li.layer {
    display: table;
}

.layer-switcher li.layer label, .layer-switcher li.layer input {
    display: table-cell;
    vertical-align: sub;
}

.layer-switcher input {
    margin: 4px;
}

.layer-switcher.touch ::-webkit-scrollbar {
    width: 4px;
}

.layer-switcher.touch ::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    border-radius: 10px;
}

.layer-switcher.touch ::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}


.layer-switcher li.layer {
    padding-top: 5px;
    margin-left: 10px;
}

.layer-switcher li.layer,
.layer-switcher li.layer label{
    cursor:pointer;
}

.layer-switcher li.layer input[type=radio],
.layer-switcher li.layer input[type=checkbox]{
      border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}


.layer-switcher li.layer input[type=radio] + label:before,
.layer-switcher li.layer input[type=checkbox] + label:before{
   content: "\f070";
   display: inline-block;
  font: normal normal normal 18px/1 FontAwesome;
  font-size: 20px;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-right: 10px;
}


.layer-switcher li.layer input[type=radio]:checked + label:before,
.layer-switcher li.layer input[type=checkbox]:checked + label:before {
    content: "\f06e";
}

/* POPUP */

.ol-popup {
    position: absolute;
    background-color: #4765a0;
    padding: 15px;
    border: 3px solid #000;
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 10px rgba(0,0,0,0.4);
    bottom: 12px;
    left: -50px;
}


.ol-popup h4.popup-title
{
    color: #fff;
    text-align: center;
    margin-top: -5px;
    margin-bottom: 15px;
}

.ol-popup div.popup-content
{
    background-color: #fff;
    margin-bottom: 15px;
    border-radius: 3px;
    padding: 5px 10px;
    color: #000;
}

.ol-popup i.popup-info
{
    color:#fff;
    font-weight:500;
    float: right;
}

.ol-popup i.popup-info + a
{
    padding-right: 5px;
    float: right;
    margin-top: -0.2em;
}

.ol-popup i.popup-close
{
    position: absolute;
    right: 5px;
    top: 5px;
    color: white;
    cursor: pointer;
}

.ol-popup i.popup-close:hover
{
    color:#000;
}

.ol-popup:after, .ol-popup:before {
    top: 100%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.ol-popup:after {
    border-top-color: #000;
    border-width: 10px;
    left: 48px;
    margin-left: -10px;
}

.ol-popup:before {
    border-top-color: #cccccc;
    border-width: 11px;
    left: 48px;
    margin-left: -11px;
}

.ol-popup-content {
    min-width: 170px;
    max-height: 200px;
    overflow-x: auto;
}

.ol-popup-closer {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 150%;
    padding: 0 4px;
    color: gray;
    text-decoration: none;
}

.ol-popup-closer:after {
    content: "✖";
}

.ol-popup div.infoResult {
    min-width: 130px;
}

.ol-popup div.infoResult p {
    padding: 0.1em;
    margin: 0;
}

.ol-popup-content h3 {
    margin: 0.25em 0;
}

.ol-popup.marker {
    margin-bottom: 30px;
}


.popup-content  {
    color:#fff;
}

/* POPUP */