/* 
 * Leaflet Control Compass v1.5.3 - 2018-11-23 
 * 
 * Copyright 2014 Stefano Cudini 
 * stefano.cudini@gmail.com 
 * http://labs.easyblog.it/ 
 * 
 * Licensed under the MIT license. 
 * 
 * Demos: 
 * http://labs.easyblog.it/maps/leaflet-compass/ 
 * 
 * Source: 
 * git@github.com:stefanocudini/leaflet-compass.git 
 * 
 */

.leaflet-control.leaflet-compass {
    position: relative;
    color: #1978cf;
    font-weight: bold;
    text-align: center;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    margin-left: -2px;
    margin-top: 10px;
    background-size: 40px 40px;
	bottom: -4px !important; 
	margin-right: 1px;
}
.leaflet-compass .compass-icon {
    display: block;
    float: left;
    width: 50px;
    height: 50px;
    border-radius: 4px;
    height: 55px;
    width: 55px;
    background: url(../images/compass-esplora-inattiva@2x.png) center center no-repeat;
    background-size: 60% !important;
    background-position: center;
    border-radius: 20px;
	/*margin-bottom: 5px;*/
}

.leaflet-compass .compass-button.active {
	
}

.leaflet-compass .compass-button.active .compass-icon {
	 height: 55px;
    width: 55px;
    background: url(../images/compass-esplora@2x.png) center center no-repeat;
    background-size: 60% !important;
    background-position: center;
    border-radius: 20px;
	/*margin-bottom: 5px;*/
}


.leaflet-compass .compass-alert {
    position: absolute;
    right: 0;
    bottom: -30px;
    width: 100px;
    padding: 2px;
    line-height: .95em;
    color: #e00;
    border: 1px solid #888;
    background-color: rgba(255, 255, 255, .75);
    border-radius: 4px
}

@-webkit-keyframes compass-icon {
  50% {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
  }
}
@keyframes compass-icon {
  50% {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
  }
}
.compass-icon {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
}
.compass-icon:active {
  -webkit-animation-name: compass-icon;
  animation-name: compass-icon;
  -webkit-animation-duration: 0.2s;
  animation-duration: 0.2s;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
}
