/* ---------------------------------------------------------------------
Original Author: Mike Johnson
Contributors: (none)

Target Browsers: XHTML Mobile Profile 1.2 compatible rendering agents
Media Type: mobile

CSS Coding Standards Documentation: http://wiki.bravo/index.php/CSS_Coding_Standards 
------------------------------------------------------------------------ */

body {
	font-family: "Trebuchet MS", "Lucida Grande", Lucida Sans, Arial, sans-serif;
	font-size: 11px;
	background: #fafafa;
}

body#basic {
	background: #fff;
}

sup {
	font-size: 0.4em;	
}

.small_caps {
	font-variant: small-caps;
}

#header {
	height: 45px;
	background: url('../images/mobile/header_bg.png') repeat-x;
	display: block;
	position: relative;
	cursor: pointer;
}

#fixed_header {
	/* width: 100%;
	position: fixed; */
}

#header #logo {
	display: block;
	width: 159px;
	height: 45px;
	text-indent: -999em;
	background: url('../images/mobile/header_logo.png') no-repeat;
	position: absolute;
	top: 0;
	left: 6px;
}

#header #app_name {
	display: block;
	width: 113px;
	height: 45px;
	text-indent: -999em;
	background: url('../images/mobile/header_app_name.png') no-repeat;
	position: absolute;
	top: 0;
	right: 5px;
}

#content {
	font-size: 13px;
	padding: 12px;
	color: #333333;
} 

#content p {
	margin-bottom: 10px;
	line-height: 1.3em;
}

#content h3 {
	margin-bottom: 5px;
	font-size: 14px;
}

#content label {
	font-size: 15px;
	display: block;
	padding-bottom: 13px;
}

#content .text_input {
	width: 95%;
	margin-bottom: 10px;
	display: block;
}

#content select {
	margin-bottom: 10px;
}

#content textarea {
	width: 95%;
	height: 100px;
}

#content ul.errors {
	list-style-type: disc;
	margin-left: 35px;
	margin-bottom: 20px;
	color: red;
}

#content .error_message {
	font-weight: bold;
	color: red;
}

#search {
	background: #FEE6CB;
	display: block;
}

#search_control {
	width: 100%;
}

#search_control td {
	vertical-align: middle;
	height: 33px;
}

#search #query_icon {
	width: 34px;
	text-align: center;
	padding-left: 2px;
}

#search #query_container {
	width: auto;
}

#search #search_query {
	width: 96%;
	color: #ccc;
	display: block;
	font-size: 13px;
}

#search .active_search {
	color: #333 !important;
}

#search #query_controls {
	width: 72px;
	text-align: center;
}

#search #search_button {
	height: 22px;
	width: 58px;
}

#search_controls {
	width: 100%;
}

#category_filter {
	width: 180px;
}

#search_controls .previous {
	text-align: left;
	font-size: 12px;
}

#search_controls .next {
	text-align: right;
	font-size: 12px;
}

#search_controls .results {
	text-align: center;
}

#search_filter {
	background: #efefef;
	padding-left: 8px;
	border-left:4px solid #CCCCCC;
	padding: 14px 8px 14px 8px;
	border-bottom: 1px solid #DDE7EC;
}

#search_filter label {
	font-size: 14px;
	font-weight: bold;
	color: #333333;
}

#search_filter select {
	font-size: 13px;
}

#header_shadow {
	background: transparent url('../images/mobile/top_shadow.png') repeat-x;
	display: block;
	height: 8px;
	z-index: 2;
	position: relative;
	margin-bottom: -8px;
}

#breadcrumbs {
	height: 34px;
	line-height: 34px;
	vertical-align: middle;
	background: #8FC0DF;
	font-size: 15px;
	color: white;
	border-bottom: 1px solid #6D96AF;
	padding-left: 10px;
	padding-right: 10px;
	clear: both;
	overflow: hidden;
}

#breadcrumbs h1 {
	line-height: 34px;
}

#breadcrumbs a:link,
#breadcrumbs a:visited {
	color: white
}

#listing ul li {
	display: block;
	vertical-align: middle;
	font-size: 14px;
	border-bottom: 1px solid #DDE7EC;	
}

#listing ul li a {
	text-decoration: none;
	color: #333;
	vertical-align: middle;
	display: block;
	border-left: 4px solid #ccc;
	padding: 11px 0 11px 6px;
}

#listing ul li a span {
	line-height: 24px;
	vertical-align: middle;
	display: block;
	background: url('../images/mobile/button_go.png') no-repeat center right;
	margin-right: 7px;
	padding-right: 24px;
}

#listing ul li a:hover,
#listing ul li a:active {
	background-color: #F27821;
	border-left: 4px solid #B25412;
	color: #fff;
}

#listing ul li a:hover span,
#listing ul li a:active span {
	background-image: url('../images/mobile/button_go_active.png');
	background-position-x: right;
	background-position-y: center;
	background-repeat: no-repeat;
}

#listing ul li a.loading {
	background-color: #F27821;
	border-left: 4px solid #B25412;
	color: #fff;
}

#listing ul li a.loading span {
	background-image: url('../images/mobile/loading.gif');
	background-position-x: right;
	background-position-y: center;
	background-repeat: no-repeat;
}

#no_results {
	color: #888;
	font-size: 16px;
	padding: 18px 10px;
	background: #efefef;
}

/* detail screen */

#portion_controls {
	background: #ccc;
	border-bottom: 1px solid #ddd;
	border-top: 1px solid #ddd;
	display: block;
	padding: 9px;
}

#portion_controls table {
	width: 100%;
}

#portion_controls #serving_size {
	text-align: left;
}

#portion_controls #portion_count {
	text-align: right;
}

#portion_controls label {
	font-size: 15px;
	font-weight: bold;
	color: #333;
	display: block;
	margin-bottom: 12px;
}

#portion_controls select {
	display: block;
}

#portion_count select {
	float: right;
}

#carb_choices table {
	width: 100%;
}

#carb_choices table tr td {
	font-size: 60px;
	font-weight: bold;
	text-align: center;
}

#carb_choices table td.thumbnail {
	background: #8FC0E0;
	color: #fff;
	width: 33%;
	vertical-align: middle;
}

#carb_choices table td.carb_choice {
	background: #D0D49A;
	color: #fff;
	width: 33%
}

#carb_choices table td.carb_gram {
	background: #F1E7CE;
	color: #5E5A50;
	width: 34%;
}

#carb_choices table td {
	padding-top: 10px;
	padding-bottom: 10px;
}

#carb_choices table tr td span {
	font-size: 12px;
	font-weight: bold;
	display: block;
	font-variant: small-caps;
}

.vitamins {
	margin: 0 auto;
	text-align: center;
	color: #333;
	font-size: 10px;
}

.vitamins li {
	display: inline;
	margin-right: 1px;
}

.vitamins li.last {
	margin-right: 0;
}

h2 {
	color: #333;
	font-size: 15px;
	font-weight: bold;
	padding: 10px;
	background: #ccc;
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
}

#nutritional_info table {
	font-size: 12px;
	width: 100%;
}

#nutritional_info table .num {
	text-align: right;
}

#nutritional_info table .indent {
	padding-left: 20px;
}

#nutritional_info table td {
	padding: 4px 10px;
	border-bottom: 1px solid #ccc;
}

#nutritional_info table th {
	padding: 4px 10px;
	border-bottom: 1px solid #bbb;
	font-weight: bold;
	text-align: left;
	background: #efefef;
}

#nutritional_info table td.ni_footnote {
	color: #666666;
	font-size: 10px;
	padding: 7px;
	text-align: center;
	background: #efefef;
}

#nutritional_info table tr.sep_row td,
#nutritional_info table tr.sep_row th {
	border-bottom: 1px solid #999;
}

/* footer */

#footer {
	background: #ACACAC url('../images/mobile/footer_bg.jpg') repeat-x 0 bottom;
	padding: 8px;
	border-top: 1px solid #909090;
	zoom: 1;
}

#footer:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

#footer ul {
	margin: 0 auto;
	text-align: center;
}

#footer ul li {
	display: inline;
	padding-right: 10px;
	border-right: 1px solid #fff;
	margin-right: 10px;
	line-height: 1.5em;
}

#footer ul li.last {
	border: none;
	margin-right: 0;
	padding-right: 0;
}

#footer ul li a {
	color: white;
}

#copyright p {
	color: #666666;
	font-size: 10px;
	padding: 7px 0;
	text-align: center;
}

/* intro screen */

#intro {
	padding: 3px 12px;
	cursor: pointer;
}

#intro_logo {
	position: relative;
}

#intro_logo h1 {
	display: block;
	width: 221px;
	height: 58px;
	background: url('../images/mobile/intro_logo.gif') no-repeat;
	text-indent: -999em;
	float: right;
}

#intro_top {
	clear: both;
	height: 18px;
	width: auto;
	background: #EF871F url('../images/mobile/intro_top.gif') no-repeat left top;
}

#intro_text {
	background: #EF871F;
	padding: 0 18px;
	color: white;
	font-size: 19px;
	line-height: 1.2em;
}

#intro_text p {
	padding-bottom: 20px;
}

#intro_text p.last {
	padding: 0;
}

#intro_bottom_left {
	width: auto;
	background: #EF871F url('../images/mobile/intro_bottom_left.gif') no-repeat left top;
	height: 18px;
}

#intro_bottom_right {
	width: auto;
	background: url('../images/mobile/intro_bottom_right.gif') no-repeat right top;
	height: 18px;
}

#intro_button {
	background: #EA6621;
	text-align: center;
	padding-top: 12px;
}

#intro_button p a {
	width: 230px;
	height: 21px;
	text-indent: -999em;
	display: block;
	margin: 0 auto;
	background: url('../images/mobile/intro_start.gif') no-repeat;
}

#intro_button_bottom_left {
	width: auto;
	background: #EA6621 url('../images/mobile/intro_bottom_left2.gif') no-repeat left top;
	height: 13px;
}

#intro_button_bottom_right {
	width: auto;
	background: url('../images/mobile/intro_bottom_right2.gif') no-repeat right top;
	height: 13px;
}

#intro_dont_show {
	margin: 10px auto;
	text-align: center;
	display: block;
}

#intro_dont_show label {
	font-size: 14px;
	font-weight: bold;
	color: #333;
}