/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

















/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden !important;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

body {
    font-size: 1em;
    font-family: "Source Sans Pro", sans-serif;
    font-weight: 400;
    color:#000;
    background-color: white;
}

.container {
    width: auto !important;
    max-width: 1188px;
    min-width:750px; /* tools width + right-panel min-width */
    margin-left: auto;
    margin-right: auto;
}

.container .wrapper-map {
    border: 1px solid #ccc;
    position: relative;
    overflow: hidden;
    height:600px;
}

.tools {
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:350px;
}

.map {
  height: 600px;
}

.olMap {
}

.right-panel {
  position: absolute;
  min-width: 400px;
  left: 350px;
  top:0;
  bottom:0;
  right:0;
}

.tools .tool {
    padding: 1em 1.8em;
}

.tools h5 {
    font-size: 1.125em;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0;
}

h6 {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 0;
    padding: 0;
    margin-top: 1em;
}

span.OurLayers-Feature-Header {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 0;
    padding: 0;
    margin-top: 0;
    font-style: normal;
    display: block;
}

span.OurLayers-Feature-Section {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 0;
    padding: 0;
    margin-top: 1em;
    font-style: normal;
    display: block;
}

.OurLayers-Feature-Body br {
    display: none;
}

.OurLayers-Feature-List {
    margin-top: 0;
}

.OurLayers-Feature-List_Item {
    margin: 0;
    padding: 0;
}

.OurLayers-Feature-Weather {
    margin: 1em 0;
}

.OurLayers-Feature-Weather td {
    padding: 0 0.5em;
}

.OurLayers-Feature-Weather br {
    display: none;
}

.OurLayers-Feature-Weather span.OurLayers-Feature-Body {
    display: block;
}

/*Weather Popup CSS */

div#OurLayers-Forecast-Cont {
    width: 265px;
    height: 290px;
}

#OurLayers-Forecast-Cont .OurLayers-Forecast-Header {
    display: block;
    font-size: 13px;
    padding-top: 3px;
    line-height: 0.2;
    font-weight: bold;
}

a:hover#weatherStation,
a:visited#weartherStation,
a#weatherStation {
    text-decoration: underline;
    color: #3D5C99;
}

a:visited#warningLink,
a:active#warningLink,
a:hover#warningLink,
a#warningLink,
.OurLayers-Forecast-Warning a {
    text-decoration: underline;
    display: inline;
    font-size: 11px;
    font-weight: bold;
    color: #B20000 !important;
}

a:visited#watchLink,
a:active#watchLink,
a:hover#watchLink,
a#watchLink,
.OurLayers-Forecast-Watch a {
    text-decoration: underline;
    display: inline;
    font-size: 11px;
    font-weight: bold;
    color: #FF8C00; !important
}

a:visited#advisoryLink,
a:active#advisoryLink,
a:hover#advisoryLink,
a#advisoryLink,
.OurLayers-Forecast-Advisory a {
    text-decoration: underline;
    display: inline;
    font-size: 11px;
    font-weight: bold;
    color: #006221; !important
}

table#forecast-7day.OurLayers-Forecast {
    width: 265px;
    cursor: pointer;
    border-spacing: 0px;
}

#forecast-7day.OurLayers-Forecast td {
    border-spacing: 0px;
}

#forecast-7daylows {
    width: 265px;
    line-height: 0.7;
}

div.period {
    display: inline-block;
    width: 35px;
}

div.period:first-child {
    width: 15px;
}

#OurLayers-Forecast-Cont div.period label.OurLayers-Forecast-Low {
    cursor: default;
    padding: 0;
    font-size: 12px;
    margin: 0;
    font-style: italic;
    position: relative;
    left: 50%;
}

div#forecast-7daylows div.period div:first-child label.OurLayers-Forecast-Low {
    background-color: transparent;
    font-size: 12px;
    font-style: italic;
    position: relative;
    z-index: 10;
}

#OurLayers-Forecast-Cont label.OurLayers-Forecast-High {
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    padding-left: 4px;
}

#OurLayers-Forecast-Cont label.OurLayers-Forecast-Low {
    text-align: center;
    font-style: italic;
    font-size: 12px;
}

#OurLayers-Forecast-Cont .OurLayers-Forecast-PopTxt {
    text-align: center;
    font-style: italic;
    font-size: 11px;
    line-height: 0.9;
}

#OurLayers-Forecast-Cont .OurLayers-Forecast-Pop {
    text-align: center;
    line-height: 0.1;
}

#OurLayers-Forecast-Cont .OurLayers-Forecast-Highs {
    text-align: center;
    line-height: 0.8;
}

#OurLayers-Forecast-Cont .OurLayers-Forecast-Dates {
    text-align: center;
    font-weight: bold;
    line-height: 0.9;
    font-size: 10px;
}

#OurLayers-Forecast-Cont .OurLayers-Forecast-Dates td {
    border-bottom: solid 1px;
    border-color: transparent;
}

#OurLayers-Forecast-Cont #imageRows .OurLayers-Weather-Icon {
    width: 90%;
    padding-left: 5px;
}

#OurLayers-Forecast-Cont #imageRows td#imageCenter {
    width: 38px;
    height: 23px;
}

#OurLayers-Forecast-Cont .OurLayers-Forecast-Table {
    font-size: 11px;
    width: 265px;
    height: 50px;
}

td#mainForecastIcon {
    width: 80px;
}

td.currentConditions {
    width:10px;
    padding-right: 5px;
    padding-bottom: 2px;
}

td.currentCondition {
    width: 10px;
    padding-right: 5px;
    padding-bottom: 2px;
}

img#OurLayers-Weather-Icon {
    height: 45px;
    padding-right: 70px;
}

#OurLayers-Forecast-Cont .OurLayers-Forecast-Table tr {
    line-height: 0.9;
}

#OurLayers-Forecast-Cont .OurLayers-Forecast-Table-RJ {
    text-align: right;
    padding-right: 10px;
    width: 90px;
    padding-left: 5px;
}

#OurLayers-Forecast-Cont .OurLayers-Forecast-CC {
    text-align: right;
    padding-right: 10px;
    font-weight: bold;
    font-size: 11px;
    display: block;
}

#OurLayers-Forecast-Cont .OurLayers-Forecast-Body {
    width: 100%;
    padding-right: 5px;
}

#OurLayers-Forecast-Cont .OurLayers-Forecast-Text {
    line-height: 1;
    text-align: left;
}

#OurLayers-Forecast-Cont .OurLayers-Forecast-Text h1 {
    font-weight: bold;
    color: black;
    display: inline;
    font-size: 11px;
    padding: 1px 0px 0px 0px;
    line-height: 1;
    margin: 0px;
    border: none;
}

p#summaryText {
    font-weight: normal;
    font-size: 11px;
    color: black;
    display: inline;
    line-height: 1;
    padding-top: 1px;
    margin: 1px;
}

#OurLayers-Forecast-Cont .OurLayers-Forecast-Today {
    line-height: 0.85;
    text-align: left;
    font-size: 11px;
    width: 265px;
    padding-top: 3px;
    overflow: auto;
}

.summaryNoWarningEffect {
    height: 124px;
}

.summaryWarningEffect {
    height: 127px;
}

div#popSummaries.OurLayers-Forecast-Today span.OL-headerToday {
    font-weight: bold;!important
    font-size: 10px;
    margin: 0.5px;!important
}

div#popSummaries.OurLayers-Forecast-Today p.OL-summTxt {
    font-weight: normal;
    font-size: 11px;
    line-height: 1;
    padding-bottom: 3.5px;
    margin: 0.5px;
}

#OurLayers-Forecast-Cont .OurLayers-Forecast-Dates td.FC-active {
    color: #3D5C99;
}

#OurLayers-Forecast-Cont .OurLayers-Forecast-Dates td.FC-hover {
    border-bottom: solid 1px #3D5C99;
    color: #3D5C99;
}

div#OurLayers-Main-FC-Container {
    width: 265px;
}

.noWarningEffect {
    height: 290px;
}

.warningEffect {
    height: 325px;
}

div#footerHolder.OurLayers-Forecast-Footer {
    text-align: right;
    border-top: solid 2px;
    font-size: 12px;
    line-height: 1;
    padding-top: 1px;
    color: #3D5C99;
    font-weight: bold;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    margin: 0 0 0.3em;
}

/* End of weather popup css */

.tools p {
    margin-top: 0;
}

.tools ul {
    margin: 0;
    padding: 0;
}

.tools ul li {
    margin-left: 1em;
}

.tools span {
    font-style: italic;
    font-size: 0.875em;
}

.tools .tool a {
    color:#006636;
    text-decoration: none;
}

.tools .tool a:hover {
    text-decoration: underline;
}

.tools .tool.area ul {
    margin:0;
    padding: 0;
}

.tools .tool.area ul li {
    margin:0;
    padding: 0;
    list-style: none;
}

.tools .tool.area ul li:before {
    font-style: normal;
    font-weight: normal;
    text-decoration: inherit;
    content: '>';
    margin-right: 0.5em;
    color:#000;
}

.tools .tool .styled-select {
    position: relative;
    clear: both;
    width: 100%;
    min-height: 1px;
    margin: 0.5em 0;
    background: #FFF;
    border: 1px solid #ccc;
}

.tools .tool .styled-select select {
    width: 100%;
    padding: 0.5em 1.5em;
    background-color: white;
    border: 0;
    border-radius: 0;
}

.tools .tool.legend {
    padding: 0;
    padding-top: 1em;
    border-bottom: 4px solid #333;
}

.tools .tool.legend a.title {
    position: relative;
    display: block;
    background: #f5f5f5;
    color: #000;
}

.legend-chevron, .legend-chevron.open {
    display:block;
    background: url("/images/chevron-map.png") no-repeat;
    background-position-x: 103%;
    background-size:190% 45%;
    width: 7%;
    height: 50%;
    position: absolute;
    top: 1.4em;
    left: 18.5em;
    text-decoration: none;
    pointer-events: none;
    content: ' ';
}

.legend-chevron.open {
    background-position-x: -5%;
}

.tools .tool.legend a.title h5 {
    padding: 1em 1.8em;
    margin: 0;
}

.tools .tool.legend .wrapper {
    padding: 0 1.8em;
    background:#f5f5f5;
    overflow: hidden;
    max-height:0;
}

.tools .tool.legend table {
    width: 100%;
    margin: 1em 0;
}

.tools .tool.legend  div.wrapper tr {
    padding: 0.1em 0;
    font-size: 0.875em;
    display: table-row;
}

.tools .tool.legend table tr td img.condition-colour,
.text-report-legend table tr td img.condition-colour {
    border: black solid 1px;
    height: 5px;
    width: 25px;
}

.tools .tool.legend table tr td img.condition-colour.gdc,
.text-report-legend table tr td img.condition-colour.gdc {
    background: #000;
}

.tools .tool.legend  table tr td img.condition-colour.wce,
.text-report-legend table tr td img.condition-colour.wce {
    background: #ffff00;
}

.tools .tool.legend  table tr td img.condition-colour.tnr,
.text-report-legend table tr td img.condition-colour.tnr {
    background:#ffffff;
}

.tools .tool.legend  table tr td img.condition-colour.rc,
.text-report-legend table tr td img.condition-colour.rc {
    background: #ff0000;
}

.tools .tool.legend  table tr td img.condition-colour.c,
.text-report-legend table tr td img.condition-colour.c {
    background: #8f8f00;
}

.tools .tool.legend  table tr td img.condition-colour.snr,
.text-report-legend table tr td img.condition-colour.snr {
    background: #000000;
}

.tools .tool.legend  table tr td img.condition-colour.sr,
.text-report-legend table tr td img.condition-colour.sr {
    background: #FF0000;
}

.tools .tool.legend  table tr td img.condition-colour.suc,
.text-report-legend table tr td img.condition-colour.suc {
    background: #EA9704;
}

.tools .tool.legend  table tr td img.condition-colour.swie,
.text-report-legend table tr td img.condition-colour.swie {
    background: #228B22;
}

.tools .tool.legend  table tr td img.condition-colour.swnie,
.text-report-legend table tr td img.condition-colour.swnie {
    background: #8080FF;
}

.tools .tool.legend  table tr td img.condition-colour.swuc,
.text-report-legend table tr td img.condition-colour.swuc {
    background: #FF00FF;
}

.tools .tool.legend  table tr td img.condition-colour.sswr,
.text-report-legend table tr td img.condition-colour.sswr {
    background: #FFFF00;
}

.tools .tool.legend.open a.title  {
    text-decoration: none;
    background: #333;
    color: #FFF;
}

.tools .tool.legend.open .wrapper {
    max-height: 50em;
}

.tools .tool.weather a, .tools .tool.weather p, .tools .tool.weather span {
    display: block;
}

.tools .tool.weather table {
    margin: 1em 0;

}
.tools .tool.weather table td {
    padding: 0 0.5em;
}

.tools .tool.weather table td ul li {
    list-style: none;
}

.disclaimer {
    padding: 1em 1.8em;
    clear: both;
    float:none;
}

.disclaimer p{
    font-style: italic;
    font-size: 0.875em;
    width: 70%;
}

.labelSpan{
  margin-left: 6px;
}

.dataLayersDiv{
  width:200%;
}

.olControlPanZoomBar{
  line-height:1 !important;
  font-family: sans-serif !important;
}

.olControlPanZoomBar img{
  vertical-align: top;
}

.olControlLayerSwitcher{
  width: 15em;
}
#legend-caret{
  position: absolute;
  top: 0.5em;
  right: 1.8em;
  font-size: 1.5em;
  font-style: normal;
  font-weight: normal;
  text-decoration: inherit;
  pointer-events: none;
}

#region, #routes {
  padding:0;
}

.padded_container {
    padding: 20px;
}

#camera_box .camera {
    padding: 3px;
    display: inline-block;
    width: 250px;
}

#cameraContainer {
    text-align: center;
}

#cameraThumbnails {
    padding-top: 15px;
}

.cameraThumbnail {
    cursor: pointer;
}

#rwis_popup_link h1 {
    font-size: 14px;
    margin: 0;
    padding: 0;
}

#rwis_popup_link .more_link {
    float: right;
    padding-top: 5px;
}

#rwis_popup_link a:hover,
#rwis_popup_link a:hover .more_link {
    text-decoration: underline;
}
.amberalert {
    margin-bottom: 0.5em;
    display: none;
}

#amberalert_anchor {
    background: #fff;
    position: absolute;
    right: 0;
    margin-top:0.2em;
}

#amber_anchor {
    color: #006636;
    float: right;
    font-weight: normal;
    padding-right: 0.3em;
}

#amber_anchor:hover {
    text-decoration: underline;
}

#amber_anchor.open {
    color: white !important;
}

.amber_title {
    border-left: 0.25em solid #cc0000;
    background: #f5f5f5;
    padding: 0.5em 0 0.5em 2em;
    color: #cc0000;
    font-weight: bold;
    cursor: pointer;
}

.amber_title.open {
    background: #cc0000;
    color: #fff !important;
}

#amber_blurb {
    margin: 0 0 0 0.8em;
}

section.cat-title h1 {
    margin: .67em 0 0 1em;
}

#amber_icon, #amber_arrow_icon {
    font-family: FontAwesomeHF;
    -webkit-font-smoothing: antialiased;
    font-style: normal;
    font-weight: normal;
    text-decoration: inherit;
    pointer-events: none;
}

#amber_icon {
    color: #cc0000;
}

#amber_icon.open {
    color: #fff;
}

.open #amber_arrow_icon {
    color: white;
}

#amber_arrow_icon {
    color: black;
    margin-left: 0.3em;
}

#amber_message {
    overflow: hidden;
    max-height: 0;
    background:#f5f5f5;
    color: black;
}

#amber_message.open {
    max-height: 100%;
    padding: 1em 2em;
}

.amber_timestamp {
    font-style: italic;
}

.ui-front {
    z-index:9999 !important;
}

.ui-dialog .ui-dialog-titlebar-close span {
    margin: -8px !important;
}

#headerContainer {
    z-index:3000 !important;
}

a.seg_link, a.iabr_link {
    cursor: pointer;
}

.route_camera {
    float: left;
    max-width:241px;
    background:#e2e2e2;
    text-align: center;
}

.OurLayers-Sub-Heading,
.OurLayers-Underline {
  line-height: 1.5;
}

.OurLayers-Sub-Heading {
  font-weight: bold;
}

.OurLayers-Underline {
  text-decoration: underline;
}

ul.OurLayers-Feature-Crossing-List {
  margin:5px 0 !important;
  padding:0 !important;
}

.OurLayers-Feature-Crossing-List li{
  display: inline;
  margin: 3px 5px 0 0 !important;
}

.OurLayers-Crossing-Location {
  margin-bottom: 0.5em;
}

#crossings-tabs {
  background: transparent;
  border: none;
  font-size:1em;
}
#crossings-tabs .ui-widget-header {
  background: transparent;
  border: none;
  border-bottom: 1px solid #c0c0c0;
  -moz-border-radius: 0px;
  -webkit-border-radius: 0px;
  border-radius: 0px;
}
#crossings-tabs .ui-tabs-nav .ui-state-default {
  background: transparent;
  border: none;
}
#crossings-tabs .ui-tabs-nav .ui-state-active {
  background: transparent url(/images/uiTabsArrow.png) no-repeat bottom center;
  border: none;
}

#crossings-tabs li.ui-state-default {
  margin: 0;
  list-style-type: none;
}

#crossings-tabs .ui-tabs-nav .ui-state-default a,
#crossings-tabs .ui-tabs-nav .ui-state-default a:hover,
#crossings-tabs .ui-tabs-nav .ui-state-default a:visited {
  color: #006636;
  padding: 0 0.2em 0.8em 0;
  border:0;
}
#crossings-tabs .ui-tabs-nav .ui-state-active a {
  color: black !important;
}
#crossings-tabs ul.ui-tabs-nav {
  margin:0;
  padding:0;
}

#crossings-tabs .ui-helper-reset {
  font-size: 0.7em !important;
}

#crossings-tabs .ui-tabs-panel {
  font-size: 0.7em !important;
}

#crossings-tabs .ui-widget-content a {
  color: #006636 !important;
}

.ui-tabs .ui-tabs-panel {
    padding: 0 !important;
    margin-top: 0.35em;
}

.hhl-logo {
    margin: 1.05em 0 0 1.85em;
}

.tool.weather.conditions {
    height: 6.2%;
    overflow: hidden;
}

.tool.weather.conditions.full {
    height: 47.35%;
}

#overflow_warning {
    position: absolute;
    bottom: 0;
    background: #fff;
    width: 100%;
    height: 5.5%;
    padding: .3em 2em;
    font-weight: bold;
    color: #006636;
    display:none;
}

.text-report-legend h4 {
    margin-bottom: 0;
}
