@import url("./map.css");
/*@import url("./controls.css");*/
@import url("./layers.css");
@import url("./drill.css");
@import url("./address.css");
@import url("./identify.css");
@import url("./casf.css");
@import url("./zoom.css");
@import url("./help.css");
@import url("./left_menu.css");
@import url("./legend.css");
@import url("./basemaps.css");
@import url("./autocomplete.css");

* {
    padding: 0;
    margin: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#transition,
html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

header {
    width: 100%;
    height: 58px;
    background: #046b99;
    color: #f2f2f2;
    border-bottom: 2px solid gray;
    display: flex;
    justify-content: space-between;
}

#logo {
    display: flex;
    align-items: center;
    line-height: 1;
}

#logo h2 {
    /*font-family: 'Rubik', sans-serif;*/
    font-weight: normal;
    font-size: 26px;
}

#logo img {
    margin: 0 .6em;
}

#logo p {
    font-size: 13px;
    opacity: .8;
}

#logo span {
    font-size: 12px;
    opacity: .8;
    padding-left: 1em;
}

.hide {
    display: none !important;
}

.noselect,
.noselectall * {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

input[type="checkbox"] {
    display: none;
}

#mailing_list_signup {
    display: flex;
    position: relative;
    align-items: center;
    padding: 0 .4em;
    background-color: #046b99;
    cursor: pointer;
    opacity: .7;
    z-index: 999;
}

#mailing_list_button {
    display: flex;
}

#mailing_list_signup:hover,
#mailing_list_signup.selected {
    background-color: #0b7aad;
    opacity: 1;
}

#mailing_list_form {
    position: absolute;
    top: 100%;
    right: 0;
    display: none;
    background-color: #ffffff;
    box-shadow: 0px 1px 4px rgba(0,0,0,0.3);
    border-top: 2px solid grey;
    padding: 1em 1.2em 1.4em 1.2em;
}

.grecaptcha-badge {
    bottom: 50px !important;
}

#mailing_list_form input,
#mailing_list_form input[type='submit'] {
    border: none;
    width: 275px;
    padding: 10px 15px;
    background-color: #ffffff;
    box-shadow: 0px 1px 4px rgba(0,0,0,0.3);
    margin: .5em 0;
    outline: none;
}

#mailing_list_form input[type='submit'] {
    width: 100px;
    background-color: #77afd4;
    color: #ffffff;
    margin-left: 1em;
    cursor: pointer;
    align-self: flex-end;
}

#mailing_list_form input[type='submit']:hover {
    background-color: #70a1c2;
}

#mailing_list_form p {
    color: #000000;
    opacity: .8;
}

#mailing_list_form i {
    position: absolute;
    bottom: 0;
    font-size: 12px;
    padding: .5em;
    color: #808080;
}

#mailing_list_signup.selected #mailing_list_form {
    display: flex;
}

#mailing_list_button img {
    pointer-events: none;
    max-height: 36px;
    margin-right: .5em;
    opacity: .7;
}

#mailing_list_button > div {
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    opacity: .8;
}

#mailing_list_button div * {
    font-family: 'Roboto', sans-serif;
}

#mailing_list_button p:last-child {
    font-size: 12px;
}

#mailing_list_close {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 1em;
    border: 0;
    background: none;
    width: 30px;
    height: 30px;
    opacity: .4;
}

#mailing_list_close:hover {
    opacity: 1;
}

#mailing_list_close:before, 
#mailing_list_close:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #000000;
    border-radius: 2px;
}

#mailing_list_close:before {
    transform: rotate(45deg);
}
#mailing_list_close:after {
    transform: rotate(-45deg);
}
#mailing_list_close span {
    display: block;
}

#email_verify_popup {
    display: none;
    position: absolute;
    right: 10px;
    top: 80px;
    z-index: 9999;
    background-color: #ffffff;
    border-top: 3em solid #77afd4;
    border-radius: 5px;
    max-width: 375px;
    box-shadow: 0px 1px 4px rgba(0,0,0,0.3)
}

#email_verify_popup.show {
    display: block;
}

#email_verify_popup img {
    position: absolute;
    top: -60px;
    left: calc(50% - 34px);
    border-radius: 50%;
    padding: 1em;
    background-color: #046b99;
}

#email_verify_popup div {
    padding: 2em;
    text-align: center;
}

#email_verify_popup h3 {
    color: #808080;
    margin-bottom: 1.5em;
}

#email_verify_popup p {
    opacity: .8;
}

#email_verify_replace {
    font-weight: bold;
    color: #444444;
}

#email_verify_popup button {
    width: 100px;
    background-color: #77afd4;
    color: #ffffff;
    cursor: pointer;
    padding: 1em;
    border-radius: 5px;
    border: none;
    margin-top: 2em;
}

#user_name {
    display: none;
}

#content_window {
    display: none;
    width: 400px;
    height: 100%;
    background: #ffffff;
    border-left: 1px solid #808080;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;
}

#content_window.active {
    display: block;
}

#content_window > div > h3 {
    position: relative;
    width: 100%;
    height: 58px;
    background: #8c8c8c;
    color: #f2f2f2;
    font-weight: normal;
    border-bottom: 2px solid #808080;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    align-items: center;
    padding-left: 1em;
    font-family: 'Rubik', sans-serif;
}

#layers_attach label,
#content_window > div:not(#basemap_container) label {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#layers_attach label::before,
#content_window > div:not(#basemap_container) label::before {
    content: "";
    min-width: 14px;
    min-height: 14px;
    background: white;
    border: 1px solid #a6a6a6;
    cursor: pointer;
    margin-right: 5px;
}

#layers_attach input[type="checkbox"]:checked + label::after,
#content_window > div:not(#basemap_container) input[type="checkbox"]:checked + label::after {
    position: absolute;
    left: 2px;
    top: 0;
    bottom: 0;
    margin: auto;
    content: "";
    min-width: 12px;
    min-height: 12px;
    width: 12px;
    height: 12px;
    background: #4E97C7;
}

input[type='radio']:after {
    width: 14px;
    height: 14px;
    border-radius: 14px;
    top: -2px;
    left: -1px;
    position: relative;
    background-color: white;
    content: '';
    display: inline-block;
    visibility: visible;
    border: 1px solid #999999;
}

input[type='radio']:checked:after {
    width: 14px;
    height: 14px;
    border-radius: 14px;
    top: -2px;
    left: -1px;
    position: relative;
    content: '';
    display: inline-block;
    visibility: visible;
    border: 1px solid #999999;
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#4e97c7+0,4e97c7+53,ffffff+60,ffffff+99 */
    background: #4e97c7; /* Old browsers */
    background: -moz-radial-gradient(center, ellipse cover, #4e97c7 0%, #4e97c7 53%, #ffffff 60%, #ffffff 99%); /* FF3.6-15 */
    background: -webkit-radial-gradient(center, ellipse cover, #4e97c7 0%,#4e97c7 53%,#ffffff 60%,#ffffff 99%); /* Chrome10-25,Safari5.1-6 */
    background: radial-gradient(ellipse at center, #4e97c7 0%,#4e97c7 53%,#ffffff 60%,#ffffff 99%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4e97c7', endColorstr='#ffffff',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}

.leaflet-control-layers-base input[type='radio'] {
    margin-right: 5px;
}

.spinner {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    width: 45px;
    height: 45px;
    margin: auto;
    margin-top: 2em;
    border: double 4px transparent;
    -webkit-animation: 1s spin linear infinite;
    animation: 1s spin linear infinite;
    justify-content: center;
    align-items: center;
    flex: none;
}

.spinner div {
    width: 33px;
    height: 33px;
    border: double 2px transparent;
    margin-top: 2px;
    margin-left: 2px;
}

.spinner div,
.spinner {
    background: lightgray;
    background-image: linear-gradient(white, white), radial-gradient(circle at top left, #ffffff, #ffffff, #4E97C7);
    background-origin: border-box;
    background-clip: content-box, border-box;
    border-radius: 50%;
}
    
@-webkit-keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
          
@keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/*******************
 * Load Screen
 **/

#transition {
    position: relative;
    /*bottom: -100%;*/
}

#transition > .row {
    display: flex;
    flex-direction: row;
    height: calc(100% - 58px);
    width: 100%;
}

#load_screen,
#transition {
    /*transition-property: all;
    transition-duration: .8s;
    transition-timing-function: cubic-bezier(0, 0, 1, 1);*/
}

#load_screen {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: #046b99;
}

#load_screen p {
    color: white;
}

#load_screen h1 {
    display: block;
    color: white;
    font-size: 34px;
    text-align: center;
    margin-bottom: 1em;
    /*font-family: 'Rubik', sans-serif;*/
    font-weight: normal;
}

#load_screen.slide {
    /*top: -100%;*/
    opacity: 0;
    transition: visibility 0s .8s, opacity .8s linear;
}

#transition.slide {
    bottom: 0;
}

/*******************
 * Initial Load Animation
 * Credit: Tobias Ahlin
 * Source: https://github.com/tobiasahlin/SpinKit
 **/

.sk-folding-cube {
  margin: 20px auto;
  width: 80px;
  height: 80px;
  position: relative;
  -webkit-transform: rotateZ(45deg);
          transform: rotateZ(45deg);
}

.sk-folding-cube .sk-cube {
  float: left;
  width: 50%;
  height: 50%;
  position: relative;
  -webkit-transform: scale(1.1);
      -ms-transform: scale(1.1);
          transform: scale(1.1); 
}
.sk-folding-cube .sk-cube:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  -webkit-animation: sk-foldCubeAngle 2.4s infinite linear both;
          animation: sk-foldCubeAngle 2.4s infinite linear both;
  -webkit-transform-origin: 100% 100%;
      -ms-transform-origin: 100% 100%;
          transform-origin: 100% 100%;
}
.sk-folding-cube .sk-cube2 {
  -webkit-transform: scale(1.1) rotateZ(90deg);
          transform: scale(1.1) rotateZ(90deg);
}
.sk-folding-cube .sk-cube3 {
  -webkit-transform: scale(1.1) rotateZ(180deg);
          transform: scale(1.1) rotateZ(180deg);
}
.sk-folding-cube .sk-cube4 {
  -webkit-transform: scale(1.1) rotateZ(270deg);
          transform: scale(1.1) rotateZ(270deg);
}
.sk-folding-cube .sk-cube2:before {
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s;
}
.sk-folding-cube .sk-cube3:before {
  -webkit-animation-delay: 0.6s;
          animation-delay: 0.6s; 
}
.sk-folding-cube .sk-cube4:before {
  -webkit-animation-delay: 0.9s;
          animation-delay: 0.9s;
}
@-webkit-keyframes sk-foldCubeAngle {
  0%, 10% {
    -webkit-transform: perspective(140px) rotateX(-180deg);
            transform: perspective(140px) rotateX(-180deg);
    opacity: 0; 
  } 25%, 75% {
    -webkit-transform: perspective(140px) rotateX(0deg);
            transform: perspective(140px) rotateX(0deg);
    opacity: 1; 
  } 90%, 100% {
    -webkit-transform: perspective(140px) rotateY(180deg);
            transform: perspective(140px) rotateY(180deg);
    opacity: 0; 
  } 
}

@keyframes sk-foldCubeAngle {
  0%, 10% {
    -webkit-transform: perspective(140px) rotateX(-180deg);
            transform: perspective(140px) rotateX(-180deg);
    opacity: 0; 
  } 25%, 75% {
    -webkit-transform: perspective(140px) rotateX(0deg);
            transform: perspective(140px) rotateX(0deg);
    opacity: 1; 
  } 90%, 100% {
    -webkit-transform: perspective(140px) rotateY(180deg);
            transform: perspective(140px) rotateY(180deg);
    opacity: 0; 
  }
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .layer_0 label::before {
        display: block;
    }
}

.blank_results {
    font-size: 18px;
    margin: auto;
    text-align: center;
    padding: 3em 0 !important;
    color: #999999;
    max-height: calc(100% - 134px);
}