.aeroMapModalOverlay {
    position: fixed;
    z-index: 150;
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(5,5,5,0.5);
}

/* The Modal (background) */
.aeroMapModal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 200; /* Sit on top */
    left: 0;
    top: 0;
    background-color: rgb(255,255,255); /* Fallback color */
    /*background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    
    /* Display aero map as a modal section */
    width: 90%;
    height: 90%; 
    margin-top: 3%;
    margin-bottom: 5%;
    margin-right: 5%;
    margin-left: 5%;
    overflow: auto; /* Enable scroll if needed */
    border-style: ridge;
    border-radius: 10px;
    border-width: 2px;
    /* End of Display aero map as a modal section */
    
    /* Display aero map above the whole browser */
    /*width: 100%; /* Full width */
    /*height: 100%; /* Full height */
    
}
.loadingMessage{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

/* Modal Content/Box */
.aeroMapModal-content {
    background-color: #fefefe;
    /*margin: 15% auto; /* 15% from the top and centered */
    padding: 0px;
    /*border: 1px solid #888;*/
    width: 100%; /* Could be more or less, depending on screen size */
    height: 100%;
}

/* The Close Button */
.close {
    /* color: #aaa; */
    float: right;
    font-size: 20px;
    /* font-weight: bold; */
    right: 10px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.map{
    margin-left: 305px;
    /*min-height:100%;*/
    /*padding:20px;*/
    height: 100%;
}

/*Form-like windows*/
.mainContainer{
   background-color: #CCCCFF;
   
   position: absolute;
   top:0px;
   bottom: 0px;
   
   width: 100%;
   
}
.mapContainer{
    float: right;
    right: 0;
    left:305px;
    width: 100%;
    margin-left:305px;
    height: 100%;
}
.sideBar{
   /* Original gray color */
   /*background-color: #555;*/

   /* RLP dark blue color */
   background-color: #00205b;

   /* RLP medium blue */
   /*background-color: #007396;

   /* RLP light blue */ 
   /*background-color: #00A9E0;*/

   width: 305px;
   float: left;
   position: absolute;
   top:0px;
   bottom: 0px;
   overflow-y: hidden;
}

/*
 * Style of route buttons, Add above and Delete
 */
.aeroMapRouteElemBtn{
    width: 8em;
    margin: 0px;
}

/*
 * Style of Save and Restart buttons
 */
.aeroSideBarLowerBtn{
    /*background-color: #00a9e0;
    color: #fff;*/
    width: 40%;
}

/* Common class for all map bars */
.mapBars{
    /* Clear other classes that copy mapBars contents*/
    background-color: rgba(0,0,0,0.5);
    /*background-color: rgba(0,60,136,.3);*/
    /* TODO: add alternative color without transparency */
    border-radius: 5px;
    color: white;
    padding: 5px;
    /*padding-bottom: 10px;*/
}
.footerLeft{
    background-color: rgba(255,255,255,0.8);/* Clear */
    /*width:100%;
    height: 20px;*/
    bottom: 8px;
    left: 180px;
    position:absolute;
    padding:15px;/* Clear */
    border-radius: 5px;/* Clear */
    border-color: #ff0000;
    border-width: 3px;
    border-style: solid;
    color: red;/* Clear */
    /*TODO: comment if you want to see the footer */
    display: none;
    font-size: 18px;
}

.footerRight{
    background-color: rgba(0,0,0,0.5); /* Gray */
    /*background-color: rgba(0,60,136,.3);*/ /*ol blue*/
    /*width:100%;
    height: 20px;*/
    bottom:8px;
    right: 8px;
    float: right;
    position:absolute;
    padding:5px;/* Clear */
    border-radius: 5px;/* Clear */
    color: white;/* Clear */
}

/* -- Upper bar -- */

.upperBars{
    /*height: 20px;*/
    top: 8px;
    position:absolute;
}

.upperLeftBar{
    /*background-color: wheat;*/
    /* width:100%; */
    left: 80px;
    margin-left:305px;
    color: white;
    margin-right: 70px;
}

#upperLeftBar p{
    color: white;
}

.uppperBarBtn{
    padding: 1px 2px;
}

.upperRightBar{
    right: 12px;
    float: right;
    padding: 0px;
}

/* Drag bar */
.dragBar{
   background-color:gray;
   height:100%;
   float: right;
   width: 5px;
   cursor: col-resize;
}

#currCoordinates{
    float: right;
    font-family: monospace;
}


/*Pop up*/
.ol-popup {
    position: absolute;
    background-color: white;
    -webkit-filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #cccccc;
    bottom: 12px;
    left: -50px;
    min-width: 280px;
}
.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: white;
    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-closer {
    text-decoration: none;
    position: absolute;
    top: 2px;
    right: 8px;
}
.ol-popup-closer:after {
    content: "X";
}

/* Upper bar buttons style */
.upperBarButton{
    border:1px solid gray;
    display: inline-flex;
}

/* Side bar */

.sideBarElemListContainer{
    height: 100%;
    /*overflow: hidden;*/
    padding-bottom: 60px;
}

.sideBarElemList{
    /*float: left;
    background-color: pink;
    width: 100%;*/
    
    /*position:fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 10px;*/
    /*background-color: slateblue;*/
    padding: 5px;
    padding-right: 10px;
    overflow-y: auto;
    overflow-x: auto;
    height: 100%;
}

.sideBarElem{
    background-color: gainsboro;
    border-width: 1px;
    border-color: white;
    padding: 5px;
    border-radius: 5px;
    border-style: solid;
    margin: 5px;
    cursor: pointer;
}

.sideBarElem:hover{
    background-color: #f0f0f0;
}

.sideBarElemName{
    float: left;
    font-weight: bold;
}

.sideBarElemType{
    float:right;
}

.sideBarElemControlOuter{
    border-top-style: solid;
    border-top-width: 1px;
    border-top-color: white;
    transition: max-height 0.5s ease-in;
    transition: height 0.5s ease-in;
    overflow: hidden;
    text-align: center;
}

.sideBarElemControlOuter{
    width: 100%;
}

.sideBarElemControlInner{
    overflow-y: auto;
}

.sideBarElemCoord{
    border-top-style: solid;
    border-top-width: 1px;
    border-top-color: white;
    font-family: monospace;
    text-align: center;
}

.sideBarButtons{
    bottom: 5px;
    padding: 5px;
    position: absolute;
    height: 50px;
    width: inherit;
    text-align: center;
}

.popupContent{
    overflow-y: auto;
    color: #000;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

.popupNormalElem{
    padding-left: 4px;
    padding-right: 4px;
    padding-top: 2px;
    padding-bottom: 2px;    
}

.popupSelectedElem{
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    color: #fff;
    background-color: rgba(0,0,0,0.5);
    padding-left: 4px;
    padding-right: 4px;
    padding-top: 2px;
    padding-bottom: 2px;    
}

.aeroMapBtn{
    padding-left: 4px;
    padding-right: 4px;
    padding-bottom: 2px;
    padding-top: 2px;
}

.aeroMapAddWayPointInput{
   width: 100%;
}

.aeroMapMessageDialogHeading{
    font-size: 18px;
}

#aeroMapMessageDialogBody p{
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    color: #333;
}

#aeroMapMessageDialogBody label{
    font-weight: bold;
}

#aeroMapAddRouteElemSearchBtn{
    padding: 6px 12px;
    font-size: 14px;
}

#closeHtml5AeroMap{
    opacity: 0.9;
}

#closeHtml5AeroMap:hover{
    opacity: 1;
}

#closeHtml5AeroMapLoadingScreen{
    opacity: 0.9;
}

#closeHtml5AeroMapLoadingScreen:hover{
    opacity: 1;
}

.tooltip-measure {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    color: white;
    padding: 4px 8px;
    opacity: 0.7;
    white-space: nowrap;
    opacity: 1;
    font-weight: bold;
}

.tooltip-measure: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%;
}

.sideBarShowHide{
    top: 70px;
    position: absolute;
    left: -2px;
    margin-left: 305px;
    cursor: pointer;
}