/*
Global Styles
*/
body {
    width: 100%;
    height: 100%;
}

body, td, th {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11pt;
    color: #222;
}

a {
    color: #000000;
    text-decoration: none;
}

.nonselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/*
No more pink screens
*/
.olImageLoadError { 
    /* when OL encounters a 404, don't display the pink image */
    display: none !important;
}


/*
Header Styles
*/
#titleBar {
    position: relative;
    z-index: 10;
    display: block;
    padding: 5px;
    background: #665f45;
    font-family: Verdana, Geneva, sans-serif;
}

#titleBar h2 {
    margin: 0 auto 0 auto;
    color: #fff;
    font-size: 1.25em;
    font-weight: bold;
    font-style: italic;
    letter-spacing: -1px;
}

#header {
    position: relative;
    z-index: 10;
    display: block;
    height: auto;
    padding-left: 3px;
    box-shadow: 0px 1px 2px #333;
    background: #dfddd0;
}

.icon-active {
    background-color: #000;
    opacity: .75;
}

.icon:hover,
.icon-active:hover {
    background-color: #000;
    opacity: .4;
}

.header-bar {
    display: inline-block;
}

#btn-small-group {
    vertical-align: top;
    padding-top: 5px;
}

.btn-large {
    position: relative;
    top: 3px;
    width: 35px;
}

.input {
    vertical-align: top;
}

.input-select {
    padding-top: 6px;
}

#txtFindArea {
    display: inline-block;
    vertical-align: top;
}

#findAreaLabel {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11pt;
}

#findArea {
    position: relative;
    top: 2px;
}

#baseCombo,
#themeCombo,
#findArea {
    margin-left: 2px;
    margin-right: 2px;
}
/*
Map Styles
*/
#map {
    position: absolute;
    z-index: 1;
    top: 0px;
    left: 0px;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding-top: 65px !important;
    padding-bottom: 23px !important;
}

.layer-loader-image {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -30px;
    margin-left: -35px;
    display: none;
    z-index: 1000;
    opacity: .7;
}

.layer-loader-image.loading {
    display: block;
}

.layer-loader-image.loading ~ .layer-loader-image.loading {
    display: none;
}

/*
Footer Styles
*/
#footer {
    position: absolute;
    z-index: 10;
    bottom: 0px;
    left: 0px;
    display: block;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    padding: 4px 3px 3px;
    background: #dfddd0;
    text-align: center;
}

#links {
    float: left;
}

.link {
    padding-right: 5px;
    border-right: 1px solid #444;
}

#latLonTracker {
    float: right;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
}

/*
Map Layers & Map Tools Styles
*/

.tooltip-dialog {
    min-width: 380px !important;
    min-height: 250px !important;
}

.tooltip-content {
    padding-left: 1em;
    padding-right: 1em;
}

.tooltip-content a:link {
    text-decoration: underline;
    color: blue;
}

.accordion-more-info-button {
    padding: 0px 2px 0px 2px;
    margin-left: 5px;
    border: 0;
    background: #fff;
    background: transparent;
    font-weight: bold;
    cursor: pointer;
}

.sublist.collapsible .sublist-header {
    cursor: pointer;
}

.sublist.empty h4 {
    margin-bottom: 0px;
}

.sublist-header h4 {
    display: inline-block;
}

.sublist.collapsible h4 {
    margin-top: 0px;
    margin-bottom: 2px;
}

.sublist .sublist-info {
    margin-bottom: 10px;
    line-height: 1.4;
}

.layer-group {
    overflow: auto;
    height: auto;
    transition: height .3s;
}

.sublist.collapsible .layer-group {
    padding-left: 15px;
}

.layer-group.collapsed {
    height: 0px;
    overflow: hidden;
}

.ui-accordion-header-icon.ui-icon {
    display: inline-block;
    padding-right: 2px;
}

.layer {
    min-height: 21px;
    clear: both;
}

.layer input {
    vertical-align: bottom;
    padding: 1px;
    margin: 3px 4px .8px 1px;
}

.layer img {
    vertical-align: bottom;
    padding-bottom: 1px;
}

#mapToolsDialog {
    position: relative;
    z-index: 10003;
    padding: 0px;
}

#mapToolsAccordion {
    width: 100%;
    height: 400px;
    background: #fff;
    font-size: .80em;
}

textarea.shareMapUrl {
    width: 100%;
    height: 120px;
    resize: none;
}

#layerPickerDialog {
    position: relative;
    z-index: 10004;
    padding: 0px;
}

#layerPickerAccordion {
    width: 100%;
    height: 100%;
    background: #fff;
    font-size: .80em;
}

.layerPropertiesIcon {
    margin-left: 5px;
}

.layer-properties-dialog table td{
    border-collapse: collapse;
}

.layer-properties-dialog td {
    white-space: nowrap;
}

.layer-properties-dialog .transparency-text {
    border-color:transparent;
}

.layer-properties-dialog .transparency-slider {
    width: 120px;
    margin-left: 8px;
    margin-right: 5px;
}

/*
jquery UI overrides
*/
.ui-dialog {
    box-shadow: 0px 0px 2px #333;
}

#layerPickerDialog,
#mapToolsDialog {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.ui-dialog-titlebar {
    border: 0;
    border-bottom: 1px solid #aaa;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: #dfddd0;
}

.ui-dialog-titlebar .ui-dialog-title {
    font-size: 1em;
}

.ui-widget-header .ui-dialog-titlebar-close {
    height: 21px;
    background: #dfddd0;
}

.ui-widget-header .ui-dialog-titlebar-close .ui-icon {
    left: 1px;
    top: 1px;
    margin-left: 0;
    margin-top: 0;
}

.ui-widget-content {
    border: 0;
    padding: 0;
}

.ui-accordion .ui-accordion-header {
    margin-top: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-radius: 0;
    background: #f5f3e9;
}

.ui-accordion .ui-accordion-header-active {
    border-bottom: 0;
    background: #fff;
}

.ui-accordion .ui-accordion-content {
    border-bottom: 1px solid #999;
    border-radius: 0;
    padding-top: 0;
}

.ui-accordion .ui-accordion-content div h4 {
    color: #665f45;
}

.ui-accordion .ui-accordion-content > div:first-child h4 {
    margin-top: 10px;
}

.transparency-slider {
    border: 1px solid #aaa;
}

/*
Other Popup Styles
*/
.splashScreenStyle {
    opacity: 0.9 !important;
}

#identify_results {
    width: 100%;
    border-collapse: collapse;
}

#identify_results b {
    text-transform: uppercase;
}

#identify_results td {
    border-collapse: collapse;
    padding: 10px 0 10px 20px;
    display: inline-block;
    max-width: 70%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}

#identify_results .identify-result td {
    padding: 7px 0 7px 20px;
}

#identify_results tr {
    border-bottom: 1px solid #c7c6c6;
}

#identify_results tr:nth-of-type(even) {
    background: #ededed;
}

#identify_results td.label {
    text-indent: 1.5em;
    width: 30%;
}

#identify_results td.layer-results {
    width: 200px;
}

#identify_results td.layer-label {
    font-weight: bold;
    text-align: right;
}

#seldonMultigraphMessage {
    margin-bottom: 4px;
    font-weight: bold;
}

/*
Open Layers element Styles
*/
.olControlScaleBar {
    bottom: 30px;
    left: 15px;
    color: black;
    font-family: sans-serif;
}

.olControlScaleBarBar {
    top: 12px;
    height: 11px;
    background-color: darkblue;
    background-position: 0 0;
    background-repeat: repeat-x;
}

.olControlScaleBarBarAlt {
    top: 12px;
    height: 11px;
    background-color: darkblue;
    background-position: 0 0;
    background-repeat: repeat-x;
}

.olControlScaleBarMarkerMajor {
    z-index: 5000;
    top: 12px;
    width: 13px;
    height: 13px;
    background-position: 0 0;
    background-repeat: no-repeat;
}

.olControlScaleBarMarkerMinor {
    z-index: 5000;
    top: 12px;
    width: 13px;
    height: 13px;
    background-position: 0 0;
    background-repeat: no-repeat;
}

.olControlScaleBarNumbersBox {
    top: 24px;
    width: 40px;
    height: 13px;
    font-size: 9px;
}

.olControlScaleBarLabelBox {
    top: -2px;
    height: 15px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.olControlScaleBarLabelBoxSingleLine {
    top: 0px;
    left: 10px;
    width: 35px;
    height: 15px;
    font-size: 13px;
}

.olControlAttribution {
    bottom: 5px;
    font-size: 9px;
}

#layerPickerAccordion .baseLbl {
    background: #cdcdcd;
    font-size: 1.3em;
    font-weight: bold;
}

#mapToolsAccordion .baseLayersDiv .labelSpan {
    font-style: italic;
    font-weight: bold;
}

/**
 * Default styles for the point marker
 */
#marker-dialog {
    position: relative;
}

.marker-button-wrapper {
    position: absolute;
    bottom: 0;
    text-align: center;
    width: 100%;
    border-top: 1px solid #aaa;
}

.marker-button-wrapper button {
    display: block;
    margin: 5px auto;
    border-radius: 20px;
    border: 0;
    color: white;
    padding: 5px 5px 7px;
    width: 176px;
    cursor: pointer;
}

.marker-button-download {
    background: green;
}

.marker-button-clear {
    background: red;
}

.marker-point-item {
    border-bottom: 1px solid #ccc;
    padding: 20px 15px;
}

.marker-point-label {
    line-height: 1.4em;
}

.marker-point-label textarea {
    width: 100%;
    max-width: 100%;
}

.marker-point-coords-label {
    font-weight: bold;
}

.marker-points {
    height: 286px;
    overflow: scroll;
}

/*
jQuery element Styles
*/
.ui-autocomplete {
    position: absolute;
    z-index: 4000 !important;
    cursor: default;
}

.ui-accordion .ui-accordion-content {
    padding-left: 10px;
    padding-right: 10px;
}

.ajax-loader-image {
    display: inline;
    width: 16px;
    height: 16px;
}

/*
Phone Portrait
*/
@media (max-width: 480px) {
    .hidden-phone-portrait,
    .olControlScaleBar,
    .olControlPanZoomBar {
        display: none;
    }

    #titleBar h2 {
        font-size: 1em;
    }

    #header {
        padding-bottom: 1px;
        text-align: center;
    }

    .btn-large {
        width: auto;
    }

    #map {
        padding-bottom: 12px !important;
    }

    #footer {
        font-size: 5.6pt;
    }

    #links {
        float: none;
    }

    .link {
        padding-right: 2px;
    }

    #baseCombo,
    #themeCombo {
        width: 85px;
    }

    .splash-screen-header a,
    .splash-screen-header img {
	width: 290px !important;
    }
}

/*
Phone Landscape
*/
@media (min-width: 481px) and (max-width: 650px) {
    .hidden-phone-landscape,
    .olControlScaleBar,
    .olControlPanZoomBar {
        display: none;
    }

    #header {
        padding-bottom: 1px;
        text-align: center;
    }

    .btn-large {
        width: auto;
    }

    #themeCombo {
        width: 200px;
    }

    #map {
        padding-bottom: 10px !important;
    }

    #footer {
        font-size: 6pt;
    }

    .link {
        padding-right: 2px;
    }

    .splash-screen-header a,
    .splash-screen-header img {
	width: 290px !important;
    }
}

/*
Tablet Portrait
*/
@media (min-width: 651px) and (max-width: 768px) {
    .hidden-tablet-portait,
    .olControlPanZoomBar {
        display: none;
    }

    #header {
        padding-bottom: 1px;
    }
}

/*
Tablet Landscape
*/
@media (min-width: 769px) and (max-width: 1120px) {
    #header {
        padding-bottom: 1px;
    }

    #baseCombo,
    #themeCombo {
        width: 85px;
    }
}

/*
Narrow Browser
*/
@media (min-width: 1121px) and (max-width: 1180px) {
    #themeCombo {
        width: 260px;
    }
}
