/*Main page*/

body {
    margin: 0;
}

.map {
    margin: 0;
    width: 100%;
    height: 100%;
    position: fixed;
}


/*Upper left logo*/

.logo-img {
    position: absolute;
    margin: auto;
    top: 0.5em;
    left: 3.5em;
    width: 100px;
    height: 50px;
    background-color: rgba(227, 226, 213, 1);
    opacity: 0.75;
    border-radius: 4px;
    background-image: url(../logo.png);
}

.logo-img:hover {
    opacity: 1.0;
}


/*Controls : General*/

.ol-control {
    background-color: rgba(227, 226, 213, .75);
}

.ol-control button {
    background-color: rgba(227, 226, 213, 1);
    width: 25px;
    height: 25px;
    font-size: 0em;
}

.ol-control:hover {
    background-color: rgba(227, 226, 213, 1);
}

.ol-control button:focus {
    background-color: rgba(227, 226, 213, 1);
}

.ol-control button:hover {
    background-color: rgba(227, 226, 213, 1);
}

.ol-control-active-green {
    background-color: rgba(0, 255, 0, 0.75);
    position: absolute;
    border-radius: 4px;
    padding: 2px;
}

.ol-control-active-orange {
    background-color: rgba(255, 120, 0, 0.75);
    position: absolute;
    border-radius: 4px;
    padding: 2px;
}

.ol-control-active-green:hover {
    background-color: rgba(0, 255, 0, 1);
}

.ol-control-active-orange:hover {
    background-color: rgba(255, 120, 0, 1);
}


/*Controls : Mouse position*/

.ol-mouse-position {
    position: absolute;
    margin: auto;
    top: 0.5em;
    left: 1em;
    right: 1em;
    width: 250px;
    height: 25;
    background-color: rgba(227, 226, 213, .75);
    border-radius: 4px;
    text-align: center;
    color: black;
}


/*Controls : Layer switcher*/

.layer-switcher {
    right: .5em;
    top: 6.5em;
    position: absolute;
}

.layer-switcher button {
    background-image: url(../data/icons/layers.png);
    background-repeat: no-repeat;
    background-size: 20px, 20px;
    background-position: center;
}

.layer-switcher .panel {
    padding: 0 1em 0 0;
    margin: 0;
    display: none;
    max-height: 100%;
    overflow-y: auto;
    height: fit-content;
    border: 4px solid rgba(227, 226, 213, 1);
}

.layer-switcher.shown {
    bottom: 3em;
}


/*Controls : Full screen*/

.ol-full-screen-false {
    background-image: url(../data/icons/fullscreen.png);
    background-repeat: no-repeat;
    background-size: 20px, 20px;
    background-position: center;
    background-color: rgba(227, 226, 213, 1);
}

.ol-full-screen-true {
    background-image: url(../data/icons/fullscreen.png);
    background-repeat: no-repeat;
    background-size: 20px, 20px;
    background-position: center;
    background-color: rgba(227, 226, 213, 1);
}


/*Controls : Zoom*/

.ol-zoom-out {
    background-image: url(../data/icons/zoom-out.png);
    background-repeat: no-repeat;
    background-size: 20px, 20px;
    background-position: center;
}

.ol-zoom-in {
    background-image: url(../data/icons/zoom-in.png);
    background-repeat: no-repeat;
    background-size: 20px, 20px;
    background-position: center;
}


/*.ol-zoomslider button {
    background-image: url(../data/icons/equal-2.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: rgba(227, 226, 213, 1);
}*/


/*Controls : Attribution*/

.ol-attribution button {
    background-image: url(../data/icons/info.png);
    background-repeat: no-repeat;
    background-size: 20px, 20px;
    background-position: center;
    background-color: rgba(227, 226, 213, 1);
}


/*Controls : Geolocation*/

.geolocate-btn {
    right: .5em;
    top: 3.5em;
    position: absolute;
}

.geolocate-btn button {
    background-image: url(../data/icons/map-location.png);
    background-repeat: no-repeat;
    background-size: 20px, 20px;
    background-position: center;
    background-color: rgba(227, 226, 213, 1);
}


/*Controls : Add feature*/

.addfeature-btn {
    right: .5em;
    top: 3.5em;
    position: absolute;
}

.addfeature-btn button {
    background-image: url(../data/icons/plus.png);
    background-repeat: no-repeat;
    background-size: 20px, 20px;
    background-position: center;
    background-color: rgba(227, 226, 213, 1);
}


/*Controls : Scale line*/

.ol-scale-line {
    background: rgba(227, 226, 213, .75);
}

.ol-scale-line-inner {
    color: black;
    border: 1px solid black;
    border-top: none;
}