body {
    height: 100%;
    overflow: hidden;
    font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
    color: #212121;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}
*:focus {outline:none;}

p {
    font-size: 15px;
    line-height: 18px;
    font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
}
p.intro {
    font-size: 18px;
    line-height: 24px;
    font-family: 'Austin News Text Web';
}

h3 {
    margin-top: 0;
}
h4 {
    font-weight: bold;
    text-align: center;
}
.filter-title {
    margin-bottom: 5px;
}

.gradient-top-btm {
    z-index: 1;
    pointer-events: none;
    position: absolute;left: 0;top: 0;width: 100%;height: 150px;
    background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#00ffffff',GradientType=0 ); /* IE6-9 */
}
.gradient-btm-top {

    z-index: 1;
    pointer-events: none;
    position: absolute;left: 0;bottom: 0;width: 100%;height: 50px;
    background: -moz-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */

}
.click-tip {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translate(-50%,0%);
    -webkit-transform: translate(-50%,0%);
    text-align: center;
    background: rgba(255,255,255,0.8);
    border-radius: 3px;
    padding: 20px;
}
.click-tip p {
    margin-bottom: 0;
}
.btn {
    border-radius: 34px;
}
.map-overlay-mobile .btn-danger {
    color: #dd0000;
    background-color: #fff;    
    border: none;
    padding: 10px 20px;
    font-size: 20px;
    margin-top: 20px;
    font-weight: bold;
}
.btn-primary {
    color: #dd0000;
    background-color: #fff;
    border-color: #ccc;
    width: 33.33%;
    float: left;
    font-weight: bold;
    font-size: 13px;
}
.btn-primary:hover {
    background-color: #eee;
    border-color: #ccc;
    color: #dd0000;   
}
.btn-primary:focus, .btn-primary:active, .btn-primary.active {
    color: #fff;
    background-color: #dd0000;
    border-color: #ccc;
}
.btn-primary.btn-view-tiltak:focus, .btn-primary.btn-view-tiltak:active, .btn-primary.btn-view-tiltak.active {
    background-color: #9b59b6;
}
.btn-primary.btn-view-inspeksjon:focus, .btn-primary.btn-view-inspeksjon:active, .btn-primary.btn-view-inspeksjon.active {
    background-color: #EC407A;
}
.btn-primary.btn-view-skade:focus, .btn-primary.btn-view-skade:active, .btn-primary.btn-view-skade.active {
    background: rgb(243,156,18); /* Old browsers */
    background: -moz-linear-gradient(left, rgba(243,156,18,1) 0%, rgba(231,76,60,1) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(left, rgba(243,156,18,1) 0%,rgba(231,76,60,1) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to right, rgba(243,156,18,1) 0%,rgba(231,76,60,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */

}
.btn:active, .btn.active {
    outline: 0;
    background-image: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

#loader-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    z-index: 999;
    background: rgba(255,255,255,0.5);
    border-radius: 3px;
    text-align: center;
    padding: 20px;
}
.loader {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    text-align: center;
    background: #fff;
    display: block;
    margin: 0 auto;
}
.loader-container-bro {
    position: fixed;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    z-index: 9999;
}




#map {
    position:fixed;
    right:0%;
    top:0;
    bottom:0;
    width: 100%;
    height: 100%;
}
.mapboxgl-popup-content {
    position: relative;
    background: #333;
    border-radius: 3px;
    color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.6);
    padding: 10px 16px;
    pointer-events: auto;
    font-size: 16px;
}
.mapboxgl-popup-tip {
    width: 0;
    height: 0;
    border: 10px solid transparent;
    z-index: 1;
}
.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
    border-top-color: #333;
}
.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip {
    border-bottom-color: #333;
}
.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip {
    border-bottom-color: #333;
}
.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
    border-top-color: #333;
}
.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip {
    border-top-color: #333;
}
.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip {
    border-top-color: #333;
}
.mapboxgl-popup-anchor-left .mapboxgl-popup-tip {
    border-right-color: #333;
}
.mapboxgl-popup-anchor-right .mapboxgl-popup-tip {
    border-left-color: #333;
}
.map-overlay {
    position: absolute;
    width: 320px;
    top: 10px;
    left: 10px;
    font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
    max-height: 100%;
    overflow: hidden;
}
.info {
    background-color: #212121;
    color: #fff;
    -webkit-box-shadow: 0px 0px 25px 0px rgba(0,0,0,0.1);
    -moz-box-shadow: 0px 0px 25px 0px rgba(0,0,0,0.1);
    box-shadow: 0px 0px 25px 0px rgba(0,0,0,0.1);
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 20px;   
    transition: transform 0.2s, min-height 0.2s;
    -webkit-transition: -webkit-transform 0.2s, min-height 0.2s;
    min-height: 0; 
    transform: translate(-100%, 0%);
    -webkit-transform: translate(-100%, 0%);
}
.info.active {
    min-height: 0; 
    transform: translate(0%, 0%);
    -webkit-transform: translate(0%, 0%);
    transition: transform 0.2s, min-height 0.2s;
    -webkit-transition: -webkit-transform 0.2s, min-height 0.2s;
}
.kartvisning {
    width: 100%;
    -webkit-box-shadow: 0px 0px 25px 0px rgba(0,0,0,0.1);
    -moz-box-shadow: 0px 0px 25px 0px rgba(0,0,0,0.1);
    box-shadow: 0px 0px 25px 0px rgba(0,0,0,0.1);
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: rgba(255,255,255,1);
    padding: 10px;
}

.kartvisning {
    width: 100%;
    font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
    overflow: hidden;
    top: auto;
    bottom: 10px;
    margin-top: 10px;
}

.map-overlay p:last-child {
    margin-bottom: 0;
}

.kartvisning-tittel {
    font-size: 13px;
    line-height: 25px;
    font-weight: bold;
}
.map-overlay p {
    font-size: 17px;
    line-height: 23px;
    font-weight: 300;
    font-family: 'Austin News Text Web';
}

.menu-narrow {
    position: absolute;top: 100px;
    left: 0;
    right: 0;
    margin: 0 auto;
}
h1 {
    font-size: 32px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
    font-family: 'Austin News Text Web';
    font-size: 50px;
}
h1.logo {
    font-weight: bold;
    font-size: 66px;
    font-family: "Druk Web";
    text-transform: uppercase;
    line-height: 60px;
    margin-top: 10px;
    font-weight: 800;
    pointer-events: none;
    color: #fff;
}

p.map-credits {
    font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
    font-size: 12px;
    margin-bottom: 0;
    margin-top: 10px;
}



.map-overlay-mobile {
    position: fixed;
    width:100%;
    height:100%;
    padding: 20px;
    width: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 15000;
}
.map-overlay-mobile>div {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    position: absolute;
    width:100%;
    padding: 20px;
}
.map-overlay-mobile>div>div {
    color: #fff;
    padding: 20px;
    border-radius:3px;
}

.map-overlay-mobile {
    display: none;
}



.filter #map, .filter .kartvisning, .filter #loader-container, .filter .click-tip {
    filter: none   
}  
@media (max-width : 800px) {
    #map, .kartvisning, #loader-container, .click-tip {
        filter: blur(0px);    
        transition: filter 0.5s; 
    }
    .filter #map, .filter .kartvisning, .filter #loader-container, .filter .click-tip {
        filter: blur(15px);   
    }      
    .map-overlay-mobile {
        display: block;
    }
    .mapboxgl-ctrl-geocoder.mapboxgl-ctrl {
        display: none;
    }
}









/* FILTERS */

.filter-container {
    position: absolute;
    width: 320px;
    top: 10px;
    left: 10px;
    font: 14px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
    background-color: #fff;
    max-height: 100%;
    -webkit-box-shadow: 0px 0px 25px 0px rgba(0,0,0,0.1);
    -moz-box-shadow: 0px 0px 25px 0px rgba(0,0,0,0.1);
    box-shadow: 0px 0px 25px 0px rgba(0,0,0,0.1);
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 20px;
    transform: translate(-110%, 0%);  
    -webkit-transform: translate(-110%, 0%);   
    transition: transform 0.2s ease-in;
    -webkit-transition: -webkit-transform 0.2s ease-in;
    z-index: 1001;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}
.filter-container.active {
    transform: translate(0%, 0%);
    -webkit-transform: translate(0%, 0%);
}
.map-button {
    position: absolute;
    background: #fff;
    z-index: 10;
    border-radius: 18px;
    height: 36px;
    font-size: 14px;
    line-height: 36px;
    color: #dd0000;
    font-weight: bold;    
    -webkit-box-shadow: 0px 0px 25px 0px rgba(0,0,0,0.1);
    -moz-box-shadow: 0px 0px 25px 0px rgba(0,0,0,0.1);
    box-shadow: 0px 0px 25px 0px rgba(0,0,0,0.1);
    border: 1px solid #ccc;
    overflow: hidden;
    cursor: pointer;
    cursor: hand;
}
.map-button.filter-button {
    left: 340px;    
    width: 90px;
    top: 10px;
    left: 340px;
    text-align: center;
    transition: width 0.2s;
}
.map-button.info-button {
    left: 340px;    
    width: 90px;
    top: 50px;
    left: 340px;
    text-align: center;
    transition: width 0.2s;
}
.map-button.filter-button-mobile {
    bottom: 15px;
    left: 340px;    
    width: auto;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    text-align: center;
    transition: width 0.2s;
    white-space: nowrap;
    padding: 0 20px;
}
.map-button.filter-button-mobile> div {
    display: inline-block;
}
.map-button.filter-button-close {
    top: 10px;
    left: auto;
    right: 10;  
    width: 70px;
    text-align: center;
    width: 36px;
}
.map-button.filter-button-close.narrow {
    right: 10px;
    position: fixed;
    display: none;
    z-index: 10000;
}

.map-button.filter-button.active {
    width: 36px;
}
.filter-element {
    width: 100%;
    display: block;
    height: 30px;
    line-height: 30px;
}
.filter-element>div {
    float: left;  
    margin-left: 10px;
    line-height: 30px; 
}

.fitler-length {
    width: 100%;
    height: 200px;
    position: relative;
}
.filter-length-bars>div {
    background: #ccc;
    height: 30px;
    position: absolute;
    bottom: 0;
}
.form-group {
    width: 50%;
    float: left;
}

.legendContainer {
    position: relative;
    z-index: 1;
    border-radius: 3px;
    font-size: 13px;
    line-height: 14px;
    font-weight: 400;
    white-space: nowrap;    
}
.legend {
    display: none;
    text-align: center;
}
.legend.active {
    display: inline-block;
}
.legend>div {
    display: inline-block;
    padding: 10px 10px 10px 0; 
    border-radius: 3px;
}
.legend>div>div {
    display: inline-block;
    margin-left: 10px;
    white-space: nowrap;
}
.legend-circle {
    width: 14px;
    height: 14px;
    border-width: 2px;
    border-radius: 50%;
    border-style: solid;
    float: left;
    margin-right: 5px;
    background-color: #999;
    border-color: #ccc;
}
.legend-circle-16 {
    background-color: #e74c3c;
    border-color: #c0392b;
}
.legend-circle-12 {
    background-color: #f39c12;
    border-color: #e67e22;
}
.legend-circle-inspeksjon {
    background-color: #EC407A;
    border-color: #C2185B;
}
.legend-circle-tiltak {
    background-color: #9b59b6;
    border-color: #8e44ad;
}
.view-content {
    display: none;
}
.wide {
    display: block;
}
.narrow {
    display: none;
}




/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 40px; /* 60 */
  height: 24px; /* 34 */
  float: left;
  margin-bottom: 0;
  margin-top: 3px;
}

/* Hide default HTML checkbox */
.switch input {display:none;}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #dd0000;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(16px);
  -ms-transform: translateX(16px);
  transform: translateX(16px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}





@media (max-width : 800px) {
    .mapboxgl-ctrl-top-right {
        top: auto;
        right: auto;
        left: 15px;
        bottom: 15px;
    }
    .wide {
        display: none;
    }
    .narrow {
        display: block;
    }
    #map {
        position:absolute;
        right:0%;
        top:0;
        bottom:0;
        width: 100%
    }
    .info, .info.active {
        display: none;
    }
    .kartvisning {
        width: 100%;
        overflow: hidden;
        top: 15px;
        margin-top: 0px;
        position: fixed;
        bottom: auto;
        padding: 0 10px;
        width: 100%;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
        border: none;
        background-color: transparent;
    }
    .map-overlay {
        width: 100%;
        left: 0;
        top: 0;
        background-color: transparent;
        box-shadow: none;
        border: none;
    }
    h1.logo {
        font-size: 64px;
        line-height: 64px;
        margin-bottom: 20px;
        margin-top: 3px;
        color: #212121;
    }
    .map-button.filter-button {
        left: 0;
        right: 0;
        margin: 0 auto;
        top: auto;
        bottom: auto;
        top: 120px;
    } 
    .filter-container {
        position: fixed;
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        padding: 40px;
        height: auto;
        transform: translate(0%, 150%); 
        -webkit-transform: translate(0%, 150%);  
        margin: 0 auto;
        height: 100%;
        background: rgba(255,255,255,1);
    }
    .filter-container.active {
        transform: translate(0%, 0%);
        -webkit-transform: translate(0%, 0%);
    }
    .filter-element {
        width: 100%;
        display: block;
        height: 40px;
        line-height: 40px;
    }
    .filter-element>div {
        line-height: 40px
    }
    .legendContainer {
        font-size: 12px;
        display: block;
        text-align: center;
        margin-top: 5px;
    }
    .legendContainer>div>div {
        background: #fff;
    }
    .switch {
        width: 60px; /* 60 */
        height: 34px; /* 34 */
    }
    .slider:before {
        height: 30px;
        width: 30px;
        left: 2px;
        bottom: 2px;
    }
    input:checked + .slider:before {
        -webkit-transform: translateX(26px);
        -ms-transform: translateX(26px);
        transform: translateX(26px);
    }
    .slider.round {
        border-radius: 34px;
    }
    
}











.ui-widget.ui-widget-content {
    border: none;
    background: #eee;
}
.ui-widget-header {
    border: none;
    background: #dd0000;
    color: #333333;
    font-weight: bold;
}
.ui-slider .ui-slider-handle {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    top: -14px;
    margin-left: -16px;
    cursor: pointer;
    cursor: hand;
    background: #fff;
    box-shadow: 0 2px 2px #DBDBDB !important;
    border: 1px solid #dd0000;
    z-index: 2;
}
.ui-widget-content .ui-state-active {
    background: #fff;
    border: inherit;
    border: 1px solid #ccc;
}
.ui-slider-horizontal {
    height: 4px;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
}
.slider-filter-container {
    padding: 0px 15px;
}
.slider-filter {
    height: 32px;
}    
.slider-axis {
    height: 25px;
    width: 100%;
    position: relative;
}
.slider-axis-point {
    position: absolute;
    height: 100%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    z-index: -1;
}
.slider-axis-tick {
    position: absolute;
    left: 50%;
    width: 1px;
    height: 18px;
    background: #ccc;
    top: -12px;
}
.slider-axis-tick.small-tick {
    height: 9px;
}

.slider-axis-value {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    bottom: 0;
    font-size: 11px;
    height: 20px;
    line-height: 20px;
    white-space: nowrap;
}
  
footer {
    width: 0px;
    height: 0px;
    overflow: hidden;
    visibility: none;
    position: absolute;
}


