body {
	margin: 0;
	padding: 0;
	background: url('../img/body-bg.png') #151515;
	font: 17px/1.5em Helvetica;
	-webkit-text-size-adjust:none;
    color: #fff;
	text-align: center;
	width: 330px;
}

h1, h2 {
	margin: 0;
	font: bold 17px/1.5em Helvetica;
	text-shadow: #000 2px 2px 1px;
	line-height: 44px;
}

h2 { color: #666; }
a { color: #666; }

form ul {
	list-style-type: none;
	padding: 0;
}

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

fieldset ul, .container {
	display: block;
	margin: 0 auto;
	padding: 0;
	width: 300px;
	background: #242424;
	border:1px solid #3d3d3d;
	-webkit-border-radius: 8px;
	text-align: left;
}

div#confirm, div#error {
	width: 280px;
	margin: -1em auto 1em auto;
	padding: 10px;
	border: 0;
	-webkit-border-bottom-right-radius: 8px;
	-webkit-border-bottom-left-radius: 8px;
}

div#confirm p, div#error p { margin: 0; }
div#confirm { background: #390; }
div#error { background: #900; }
legend { display: none; }
fieldset li+li { border-top: 1px solid #3d3d3d; }

label {
	margin: 8px;
	display: inline-block;
	color: #999;
	text-align: center;
	width: 100%;
}

label[for] {
	width: 90px;
	text-align: left;
}

input, textarea {
	display: inline-block;
	background: transparent;
	border: 0;
	color: #fff;
}

textarea {
	vertical-align: top;
	margin: 8px 0;
	width: 180px;
}

input, select, textarea { font: 17px/1.5em Helvetica; }
select { font-size: 14px; }
input:focus, textarea:focus { outline: none; }
input[type="text"], input[type="password"], textarea { width: 165px; }

input[type="submit"] {
	background: none;
	display: block;
	margin: 0 auto;
	width: 310px;
	height: 46px;
	text-align:center;
	font: bold 20px/44px Helvetica;
	text-decoration: none;
	color: #fff;
	text-shadow: #333 2px 2px 1px;
	border-width:0 14px 0 14px;
	border-color:transparent;
	-webkit-border-image:url(../img/whiteButton.png) 0 14 0 14;
}

input[name='start'] { -webkit-border-image:url(../img/greenButton.png) 0 14 0 14; }
input[name='stop'] { -webkit-border-image:url(../img/redButton.png) 0 14 0 14; }
label[for="route_id"], label[for="start"], label[for="stop"] { width: 50px; }

input#start_hour, input#start_minute, input#stop_hour, input#stop_minute {
	width: 1.25em;
	text-align: center;
}

input#start_hour, input#stop_hour { margin-left: 75px; }

select[name="route_id"] { 
	width: 180px;
	margin-right: 8px;
	font-size: 17px;
}

a.delete, a.add, a.edit {
	display: inline-block;
	width: 29px;
	height: 29px;
	text-indent: -9999px;
	text-decoration: none;
}

a.delete {
	background: url('../img/delete.png');
	float: right;
}

a.add { background: url('../img/add.png'); }
th a.add { float: right; }

a.edit {
	text-indent: 0;	
	width: 100%;
	color: #fff;
}

a#feedback {
	font-size: 13px;
	height: 24px;
}

table {
	width: 300px;
	border-collapse: collapse;
}

tr+tr { border-top:1px solid #3d3d3d; }

th, td { 
	padding: 8px; 
	line-height: 29px;
	color: #666;
}

th { font-weight: normal; }
th[colspan] { text-align: center; }
td img { vertical-align: middle; }
td.total { color: #fff; }

#logo {
	margin: auto;
	display: block;
}

#toolbar {
	position: relative;
	padding-top: 5px;
	height: 155px;
	line-height: 20px;
	margin: 0 0 1em 0;
	background: url('../img/toolbar-bg.png');
	border-bottom: 1px solid #333;
}

#toolbar a, a.button {
	border-width: 0 4px 0 4px;
	border-color: transparent;
	-webkit-border-image:url(../img/toolbar-button-bg.png) 0 4 0 4;
	color: #ccc;
	padding: 4px;
	text-decoration: none;
}

#toolbar a {
	top: 116px;
	position: absolute;
	height: 20px;
}

.left { left: 9px; }
.right { right: 9px; }

#menu {
	width: 100%;
	margin: 1em 0 0 0;
	bottom: 0;
	height: 70px;
	line-height: 45px;
	background: url('../img/menu-bg.png') repeat-x;
}

#menu a {
	display: inline-block;
	text-indent: -9999px;
	width: 70px;
	height: 60px;
	/*background-color: #000;*/
	backgroun-repeat: no-repeat;
	background-position: 0 -6px;
	margin: 5px 0 0 0;
	-webkit-border-radius: 8px;
}

a#ntimer { background-image: url('../img/nav-timer.png') }
a#nroutes { background-image: url('../img/nav-routes.png') }
a#nhistory { background-image: url('../img/nav-history.png') }
a#nprofile { background-image: url('../img/nav-profile.png') }

#btimer a#ntimer { background-image: url('../img/nav-timer-on.png') }
#broutes a#nroutes { background-image: url('../img/nav-routes-on.png') }
#bhistory a#nhistory { background-image: url('../img/nav-history-on.png') }
#bprofile a#nprofile { background-image: url('../img/nav-profile-on.png') }

#debug {
	text-align: left;
	width: 300px;
	margin: auto;
}