html,
body {
  height: 100%;
  padding: 0;
  margin: 0;
  font-family: sans-serif;
  font-size: small;
}

table {
  width: 100%;
  background-color: transparent;
  border-radius: 7px;
  border-collapse: none;
}

th {
  width: auto;
  font-weight: bold;
  vertical-align: center;
  text-align: left;
  padding: 0.3em;
  border-radius: 3px;
  background-color: transparent;
}

td {
  width: auto;
  vertical-align: center;
  text-align: left;
  padding: 0.3em;
  border-radius: 3px;
  background-color: transparent;
}

#map {
  width: 100%;
  height: 100%;
  position: relative;
}

.title-popup {
  width: 100%;
  padding-top: 25px;
  padding-bottom: 25px;
  text-align: center;
  font-size: medium;
}

.ol-popup {
  display: none;
  /* left: -50%; */
  background-color: rgb(255, 0, 0);
  right: 0;
  position: absolute;
  z-index: 5;
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);
  -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: 10px;
  border-radius: 10px;
  border: 1px solid rgb(125, 125, 125);
  height: auto;
  width: auto;
  min-width: 150px;
  max-height: 300px;
  overflow: auto;
}
.ol-popup::-webkit-scrollbar {
  width: 10px;
  border-radius: 10px;
}

.ol-popup::-webkit-scrollbar-track {
  background-color: rgb(170, 169, 169);
  border-radius: 10px;
}

.ol-popup::-webkit-scrollbar-thumb {
  background-color: rgb(255, 255, 255);
  border-radius: 10px;
  border: 1px solid rgb(125, 125, 125);
}

.ol-popup-closer {
  text-decoration: none;
  position: sticky;
  right: 0px;
  top: 0px;
  margin-left: 95%;
}

.ol-popup-closer:after {
  content: "X";
}

.ol-attribution a {
  text-decoration: none;
  color: #666;
  font-family: sans-serif;
  font-size: 100%;
}

.layer-switcher .panel {
  border: 4px solid rgba(139, 140, 141, 0.5) !important;
  border-radius: 4px !important;
  z-index: 600;
}

.layer-switcher {
  top: 0.5em;
  right: 0.5em;
  text-align: left;
}

#popup-content > ul > li:nth-child(even) {
}

#popup-content ul {
  list-style-type: none;
  border-radius: 4px;
  padding-left: 0;
}

#popup-content li {
  border-radius: 4px;
  padding-left: 0;
  margin-bottom: 0.25em;
}

.rightDown {
  position: absolute;
  bottom: 0;
  right: 0;
  margin: 10px;
}

.northbutton {
  position: absolute;
  width: 60px !important;
  height: 60px !important;
  border-radius: 100% !important;
}

.north {
  position: absolute;
  right: 30px;
  bottom: 30px;
  margin: 10px;
  width: 60px !important;
  height: 60px !important;
  border-radius: 100% !important;
}

/* Estilos para el input de número predrial */
.search-input {
  padding: 5px;
  font-size: 16px;
  background-color: #00000000;
  border: none;
  border-bottom: 1px solid rgba(0, 7, 55, 0.748);
  width: 300px;
  margin-top: 5px;
  color: rgba(3, 18, 111, 0.881);
  text-align: center;
  -webkit-appearance: none;
}

/* Estilos para los inputs de dirección */
.address-input {
  padding: 5px;
  font-size: 16px;
  background-color: #00000000;
  border: none;
  border-bottom: 1px solid rgba(0, 7, 55, 0.748);
  width: 50px;
  margin-top: 5px;
  color: rgba(3, 18, 111, 0.881);
  text-align: center;
  -webkit-appearance: none;
}

/* Estilos para la etiqueta */
label {
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  color: rgba(0, 7, 55, 0.748);
}

@media (max-width: 900px) {
  .search-div {
    height: 61%;
    width: 80%;
    justify-content: space-between;
    top: -56%;
    left: 10%;
    padding-top: 15px;
  }
  .search-div-son {
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    height: 100%;
  }
  .search-button {
    height: 10%;
  }
  .layer-switcher .panel {
    margin-top: 30px;
  }
  .div-info {
    bottom: 0;
    /*center in x axis*/
    left: 50%;
    transform: translateX(-50%);
    height: 300px;
    width: 100%;
  }
}

@media (min-width: 901px) {
  .search-div {
    height: 61%;
    width: 50%;
    justify-content: space-between;
    top: -56%;
    left: 25%;
    padding-top: 15px;
  }
  .search-div-son {
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    height: 100%;
  }
  .search-button {
    height: 10%;
  }
  .layer-switcher .panel {
    margin-top: 30px;
  }
  .div-info {
    right: 0;
    /*center in y axis*/
    top: 50%;
    transform: translateY(-50%);
    height: 550px;
    width: auto;
    border-radius: 10px;
    max-width: 400px;
    min-width: 300px;
  }
}

/* same above but for biggest screens */

@media (min-width: 1350px) {
  .search-div {
    height: 29%;
    width: 45%;
    left: 25%;
    top: -24.5%;
  }
  .search-div-son {
    flex-direction: row;
  }
  .search-button {
    height: 28%;
  }
  .layer-switcher .panel {
    margin: 0;
  }
}

.search-div {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
  background-color: rgba(243, 243, 246, 0.759);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.search-div-son {
  padding-top: 10px;
  padding-bottom: 0;
  padding-left: 10px;
  padding-right: 10px;
  display: flex;

  justify-content: space-around;
}

.search-input-div {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 300px;
  justify-content: space-around;
}

.send-button {
  background-color: rgb(255, 255, 255);
  width: 40%;
  border: none;
  display: flex;
  flex-direction: row;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2%;
  border-radius: 10px;
  align-items: center;
  justify-content: space-around;
  padding: 5px;
}

.address-select {
  width: 50%;
  height: 100%;
  border: none;
  background-color: rgb(255, 255, 255);
  border-radius: 10px;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.search-input-div span {
  font-size: 15px;
  color: rgba(0, 7, 55, 0.748);
}

.address-select:focus,
.address-input:focus,
.search-input:focus {
  outline: none;
}

.search-input::placeholder {
  color: rgba(0, 7, 55, 0.581);
}

.search-button {
  margin-top: 3%;
  width: 100%;
  border: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);
  -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));
  font-weight: 600;
}

.search-button:hover,
.send-button:hover {
  animation-name: changeColor;
  animation-duration: 0.5s;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes changeColor {
  0% {
  }
  100% {
    color: #fff;
    background-color: rgba(4, 14, 79, 0.858);
  }
}

.animation-appear-search {
  animation-name: appear-search;
  animation-duration: 0.5s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes appear-search {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(80%);
  }
}

.animation-disappear-search {
  animation-name: disappear-search;
  animation-duration: 0.5s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes disappear-search {
  0% {
    transform: translateY(80%);
  }
  100% {
    transform: translateY(0);
  }
}

.div-info {
  display: none;
  background-color: white;
  position: absolute;
  z-index: 2;
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);
  -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: 10px;
  border: 1px solid rgb(125, 125, 125);
  /* height: auto; */
  overflow: auto;
}
.div-info::-webkit-scrollbar {
  width: 10px;
  border-radius: 10px;
}

.div-info::-webkit-scrollbar-track {
  background-color: rgb(170, 169, 169);
  border-radius: 10px;
}

.div-info::-webkit-scrollbar-thumb {
  background-color: rgb(255, 255, 255);
  border-radius: 10px;
  border: 1px solid rgb(125, 125, 125);
}

.div-info-closer {
  text-decoration: none;
  position: sticky;
  right: 0px;
  top: 0px;
  margin-left: 95%;
}

.div-info-closer:after {
  content: "X";
}

.div-info-content ul {
  list-style-type: none;
  border-radius: 4px;
  padding-left: 0;
}

.div-info-content li {
  border-radius: 4px;
  padding-left: 0;
  margin-bottom: 0.25em;
}

.div-const-container {
  background-color: #f1f1f1;
  margin-top: 5px;
  margin-bottom: 5px;
  border-radius: 4px;
}

.button-cons {
  width: 100%;
  font-size: 15px;
  color: rgb(0, 0, 0);
  border: none;

  margin-top: 5px;
  margin-bottom: 5px;
  text-align: left;
  background-color: transparent;
}

.div-const-content-normal {
  border-top: 1px solid #a5a5a5;
}

.div-cons-content {
  display: none;
  height: 0;
}

.div-cons-content-hide {
  display: none;
}

.div-cons-content-show {
  animation-name: show-div-cons;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}

@keyframes show-div-cons {
  0% {
    opacity: 0;
    height: 0;
  }
  100% {
    opacity: 1;
    height: auto;
  }
}

.div-cons-content-hide {
  animation-name: hide-div-cons;
  animation-duration: 1s;
  animation-fill-mode: forwards;
}

@keyframes hide-div-cons {
  0% {
    opacity: 1;
    height: auto;
  }
  100% {
    opacity: 0;
    height: 0;
  }
}

.div-coords {
  position: absolute;
  z-index: 1;
  color: black;
  font-weight: 400;
  font-size: 12px;
  left: 0;
  bottom: 0;
  background-color: rgba(243, 243, 246, 0.759);
  padding: 3px;
}

.spinner-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.spinner-icon {
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-top-color: rgb(0, 204, 51);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

.spinner-text {
  margin-top: 16px;
  font-size: 24px;
}

.hidden {
  animation-name: hidde;
  animation-duration: 0.3s;
  animation-fill-mode: forwards;
}

@keyframes hidde {
  0% {
    display: flex;
    opacity: 1;
    z-index: 2;
  }
  100% {
    opacity: 0;
    display: none;
    z-index: -1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}
