/*@import url(website_redesign/generic.css);*/
@import url(website_redesign/menus.css);
@import url(website_redesign/info_box.css);

/* override basestyle.css */
#page {
    width: 951px;
}

body.hide-right-bar #content { /* Overriding basestyle.css */
  margin: 0px 10px;
  /* Left and right padding must be 0 so that the transit_map and slim_content divs fit */
  padding-left: 0 !important;
  padding-right: 0 !important;
  _position: absolute; /* IE6 hack to stop the content from jumping below the sidebar sometimes */
}

#right-bar .section .body { /* Overriding basestyle.css */
    font-size: 90%;
}

#right-bar .section form .submit_button {
    float: left;
    font-size: 110%;
}

#right-bar .section h1 img {
    vertical-align: bottom;
}

#right-bar .location_entry {
    background: none;
    padding-left: 0px;
    margin-bottom: 6px;
}

#right-bar .location_entry input {
    margin: 0px;
}

#right-bar .stop_entry {
    background: none;
    padding-left: 0px;
    margin-bottom: 6px;
}

#right-bar .stop_entry input {
    margin: 0px;
}

#right-bar .fare_type {
    float: left;
}

#right-bar .fare_amount {
    float: right;
}

/* Apply transit_map to the div representing the map when it should appear as
  the left column of a two-column page */
#content div.transit_map {
  float: right;
  width: 47%;
  height: 500px;
  margin-left: 1%;
  margin-right: 1%;
}
#content div.full_map {
  height: 600px;
}
#content div.slim_content div.transit_map {
  width: 100%;
  margin: 0;
}
div.transit_map_button {
  float: right;
  border: 1px solid black;
  cursor: pointer;
}
div.transit_map_button div {
  border-right: 1px solid #B0B0B0;
  border-bottom: 1px solid #B0B0B0;
  padding: 0px 6px;
  /* Font styles to match the Google Map buttons */
  font-family: Arial, sans-serif;
  font-size: 12px;
}

/* Apply slim_content to a div that is beside the map or needs to be roughly
  half the width of the containing #content div */
div.slim_content {
  float: right;
  width: 48.5%; /* This should be 49%, but something else invoked rounding errors it seems */
  _width: 48%; /* IE6 hack */
  margin-left: 1%;
}
.nomap div.map_container, div.printall div.map_container {
  position: absolute;
  left: -9999px;
  /* Need to specify width and height for the map initialization to work if hidden initially */
  width: 500px !important;
  height: 500px !important;
}

/* overriding google maps api font-weight: 300 */
#content div.map_container strong,
#content div.map_container strong * {
  font-weight: bold;
}

/* overriding google maps roboto font */
#content div.map_container div, #content div.map_container span, #content div.map_container label, #content div.map_container a
{
  font-family: Verdana,Arial,sans-serif;
}

/* Apply wide_content to a div directly within the #content div that you want
  to fill the entire width of its container, but still have side margins */
div.wide_content, .nomap div.slim_content {
  clear: both;
  float: none;
  margin-left: 1%;
  margin-right: 1%;
  width: auto;
}

div.columns2 {
  float: left;
  width: 50%;
  .width: 49%; /* Hack for IE6 and IE7 */
}

div.slim_content fieldset, div.slim_content fieldset, div.print_options fieldset {
  border: none;
}

div.save_options legend {
  font-weight: bold;
}

div.save_options label, div.print_options label {
  display: inline;
}

div#search_results {
  border: 1px solid black;
  height: 400px;
  overflow: auto;
  padding-left: 4px;
}

div#search_results table {
  border-spacing: 0 1em;
}

div#search_results ul {
  list-style: none;
  margin: 0;
}

#main .route_number a, #message_box .route_number a {
  color: black;
  text-decoration: none;
}

/* overriding google maps api font-weight: 300 */
#content div.map_container .route_number,
#content div.map_container .route_number * {
  font-weight: bold;
}

.route_number {
  background: white;
  border: 1px solid black;
  display: inline-block;
  font-weight: bold;
  min-width: 1.3em;
  padding: 1px;
  text-align: center;
}

#main .route_number.express, #main .route_number.Express,
#message_box .route_number.express, #message_box .route_number.Express {
  background: yellow;
}

#main .route_number.free, #main .route_number.free a,
#message_box .route_number.free, #message_box .route_number.free a {
  background: green;
  color: white;
}

#main .route_number.rapid, #main .route_number.Rapid, #main .route_number.rapid a, #main .route_number.Rapid a,
#message_box .route_number.rapid, #message_box .route_number.Rapid {
  background: #0072b9;
  color: white;
}

#main .route_number.red, #main .route_number.red a,
#message_box .route_number.red, #message_box .route_number.red a {
  background: red;
  color: white;
}

#main .route_number.cancelled, #message_box .route_number.cancelled {
  border: 1px solid red;
  text-decoration: line-through;
  color: red;
  text-decoration-color: red;
}

table#route_locations, table#route_locations tbody {
  display: block;
  font-size: small;
  max-height: 150px;
}
table#route_locations tbody {
  overflow-x: hidden;
  overflow-y: auto;
}
table#route_locations td {
  vertical-align: top;
  width: 50%;
}
table#route_locations ul {
  margin: 0;
  padding-left: 15px;
}
table#route_locations li {
  padding-left: 15px;
}

.schedules table, .stop_info table {
  width: 100%;
}
.stop_info .route_number {
  margin-top: 4px;
}

a.route_link {
  background: url(/images/icons/route_small.png) no-repeat;
  padding-left: 17px;
}
a.stop_link {
  background: url(/images/icons/stop_small.png) no-repeat;
  padding-left: 17px;
}
a img { border: none; }

span.custom_name {
  font-weight: bold;
}
td div span.custom_name {
  display: block;
}
span.default_name {
  font-size: smaller;
}

.tooltip {
  position: absolute;
  background: white;
  border: 1px solid black;
  padding: 4px;
  margin-top: -4px;
}

div.stop_popup_content {
  display: table;
}

div.stop_popup_content div.row {
  display: table-row;
}

/* Styles for the contents of a stop pop-up on the map */
div.stop_popup_content img {
  display: block;
  margin-right: 8px;
  width: 100px;  /* Required so that GoogleMaps can size pop-ups before loading images */
}
div.stop_popup_content div.cell {
  display: table-cell;
  vertical-align: top;
  *float: left; /* IE7 and below, as it doesn't understand display:table */
}
div.stop_popup_content div.right {
  max-width: 250px;

  /* Fallback for browsers not supporting display:table:
   * Min map div width with current layout: 373px.
   * Google InfoWindow max: map div width -30px for small (< 400px); -88px for large.
   * div.left is 108px wide (img width + margin)
   * 373-30-108=235
   * 400-88-108=204
   */
  *max-width: 204px; /* IE7 only */
  _width: 204px; /* IE6 only, as it ignores max-width */
}
.route_number {
  margin-bottom: 2px;
}
.save_p {
  clear: left;
  text-align: right;
  margin: 0;
}
/* Styles for route pop-ups on the map */
div.route_popup_content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
div.route_popup_content .destination_list {
  font-size: small;
}

.stopSign {
  font-size: 8px;
}

#help_box {
	display: none;
	position: fixed;
  _position: absolute; /* ie6 hack */
  _height: 300px;
  _width: 515px;
	top: 33%;
	left: 33%;
	width: 33%;
  height: 33%;
  background-color: white; /* Make sure that the header is always readable */
	z-index:1002;
  border: 1px black solid;
  border-bottom: none;
  .padding-bottom: 1em; /* IE7 hack */
  _padding-bottom: 0;
}

#help_text {
  height: 100%;
  _height: 250px;
  _width: 500px;
  overflow: auto;
  margin-bottom: -2px;
}

.help_box_title {
  font-weight: bold;
  background: #d2e2f0;
  border: 1px solid black;
  height: 1.5em;
  margin: -1.5em -1px 0 -1px;
  /* IE6 hacks */
  _border-top: 0;
  _margin-top: 0;
  _width: 500px;
}

a.close_link {
  background: white;
  border: 1px solid black !important;
  border-top: 1px solid #CCCCCC !important;
  display: block;
  height: 1.5em;
  margin: 0 -1px 0 -1px;
  text-align: center;
  _width: 500px; /* Hack for IE6 */
}

#message_box {
  border: 1px solid black;
}

/* for schedule data */
span.delayed{
    color: red;
    font-style: italic;
}

.service_advisory_container {
  margin-left: 1em;
  margin-bottom: 1em;
}

/* stop list */
#street_list_container{
  height:500px;
  max-width:450px;
  _width:350px; /*ie6*/
  margin-top:1em;
  overflow-x:hidden;
  overflow-y: auto;
}

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

table.row_table{
  width:100%;
  table-layout:fixed;
}

td.street_name{
  width:70%;
}

td.street_direction{
  text-align:left;
}

#stops_list_container{
  clear:both;
  max-width:500px;
  /*_width:350px; *//*ie6*/
}

#stops_list{
  list-style-type:none;
  height:440px;
  overflow-y:auto;
  *width:90%; /*ie7*/
}

p.notice { background: #EEFFEE; border: 2px solid #00CC00; margin-left: 1%; margin-right: 1%; }
p.schedule_change { background: #ffcf40; border: 2px solid #ffbf00; margin-left: 1%; margin-right: 1%; }
