

/* #Tiny-Mobile (Assume minimum 320px)
 Styles for the mobile site design.
================================================== */

/*----- Setup for whole-screen mobile pages. -----*/
body {
    min-width: 0px;
    -webkit-user-select:none;
}

#view_indicator {
  z-index: 3;
}
.header,
.content_nav,
.footer,
.dash_map_switch_btns,
#outside_slide_container_container,
#getting_started_summary,
#communities_summary,
#institutions_summary,
#people_summary
{
    display: none;
}

.container_16,
.container_16 .grid_16 {
    width: 100%;
}
#mobile_page_container {
    width: 100%;
    /* height: 100%; */
}
.mobile_page_div {
    width: 100%;
    height: 100%;
    position: relative; /* Try absolute for Android events? */
    display: none; /* Each hidden to start, for render speed. */
    background: url("../img/bg_blue.jpg");
    background-size: 100% 100%; /* Stretch. */
    background-repeat:no-repeat;
}
#mobile_page_map.mobile_page_div {
    display: block; /* Need this guy "visible" for map to load.*/
    margin-left: 100%;
}
.content {
    padding-bottom: 0px;
    overflow: hidden;
}
/*---- Overthrow ----*/
/*
.overthrow-enabled .overthrow {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
*/
/*----- General mobile styles -----*/
h1 {
    color: #cbcccf;
    font-size: 36px;
    margin: 40px;
    text-align: center;
}
h2 {
    font-size: 25px;
    color: #cccdd0;
}
h3 {
    background-color: grey;
    border: 1px solid black;
    color: white;
    margin: auto;
    padding: 20px;
    text-align: center;
}
#page_background {
    background: url("../img/bg_blue.png");
}
.mobile_header {
    height: 72px;
    width: 100%;
    overflow: hidden;
    background: white;
}
.mobile_header > div {
    float: right;
}
.mobile_divider {
    height: 1px;
    width: 100%;
    background-color: #7c859a;
}

.mobile_return_to_map_button {
    height: 61px;
    width: 100%;
    border-top: 1px solid #757b87;
    background-color: #283d6b;
}
.mobile_return_to_map_button p {
    padding: 18px;
    font-size: 27px;
    text-align: center;
    color: #CED0D8;
}
.mobile_padding {
    height:40px;
}
.ui-draggable {
    pointer-events: auto;
    -webkit-transform: translate3d(0,0,0); /* Forces hardware acceleration! */
}
/* Specific mobile pages
================================================== */

/*---- TEMPORARY DEBUG OVERLAY PAGE ----*/
#mobile_dev_overlay {
    display: none;
    background: url("../img/TEMP/transp_70_view_data.png");
    background-size: 637px 957px; /* DON'T stretch. */
    background-position: 0 -36px; /* Top bar. */
    background-repeat: no-repeat;
}

/*---- Start page ----*/
#mobile_page_start .mobile_body {
    margin: 0 20px;
}
#mobile_start_top {
    margin-bottom: 30px;
}
#mobile_start_top_imgdiv {
    text-align: center;
}
#mobile_start_top_imgdiv img {
    margin: 18px 0;
    width: 87%;
    max-width: 200px;
}
#mobile_start_top_txtdiv h2 {
    line-height: 29px;
    text-align: center;
}
#mobile_page_start .mobile_body > p {
    color: #F9F9F9;
    font-size: 15px;
    margin: 5px 0;
    padding-top: 0;
    text-align: center;
}
#mobile_start_bottom {
    margin: 40px 54px 0 54px;
    text-align: center;
}
#mobile_start_bottom #mobile_start_zipcode,
#mobile_start_bottom select,
#mobile_start_bottom #mobile_start_use_location_button {
    width: 100%;
    color: #969696;
    background-color: #d9d9d9;
    -moz-border-radius: 5px;
    border-radius: 5px;
    font-family: helvetica;
    font-size: 14px;
}
#mobile_start_bottom input[type="text"] {
    height: 46px;
    width: 100%;
    font: inherit;
    color: inherit;
    border: none;
    background: none;
    text-align: center;

    margin: -5px;
    padding: 5px;
}
#mobile_start_bottom select {
    padding: 17px 0 16px;
    -webkit-appearance: listbox;
    -webkit-padding-before: 0;
    -webkit-padding-end: 0;
    -webkit-padding-after: 0;
    -webkit-padding-start: 0;
    text-align: center;
    text-align: -webkit-center;
    line-height: 52px;
    height: 52px;
}
#mobile_start_bottom select option {
    text-align: center;
    text-align: -webkit-center;
}

#mobile_start_bottom #mobile_start_use_location_button {
    height: 52px;
    display: table;
}
#mobile_start_bottom #mobile_start_use_location_button > div {
    display: table-cell;
    vertical-align: middle;
}
#mobile_start_bottom #mobile_start_use_location_button p {
}
#mobile_page_start #mobile_start_bottom .or {
    font-size: 25px;
    font-weight: bold;
    text-align: center;
    color: #cccdd0;
    margin: 14px 0 17px 0;
}
#mobile_page_start #mobile_start_bottom .or:nth-child(4) {
    margin: 20px 0 19px 0;
}
#mobile_start_bottom input[type="submit"] {
    height: 50px;
    width: 100%;
    margin-top: 36px;
    color: #cfd1d6;
    font-size: 24px;
    background-color: #1d2a52;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border: none;
    box-shadow: -1px -1px 5px 1px #24345D;
    text-align: center;
    text-align: -webkit-center;
}
#mobile_start_latlon {
    color: #555555;
}
/*---- Select data page ----*/
#mobile_page_select_data h1 {
    font-size: 40px;
    text-align: left;
    margin: 35px 2px 25px 2px; /* Top was 70 to match mockup. */
    text-align: center;
}
#mobile_page_select_data h2 {
    font-size: 24px;
    margin: 10px 10px 10px 1px;
    padding-top: 7px;
}
#mobile_page_select_data .mobile_body {
    margin: 0 10.6%;
}
#mobile_page_select_data .mobile_divider {
    width: 100%;
}

#mobile_page_select_data .left .select_all_bg {
    width: 100%;
    background: none;
    position: fixed;
    left: 0;
    bottom: -40px; /* Moving this from top to the bottom for now. */
    height: 40px;
}
#mobile_page_select_data .filter_choices {
    top: 11px;
    font-size: 20px;
    color: white;
    padding-bottom: 23px;
}
#mobile_page_select_data .checkbox_spacer {
    min-height: 43px;
    height: auto;
    background-color: transparent;
    background-image: url("../img/filter_checkbox.png");
    background-repeat: no-repeat;
    background-position: 30px 1px;
    border: none;
    padding: 4px 0;
}
#mobile_page_select_data .checkbox_spacer[checked="checked"] {
    background-image: url("../img/filter_checkbox_checked.png");
}
#mobile_page_select_data .checkbox_spacer img.filter_icon {
    float: left;
    position: relative;
    top: 7px;
    left: -6px;
}
#mobile_page_select_data .checkbox_spacer img.filter_help {
    position: absolute;
    margin: 7px -4px 0 0;
    left: auto;
    right: 0;
}
#filter_title_wrapper {
    display: table;
    padding-top: 5px;
    padding-left: 15px;
    margin-bottom: -6px;
    /*width: 70%;*/
    width: 60%;
    font-size: 18px;
}
#filter_title_wrapper > div {
    display: table-cell;
    vertical-align: middle;
    height: 44px;
}
#filter_title_wrapper p.filter_title {
    position: relative;
    left: 34px;
    top: 0;
}
#mobile_page_select_data .checkbox_spacer span.filter_explanation {
    display: block;
    position: relative;
    height: auto;
    top: 15px;
    margin-bottom: 10px;
    padding: 15px;
    margin-bottom: 10px;
    padding: 15px;
    background-color: grey;
    font-size: 17px;
}
#mobile_page_select_data .background {
    display: none;
}
#mobile_page_select_data #checkAll {
    min-height: 30px;
    height: 30px;
    width: 100%;
    margin: 0 0 15px 0;
    background-color: #283d6b;
    background-image: none;
}
#mobile_page_select_data #checkAll p {
    text-align: center;
    color: #CED0D8;
    font-size: 22px;
    padding: 6px;
}
#mobile_page_select_data .mobile_return_to_map_button {
    margin-top: 24px;
}
/*---- Main map page ----*/

#mobile_map_additions {
   height:100%;
   width: 100%;
}
#map_crosshair {
   height:100%;
   width: 100%;
   position: absolute;
   top: 0;
   background-image: url("../img/crosshair.png");
   background-position: center center;
   background-repeat: no-repeat;
   pointer-events: none;
   z-index: 5;
   opacity: 0.5;
}
#map_onclick_anim {
   height:100%;
   width: 100%;
   position: absolute;
   top: 0;
   left: 0;
   background-image: url("../img/crosshair_blue.png");
   background-position: center center;
   background-repeat: no-repeat;
   pointer-events: none;
   z-index: 4000;
   display: none;
}
.states_and_territories,
.states_and_territories_hover,
.nav_controls_main,
.navbtn_hovers,
.map_btns_interact {
   display: none;
}    

/*
=============================================
                 DRAGABLES
=============================================
*/
/* LEGEND AND MAP LOCATION BOXES */
#legend_draggable_container,
#map_location_draggable_container {
    width: 80%;
    position: relative;
    display: block;
    top: 0%;
    left: 10%;
    z-index: 5000;
    pointer-events: none;
}
/*LEGEND*/
#legend_draggable {
    width: 90%;
    min-width: 220px;
    max-width: 370px;
    margin: auto;
}
#legend_pulltab {
    width: 100%;
    height: 40px;
    margin: auto;
    display: none;
}
#legend_pulltab p {
    display: block;
    color: #f9f9f9;
    background: #283d6b;
    padding: 6px;
    border: 1px solid #6b7999;
    text-align: center;
    margin-top: -1px;
}
#legend_container {
    background: white;
    left: 0;
    top: 0;
    width: 100%;
    border-left: 1px solid #6B7999
    border-right: 1px solid #6B7999
}
#legend_container p {
    display: inline-block;
    font-size: 11px;
    font-style: italic;
    margin: 0 5px;
    width: 151px;
}
#legend_container span {
    display: inline-block;
    margin: 0 11px;
}
.legend_box {
    background: none;
    text-align: center;
}
#legend_mobile_only {
    display: block;
}
#legend_mobile_only span {
    width: 172px;
}
/*LOCATION*/
#map_location_draggable_container_container {
    float: left;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 100%; /* Felt pretty clever about this. */
    left: 0;
    display: block;
    pointer-events: none;
}
#map_location_draggable {
    /*background: green;*/
    width: 90%;
    min-width: 230px;
    max-width: 300px;
    margin: auto;
}
#map_location_pulltab {
    background-color: #22222222;
    background-image: url("../img/map-location-button.png");
    background-size: 90px 23px;
    background-position: center bottom;
    background-repeat: no-repeat;
    width: 140px;
    height: 46px;
    margin: auto;
}
.map_location_box {
    background: #283d6b;
    color: #6e8ce9;
    text-align: center;
    font-size: 13px;
    padding-top: 6px;
    border: 1px solid #6b7999;
    margin-bottom: -1px;
}
#map_location_topbox #map_location_current {
    color: #f9f9f9;
    font-size: 18px;
    padding: 2px;
}
#map_location_middlebox {
    padding-top:10px;
}
#map_location_middlebox > span {
    white-space: nowrap;
}
#map_location_lat,
#map_location_lon {
    display: inline-block;
    padding: 5px;
    color: #f9f9f9;
}
#map_location_lat_val,
#map_location_lon_val {
    font-weight: bold;
}
#map_location_bottombox {
    height: 77px;
    padding-right: 20px;
    text-align: center;
}
#map_location_bottombox img {
    display: inline;
}
#map_location_bottombox p {
    display: inline-block;
    color: #f9f9f9;
}
/* SIDE MENU */
#mobile_side_menu_draggable_container_container {
    position: absolute;
    float: left;
    height: 100%;
    width: 100%;
    display: block;
    pointer-events: none;
    top: 0;
    left: 100%;
}
#mobile_side_menu_draggable_container {
    height: 100%;
    width: 594px; /* 274x2 + 46 */
    position: relative;
    display: block;
    z-index: 5000;
    pointer-events: none;
}
#mobile_side_menu_draggable {
    height: 100%;
    width: 320px; /* 274 + 46 */
}
#mobile_side_menu_pulltab {
    float: left;
    position: relative;
    top: 50%;
    height: 170px;
    margin-top: -85px;
    margin-left: 2px;
    margin-right: -2px;
    width: 46px;
    background-image: url("../img/map-side-button.png");
    background-size: 23px 90px;
    background-position: right center;
    background-repeat: no-repeat;
}
#mobile_side_menu {
    float: left;
    height: 100%;
    width: 274px; /* 320 - 46 */
    background: white;
    border-left: 5px solid #6B7999;
    margin-right: -5px;
}
.mobile_side_menu_button_container {
    border-top: 1px solid grey;
    display: table;
    height: 33.3%;
    width: 100%;
}
.mobile_side_menu_button_container > div {
    display: table-cell;
    vertical-align: middle;
}
.mobile_side_menu_button_container img {
    margin-left: 10px;
}
.mobile_side_menu_button_container img, .mobile_side_menu_button_container p {
    display: inline-block;
    padding: 5px;
}

/* WAX TOOLTIP */
.wax-tooltip {
    left: 14%;
    right: 14%;
    top: 80px;
    margin: auto;
    pointer-events: auto;
}
.wax-tooltip .close {
    pointer-events: auto;
    background-position: center center !important;
    height: 60px;
    right: -15px;
    top: -17px;
    width: 60px;
}
a.wax-fullscreen {
    display: none;
}
/* WAX LEGEND (POPULATION DENSITY) */
.wax-legend {
    left: 5%;
    right: 5%;
    bottom: 95px;
    margin: auto;
    text-align: center;
    max-width: 444px;
}
.wax-legend .title {
    text-align: center;
    margin: 1px 0;
}
.wax-legend .scale ul {
    float: none;
}
.wax-legend .scale ul li {
    display: inline-block;
    float: none;
    margin: 2px -3px;
}
/* ZOOMERS */
a.zoomin {
    top: auto;
    right: auto;
    left: 2%;
    bottom: 60px;
}
a.zoomout {
    top: auto;
    right: auto;
    left: 2%;
    bottom: 25px;
}

/* TUTORIAL POPUP */
#tutorial_box {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    text-align: center;
    display: table;
    z-index: 6000;
}
#tutorial_box > div {
    display: table-cell;
    vertical-align: middle;
}
#tutorial_box > div > div {
    background: none repeat scroll 0 0 #F1F1F1;
    border: 2px solid grey;
    margin: auto;
    max-height: 600px;
    max-width: 400px;
    position: relative;
    width: 80%;
}
#tutorial_box img {
    max-width: 150px;
    min-width: 90px;
    padding-top: 10px;
    margin-bottom: -10px;
    width: 50%;
}
#tutorial_box p {
    color: #333333;
    font-size: 23px;
    font-weight: bold;
    padding: 20px;
}
#tutorial_box p span {
    color: #283D6B;
}
/* THE ACTUAL MAP */
#map_div,
.map_container {
    height: 100% !important;
    width: 100% !important;
    position: fixed; 
}
.grid_16 { /* Still not quiiiite sure how this returns map to working order... */
    float: none;
}
.dashboard_map_container {
    margin: 0px;
    border: 0px;
}

/*---- Charts ----*/
#mobile_page_charts {
    background: white;
}
#dash_location_header {
    border-top: 1px solid #CCCCCC;
    padding-top: 14px;
    text-align: center;
}
#dash_location {
    text-align: center;
}
.intro_demographic {
    text-align: center;
}
.demo_field {
    height: 22px;
}
.demo_field,
.demo_value {
    margin: 0;
}
.demo_value {
    font-size: 28px;
}
.demo_bullet,
#dash_investments_link {
    display: none;
}
.ui-tabs-nav {
    height: 40px;
    line-height: 34px;
    text-align: center;
    background: #193661;
    margin-top: -10px;
}
.ui-tabs-nav > li {
    float: left;
    width: 33%;
    display: inline-block;
}
.ui-tabs-nav > li:nth-child(1) {
    background-color: #658D3C;
}
.ui-tabs-nav > li:nth-child(2) {
    border-left: 1px solid white;
    background-color: #6B0A0C;
}
.ui-tabs-nav > li:nth-child(3) {
    border-left: 1px solid white;
    background-color: #193661;
}
.ui-tabs-anchor {
    display: inline-block;
    height: 100%;
    width: 100%;
    color: white;
    font-size: 12px;
    font-weight: bold;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    text-decoration: none;
}
#mobile_charts_tabs.ui-tabs .column_header {
    color: transparent;
    height: 8px;
    padding: 0;
    margin: 0 0 5px;
    border: 0;
}
#mobile_charts_tabs.ui-tabs .column_subheader {
    border: 0;
}
.dash_right_inner {
    width: 100%;
    float: none;
    background: white;
    margin-top: -5px;
}
.dash_field,
.sub_field {
    font-size: 14px;
}
#communities_chart > div,
#institutions_chart > div,
#people_chart > div {
    text-align: center;
    width: 100% !important;
}
#mobile_page_charts .mobile_return_to_map_button p {
   padding-bottom: 15px;
}
/*---- Help / more info ----*/
#mobile_page_more_info > h1 {
    margin: 30px auto 20px auto;
}
#mobile_more_info_accordion .ui-accordion-content {
    color: white;
    height: auto;
    width: 100%;
    position: relative;
    top: 0;
    left: 0;
    overflow: inherit;
    font-size: 15px;
    line-height: 21px;
}
#mobile_more_info_accordion .ui-accordion-content > div {
    padding: 20px;
    float: none;
    border: none;
    width: auto;
}
#mobile_more_info_accordion .ui-accordion-content .presentation {
    padding-top: 0px;
    text-align: center;
}
#mobile_more_info_accordion .text_tool_explain {
    display: block;
    background-color: #5997BB;
    color: white;
    font-size: 17px;
    margin: auto auto -4px auto;
    padding: 4px 18px;
    text-align: center;
    width: 50%;
}
#mobile_more_info_accordion .text_tool_explain_body {
    display: block;
    padding-top: 20px;
}
#mobile_more_info_accordion .text_link {
    font-size: 15px;
}
