h1 {
    font-size: 30px;
    margin: 0;
    padding: 10px;
    display: inline-block;
}

p.inputLabel {
    display: inline-block;
}

#navWrap {
    z-index: 2000;
}

#headerWrap {
    width: 100%;
    height: 10%;
}

#mapWrap {
    width: 100%;
    height: calc(100% - 45px);
    position: relative;
    z-index: 1000;
    overflow: hidden;
}

#loadingDiv {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    text-align: center;
    line-height: 100%;
    z-index: 10000;
    transition: opacity, 2s, ease-in-out, visibility, 2s, ease-in-out;
}

p.loading {
    position: absolute;
    width: 200px;
    height: 25px;
    line-height: 25px;
    top: calc(50% - 25px);
    left: calc(50% - 100px);
    font-family: 'Gill Sans', 'Open Sans', sans-serif;
    font-weight: 300;
    color: #95a5a6;
    display: inline-block;
    text-align: center;
}

p.markerLocation {
    font-weight: 400;
}

p.markerSubtle, span.markerSubtle, p.markerTime {
    color: #95a5a6;
}

p.ride {
    color: #e87e04;
}

p.security {
    color: #2980b9;
}

p.medical {
    color: #27ae60;
}

#offMapBox {
    position: absolute;
    left: 10px;
    top: 10px;
    height: 100px;
    width: 65px;
    border: 1px solid #95a5a6;
    background-color: white;
    text-align: center;
    transition: opacity 0.25s ease-in-out, visibility 0.25s ease-in-out;
}

#offMapLabel {
    display: inline-block;
    font-family: 'Gill Sans', 'Open Sans', sans-serif;
    font-weight: 300;
    color: #95a5a6;
    text-transform: uppercase;
    margin: 0;
    padding: 10px;
}

.zoomer {
    margin-bottom: 5px;
    display: inline-block;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: #95a5a6;
    color: white;
    text-align: center;
    line-height: 20px;
    font-family: 'Gill Sans', 'Open Sans', sans-serif;
    user-select: none;
    cursor: pointer;
    touch-action: none;
    padding: 0;
    border: none;
    font-size: 20px;
    outline: none;
    transition: background-color 0.25s ease-in-out;
}

.zoomer:hover {
    background-color: #ff9900;
}

.zoomer:focus {
    outline: none;
}

#mapButtonWrap {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    text-align: center;
    align-items: center;
}

#zoomSlider {
    width: 200px;
    left: calc(50% + 2.5px);
    position: relative;
    transform: rotate(270deg);
    transform-origin: bottom left;
    margin: 200px 0 5px 0;
}

#statsWrap {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: auto;
    height: auto;
    padding: 0 5px;
    border: 1px solid #95a5a6;
    text-align: left;
    font-size: 0;
    background-color: #ffffff;
}

div.statsTypeWrap, div.cadWrap, div.gateWrap {
    display: inline-block;
    font-size: 0;
}

div.statsTypeWrap.wideMin {
    min-width: 175px;
}

div.cadWrap {
    width: 100px;
}

h1.statsMajorHeading {
    font-size: 18px;
    padding: 5px;
}

h2.statsMinorHeading, p.statsFigure {
    display: inline-block;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    padding: 0 5px;
}

h2.statsMinorHeading {
    font-size: 15px;
}

p.statsFigure {
    font-size: 40px;
}

#mapBody {
    position: relative;
    width: 1000px;
    z-index: -1000;
}

#mapBody:active {
    cursor: move;
}

#mapBody.mapAnimation {
    transition: top 0.1s ease-out, left 0.1s ease-out, width 0.1s ease-out, height 0.1s ease-out;
}

#mapImage {
    width: 100%;
    height: auto;
    margin: 0;
    position: relative;
    z-index: -100;
}

.markerWrap {
    position: relative;
    font-family: 'Gill Sans', 'Open Sans', sans-serif;
    font-size: 16px;
    width: 295px;
    margin: 0;
}

.markerWrap.mapAnimation {
    transition: top 0.1s ease-out, left 0.1s ease-out;
}

.markerIcon {
    position: absolute;
    height: 45px;
    width: 45px;
    top: -56px;
    left: -7.5px;
    background-color: white;
    text-align: center;
    vertical-align: middle;
    line-height: 45px;
    font-size: 30px;
    color: #95a5a6;
    border: 1px solid #95a5a6;
}

.markerIcon span.markerIconLabel {
    -ms-word-wrap: break-word;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
    height: 100%;
    width: 100%;
    display: block;
}

.markerIcon p {
    display: inline-block;
}

.markerBox p {
    margin: 0;
    line-height: 1.2em;
}

.markerBox p.r1 {
    border: none;
}

.markerBox.interactiveMapBox > * {
    position: relative;
    left: -50px;
    opacity: 0;
    transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.markerBox.interactiveMapBox > *:nth-child(1) {
    transition-delay: 25ms;
}

.markerBox.interactiveMapBox > *:nth-child(2) {
    transition-delay: 50ms;
}

.markerBox.interactiveMapBox > *:nth-child(3) {
    transition-delay: 75ms;
}

.markerBox.interactiveMapBox > *:nth-child(4) {
    transition-delay: 100ms;
}

.markerBox.interactiveMapBox > *:nth-child(5) {
    transition-delay: 125ms;
}

.markerBox.interactiveMapBox > *:nth-child(6) {
    transition-delay: 150ms;
}

.markerBox.interactiveMapBox > *:nth-child(7) {
    transition-delay: 175ms;
}

.markerBox.interactiveMapBox > *:nth-child(8) {
    transition-delay: 200ms;
}

.markerBox.interactiveMapBox > *:nth-child(9) {
    transition-delay: 225ms;
}

.markerBox.interactiveMapBox > *:nth-child(10) {
    transition-delay: 250ms;
}

.markerBox.interactiveMapBox > *:nth-child(11) {
    transition-delay: 275ms;
}

.markerBox.interactiveMapBox > *:nth-child(12) {
    transition-delay: 300ms;
}

.markerBox.interactiveMapBox > *:nth-child(13) {
    transition-delay: 325ms;
}

.markerBox.interactiveMapBox > *:nth-child(14) {
    transition-delay: 350ms;
}

.markerBox.interactiveMapBox > *:nth-child(15) {
    transition-delay: 375ms;
}

.markerBox.interactiveMapBox > *:nth-child(16) {
    transition-delay: 400ms;
}

.markerBox.interactiveMapBox > *:nth-child(17) {
    transition-delay: 425ms;
}

.markerBox.interactiveMapBox > *:nth-child(18) {
    transition-delay: 450ms;
}

.markerBox.interactiveMapBox > *:nth-child(19) {
    transition-delay: 475ms;
}

.markerBox.interactiveMapBox > *:nth-child(20) {
    transition-delay: 500ms;
}

.markerIncidentTag, .markerTime {
    font-size: 14px;
    font-weight: 300;
}

.markerLocation, .markerTriage {
    text-transform: uppercase;
}

.markerButton {
    font-weight: 300;
    display: inline-block;
    padding: 3px;
    background-color: #95a5a6;
    color: white;
    transition: background-color 0.25s ease-in-out;
}

.markerButton:hover {
    background-color: #ff9900;
}

.r1 {
    color: #ff0000;
    border: 1px solid #ff0000;
}

.r2 {
    color: #cf000f;
    border: 1px solid #cf000f;
}

.a {
    color: #f1c40f;
    border: 1px solid #f1c40f;
}

.g {
    color: #27ae60;
    border: 1px solid #27ae60;
}

.sec {
    color: #2980b9;
    border: 1px solid #2980b9;
}

.rid {
    color: #e87e04;
    border: 1px solid #e87e04;
}

div.markerPoint {
    position: absolute;
    top: 46px;
    /*width: 15px;
      height: 10px;
      background-size: 100%;
      transition: opacity 0.25s ease-in-out, visibility 0.25s ease-in-out;
      background: url("../icons/dIcon.png") top left no-repeat;*/
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 10px solid;
    border-top-color: inherit;
}

.r1 div.markerPoint {
    /*background-image: url("../icons/r1Icon.png");*/
}

.r2 div.markerPoint {
    border-color: #c
    /*background-image: url("../icons/r2Icon.png");*/
}

.a div.markerPoint {
    /*background-image: url("../icons/aIcon.png");*/
}

.g div.markerPoint {
    /*background-image: url("../icons/gIcon.png");*/
}

.sec div.markerPoint {
    /*background-image: url("../icons/secIcon.png");*/
}

.rid div.markerPoint {
    /*background-image: url("../icons/ridIcon.png");*/
}

.markerBox {
    position: absolute;
    text-align: left;
    top: -56px;
    left: 37.5px;
    width: auto;
    min-width: 250px;
    background-color: white;
    padding: 5px 10px;
    border: 1px solid #95a5a6;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), z-index 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.markerBox.interactiveMapBox {
    width: 100px;
    min-width: 100px;
    overflow: hidden;
    transition: opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), z-index 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), width 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), min-width 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.markerBox.interactiveMapBox > * {
    white-space: nowrap;
    overflow: hidden;
}

a.markerLink {
    color: #95a5a6;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.25s ease-in-out;
    cursor: pointer;
}

a.markerLink:hover {
    color: #ff9900;
}

a.markerLink.medical:hover {
    color: #27ae60;
}

a.markerLink.security:hover {
    color: #2980b9;
}

a.markerLink.ride:hover {
    color: #e87e04;
}

a.markerLink i {
    text-decoration: none;
    padding-right: 5px;
}

div.markerWrap:hover div.markerBox {
    visibility: visible;
    opacity: 1;
    z-index: 1000;
}

div.markerWrap:hover div.markerBox.interactiveMapBox {
    width: auto;
    min-width: 250px;
}

div.markerWrap:hover div.markerBox.interactiveMapBox > * {
    left: 0;
    opacity: 1;
}

#marker1 {
    left: 200px;
    top: 400px;
}

#marker2 {
    left: 660px;
    top: 615px;
}

#marker3 {
    left: 200px;
    top: 400px;
}

#crossHair {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 50%;
    box-sizing: border-box;
    border: 1px solid red;
}

select {
    border: 1px solid #95a5a6;
    line-height: 25px;
    border-radius: 0;
    font-size: inherit;
    font-family: 'Gill Sans', 'Open Sans', sans-serif;
    font-weight: 300;
    -webkit-appearance: none;
    appearance: none;
    padding: 0 5px;
    /* Google svg url encoder -original files in folder, putting it in CSS prevents loading blink*/
    background: white url("data:image/svg+xml,%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='12px' height='7px' viewBox='0 0 12 7' enable-background='new 0 0 12 7' xml:space='preserve'%3E%3Cpolygon fill='%2395A5A6' points='0,0 6,7 12,0 '/%3E%3C/svg%3E") right 5px center no-repeat;
    box-sizing: content-box;
    cursor: pointer;
    transition: background-image 0.25s cubic-bezier(0.215, 0.61, 0.355, 1), border-color 0.25s cubic-bezier(0.215, 0.61, 0.355, 1);

}

select:hover {
    background: white url("data:image/svg+xml,%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='12px' height='7px' viewBox='0 0 12 7' enable-background='new 0 0 12 7' xml:space='preserve'%3E%3Cpolygon fill='%23FF9900' points='0,0 6,7 12,0 '/%3E%3C/svg%3E%0A") right 5px center no-repeat;
    border-color: #ff9900;
}

select.ride:hover {
    background: white url("data:image/svg+xml,%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='12px' height='7px' viewBox='0 0 12 7' enable-background='new 0 0 12 7' xml:space='preserve'%3E%3Cpolygon fill='%23E87E04' points='0,0 6,7 12,0 '/%3E%3C/svg%3E") right 5px center no-repeat;
    border-color: #e87e04;
}

select.security:hover {
    background: white url("data:image/svg+xml,%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='12px' height='7px' viewBox='0 0 12 7' enable-background='new 0 0 12 7' xml:space='preserve'%3E%3Cpolygon fill='%232980B9' points='0,0 6,7 12,0 '/%3E%3C/svg%3E%0A") right 5px center no-repeat;
    border-color: #2980b9;
}

select.medical:hover {
    background: white url("data:image/svg+xml,%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='12px' height='7px' viewBox='0 0 12 7' enable-background='new 0 0 12 7' xml:space='preserve'%3E%3Cpolygon fill='%2327AE60' points='0,0 6,7 12,0 '/%3E%3C/svg%3E%0A") right 5px center no-repeat;
    border-color: #27ae60;
}

select.ride:focus {
    border-color: #e87e04;
}

select.security:focus {
    border-color: #2980b9;
}

select.medical:focus {
    border-color: #27ae60;
}

select:focus {
    border-color: #ff9900;
    outline: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    /* impossible to remove yellow background in chrome normal way - overlay a solid shadow instead */
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
}

.mapTimeInput {
    margin: 0;
    padding: 2px 5px;
    font-size: 16px;
    font-family: 'Gill Sans', 'Open Sans', sans-serif;
    font-weight: 300;
    outline: none;
    border-radius: 0;
    border: 1px solid #95a5a6;
}

input.medical:focus {
    border-color: #27ae60;
    outline: none;
}

input.ride:focus {
    border-color: #e87e04;
    outline: none;
}

input.security:focus {
    border-color: #2980b9;
    outline: none;
}

/* slider */

input[type=range] {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    width: 100%;
    margin: 7.5px 0;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 5px;
    cursor: pointer;
    background: #95a5a6;
}

input[type=range]::-webkit-slider-thumb {
    height: 20px;
    width: 8px;
    background: #95a5a6;
    border: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    margin-top: -7.5px;
    transition: background 0.25s ease-in-out;
}

input[type=range]:hover::-webkit-slider-thumb {
    background: #ff9900;
}

input[type=range]:hover::-moz-range-thumb {
    background: #ff9900;
}

input[type=range]:hover::-ms-thumb {
    background: #ff9900;
}

input[type=range]:focus::-webkit-slider-runnable-track {
    /*background: #7d7d7d;*/
    background: #95a5a6;
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 5px;
    cursor: pointer;
    background: #95a5a6;
}

input[type=range]::-moz-range-thumb {
    height: 20px;
    width: 8px;
    background: #95a5a6;
    border-radius: 0;
    cursor: pointer;
    margin-top: -7.5px;
    transition: background 0.25s ease-in-out;
}

input[type=range]::-ms-track {
    width: 100%;
    height: 5px;
    cursor: pointer;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

input[type=range]::-ms-fill-lower {
    background: #95a5a6;
}

input[type=range]::-ms-fill-upper {
    background: #95a5a6;
}

input[type=range]::-ms-thumb {
    height: 20px;
    width: 8px;
    background: #95a5a6;
    cursor: pointer;
    margin-top: -7.5px;
    transition: background 0.25s ease-in-out;
}

input[type=range]:focus::-ms-fill-lower {
    background: #95a5a6;
}

input[type=range]:focus::-ms-fill-upper {
    /*background: #7d7d7d;*/
    background: #95a5a6;
}

/*MOBILE*/

@media only screen and (max-device-width: 480px) {
    #mapWrap {
        position: fixed;
        top: 0;
        height: 100%;
    }

    .markerBox, div.markerWrap:hover div.markerBox.interactiveMapBox {
        width: 150px;
    }

    .zoomer {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 35px;
        z-index: 4000;
    }

    #zoomSlider {
        width: calc(100vh - 390px);
        margin-top: calc(100vh - 390px);
    }

    #offMapBox {
        top: 70px;
    }

    #mapButtonWrap {
        top: 70px;
        width: 50px;
    }

    #statsWrap, #statsButton, #muteButton {
        display: none;
    }
}

@media only screen and (min-device-width: 480px) and (max-device-width: 1024px) {
    /* For general iPad layouts */
    .zoomer {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 40px;
        z-index: 4000;
    }

    #zoomSlider {
        width: calc(100vh - 490px);
        margin-top: calc(100vh - 490px);
        min-width: 200px;
    }

    #mapButtonWrap {
        top: 10px;
        width: 50px;
    }
}
