/*
   Copyright (c) 2007-9, iUI Project Members
   See LICENSE.txt for licensing terms
   Version 0.40-dev1
 */


* {
	color: #40658A;
	font-family:Helvetica,"Lucida Grande",Verdana,Arial,sans-serif;
	
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	-webkit-text-size-adjust: none;

	margin: 0;
	padding: 0;
}


body {
	margin: 0;
	font-family: Helvetica;
	color: #000000;
	overflow-x: hidden;
	-webkit-user-select: none;
	-webkit-text-size-adjust: none;
	
	background: white url(./default/background-squares.png) repeat left top;
}

body > *:not(.skip) {
	display: none;
	position: absolute;
	margin: 0;
	padding: 0;
	left: 0;
	top: 45px;
	width: 100%;
	height: auto;
	min-height: 385px;
	max-width: 320px;
	padding-bottom: 30px !important; /* for footer */
	-webkit-transition-duration: 300ms;
	-webkit-transition-property: -webkit-transform;
	-webkit-transform: translateX(0%);
}

body[orient="landscape"] > *:not(.skip) {
	min-height: 225px;
	max-width: 480px;
}


body > *[selected="true"] {
	display: block;
}


li > a[selected] {
	background-color: #194fdb !important;
	background-repeat: no-repeat !important;
	background-position: right center !important;
	color: #FFF !important;
}
li > a:active {
	background-color: #194fdb !important;
	background-image: url(./default/selection.png) !important;
	background-repeat: repeat-x !important;
	background-position: left top !important;
	color: #FFF !important;
}

li > a[selected="progress"] {
	background-image: url(./default/loading.gif) !important;
}

/************************************************************************************************/

body > .toolbar {
	border-bottom: 1px solid #2d3642;
	padding: 0 10px 0 10px;
	height: 44px;
	background: transparent url(./default/toolbarBackground.png) repeat-x left top;
}

.toolbar > h1 {
	position: absolute;
	overflow: hidden;
	left: 50%;
	margin: 12px 0 0 -90px;
	height: 45px;
	font-size: 1.4em;
	width: 180px;
	font-weight: bold;
	text-shadow: black 0.15em 0.15em 0.35em;
	text-align: center;
	white-space: nowrap;
	color: #FFF;
	text-overflow: ellipsis;
}

body[orient="landscape"] > .toolbar > h1 {
	margin-left: -125px;
	width: 250px;
}

.icon {
	background: transparent url(./default/iv-icon.png) no-repeat top center;
	margin-top: -1px;
	height:45px;
	width: 45px;
	float: right;
	clear: right;
}

.button {
	position: absolute;
	overflow: hidden;
	top: 10px;
	right: 6px;
	margin: 0;
	border-width: 0 5px;
	padding: 0 3px;
	width: auto;
	height: 30px;
	line-height: 30px;
	font-family: inherit;
	font-size: 12px;
	font-weight: bold;
	color: #FFF;
	text-shadow: rgba(0, 0, 0, 0.6) 0px -1px 0;
	text-overflow: ellipsis;
	text-decoration: none;
	white-space: nowrap;
	background: none;
}

#aboutButton {
	display: inline;
	left: 10px;
	right: auto;
	padding: 0;
	max-width: 55px;
	border-width: 0 6px 0 6px;
	-webkit-border-image: url(./default/aboutButton.png) 0 6 0 6;
	background:transparent url(./default/backButtonBack.png) repeat-x top left;
}

#backButton {
	display: none;
	left: 6px;
	right: auto;
	padding: 0;
	max-width: 55px;
	border-width: 0 6px 0 14px;
	-webkit-border-image: url(./default/backButton.png) 0 6 0 14;
}

/********************** unused
.blueButton {
	border-width: 0 5px;
}

.leftButton {
	left: 6px;
	right: auto;
}

.whiteButton,
.redButton,
.grayButton {
	display: block;
	border-width: 0 12px;
	padding: 10px;
	text-align: center;
	font-size: 20px;
	font-weight: bold;
	text-decoration: inherit;
	color: inherit;
}

.grayButton[selected], .grayButton:active,
.whiteButton {
	text-shadow: rgba(255, 255, 255, 0.7) 0 1px 0;
background:transparent !important;
}

.redButton {
background:transparent !important;
	color:#fff;
	text-shadow: #7a0001 0 -1px 0;
}

.whiteButton[selected], .whiteButton:active,
.grayButton {
	color: #FFFFFF;
background:transparent !important;
}
**********************/

/************************************************************************************************/

body > .page {
	/*box-sizing: border-box;
	-webkit-box-sizing: border-box;*/
	background-color: rgba(0,0,255,0.2);

	position: absolute;
	margin: 0;
	padding: 0;
	left: 0;
	top: 45px;
	
	width: 100%;
	height: auto;
	min-height: 395px !important;
	max-width: 320px;
	margin-bottom: 20px !important; /* for footer */

	-webkit-transition-duration: 300ms;
	-webkit-transition-property: -webkit-transform;
	-webkit-transform: translateX(0%);
}

body[orient="landscape"] > .page {
	min-height: 235px  !important;
	max-width: 480px;
}

/************************************************************************************************/

body > ul > li,
body > div > ul > li {
	position: relative;
	margin: 0;
	border-bottom: 1px solid #E0E0E0;
	padding: 8px 0 8px 10px;
	font-size: 20px;
	font-weight: bold;
	list-style: none;
}

body > ul > li.group,
body > div > ul > li.group {
	position: relative;
	top: -1px;
	margin-bottom: -2px;
	border-top: 1px solid #7d7d7d;
	border-bottom: 1px solid #999999;
	padding: 1px 10px;
	font-size: 17px;
	font-weight: bold;
	text-shadow: rgba(0, 0, 0, 0.4) 0 1px 0;
	color: #FFFFFF;
}

body > ul > li.group:first-child,
body > div > ul > li.group:first-child {
	top: 0;
	border-top: none;
}

body > ul > li > a,
body > div > ul > li > a {
	display: block;
	margin: -8px 0 -8px -10px;
	padding: 8px 32px 8px 10px;
	text-decoration: none;
	color: inherit;
}


a[target="_replace"] {
	/*box-sizing: border-box;
	-webkit-box-sizing: border-box;*/
	padding-top: 25px;
	padding-bottom: 25px;
	font-size: 18px;
	color: cornflowerblue;
	background-color: #FFFFFF;
	background-image: none;
}

/************************************************************************************************/
	
body > .dialog {
	top: 0;
	width: 100%;
	min-height: 417px;
	z-index: 2;
	background: rgba(0, 0, 0, 0.8);
	padding: 0;
	text-align: right;
}

.dialog > fieldset {
	width: 100%;
	margin: 0;
	border: none;
	border-top: 1px solid #6d84a2;
	padding: 10px 6px;
}

.dialog > fieldset > h1 {
	margin: 0 10px 0 10px;
	padding: 0;
	font-size: 20px;
	font-weight: bold;
	color: #FFFFFF;
	text-shadow: rgba(0, 0, 0, 0.4) 0px -1px 0;
	text-align: center;
}

.dialog > fieldset > label {
	position: absolute;
	margin: 16px 0 0 6px;
	font-size: 14px;
	color: #999999;
}

input {   /*:not(input[type|=radio]):not(input[type|=checkbox]) {*/
	width: 100%;
	margin: 8px 0 0 0;
	padding: 6px 6px 6px 44px;
	font-size: 16px;
	font-weight: normal;
}

/************************************************************************************************/

body > .panel {
	padding-bottom: 30px !important;
	width: 100%;
	height: auto;
	min-height: 385px;
}
body[orient="landscape"] > .panel {
	min-height: 225px;
	max-width: 480px;
}

.panel > ul, 
.panel > fieldset {
	position: relative;
	margin: 0 0 20px 0;
	padding: 0;
	background: #FFFFFF;
	-webkit-border-radius: 10px;
	border: 1px solid #999999;
	text-align: right;
	font-size: 16px;
}

.panel > ul li,
.row  {
	position: relative;
	min-height: 42px;
	border-bottom: 1px solid #999999;
	-webkit-border-radius: 0;
	text-align: right;
}

.panel > ul li:last-child,
fieldset > .row:last-child {
	border-bottom: none !important;
}

.row > input { /*:not(input[type|=radio]):not(input[type|=checkbox]) {*/
	margin: 0;
	border: none;
	padding: 12px 10px 0 110px;
	height: 42px;
	background: none;
}
.row > input[type|=radio], .row > input[type|=checkbox] {
	margin: 7px 7px 0 0;
	height: 25px;
	width: 25px;
}

.row > label {
	position: absolute;
	margin: 0 0 0 14px;
	line-height: 42px;
	font-weight: bold;
}

.row > span {
	position: absolute;
	padding: 12px 10px 0 110px;
	margin: 0;
}

.row > .toggle {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 100px;
	height: 28px;
}

.toggle {
	border: 1px solid #888888;
	-webkit-border-radius: 6px;
	font-size: 19px;
	font-weight: bold;
	line-height: 30px;
}

.toggle[toggled="true"] {
	border: 1px solid #143fae;
}

.toggleOn {
	display: none;
	position: absolute;
	width: 60px;
	text-align: center;
	left: 0;
	top: 0;
	color: #FFFFFF;
	text-shadow: rgba(0, 0, 0, 0.4) 0px -1px 0;
}

.toggleOff {
	position: absolute;
	width: 60px;
	text-align: center;
	right: 0;
	top: 0;
	color: #666666;
}

.toggle[toggled="true"] > .toggleOn {
	display: block;
}

.toggle[toggled="true"] > .toggleOff {
	display: none;
}

.thumb {
	position: absolute;
	top: -1px;
	left: -1px;
	width: 40px;
	height: 28px;	
	border: 1px solid #888888;
	-webkit-border-radius: 6px;
}

.toggle[toggled="true"] > .thumb {
	left: auto;
	right: -1px;
}

.panel > h2 {
	margin: 0 0 8px 14px;
	font-size: inherit;
	font-weight: bold;
	color: #4d4d70;
	text-shadow: rgba(255, 255, 255, 0.75) 2px 2px 0;
}

#preloader { display: none; }

/************************************************************************************************/


#footer {
	position: relative;
	display: none;
	left: 0;
	bottom: 0px;
	height: 20px;
	max-height: 20px;
	width: 100%;
	background-color: rgba( 0, 0, 0, 0.3 );
	font-size: 10px;
	line-height: 18px;
	color: #DDD;
	text-align: center;
	background-image: none;
}
#footer:after { content: "2009-2010 All rights reserved."; }

