html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

h1.navbar-brand a {
  text-decoration: none;
}

#viewer-map {
  height: calc(100vh - 15vh);
  width: 100%;
}


/* popup */
.ol-popup {
  position: absolute;
  background-color: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #cccccc;
  min-width: 280px;
  display: none;
}

/* .ol-popup-closer {
  text-decoration: none;
  position: absolute;
  top: 2px;
  right: 8px;
} */

.ol-popup-content {
  font-size: 12px;
  line-height: 1.5;
}

.ol-popup-closer {
  position: absolute;
  top: 5px;
  right: 5px;
  text-decoration: none;
  font-size: 16px;
  color: black;
  background: transparent;
  border: none;
  cursor: pointer;
}

.ol-popup-closer:hover {
  color: red;
}

/* Custom size and icon for the layerswitcher button */
.ol-layerswitcher button {
  width: 80px;
  height: 80px;
  background-size: 60px;
  background-color: black;
  background-image: url('../images/legendaIcoon.png');
  background-repeat: no-repeat;
  background-position: center;
}

/* Optional: Add a hover effect for the button */
.ol-layerswitcher button:hover {
  background-color: #333;
  cursor: pointer;
}


/* File input container positioned in the bottom-left corner */
#jsonFileInputContainer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  background-color: #2c2c2c;
  color: white;
  z-index: 1000;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  width: 200px;
  /* Adjusted default width */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Heading styling */
#jsonFileInputContainer h3 {
  margin: 0;
  margin-bottom: 10px;
  font-size: 1em;
  text-align: center;
}

/* Styling for the file input container */
#jsonFileInputContainer .input-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
  background: #3a3a3a;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  /* Match container width */
}

/* Styling for the actual file input */
#jsonFileInputContainer input[type="file"] {
  color: white;
  font-size: 14px;
  background-color: transparent;
  border: none;
  width: 100%;
  /* Fit within the container */
  text-align: center;
  cursor: pointer;
}

/* Hide the default file input button */
#jsonFileInputContainer input[type="file"]::-webkit-file-upload-button {
  visibility: hidden;
}

/* Custom styling for the "Choose File" button */
#jsonFileInputContainer input[type="file"]::before {
  content: "Choose File";
  display: inline-block;
  color: white;
  background-color: #ffb700;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

/* Hover effect for the "Choose File" button */
#jsonFileInputContainer input[type="file"]:hover::before {
  background-color: #ffc857;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  #jsonFileInputContainer {
    bottom: 5px;
    left: 50%;
    padding: 5px;
    width: 150px;
  }

  #jsonFileInputContainer h3 {
    font-size: 0.8em;
  }

  #jsonFileInputContainer input[type="file"]::before {
    font-size: 10px;
    padding: 4px 6px;
  }

  #jsonFileInputContainer .input-container {
    padding: 5px;
  }
}


/* Media query for smaller screens */
@media (max-width: 768px) {

  /* Adjust size for screens smaller than 768px (e.g., tablets, mobile) */
  .ol-layerswitcher button {
    width: 45px;
    height: 45px;
    background-size: 45px;
  }

  .ol-legend {
    top: 50vh;
  }
}

@media (max-width: 480px) {

  /* Adjust size for screens smaller than 480px (e.g., small mobile devices) */
  .ol-layerswitcher button {
    width: 40px;
    height: 40px;
    background-size: 40px;
  }

  .ol-legend {
    top: 50vh;
  }
}