
/*Layers list*/
.layer-switcher {
    position: absolute;
    top: 9em;
    right: 0.5em;
    text-align: left;
}

.layer-tree-panel {
    padding-right: 50px;
    border: 1px solid #cccccc;
    background-color: white;
    overflow: auto;
    height: auto;
    max-height:500px;
}

@keyframes expandirLayer {
    0% {
      height: 0px;
    }
    100% {
      height: 248px;
    }
}

@keyframes contraerLayer {
    0% {
      height: 248px;
    }
    100% {
      height: 0px;
    }
}

.layer-switcher .layer-tree-panel {
    overflow: hidden;
    height: 0px;
    animation-name: contraerLayer;
    animation-duration: 0.6s;
}

.layer-switcher.shown .layer-tree-panel {
    height: auto;
    animation-name: expandirLayer;
    animation-duration: 0.6s;
}

.layer-switcher button {
    float: none;
    width: 330px !important;
    height: 32px;
    background-image: url('resources/arrow01.png');
    background-position: 6px;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
}

.layer-switcher.shown button {
    background-image: url('resources/arrow02.png');
}

.layer-switcher button:focus, .layer-switcher button:hover {
    background-color: white;
}

.layer-tree-panel  li {
    list-style-type:none;
    margin:0;
    padding:5px 0px 7px 4px;
    position:relative;
}
.layer-tree-panel  li::before, .layer-tree-panel  li::after {
    content:'';
    left:-10px;
    position:absolute;
    right:auto
}
.layer-tree-panel  li::before {
    border-left:1px solid #999;
    bottom:40px;
    height:100%;
    top:0;
    width:1px
}
.layer-tree-panel  li::after {
    border-top:1px solid #999;
    height:10px;
    top:25px;
    width:25px
}
.layer-tree-panel  li span {
    display:inline-block;
    padding:3px 8px;
    text-decoration:none
}
.layer-tree-panel  li.parent_li>span {
    cursor:pointer
}
.layer-tree-panel >ul>li::before, .layer-tree-panel >ul>li::after {
    border:0
}
.layer-tree-panel  li:last-child::before {
    height:20px
}





/*Legend*/
.legend {
    position: absolute;
    top: 12em;
    right: 0.5em;
    text-align: left;
}

.legend-panel {
    padding-right: 32px;
    border: 1px solid #cccccc;
    background-color: white;
    height: auto;
    max-height:500px;
    overflow: auto;

}

@keyframes expandirLegend {
    0% {
      height: 0px;
    }
    100% {
      height: 600px;
    }
}

@keyframes contraerLegend {
    0% {
      height: 600px;
    }
    100% {
      height: 0px;
    }
}

@keyframes moveDownLegend {
    0% {
      top: 12em;
    }
    100% {
      top: 32em;
    }
}

@keyframes moveUpLegend {
    0% {
      top: 32em;
    }
    100% {
      top: 12em;
    }
}

.legend.move-down{
    top: 32em;
    animation-name: moveDownLegend;
    animation-duration: 0.6s;
}

.legend.move-up{
    top: 12em;
    animation-name: moveUpLegend;
    animation-duration: 0.6s;
}

.legend .legend-panel {
    height: 0px;
    animation-name: contraerLegend;
    animation-duration: 0.6s;
}

.legend.shown .legend-panel {
    height: auto;
    animation-name: expandirLegend;
    animation-duration: 0.6s;
}

.legend button {
    float: none;
    width: 330px !important;
    height: 25px;
    background-image: url('resources/arrow01.png');
    background-position: 6px;
    background-color: transparent;
    background-repeat: no-repeat;
    border: none;
}

.legend.shown button {
    background-image: url('resources/arrow02.png');
}

.legend button:focus, .legend button:hover {
    background-color: white;
}

.expandableList ul {
  padding: 0 0 0 30px;
  width: 300px;
}

.expandableList li
  {
    position: relative;
    list-style: none;
    margin-left: -15px;
    margin-top:15px;
    padding: 0;
  }
.expandableList  li input
  {
    position: absolute;
    left: 0;
    margin-left: 0;
    opacity: 0;
    z-index: 2;
    cursor: pointer;
    height: 1em;
    width: 1em;
    top: 0;
  }
.expandableList li input + ul
    {
      background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAURJREFUeNpi/P//PwMlgImBQkCxASwwRlLLKwYmJqZgRkbGbiBXEYva+0Dvlv7792/tvBoxTAO+fv0MororE6UU9VU5MHRfvP1DsX3+M5DhaxkYxDC98ObNGxBW1FVmY/j16xcYu6SdYvjw4QPDixcvGGSEvoLlQeqweuHdu7dg+vfv32D85ctXsNijR4/B4hwcnHA1WA348uUbmP779y+DUchOuIKQsltgetsUE7garAb8/w9h/vz5h+H0Sk8w2yRsN8OZVa5g9ocPn+BqsBrAzs4PdQEzw48ff+Fi375B2Gxs3HA1WNPB45NlDNzcIvfPXv8LVMwJxmdWOcDZF2//A8uD1GF1wefXZ8Q+Pt42oWN+VBED41d5DKv+/30IlJ8IVCcF5D2DCTPC8gIwAXEDKT4Qk0Di+wzU8xnDgKGbmQACDAAtTZadqmiADQAAAABJRU5ErkJggg==') 40px 0px no-repeat;
      margin: -22px 0 0 -44px; /* 15px */
      height: 1em;
    }
.expandableList li input + ul > li { display: none; margin-left:-14px !important; padding-left: 1px; }
.expandableList li label
  {
    cursor: pointer;
    display: block;
    padding-left: 20px;
  }

.expandableList li input {
    display: none;
}

.expandableList li input:checked + ul
  {
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAASxJREFUeNpi/P//PwMlgImBQkCxASwwRlLLKwYmJqZgRkbGbiBXEYva+0Dvlv7792/tvBoxTAO+fv0MororE6UU9VU5MHRfvP1DsX3+M5DhaxkYsBjw5s0bEKWoq6zA8OvXL7AYKIC/f//O8OPHDwYZIVaQGqjLlDENePfuLZj+/fs3GH/58pXh/fv3YDYIcHBwwtVgDYMvX76B6b9//zIYhezEULhtiglcDVYD/v+HMH/+/MNweqUnhsIPHz7B1WA1gJ2dH+oCZqCf/2IoZGPjhqvBmg4enyxj4OYWuX/2+l+gYk4MfPH2P7A8SB1WF3x+fUbs4+NtEzrmRxUxMH6Vx7Dq/9+HQPmJQHVSQN4zmDAjLC8AExA3kOIDMQkkvs9APZ8xDBi6mQkgwADDMYZH9Ls66AAAAABJRU5ErkJggg==') 40px 0px no-repeat;
    margin: -22px 0 0 -44px; /* 20px */
    padding: 2.563em 0 0 80px;
    height: auto;
  }
.expandableList li input:checked + ul > li { display: block; margin: 0 0 0.125em;  /* 2px */}
.expandableList li input:checked + ul > li:last-child { margin: 0 0 0.063em; /* 1px */ }








/*cercar*/


.cercar {
    display: block;
    margin: 1px;
    color: #fff;
    position: absolute;
    font-family: sans-serif;
    font-size: 1.14em;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    background-color: rgba(0,60,136,.5);
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #000000;
    top: 3.5em;
    right: 8px;
    height: 50px;
    width: auto;
    min-width: 335px;
    max-width: 700px;
    z-index: 100;
    overflow: auto;
}


.cercar button {
    float: none;
    width: 330px !important;
    height: 25px;
    background-image: url('resources/arrow01.png');
    background-position: 6px;
    background-color: transparent;
    background-repeat: no-repeat;
    border: none;
}

.cercar.shown button {
    background-image: url('resources/arrow02.png');
}








/*General*/
.toggle {
  width: 100px;
}

html, body {
    height: 100%;
    padding: 0;
    margin: 0;
    font-family: sans-serif;
    font-size: small;
}

.closer-icon {
  font-size: 30px;
  font-weight: bold;
  line-height: 18px;
  color: #000000;
  text-shadow: 0 1px 0 #ffffff;
  opacity: 0.2;
  filter: alpha(opacity=20);
  text-decoration: none;
  position: absolute;
  top: 8px;
  right: 8px;
}
.closer-icon:hover {
  color: #000000;
  text-decoration: none;
  opacity: 0.4;
  filter: alpha(opacity=40);
  cursor: pointer;
}




/*Map*/
#map {
    width: 100%;
    height: 100%;
	color:black;
	font-family: arial;
}

#content {
    width: 100%;
    height:  calc(98% - 60px);
    position:fixed;
    bottom: 0px;
}











/*Popup*/
.ol-popup {
    display: none;
    position: absolute;
    background-color: white;
    -moz-box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    -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;
    padding-top:35px;
    border-radius: 10px;
    border: 1px solid #cccccc;
    bottom: 12px;
    left: -50px;
    height: auto;
    width: auto;
    min-width: 250px;
    max-height: 550px;
    max-width: 700px;
    overflow: auto;
}

keyframes expandirLayer {
    0% {
      height: 0px;
    }
    100% {
      height: 258px;
    }
}

@keyframes contraerLayer {
    0% {
      height: 258px;
    }
    100% {
      height: 0px;
    }
}

.ol-popup-closer {
    text-decoration: none;
    position: absolute;
    top: 2px;
    right: 8px;
    }

.ol-popup-closer:after {
    content: "&#10006;";
}







/*Attribution*/
.ol-attribution {
  text-align: right;
  bottom: .5em;
  right: .5em;
  max-width: calc(100% - 1.3em);
}

.ol-attribution ul {
  margin: 0;
  padding: 0 .5em;
  font-size: .7rem;
  line-height: 1.375em;
  color: #000;
  text-shadow: 0 0 2px #fff;
}

.ol-attribution li {
  display: inline;
  list-style: none;
  line-height: inherit;
}

.ol-attribution li:not(:last-child):after {
  content: " ";
}

.ol-attribution img {
  max-height: 2em;
  max-width: inherit;
}

.ol-attribution button,.ol-attribution ul {
  display: inline-block;
}

.ol-attribution.ol-collapsed ul {
  display: none;
}

.ol-attribution.ol-logo-only ul {
  display: block;
}

.ol-attribution:not(.ol-collapsed) {
  background: rgba(255,255,255,.8);
}

.ol-attribution.ol-uncollapsible {
  bottom: 0;
  right: 0;
  border-radius: 4px 0 0;
  height: 1.1em;
  line-height: 1em;
}

.ol-attribution.ol-logo-only {
  background: 0 0;
  bottom: .4em;
  height: 1.1em;
  line-height: 1em;
}

.ol-attribution.ol-uncollapsible img {
  margin-top: -.2em;
  max-height: 1.6em;
}

.ol-attribution.ol-logo-only button,.ol-attribution.ol-uncollapsible button {
  display: none;
}




































/*About panel*/
.about-panel {
    display: block;
    position: absolute;
    background:rgba(255,255,255,0.7);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #000000;
    top: 90px;
    left: 70px;
    height: 550px;
    width: 300px;
    min-width: 300px;
    z-index: 100
}










/*Mouse position*/
.ol-mouse-position {
  top: 10px;
  right: 70px;
  position: absolute;
  color: #fff;
  background-color: rgba(0,60,136,.5);
  padding: 2px 10px;
  border-radius: 5px;
}





























/*Zoom controls*/
.ol-zoom {
  top: .5em;
  left: .5em;
}
.ol-zoom .ol-zoom-in {
  border-radius: 2px 2px 0 0;
}

.ol-zoom .ol-zoom-out {
  border-radius: 0 0 2px 2px;
}













/


/*OpenLayers controls*/
.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-control {
  position: absolute;
  background-color: #eee;
  background-color: rgba(255,255,255,.4);
  border-radius: 4px;
  padding: 2px;
}

.ol-control:hover {
  background-color: rgba(255,255,255,.6);
}

@media print {
  .ol-control {
    display: none;
  }
}

.ol-control button {
  display: block;
  margin: 1px;
  padding: 0;
  color: #fff;
  font-size: 1.14em;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  height: 1.375em;
  width: 1.375em;
  line-height: .4em;
  background-color: #7b98bc;
  background-color: rgba(0,60,136,.5);
  border: none;
  border-radius: 2px;
}

.ol-control button::-moz-focus-inner {
  border: none;
  padding: 0;
}

.ol-touch .ol-control button {
  font-size: 1.5em;
}

.ol-control button:focus,.ol-control button:hover {
  text-decoration: none;
  background-color: #4c6079;
  background-color: rgba(0,60,136,.7);
}

.ol-compass {
  display: block;
  font-weight: 400;
  font-size: 1.2em;
}













/*Full screen*/
.ol-full-screen {
  right: 10px;
  top: 10px;
}

/*button.ol-full-screen-false:after {
  content: "\2194";
}*/

button.ol-full-screen-true:after {
  content: "\00d7";
}


/*Home button*/
.home-button {
  top: 70px;
  left: .5em;
}














