/* No margin under maps */

.html-widget {
    margin-bottom: 0px !important;
}

div.escir-shared-output {
  padding-top: 12px !important;
}
div.escir-shared-output p {
  margin-bottom: 16px !important;
}

.hidden {
    visibility: hidden;
}

/* separate present from scale on legend */

div.info.legend.leaflet-control.seagrass-legend>br:nth-child(13) {
    display: block;
    margin: 4px 0;
    content: "";
}

div.info.legend.leaflet-control.seagrass-legend>i:nth-child(12) {
    display: none;
}

/* wider navbar menu */
#navbarSupportedContent > ul > li > ul.dropdown-menu.show {
  min-width: 272px;
}
div.navbar-collapse.collapse.show > ul > li > ul.dropdown-menu.show {
  min-width: initial !important;
}

/* results loading screen CREDIT TO https://loading.io/css/ */
#loading {
  /*position: absolute;*/
  background: rgba(255,255,255,1);
  z-index: 10000;
  /*width: calc(100% - 68px);*/
  /*height: calc(100vh - 592px);*/
  height: calc(100vh - 510px);
  margin-top: -62px;
  -ms-flex-line-pack: center;
    align-content: center;
  display: none;
}
#loading > div {
  width: 100%;
  text-align: center;
}
#results.currently-loading {
  height: calc(100vh - 510px);
  overflow: hidden;
}
#results.currently-loading #loading {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-flow: row wrap;
          flex-flow: row wrap;
}
.lds-ring {
  display: inline-block;
  position: relative;
  height: 80px;
  margin-top: 24px;
}
.lds-ring div {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  left: calc(50% - 32px);
  height: 64px;
  margin: 8px;
  border: 8px solid #CCCCCC;
  border-radius: 50%;
  -webkit-animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
          animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #CCCCCC transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
  -webkit-animation-delay: -0.45s;
          animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  -webkit-animation-delay: -0.3s;
          animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  -webkit-animation-delay: -0.15s;
          animation-delay: -0.15s;
}
@-webkit-keyframes lds-ring {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
@keyframes lds-ring {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

/* overview map to right */
#overview-map-div {
  flex-basis: 440px;
  flex-grow: 1;
  margin-left: 8px;
  margin-right: 8px;
  border: 1px solid #DDD;
  align-self: baseline;
}
#overview-map-div > p {
  padding: 4px 12px 0px 12px;
}
#overview-text {
  flex-basis: 560px; 
  flex-grow: 10;
  margin-right: 8px;
}

/* format references */

.refs {
   text-indent: -24px;
   padding-left: 24px;
}
.spaced p { 
  margin-bottom: 0.5rem;
}
.spaced a { 
  border-bottom: none !important;
}
