﻿html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

#logo {
    position: absolute;
    z-index: 1004;
}

#search-box {
    position: absolute;
    z-index: 1100;
}

#ticker-box {
    display: none;
	position: absolute;
	top: 0;
	left: 15%;
	right: 15%;
	z-index: 1002;

	background-color: rgba(239,239,239,0.8);
	color: #555;
	font-weight: bold;
}
#ticker {
	position: relative;
    top: 0;
    left: 0;
    right: 0;
	overflow: hidden;
	height: 23px;
    font-size: 14px;
}
#ticker-tape {
	position: absolute;
	right: 0;
}
#ticker-open {
	width: 100px;
	position: absolute;
	left: 50%;
	margin-left: -50px;
   	z-index: 500;

	text-align: center;
	font-size: 17px;
	padding: 5px 0;
	background-color: rgba(200,200,200,0.5);
	color: #000;
	cursor: pointer;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
}

#mappanel {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    transition: right 0.3s ease;
}

#legend-btn-widescreen, #legend-btn-mobile {
    position: absolute;
    right: 10px;
    top: 10px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    background: #fff;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 1.5em;
    z-index: 800;
    cursor: pointer;
}
#legend-btn-mobile {
    top: 60px;
}

#btn-info {
    display: none;
    position: absolute;
    left: 10px;
    top: 110px;
    width: 36px;
    height: 36px;
    text-align: center;
    line-height: 36px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    background: #fff;
    border-radius: 5px;
    font-size: 1.5em;
    z-index: 800;
    cursor: pointer;
}
#btn-info:hover {
    background-color: #f4f4f4;
}

#sidepanel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 250px;
}
#sidepanel .content {
    width: 100%;
    height: 100%;
    padding: 15px;
    padding-bottom: 60px;
    overflow-y: auto;
    box-sizing: border-box;
}
#sidepanel .content:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 12px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(120, 140, 190, 0.4));
}

#map-legend {
    position: relative;
    padding: 5px;
    border-bottom: 2px solid #eee;
}
#map-legend .items div {
    margin: 5px 0;
}
#map-legend .items .legend-text {
    margin-left: 0.5rem;
    display: inline-block;
}
#map-legend.clickable {
    cursor: pointer;
}
#map-legend .desc {
    display: none;
}
#btn-legend-help {
    display: none;
    position: absolute;
    right: 10%;
    top: 50%;
    margin-top: -20px;
    font-size: 40px;
    color: #ccc;
}

#static-messages {
    margin-top: 20px;
    text-align: center;
}
#static-messages .separator,
#map-legend .separator {
    font-size: 13px;
    display: block;
    text-align: center;
    margin: 20px 0;
    color: #acd;
}
#static-messages .separator:before,
#static-messages .separator:after,
#map-legend .separator:before,
#map-legend .separator:after {
    content: '\25CF';
    margin: 0 20px;
}

.street-toggle {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    text-align: center;
}
.street-toggle div {
    display: inline-block;
    background: #f5f5f5;
    padding: 15px 20px;
    border: 1px solid #333;
}
.street-toggle div:first-child {
    border-right: none;
}
.street-toggle div:last-child {
    border-left: none;
}
.street-toggle div:hover {
    background: #eee;
    cursor: pointer;
}
.street-toggle div.active {
    font-weight: bold;
    box-shadow: 0 4px 5px #aaa;
    background: #fff;
    border: 3px solid #92CDDC;
}
.street-toggle.large {
    display: none;
}

/**************************************
GENERAL CONTROLS
***************************************/

button {
    outline: none;
}

.checkmark {
  position: relative;
  height: 20px;
  width: 20px;
  background-color: #eee;
}

/* On mouse-over, add a grey background color */
.checkmark:hover {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.checkmark.selected {
  background-color: #2196F3;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark.selected:after {
  display: block;
  width: 4px;
  height: 9px;
  top: 0px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

button.round {
    border: none;
    padding: 0;
    position: relative;
    width: 32px;
    height: 32px;
    background: none;
    outline: none;
}

    button.round:before {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 0;
        line-height: 29px;
        /*text-shadow: 0px 1px 1px #000;*/
        text-align: center;
        background-color: #00539b;
        color: #fff;
        border-radius: 50%;
        border: 2px solid #eee;
        box-shadow: 0 2px 3px #666;
        cursor: pointer;
    }

    button.round:hover:before {
        border: 2px solid #fff;
        box-shadow: 0 2px 3px #00a;
    }

button.btn-close:before {
    font-size: 25px;
    padding-left: 1px;
    line-height: 28px;
}

.scroller {
	overflow-y: auto;
	overflow-x: hidden;
	position: relative;
	left: 0; right: 0;
	top: 0; bottom: 0;
}

.modal-control {
    position: relative;
    text-align: center;
}

.modal-popup {
	position: absolute;
	left: 50%; top: 50%;
	width: 300px;
	height: 550px;
	margin-left: -150px;
	margin-top: -275px;
	background-color: rgba(255,255,255,0.9);
	border: 2px solid #fff;
	color: #000;
	z-index: 10001;
    box-shadow: 2px 2px 3px #4e4e4e;
}
.modal-popup h1 {
    margin-top: 0;
	font-size: 20px;
	font-weight: normal;
	margin: 0;
	margin-bottom: 10px;
	text-align: center;
}
.modal-popup > .content {
	padding: 10px;
}
.popup-bg {
	position: absolute;
	left: 0; right: 0; top: 0; bottom: 0;
	background-color: #000;
	opacity: 0.5;
	z-index: 10000;
}
.modal-popup > .btn-close {
	position: absolute;
	right: -10px;
	top: -10px;
}

/**************************************
MAP CONTROLS
***************************************/
#map {
    height: 100%;
}
#map .popup {
    font-size: 1.2em;
}

#map .popup .title {
    font-size: 1.2em;
    margin: 0;
    margin-bottom: 5px;
}

.popup .btn-close {
    position: absolute;
    right: -10px;
    top: -10px;
}

#map .truck-label {
    width: auto !important;
    height: auto !important;
}
#map .truck-label div {
    font-size: 1.2em;
    font-weight: bold;
    background-color: rgba(255,255,255,1);
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    left: -50%;
}

#map-legend select {
    width: 100%;
    margin-bottom: 6px;
}

.legend-item {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 7px;
    vertical-align: middle;
    margin-top: 3px;
    margin-bottom: 3px;
    box-shadow: 1px 1px 2px #999;
}

.legend-item-direction {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 7px;
    vertical-align: middle;
    margin-top: 3px;
    margin-bottom: 3px;
    text-shadow: 1px 1px 2px #999;
}

.geolocate {
    display: none;
}

/**************************************
LEAFLET MODS
***************************************/

/* Move the top-left items down a little */
.leaflet-top.leaflet-left {
    margin-top: 150px;
}

/* normalize button icon size */
.leaflet-touch .leaflet-control-layers-toggle {
    width: 36px;
    height: 36px;
}

.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
    border: none;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

.leaflet-draw-tooltip {
    display: none;
}

.esri-leaflet-logo {
    display: none;
}

.leaflet-bar a, .leaflet-bar a:hover {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
}

.gin-control-zoom {
    font-size: 24px;
}
.gin-control-zoom .fa-home {
    margin-top: -5px;
    margin-left: -1px;
}

/**************************************
SEARCH BAR
***************************************/

.search-icon {
    font-size: 30px;
    color: #bbb;
}

.search-clear {
    display: none;
    font-size: 33px;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.search-results {
    position: relative;
    color: #575a5d;
    background: #fff;
    display: none;
    top: -1px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    font-size: 1.1em;
}

.search-results .query {
    padding: 8px 40px;
    padding-bottom: 0;
}

.search-results .no-results {
    margin: 8px 40px;
}

.search-results ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.search-results li {
    padding: 10px 20px;
    color: #0066ff;
}

.search-results li:hover {
    background-color: #2074B6;
    color: #fff;
}

.search-results li::before {
    content: "\f041";
    font-family: FontAwesome;
    font-size: 0.9em;
    margin-right: 3px;
    margin-bottom: -5px;
}

.search-results li:last-of-type {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

/**************************************
MAP PANES
*/
.leaflet-services-pane {
    z-index: 201; /* Just above tiles */
    pointer-events: none;
}
.leaflet-services-pane .leaflet-interactive {
    cursor: inherit; /* Don't want interactive service overlays */
}

/**************************************
POPUPS
*/
.landing-page {
	width: 300px;
	height: auto;
	margin-left: -150px;
	margin-top: -170px;
}
.landing-page .content {
	padding: 15px;
    font-size: 14px;
}
.landing-page p {
	margin: 0 0 10px;
}

.legend-popup {
    text-align: center;
}
.legend-popup h2 {
    font-size: 20px;
    margin: 0;
    text-shadow: 0 0 1px #333, 0 0 1px #333, 0 0 1px #333;
}

/**************************************
SCREEN SIZE ADJUSTMENTS
***************************************/
@media (min-width: 651px) {
    body.legend-open #mappanel {
        right: 250px;
        border-right: 1px solid #aaa;
    /*  box-shadow: 3px 0 6px #aaa;*/
    }
    body.panel-left.legend-open #mappanel {
        left: 250px;
        border-left: 1px solid #aaa;
    }
    .mobile-only {
        display: none;
    }
    .street-toggle {
        bottom: 10px;
    }
    .street-toggle div {
       box-shadow: 0 2px 3px #aaa;
    }
    .street-toggle div:first-child {
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
    }
    .street-toggle div:last-child {
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
    }
    #btn-legend-help.visible {
        display: block;
    }
}
@media (max-width: 650px) {
	#ticker {
		font-size: 16px;
	}

	#ticker-box {
		left: 15%;
		right: 15%;
	}

    #mappanel {
        left: auto;
        width: 100%;
    }
    #mappanel.offscreen {
        right: 100%;
    }

    #sidepanel {
        display: none;
        width: 100%;
    }

    #map-legend .desc {
        display: block;
        font-style: italic;
        font-size: 0.9em;
        margin-top: 0 !important;
        margin-bottom: 10px !important;
        padding-left: 32px;
    }

    .street-toggle.small div {
        width: 50%;
        box-sizing: border-box;
        padding: 0;
        line-height: 40px;
    }

    .modal-popup {
        top: 51px;
        margin-top: 0;
        margin-left: 0;
        left: 50%;
        margin-left: -50%;
        right: 0;
        bottom: 0;
        width: auto;
        height: auto;
    }
    .modal-popup .btn-close {
        top: auto;
        right: auto;
        left: 50%;
        bottom: 10px;
    }
    .modal-popup .content {
        bottom: 20px;
    }

    .not-mobile {
        display: none;
    }
}
