@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400&family=Roboto&display=swap');
@import url(toolbar.css);
@import url(map.css);
@import url(legend.css);
@import url(layers.css);
@import url(basemaps.css);
@import url(attributes.css);
@import url(print.css);
@import url(authorize.css);
@import url(identify.css);
@import url(measure.css);
@import url(buffer.css);
@import url(addressSearch.css);
@import url(layerSearch.css);
@import url(areaSearch.css);

.hidden {
  display:none !important;
}

.noselect,
.noselectall * {
  -webkit-touch-callout:none;
  -webkit-user-select:none;
  -moz-user-select:none;
  -ms-user-select:none;
  user-select:none;
}

.tool-controls {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.slider > input {
  display: none;
}

.slider label {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.slider label:before {
  content: "";
  width: 40px;
  height: 20px;
  border-radius: 14px;
  background-color: #cccccc;
}

.slider label:after {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background-color: white;
  -webkit-transition: .1s;
  -o-transition: .1s;
  transition: .1s;
}

.slider input:checked + label:before {
  background-color: #2196F3;
}

.slider input:checked + label:after {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

.close {
  height: 45px;
  width: 45px;
  cursor: pointer;
  opacity: .6;
  -webkit-transition: all .2s;
  -o-transition: all .2s;
  transition: all .2s;
}

.close:before, .close:after {
  display: inline-block;
  content: "";
  right: 5px;
  width: 3px;
  height: 32px;
  background: #ffffff;
}

.close.darken:before, .close.darken:after {
  background: #333333;
}

.close:before {
  -webkit-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
          transform: rotate(45deg);
  margin-left: 22px;
  margin-top: 7px;
}

.close:after {
  -webkit-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
          transform: rotate(-45deg);
  margin-left: -3px;
}

.close:hover {
  opacity: 1;
}

.options-button {
  position: relative;
  max-width: 45px;
  opacity: .6;
  cursor: pointer;
  -webkit-transition: all .2s;
  -o-transition: all .2s;
  transition: all .2s;
}

.options-button.active,
.options-button:hover {
  opacity: 1;
}

.options-container {
  position: absolute;
  top: 45px;
  right: 0;
  width: 250px;
  opacity: 0;
  border-radius: 10px;
  background: #ffffff;
  color: #444444;
  -webkit-transform: translateY(-4px);
      -ms-transform: translateY(-4px);
          transform: translateY(-4px);
  -webkit-transition: .1s ease-in-out;
  -o-transition: .1s ease-in-out;
  transition: .1s ease-in-out;
  -webkit-box-shadow: 1px 2px 3px 1px rgb(0 0 0 / 30%);
          box-shadow: 1px 2px 3px 1px rgb(0 0 0 / 30%);
  pointer-events: none;
  cursor: default;
  z-index: 999;
}

.options-container > div {
  padding: 1em;
}

.options-container > div:first-child {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.options-container > div:last-child {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.options-button.active .options-container {
  pointer-events: all;
  -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
          transform: translateY(0);
  opacity: 1;
}

#loader {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.3);
  opacity: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  z-index: 99999;
  -webkit-transition: .3s ease-out;
  -o-transition: .3s ease-out;
  transition: .3s ease-out;
}

#loader.loaded {
  opacity: 0;
}

#spinner {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(#0000 10%,#ffffff);
  -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 20px),#000 0);
  mask: radial-gradient(farthest-side,#0000 calc(100% - 20px),#000 0);
  -webkit-animation: spin 1.5s infinite linear;
          animation: spin 1.5s infinite linear;
}

@-webkit-keyframes spin {
  to {
    -webkit-transform: rotate(1turn);
            transform: rotate(1turn);
  }
}

@keyframes spin {
  to {
    -webkit-transform: rotate(1turn);
            transform: rotate(1turn);
  }
}


/*
 * Disclaimer
 */
#disclaimer {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  z-index: 999999;
  background: rgba(0,0,0,.3);
}

#disclaimer > div {
  max-width: 50%;
  max-height: 98%;
  background: white;
  overflow-x: auto;
  border-radius: 8px;
}

#disclaimer h3 {
  padding: .6em 1em;
  font-size: 24px;
}

#disclaimer pre {
  padding: 8px;
  font-size: 12px;
  height: calc(100% - 40px);
  white-space: pre-wrap;
  white-space: -moz-pre-wrap;
  white-space: -pre-wrap;
  white-space: -o-pre-wrap;
  word-wrap: break-word;
  color: #333333;
}

#disclaimer h3 span {
  display: block;
  font-weight: normal;
  font-size: 14px;
  opacity: .8;
  line-height: 1.2;
  padding-bottom: .4em;
}

#disclaimer #disclaimer_email {
  color: #0000EE;
  text-decoration: underline;
  cursor: pointer;
}

/*
 * Tablet
 */
@media screen and (max-width: 1023px) {
  #header-client-url {
    max-height: 50px;
  }

  #header-logo {
    max-height: 50px;
  }

  #header-title {
    font-size: 24px;
    line-height: 1.1;
  }

  #header p {
    font-size: 12px;
  }

  #header-title span {
    font-size: 18px;
  }
  /*
  .close {
    height: 40px;
    width: 40px;
  }
  .close:before {
    margin-left: 20px;
    margin-top: 4px;
  }
  */
  #disclaimer > div {
    max-width: 70%;
  }
}

/*
 * Smartphone
 */
@media screen and (max-width: 767px) {
  #header {
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
  }

  #header-title-container {
    position: absolute;
    left: 0;
  }

  #header-client-url {
    max-height: 40px;
  }

  #header-logo {
    max-height: 40px;
  }

  #header-title {
    font-size: 18px;
    line-height: 1.1;
  }

  #header p {
    font-size: 11px;
  }

  #header-title span {
    font-size: 14px;
  }
  /*
  .close {
    height: 35px;
    width: 35px;
  }
  .close:before {
    margin-left: 17px;
    margin-top: 1px;
  }
  */
  #disclaimer > div {
    max-width: 98%;
  }

  .sidebar,
  .leaflet-control-identify,
  #popup-identify-toggle-control,
  .popup-identify-svg,
  #control-print {
    display: none !important;
  }

  #address-search {
    position: initial;
    width: 100%;
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid #aaaaaa;
    padding: 12px;
  }

  #map {
    height: calc(100% - 40px);
  }

  #map-legend-display {
    top: auto;
    bottom: 0;
    z-index: 9999;
    margin: .5em;
    max-height: 35%;
    width: 50%;
  }
  #map-legend-display h4 {
    display: none;
  }
  #map-legend-content {
    padding: 0;
  }
  #map-legend-display ul {
    padding: .2em;
  }
  #map-legend-display img {
    width: 15px;
    height: 15px;
  }
  #map-legend-display b {
    font-size: 13px;
  }
  #map-legend-display label {
    font-size: 12px;
  }
}