/*
 * HTML5 Boilerplate
 *
 * 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.
 *
 * Detailed information about this CSS: h5bp.com/css
 *
 * ==|== normalize ==========================================================
 */


/* =============================================================================
   HTML5 display definitions
   ========================================================================== */

article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }


/* =============================================================================
   Base
   ========================================================================== */

/*
 * 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
 * 2. Prevent iOS text size adjust on device orientation change, without disabling user zoom: h5bp.com/g
 */

html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }

html, button, input, select, textarea { font-family: sans-serif; color: #222; }

body { margin: 0; font-size: 1em; line-height: 1.4; }

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 */

::-moz-selection { background: #9d0020; color: #fff; text-shadow: none; }
::selection { background: #9d0020; color: #fff; text-shadow: none; }


/* =============================================================================
   Links
   ========================================================================== */

a { color: #00e; }
a:visited { color: #551a8b; }
a:hover { color: #06e; }
a:focus { outline: thin dotted; }

/* Improve readability when focused and hovered in all browsers: h5bp.com/h */
a:hover, a:active { outline: 0; }


/* =============================================================================
   Typography
   ========================================================================== */

abbr[title] { border-bottom: 1px dotted; }

b, strong { font-weight: bold; }

blockquote { margin: 1em 40px; }

dfn { font-style: italic; }

hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }

ins { background: #ff9; color: #000; text-decoration: none; }

mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }

/* Redeclare monospace font family: h5bp.com/j */
pre, code, kbd, samp { font-family: monospace, serif; _font-family: 'courier new', monospace; font-size: 1em; }

/* Improve readability of pre-formatted text in all browsers */
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }

q { quotes: none; }
q:before, q:after { content: ""; content: none; }

small { font-size: 85%; }

/* Position subscript and superscript content without affecting line-height: h5bp.com/k */
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }


/* =============================================================================
   Lists
   ========================================================================== */

ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
dd { margin: 0 0 0 40px; }
nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; }


/* =============================================================================
   Embedded content
   ========================================================================== */

/*
 * 1. Improve image quality when scaled in IE7: h5bp.com/d
 * 2. Remove the gap between images and borders on image containers: h5bp.com/i/440
 */

img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }

/*
 * Correct overflow not hidden in IE9
 */

svg:not(:root) { overflow: hidden; }


/* =============================================================================
   Figures
   ========================================================================== */

figure { margin: 0; }


/* =============================================================================
   Forms
   ========================================================================== */

form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }

/* Indicate that 'label' will shift focus to the associated form element */
label { cursor: pointer; }

/*
 * 1. Correct color not inheriting in IE6/7/8/9
 * 2. Correct alignment displayed oddly in IE6/7
 */

legend { border: 0; *margin-left: -7px; padding: 0; white-space: normal; }

/*
 * 1. Correct font-size not inheriting in all browsers
 * 2. Remove margins in FF3/4 S5 Chrome
 * 3. Define consistent vertical alignment display in all browsers
 */

button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }

/*
 * 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet)
 */

button, input { line-height: normal; }

/*
 * 1. Display hand cursor for clickable form elements
 * 2. Allow styling of clickable form elements in iOS
 * 3. Correct inner spacing displayed oddly in IE7 (doesn't effect IE6)
 */

button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; *overflow: visible; }

/*
 * Re-set default cursor for disabled elements
 */

button[disabled], input[disabled] { cursor: default; }

/*
 * Consistent box sizing and appearance
 */

input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; *width: 13px; *height: 13px; }
input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

/*
 * Remove inner padding and border in FF3/4: h5bp.com/l
 */

button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }

/*
 * 1. Remove default vertical scrollbar in IE6/7/8/9
 * 2. Allow only vertical resizing
 */

textarea { overflow: auto; vertical-align: top; resize: vertical; }

/* Colors for form validity */
input:valid, textarea:valid {  }
input:invalid, textarea:invalid { background-color: #f0dddd; }


/* =============================================================================
   Tables
   ========================================================================== */

table { border-collapse: collapse; border-spacing: 0; }
td { vertical-align: top; }


/* ==|== primary styles =====================================================
   Author:
   ========================================================================== */

body
{
  font-family: Arial, Helvetica, Sans-Serif;
}

	
/* Header */
/* Single background image version */
/*
#banner
{
	width: 100%;
	height: 123px;
	background: #fff url(../images/banner.jpg) no-repeat;	
}
*/

/* Multiple background image version */
#header-container { overflow-x: hidden; }
#header { width: 960px; height: 74px;}
#header div { float: left; height: 75px; }

#mlogo
{
	width: 86px;
	background: #fff url(../images/mlogo.png) no-repeat left center;
}

#mbanner
{
	width: 785px;
	background: #fff url(../images/mbanner.jpg) no-repeat;
}

/*
  Menu background color: #2d3437 (Trapeze dark gray)
  Menu highlight color: #9d0020	(Trapeze red)
*/
  	
#menu
{
	border: 1px solid #222;
	background: #111 url(../images/menu_bg.png) repeat-x left top;
	-moz-box-shadow: 0 1px 1px #777, 0 1px 0 #666 inset;
	-webkit-box-shadow: 0 1px 1px #777, 0 1px 0 #666 inset;
	box-shadow: 0 1px 1px #777, 0 1px 0 #666 inset;
}

#menu li
{
	float: left;
	border-right: 1px solid #222;
	-moz-box-shadow: 1px 0 0 #444;
	-webkit-box-shadow: 1px 0 0 #444;
	box-shadow: 1px 0 0 #444;
	position: relative;
}

#menu a
{
	float: left;
	padding: 12px 25px;
	color: #aaa;
	font: bold 12px Arial, Helvetica;
	text-decoration: none;
	text-shadow: 0 1px 0 #000;
}

#menu a:focus { outline: 0}

#menu li:hover > a
{
	color: #fafafa;
}
	
#menu ul
{
	margin: 20px 0 0 0;
	opacity: 0;
	visibility: hidden;
	position: absolute;
	top: 38px;
	left: 0;
	z-index: 9999;    
	background: #2d3437;
	background: -moz-linear-gradient(#2d3437, #111);
	background-image: -webkit-gradient(linear, left top, left bottom, from(#2d3437), to(#111));
	background: -webkit-linear-gradient(#2d3437, #111);    
	background: -o-linear-gradient(#2d3437, #111);	
	background: -ms-linear-gradient(#2d3437, #111);	
	background: linear-gradient(#2d3437, #111);
	-moz-box-shadow: 0 -1px rgba(255,255,255,.3);
	-webkit-box-shadow: 0 -1px 0 rgba(255,255,255,.3);
	box-shadow: 0 -1px 0 rgba(255,255,255,.3);	
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	-webkit-transition: all .2s ease-in-out;
	-moz-transition: all .2s ease-in-out;
	-ms-transition: all .2s ease-in-out;
	-o-transition: all .2s ease-in-out;
	transition: all .2s ease-in-out;  
}

.touch #menu ul
{
	display: inherit;
	margin: 0;
	opacity: 1;
	-webkit-transition: none;
	-moz-transition: none;
	-ms-transition: none;
	-o-transition: none;
	transition: none;	
}

#menu.ios ul {display:none} /* ios only to allow menu opening/closing */

#menu ul ul
{
  left: 120px;
  visibility: visible;
  position: absolute;
  top: 0;
  width: auto;
	background: #434950;
	background: -moz-linear-gradient(#434950, #111);
	background-image: -webkit-gradient(linear, left top, left bottom, from(#434950), to(#111));
	background: -webkit-linear-gradient(#434950, #111);    
	background: -o-linear-gradient(#434950, #111);	
	background: -ms-linear-gradient(#434950, #111);	
	background: linear-gradient(#434950, #111);
}

#menu li:hover > ul
{
	opacity: 1;
	visibility: visible;
	margin: 0;
}

#menu ul li
{
	float: none;
	display: block;
	border: 0;
	-moz-box-shadow: 0 1px 0 #111, 0 2px 0 #666;
	-webkit-box-shadow: 0 1px 0 #111, 0 2px 0 #666;
	box-shadow: 0 1px 0 #111, 0 2px 0 #666;
}

#menu li.submenu
{
	background: url(../images/arrow.png) no-repeat 90% 50%;
}	

#menu ul li.submenu
{
	background: url(../images/arrowRight.png) no-repeat 90% 50%;
}	

#menu ul li:last-child
{   
	-moz-box-shadow: none;
	-webkit-box-shadow: none;
	box-shadow: none;		
}

#menu ul a
{   
	float: none; 
	padding: 10px;
	display: block;
	white-space: nowrap;
}
	
#menu ul a:hover
{
	background-color: #9d0020;
	background-image: -moz-linear-gradient(#9d0020,  #3b000c);	
	background-image: -webkit-gradient(linear, left top, left bottom, from(#9d0020), to(#3b000c));
	background-image: -webkit-linear-gradient(#9d0020, #3b000c);
	background-image: -o-linear-gradient(#9d0020, #3b000c);
	background-image: -ms-linear-gradient(#9d0020, #3b000c);
	background-image: linear-gradient(#9d0020, #3b000c);
}
	
#menu ul li:first-child > a
{
	-moz-border-radius: 3px 3px 0 0;
	-webkit-border-radius: 3px 3px 0 0;
	border-radius: 3px 3px 0 0;
}

#menu ul li:first-child > a:after
{
	content: '';
	position: absolute;
	left: 30px;
	top: 0px;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-bottom: 6px solid #2d3437;
}

#menu ul ul li:first-child > a:after
{
	content: '';
	position: absolute;
	left: 0;
	top: 0;
}
	
#menu ul li:first-child a:hover:after
{
	border-bottom-color: #9d0020; 
}
	
#menu ul li:last-child > a
{
	-moz-border-radius: 0 0 3px 3px;
	-webkit-border-radius: 0 0 3px 3px;
	border-radius: 0 0 3px 3px;
}

/* ios fixes for menuing */
html {-webkit-animation: safariSelectorFix infinite 1s;}

@-webkit-keyframes safariSelectorFix
{
	0% {zoom:1;} 
	100% {zoom:1;}
}

#menu img {display:block; position:absolute; left:0; top:0; width:100%; height:100%; display:none; cursor:pointer; z-index:100;}
#menu > li > a:focus ~ ul {display:block;}
#menu > li > a:focus + img {display:block;}
#menu ul:hover {display:block;}

/* Content styling */

/* Margin for page content */
.content { margin: 20px 10px; }

/* Minimum width for route/direction/stop droplists */
.dropList { min-width: 200px; }

.box
{
	padding-left: 2px;
	padding-right: 2px;

	float: left; /* Shrink-to-fit */

	display: inline-block; /* Shrink-wrap */
	background-color: #eee;
	border: 1px solid #000;
	
	-webkit-border-radius: 12px;
	-moz-border-radius:	   12px;
	border-radius:		   12px;

	/*xxx add a fallback image? */
	background-image:	-webkit-gradient(linear, left top, left bottom, from(#fff), to(#ddd));	/* Safari 4+, Chrome 1-9	*/
	background-image:	-webkit-linear-gradient(top, #fff, #ddd);								/* Safari 5+, Chrome 10+	*/
	background-image:	-moz-linear-gradient(top, #fff, #ddd);									/* Firefox 3.6+				*/
	background-image:	-ms-linear-gradient(top, #fff, #ddd);									/* IE 10+					*/
	background-image:	-o-linear-gradient(top, #fff, #ddd);									/* Opera 11.10+				*/
	background-image:	linear-gradient(top bottom, #fff, #ddd);								

	-webkit-box-shadow: 0px 0px 2px 1px #222;
	-moz-box-shadow:	0px 0px 2px 1px #222;
	box-shadow:			0px 0px 2px 1px #222; 
}

h1, h2
{
	margin-left: auto; margin-right: auto;
	text-align: center;
	color: #9d0020;
	border-bottom: 2px solid #2d3437;
	text-shadow: 1px 1px 1px #000;
}

h2 { text-shadow: 1px 1px 0px #000; }

table.routeBox { margin: 3px 3px 7px 3px; }
table.routeBox td { padding: 1px; vertical-align: middle; }
table.routeBox tr.closer td { padding-top: 0px; }

div.wait, img.wait { padding-bottom: 5px; width: 20px; height: 20px; }

td.boxLabel, td.boxlabel label { font-size: 14px; }

div.errorBox { opacity: 0; margin-bottom: 30px; }

.errorBox table { font-size: 16px; margin: 20px auto; color: #9d0020; }
.errorBox td { text-align: center; }

div.resultBox { opacity: 0; margin-bottom: 30px; }
.resultBox table { margin: 20px auto; }
.resultBox td { text-align: center; }

.resultBox td.stopTime
{
	color: #000;
	font-size: 1.5em;
	padding: 3px 10px;
}

.resultBox td.timeLabel
{
	color: #000;
	font-size: 12px;
	padding-top: 10px;
}

p.stopLabel, p.stopCancelledLabel
{
	color: #555;
	font-size: 10px;
	padding: 0;
	margin-top: -5px;
}

p.stopCancelledLabel
{
	color: #9f0020;
	font-size: 16px;
	font-weight: bold;
}

/* Schedule grid styling */
.scheduleButton { margin-top: 15px; }
div.center { text-align: center; }

.scheduleBox { margin-top: 20px; }

div.scheduleContainer
{
	margin: 10px 0;
	/* Limit size of schedule table here if desired (may want to disable sticky header) */
	overflow: auto;
}

.schedule { margin: 5px 0; }

.scheduleHeader
{
	background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #000000), color-stop(0.7, #212121), color-stop(0.71, #2E2E2E), color-stop(1, #3B3B3B));	
	background-image: -webkit-linear-gradient(bottom, #000000 0%, #212121 70%, #2E2E2E 71%, #3B3B3B 100%);
	background-image: -moz-linear-gradient(bottom, #000000 0%, #212121 70%, #2E2E2E 71%, #3B3B3B 100%);
	background-image: -ms-linear-gradient(bottom, #000000 0%, #212121 70%, #2E2E2E 71%, #3B3B3B 100%);
	background-image: -o-linear-gradient(bottom, #000000 0%, #212121 70%, #2E2E2E 71%, #3B3B3B 100%);
	background-image: linear-gradient(bottom, #000000 0%, #212121 70%, #2E2E2E 71%, #3B3B3B 100%);
	background-color: #222;
}

.scheduleHeader th
{
	padding: 10px;
	text-align: center;
	font-size: 14px;
	color: #fff;
	border-left: 1px solid #555;
	border-right: 1px solid #555;
	min-width: 60px;
}

.scheduleHeader th:first-child, .scheduleHeader th:last-child
{
	border: 0;
}

.schedule td
{
	padding: 5px;
	text-align: center;
	font-size: 12px;
	color: #000;
	background-color: #f0f0f0;
	border-top: 1px solid #e0e0e0;	
}

.scheduleRowAlt td { background-color: #f7f7f7; }

/* Map styling */
.mapBox { margin-top: 20px; }

.mapOptions { margin-top: 10px; }
.mapOptions td { font-size: 14px; text-align: center; padding-right: 20px; }

.mapContainer
{
	position: relative;
	width: 300px; height: 350px;
	margin: 10px 0px;
	border: 1px solid #000;
}

/* Google infowindow */
div.mapStopContainer { max-height: 300px; }

/* Stop infowindow styles */
.mapStopTable { margin: 0px auto; margin-bottom: 5px; }
.mapStopTable td { text-align: center; vertical-align: middle; line-height: 1em; padding: 3px; }
.mapStopName h3 { font-size: 16px; font-weight: bold; color: #9d0020; border-bottom: 1px solid #2d3437; margin: 0; padding: 0 0 2px 0; }
.mapStopError { font-size: 12px; color: #9d0020; }
.mapStopType { font-size: 12px; font-weight: bold; color: #2d3437; }
td.mapStopTime, td.mapStopInfo { font-size: 14px; font-weight: bold; color: #000; }
td.mapStopInfo { font-weight: normal; }
p.mapStopLabel { font-size: 10px; margin: -8px 0 0 0; color: #555; }
p.mapStopCancelled { font-size: 12px; font-weight: bold; margin: -8px 0 0 0; color: #ff0000; }
div.mapError { font-size: 12px; padding: 10px; color: #9d0020; text-align: center; }

/* Vehicle infowindow styles */
div.mapVehContainer { }
.mapVehTable { margin: 0px auto; }
.mapVehTable td { vertical-align: middle; }
td.mapVehNumber { text-align: center; }
td.mapVehNumber h3 { font-size: 16px; font-weight: bold; color: #9d0020; border-bottom: 1px solid #2d3437; margin: 0 0 10px 0; }
td.mapVehLabel { font-size: 14px; font-weight: bold; color: #2d3437; padding-right: 10px; }
td.mapVehValue { font-size: 14px; color: #000; }

.pushpin { cursor: pointer; }

/* Bing Infobox styles */
div.infobox
{
	width: 300px;
	background-color: #fff;
	border: 1px solid #2d3437;
	-moz-border-radius: 8px;
	-webkit-border-radius: 8px;
	border-radius: 8px;	
	padding: 10px;
	padding-top: 20px;
	cursor: default;
}

div.infoboxContent
{
	max-height: 300px;
	overflow-y: auto;
}

.infoboxClose
{
	cursor: pointer;
	position: absolute;
	right: 14px;
	top: 0px;
	border: none;
}

.infoboxPointer
{
	width: 33px;
	height: 38px;
	overflow: hidden;
	position: relative;
	z-index: 1;
	left: 20px;
	top: -1px;
}

.mapError
{
	font-size: 18px;
	font-weight: bold;
	color: #9d0020;
}


/* ==|== media queries ======================================================
   EXAMPLE Media Query for Responsive Design.
   This example overrides the primary ('mobile first') styles
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}



/* ==|== non-semantic helper classes ========================================
   Please define your styles before this section.
   ========================================================================== */

/* For image replacement */
.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; *line-height: 0; }
.ir br { display: none; }

/* Hide from both screenreaders and browsers: h5bp.com/u */
.hidden { display: none !important; visibility: hidden; }

/* 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; }

/* Contain floats: h5bp.com/q */
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { *zoom: 1; }



/* ==|== print styles =======================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
  * { background: transparent !important; color: black !important; box-shadow:none !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
  a, a:visited { text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* Don't show links for images, or javascript/internal links */
  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; }
}

/* Ada pagestyling */
.ada { font-size: 16px; margin: -8px 0 0 0; color: #555; font-family: Arial,Helvetica,Sans-Serif; }

.adatime { font-size: 16px;  margin: -8px 0 0 0; color: #555; font-family: Arial,Helvetica,Sans-Serif; font-weight: bold; right:auto}
.adatext { font-size: 16px;  margin: -8px 0 0 0; color: #9d0020; font-family: Arial,Helvetica,Sans-Serif; font-weight:normal; left:auto}
.adatitle { font-size: 16px;  margin: -8px 0 0 0; color: #555; font-family: Arial,Helvetica,Sans-Serif; font-weight:bold; left:auto}
.adalink { font-size: 16px; margin: -8px 0 0 0;  font-family: Arial,Helvetica,Sans-Serif; }

.adabox
{
	padding-left: 10px;
	padding-right: 10px;
	
	float: left; /* Shrink-to-fit */

	background-color: #eee;
	border: 1px solid #000;
	
	-webkit-border-radius: 12px;
	-moz-border-radius:	   12px;
	border-radius:		   12px;

	/* Add a fallback image? */
	background-image:	-webkit-gradient(linear, left top, left bottom, from(#fff), to(#ddd));	/* Safari 4+, Chrome 1-9	*/
	background-image:	-webkit-linear-gradient(top, #fff, #ddd);								/* Safari 5+, Chrome 10+	*/
	background-image:	-moz-linear-gradient(top, #fff, #ddd);									/* Firefox 3.6+				*/
	background-image:	-ms-linear-gradient(top, #fff, #ddd);									/* IE 10+					*/
	background-image:	-o-linear-gradient(top, #fff, #ddd);									/* Opera 11.10+				*/
	background-image:	linear-gradient(top bottom, #fff, #ddd);								

	-webkit-box-shadow: 0px 0px 2px 1px #222;
	-moz-box-shadow:	0px 0px 2px 1px #222;
	box-shadow:			0px 0px 2px 1px #222; 
}
