 html, body, #main, #ui-map {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: #FFF;
  /* overflow: hidden;*/ /* todo - check this */
  font-family: "Trebuchet MS";
}

#ui-map {
  position: absolute; 
  top:0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  z-index: 1;
}
/*
#ui-map {
  position: absolute;
  top: 20;
  left: 0;
  width: 85%;
  border: 10px red solid;
  margin: 10px;
  height: 55%;
  z-index: 1;
}*/

#ui-map_root {
  width:100%!important;
  height:100%!important;
}

#header { 
  position: absolute;
  top: 0;
  left: 0;
}

.ui-page {
  /*max-height:10000px;*/
}

#map-layers, #legend, #search, #bookmarks, #simulations, #info, #flood-reports, #help {
  position: fixed;
  margin-top: -1em;
    height: 100%;
    max-height: 100%;
    overflow-y: visible;


}

 ::-webkit-scrollbar {
     -webkit-appearance: none;
 }

 ::-webkit-scrollbar:vertical {
     width: 12px;
 }

 ::-webkit-scrollbar:horizontal {
     height: 12px;
 }

 ::-webkit-scrollbar-thumb {
     background-color: rgba(0, 0, 0, .5);
     border-radius: 10px;
     border: 2px solid #ffffff;
 }

 ::-webkit-scrollbar-track {
     border-radius: 10px;
     background-color: #ffffff;
 }

@media screen and (orientation: landscape) {
    .ui-mobile .ui-page {

    }
}

#footer { 
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #000;
  z-index: 99;
  text-align: center;
}

#searchText {
  display: none;
  font-style: italic;
  background-color: #fff;
}

.ui-autocomplete {
  max-width: 93%!important;
  font-size:0.95em;
}

.slider {
  width: 3.5em;
  height: .5em;
  float: right;
  margin-top: 0.5em;
}

.ui-dialog .ui-content {
  padding: 15px;
}

.ui-dialog-contain {  
  max-height: 95%;
}

#flood-reports-content {
  padding: 15px;
  overflow-y: scroll;
}

.ui-focus {
  box-shadow: 0px 0px 20px #039be5!important;
}

.ui-bar-e {
  display:none;
  z-index:99;
  border: 1px solid #039be5;
  background: #00bfff;
  padding: 0px 10px;
  color: #333;
  text-shadow: 0 1px 0 #fff;
  background-image: -webkit-gradient(linear,left top,left bottom,from(#00bfff),to(#039be5));
  background-image: -webkit-linear-gradient(#00bfff,#039be5);
  background-image: -moz-linear-gradient(#00bfff,#039be5);
  background-image: -ms-linear-gradient(#00bfff,#039be5);
  background-image: -o-linear-gradient(#00bfff,#039be5);
  background-image: linear-gradient(#00bfff,#039be5);
}

.ui-bar-a {
    border: 1px solid #333;
    background: #111;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 -1px 1px #000;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#3c3c3c), to(#111));
    background-image: -webkit-linear-gradient(#3c3c3c, #111);
    background-image: -moz-linear-gradient(#3c3c3c, #111);
    background-image: -ms-linear-gradient(#3c3c3c, #111);
    background-image: -o-linear-gradient(#3c3c3c, #111);
    background-image: linear-gradient(#3c3c3c, #111)
}

.ui-page-theme-a .ui-btn {
    border: 1px solid #111;
    background: #333;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 1px #111;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#444), to(#2d2d2d));
    background-image: -webkit-linear-gradient(#444, #2d2d2d);
    background-image: -moz-linear-gradient(#444, #2d2d2d);
    background-image: -ms-linear-gradient(#444, #2d2d2d);
    background-image: -o-linear-gradient(#444, #2d2d2d);
    background-image: linear-gradient(#444, #2d2d2d)

}

.ui-page-theme-a .ui-btn-up-a {
    border: 1px solid #111;
    background: #333;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 1px #111;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#444), to(#2d2d2d));
    background-image: -webkit-linear-gradient(#444, #2d2d2d);
    background-image: -moz-linear-gradient(#444, #2d2d2d);
    background-image: -ms-linear-gradient(#444, #2d2d2d);
    background-image: -o-linear-gradient(#444, #2d2d2d);
    background-image: linear-gradient(#444, #2d2d2d)
}
.ui-btn-up-a a.ui-link-inherit {
    color: #fff
}
.ui-page-theme-a .ui-btn-hover-a {
    border: 1px solid #000;
    background: #444;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 1px #111;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#555), to(#383838));
    background-image: -webkit-linear-gradient(#555, #383838);
    background-image: -moz-linear-gradient(#555, #383838);
    background-image: -ms-linear-gradient(#555, #383838);
    background-image: -o-linear-gradient(#555, #383838);
    background-image: linear-gradient(#555, #383838)
}
.ui-btn-hover-a a.ui-link-inherit {
    color: #fff
}
.ui-btn-down-a {
    border: 1px solid #000;
    background: #222;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 1px #111;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#202020), to(#2c2c2c));
    background-image: -webkit-linear-gradient(#202020, #2c2c2c);
    background-image: -moz-linear-gradient(#202020, #2c2c2c);
    background-image: -ms-linear-gradient(#202020, #2c2c2c);
    background-image: -o-linear-gradient(#202020, #2c2c2c);
    background-image: linear-gradient(#202020, #2c2c2c)
}
.ui-btn-down-a a.ui-link-inherit {
    color: #fff
}
.ui-btn-up-a,
.ui-btn-hover-a,
.ui-btn-down-a {
    font-family: Helvetica, Arial, sans-serif;
    text-decoration: none
}

.ui-content {
  padding: 0;
}

.ui-input-text input, .ui-input-search input {
  min-height: 1.8em;
  padding: 0.2em 2em 0.2em 2em;
}

.esriPopupMobile .titlePane {
  background: none repeat scroll 0 0 #000;
}

.esriLegendService {
    padding: 0;
}

.esriLegendServiceLabel {
  display: none;
}

.esriSimpleSliderDisabledButton, .esriSimpleSliderDisabledButton:active, .esriSimpleSliderDisabledButton:hover {
  cursor: default;
  background-color: rgba(0,0,0,0.3);
  color: rgba(255,255,255,0.2);
  text-shadow: 0 1px 0 #333;
}

.esriSimpleSliderTL {
  top:4em!important;
  left:1em!important;
  text-shadow: 0 1px 0 #666;
}

.esriSimpleSlider {
  display: none;
  border: none;
  background-color: rgba(102,102,102,0.60);
  color: #fff;
}

.esriSimpleSlider div {
  width: 34px;
  height: 34px;
  line-height: 30px;
}

.esriSimpleSliderVertical .esriSimpleSliderIncrementButton {
  border: 1px solid #57585A;
}

.esriSimpleSliderVertical .esriSimpleSliderDecrementButton {
  border: 1px solid #57585A;
}

.esriControlsBR {
  bottom: 70px;
  left: 5px!important;
  text-align: left!important;
}

.esriAttribution {
  position: relative;
  top: 15px;
  max-width: 250px!important;
}


.map .logo-sm {
  background-repeat: no-repeat;
  padding: 1px;
  margin: 1px 1px 1px 1px;
  visibility: hidden;
}


/* HomeButton dijit */

.HomeButton .home {
  background-image: url("../images/btn-home-icon.png");
  background-size: 1.5625em;
  background-repeat: no-repeat;
  position: absolute;
  right: 1em;
  top: 4em;
  z-index: 3;
  background-color: rgba(102,102,102,0.60);
  border: 1px solid #57585A;
}

/* clear search button */

.Search {
  display:none;
  background-color: transparent!important;
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABZ0RVh0Q3JlYXRpb24gVGltZQAwMS8zMC8xNZZ7U8oAAAAfdEVYdFNvZnR3YXJlAE1hY3JvbWVkaWEgRmlyZXdvcmtzIDi1aNJ4AAACFklEQVQ4ja3SsWsTYRzG8W/LpYaDYEgvQ4eii9ClNZzVRigEyx0uZnF0qIKILsFSHJwKihQKpUZFgjo4FMHhwD/gJUPgMoln43WyqTRbjhCQHCcNhnsdmohirrbiAy+8xz184P2974iUkv8RZbAxTZO1tbXT5XJ503XdrOd5CkAymWzHYrFVz/M2Bl0hxB/QiJQS0zQpFApXLMt61+12g3Q6vZ5IJKyJiYkzQRA83N7enu50Ol/29/cvAF8jIcdxThWLxZ0wDD8tLy9ndV3vDQqO48R8379hWdazer2+0+v1podBowDlcnkzCIJvnudd/hUB0HX9ey6Xe5XP5yuqqk4Ci8NmNArguu7FdDq9IYRoRw1T07RiNpuNAXcjoWazqYyPj7+IQvr5MDs7ewLIREJSSmZmZvS/QOeklH7Uz1GAVCrVbjQajxzHUaKKwD3btj8DW5HQ2NjYaq1WO+v7/vVhJcdxHrRarYVqtToFPB3WUQCazeZGPB6/Y1nW8263e1XTtHVgF8gCt1ut1kKpVNoNw1AD9oZBPx8kcFJRFFtV1cn5+Xklk8nEpZQd27Z3qtXqVBiGElgFrgG3hBDvo6BBFjm44sHtbPWPswc8AR4DS8CSEKLyG3TUmKZ5HngJvAYMYEUIsQX9YR81/eMs9ZE3wEfTNOeODfWxCrACvAVuApeAg8f4L8swjDnDMO4Pvo81o8PyA3uJFhGAUChjAAAAAElFTkSuQmCC)!important;
  border: none!important;
  background-size: 20px!important;
  background-position: center center!important;
  background-repeat: no-repeat!important;
  position: absolute;
  left: 15px;
  top: 6px;
  z-index: 999;
  padding: 2px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* clear search button */

.ClearSearch {
  display:none;
  background-color: transparent!important;
  background-image: url("../images/btn-close.png")!important;
  border: none!important;
  background-size: 18px!important;
  background-position: center center!important;
  background-repeat: no-repeat!important;
  position: absolute;
  right: 15px;
  top: 6px;
  z-index: 999;
  padding: 2px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* change search button */

.ChangeSearch {
  display: none;
  background-color: transparent!important;
  background-image: url("../images/btn-more.png")!important;
  border: none!important;
  background-size: 18px!important;
  background-position: center center!important;
  background-repeat: no-repeat!important;
  position: absolute;
  right: 15px;
  top: 6px;
  z-index: 999;
  padding: 2px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

  /* BookmarksButton dijit */

.BookmarksButton {
  display: none;
  background-image: url("../images/btn-bookmarks-icon.png")!important;
  background-color: rgba(102,102,102,0.60)!important;
  border: 1px solid #57585A!important;
  background-size: 1.5625em!important;
  background-position: center center!important;
  background-repeat: no-repeat!important;
  position: absolute;
  right: 1em;
  top: 6.5em;
  z-index: 3;
  padding: 2px;
  width: 30px;
  height: 30px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -o-border-radius: 5px;
  border-radius: 5px;
}

 /* LocateButton dijit */

.LocateButton .zoomLocateButton {
  background-image: url("../images/btn-locate-icon.png");
  background-size: 1.5625em;
  position: absolute;
  left: 1em;
  top: 9.5em;
  z-index: 3;
  background-color: rgba(102,102,102,0.60);
  border: 1px solid #57585A;
}

.LocateButton .zoomLocateButton:hover {
  background-size: 1.5625em;
  /*background-color: #EEEEEE;*/
  color: #4C4C4C;
}

.LocateButton .tracking {
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%0A%3C%21--%20Generator%3A%20Adobe%20Illustrator%2017.1.0%2C%20SVG%20Export%20Plug-In%20.%20SVG%20Version%3A%206.00%20Build%200%29%20%20--%3E%0A%3C%21DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%0A%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%0A%09%20viewBox%3D%22-3%20-3%2020%2020%22%20enable-background%3D%22new%20-3%20-3%2020%2020%22%20xml%3Aspace%3D%22preserve%22%3E%0A%3Cg%20id%3D%22normal%22%20display%3D%22none%22%3E%0A%09%3Cpath%20display%3D%22inline%22%20fill%3D%22%2357585A%22%20d%3D%22M7-3C3.8-3%2C1.3-0.4%2C1.3%2C2.7C1.3%2C5.6%2C7%2C17%2C7%2C17s5.7-11.4%2C5.7-14.3C12.7-0.4%2C10.2-3%2C7-3z%0A%09%09%20M7%2C5.6c-1.6%2C0-2.9-1.3-2.9-2.9S5.4-0.1%2C7-0.1s2.9%2C1.3%2C2.9%2C2.9S8.6%2C5.6%2C7%2C5.6z%22%2F%3E%0A%3C%2Fg%3E%0A%3Cg%20id%3D%22hover%22%3E%0A%09%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M7-3C3.8-3%2C1.3-0.4%2C1.3%2C2.7C1.3%2C5.6%2C7%2C17%2C7%2C17s5.7-11.4%2C5.7-14.3C12.7-0.4%2C10.2-3%2C7-3z%20M7%2C5.6%0A%09%09c-1.6%2C0-2.9-1.3-2.9-2.9S5.4-0.1%2C7-0.1s2.9%2C1.3%2C2.9%2C2.9S8.6%2C5.6%2C7%2C5.6z%22%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A");
  background-size: 1.5625em;
  background-color: #EEEEEE;
}

/* BookmarksButton dijit */

.FloodReportsButton {
  display: none;
  background-image: url("../images/btn-flood-report-icon.png")!important;
  background-color: rgba(102,102,102,0.60)!important;
  border: 1px solid #57585A!important;
  background-size: 1.5625em!important;
  background-position: center center!important;
  background-repeat: no-repeat!important;
  position: absolute;
  right: 1em;
  bottom: 4em;
  z-index: 3;
  padding: 2px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -o-border-radius: 5px;
  border-radius: 5px;
}

.FloodReportsButtonActive { 
  background-color: rgba(102,102,102,0.90)!important;
}

.ClearMapButton {
  display: none;
  background-image: url("../images/btn-clear-map-icon.png")!important;
  background-color: rgba(102,102,102,0.60)!important;
  border: 1px solid #57585A!important;
  background-size: 1.5625em!important;
  background-position: center center!important;
  background-repeat: no-repeat!important;
  position: absolute;
  right: 1em;
  bottom: 7em;
  z-index: 3;
  padding: 2px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -o-border-radius: 5px;
  border-radius: 5px;
}

.IncrementFloodSlider {
  background-color: transparent!important;
  background-image: url("../images/btn-up.png")!important;
  border: none!important;
  background-size: 22px!important;
  background-position: center center!important;
  background-repeat: no-repeat!important;
  position: absolute;
  left: 0px;
  top: 0px;
  z-index: 999;
  padding: 2px;
  width: 22px;
  height: 22px;
  cursor: pointer;
}

.DecrementFloodSlider {
  background-color: transparent!important;
  background-image: url("../images/btn-down.png")!important;
  border: none!important;
  background-size: 22px!important;
  background-position: center center!important;
  background-repeat: no-repeat!important;
  position: absolute;
  left: 0px;
  top: 136px;
  z-index: 999;
  padding: 2px;
  width: 22px;
  height: 22px;
  cursor: pointer;
}

/* Bookmarks */
#publicBookmarks {
  width: 99%;
}

#publicBookmarksDiv{
    display: none;
    width: 100%;
}

.esriBookmarks {
  width: 99%;
}

.esriBookmarkTable {
width: 100%;
}

.esriBookmarkItem {
    width: 99%;
    height: 20px;
    margin: 3px;
    overflow: none;
}

.esriBookmarkLabel {
  font-size: 1em;
  font-family: inherit;
    width: 90%;
}

#privateBookmarks {
  width: 99%;
}

.privateBookmarkItem {
    width: 99%;
    height: 20px;
    margin: 3px;
    padding: 3px 0 0 3px;
    overflow: none;
    cursor: pointer;
}

.editBookmarkItem {
    display: none;
    margin: 2px 6px 0 0;
    height: 20px;
    width: 20px;
    border: 0 none;
}

.deleteBookmarkItem {
    margin: 0 6px 3px 0;
    height: 15px;
    width: 15px;
    border: 0 none;
}

#addBookmark {
    display: none;
}

#addBookmarkTxt {
    width: 99%; /* 144px; */
    display: inline-block;
    margin: 3px 2px 9px 6px;
}

.bookmarkButtons {
    float: right;
}

.privateBookmarkItem:hover {
    background-color: #D9E6F9;
}

.ui-checkbox-off:after {
    background-color: white !important;
}

.esriMobileNavigationBar {
  z-index: 999
}

.esriMobileInfoView .esriMobileInfoViewItem {
  margin: 30px;
}

.esriMobileNavigationBar {
  overflow: hidden;
  position: absolute;
  z-index: 999;
  top: 0px;
  /*background-color: #639BBC;*/
  background-image: -webkit-gradient(linear,left top,left bottom,from(#00bfff),to(#039be5));
  background-image: -webkit-linear-gradient(#00bfff,#039be5);
  background-image: -moz-linear-gradient(#00bfff,#039be5);
  background-image: -ms-linear-gradient(#00bfff,#039be5);
  background-image: -o-linear-gradient(#00bfff,#039be5);
  background-image: linear-gradient(#00bfff,#039be5);
  width: 100%;
  height: 48px;
  margin: 0 auto;
  clear: both;
  font-family: Helvetica,Arial,sans-serif;
  display: block;
}

/* search list */
.ui-controlgroup-vertical .ui-controlgroup-controls .ui-btn {
  border: 1px solid #ccc!important;
  line-height: 1.2em!important;
  color: #000!important;
  text-shadow: 0 1px 1px #ccc!important;
  background-image: none!important;
}

button, .ui-btn {
  text-shadow: none!important;
  color: #fff!important;
}

#floodSimulations {
  /* border: 1px solid #000; */
  display: none;
  height: 220px;
  width: 270px;
  margin: auto;
}

#flood-study-slider-container {
  /*border: 1px solid #000;*/
  height: 172px;
  width: 80px;
  position: absolute;
  top: 70px;
  margin-left: 5px;
}

#flood-study-slider {
  border: 1px solid #000;
  height: 100px;
  width: 20px;
  position:absolute;
  top: 38px;
  left: 2px;
 -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -o-border-radius: 5px;
  border-radius: 5px;
}

#flood-study-slider-labels{
  position: absolute;
  left: 40px;
  top: 140px;
  font-size:0.7em;
}

.floodSimulationsSliderMark {
  /*border-bottom: 2px solid #fff;*/
  background-color: blue;
  width: 20px;
  position:absolute;
  left:0;
}

.floodSimulationsSliderLabel {
  position:absolute;
  left:25px;
  font-size:12px;
  margin-top:4px;
  width: 50px;
  text-align: left;
}

#flood-study-info {
  /*border: 1px solid #000;*/
  height: 75px;
  width: 160px;
  position: absolute;
  top: 100px;
  margin-left: 100px;
  font-size: 14px;
  text-align: left;
}


#flood-study-legend {
  /*border: 1px solid #000;*/
  height: 60px;
  width: 160px;
  position: absolute;
  top: 190px;
  margin-left: 94px;
}

#aboutFloodSimulations {
  text-align: left;
}

.label-info, .badge-info {
    background-color: #3a87ad;
}

.label {
  padding: 1px 4px 2px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}

.label, .badge {
  font-size: 0.85em;
  font-weight: bold;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  background-color: #999999;
}

#basemapGallery {
  margin: auto;
  width: 152px;
  text-align: center;
  /*border:1px #000 solid;*/
}

.esriBasemapGalleryThumbnail {
  height: 100px;
  width: 150px;
  margin: auto!important;
}

.esriBasemapGalleryNode {
  width: 150px;
  margin:auto;
}

.ui-mobile a img, .ui-mobile fieldset {
  border-width: 1px;
}

/* radio buttons for search type */
.ui-page-theme-a .ui-radio-on:after, 
.ui-btn.ui-radio-on.ui-btn-a:after {
  border-color: #000!important;
}

.ui-page-theme-a .ui-btn.ui-btn-active, 
.ui-page-theme-a .ui-checkbox-on:after, 
.ui-btn.ui-checkbox-on.ui-btn-a:after, 
.ui-page-theme-a .ui-slider-track .ui-btn-active {
  background-color: #000!important;
}
