
body {
    margin: 0;
    padding: 0;
}
html, body, #map {
    height: 100%;
    width: 100vw;
}
#map {
    width: 100vw; /* 100% de la largeur de la vue (viewport) */
    height: 100vh; /* 100% de la hauteur de la vue (viewport) */
    background-color: #f0f0f0; /* Couleur de fond (remplacez par la couleur souhaitée) */
    
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
}
main {
  background-color: black;
}
.leaflet-left {
  width: 100%;
  pointer-events: none;
}
.leaflet-touch .leaflet-bar {
  font-size: 19px;
  border: none;
  width: 100%;
  padding-right: 20px;
  pointer-events: none;
}
.leaflet-touch .leaflet-bar > a {
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 25px !important;
  border-bottom-right-radius: 2px !important;
  margin-bottom: 5px;
  pointer-events: all;
}
.leaflet-touch .leaflet-bar i,span {
  color: gray;
}
.marker-btn {
  background-color: #5cb77a;
  border: none;
  color: white;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  border-radius: 10px;
  width: 10px;
  height: 10px;
  display: flex;
  margin: 10px;
  
  justify-content: center;
  align-items: center;
  /* Taille maximale */
  max-width: 200px;
}
.leaflet-popup-content .col2 div{
  margin-left: 0px;
}
.marker-btn-number {
  opacity: 0.6;
}
.marker-btn i {
  font-size: 1.5em;
  color: white;
}
.marker-btn p {
  font-size: 1.5em;
}
.leaflet-popup-content {
  margin: 8px 5px 5px 5px;
  margin: 0;
}
.leaflet-container a.leaflet-popup-close-button {
  display: none;
}
/*
.leaflet-popup-content-wrapper {
  display: flex;
}*/
.leaflet-control-custom {
  margin-top: 0 !important;
}
@keyframes dash {
  0% { stroke-dashoffset: 10; }
  100% { stroke-dashoffset: 0; }
}
.animate {
  animation: dash 1.5s linear infinite;
}
.hidden {
  display: none;
}



#spinner {
  position: fixed;
  width: 150px;
  height: 150px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}
#spinner img {
  animation: spinner 1.2s linear infinite;
  position: absolute;
  width: 150px;
}
#spinner .petal-a {
  z-index: 2;
}
#spinner .petal-a {
  z-index: 1;
}
#spinner img:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -1.1s;
}
#spinner img:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -1s;
}
#spinner img:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.9s;
}
#spinner img:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.8s;
}
#spinner img:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.7s;
}
#spinner img:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.6s;
}
#spinner img:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.5s;
}
#spinner img:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.4s;
}
#spinner img:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.3s;
}
#spinner img:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.2s;
}
#spinner img:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.1s;
}
#spinner img:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: 0s;
}
@keyframes spinner {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
#search form {
  display: flex;
}
#searchContainer {
  pointer-events: all;
  transition: 0.3s ease;
}
#search form button {
  left: 0;
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 25px;
  border: none;
  background: none;
  border-bottom-right-radius: 2px;
}
#search form input {
  border: none;
  outline: none;
  border-radius: 25px;
  padding-inline: 15px;
  padding-bottom: 0;
  padding-top: 0;
  height: 50px;
  transition: 0.3s ease;
  font-size: 1em;
  width: 50px;
  padding: 0;
  border-bottom-right-radius: 2px;
  color: gray;
}
#search form2 input:focus {
  width: 100%;
  padding-left: 60px;
}
#search form2:hover input {
  width: 100%;
  padding-left: 60px;
}

.grass {
  animation: skew 3s infinite;
  animation-direction: alternate;
}
.leaflet-marker-icon{
  border: none;
  background: none;
}
@keyframes skew {
  0% {
  
    transform: skewX(6deg) translate(-3px);
    top: 10px;
  }
  100% {
  
    transform: skewX(-6deg) translate(3px);
    top: 0;
  }
}

@keyframes rotate {
  0% {
    rotate: 0deg;
  }
  100% {
    rotate: 360deg;
  }
}

#gpxBtn {
  position: relative;
  right: 4px;
  z-index: 1;
  background-color: #f2f2f2;
  border-radius: 30px;
  padding: 12px !important;
  opacity: 1;
  margin-left: 14px;
}
#infoBtn {
  position: absolute;
  z-index: 1;
  background-color: #f2f2f2;
  border-radius: 30px;
  padding: 12px !important;
  opacity: 1;
  right: 14px;
  top: 14px;
}
