
html, body {
	margin: 0;
	padding: 0;
	font-family: Arial, SansSerif;
}

* {
	-webkit-tap-highlight-color: rgba(200,200,200,0.8);
}

body {
	position: absolute;
}

div.screen {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: none;
}

div.visible {
	display: block;
}

#tabs {
	background-color: black;
	color: #D0D0D0;
}

#menuContainer {
	z-index: 1; 
	background-color: rgba(100,100,100,0.5);
}

#tabContainer {
}





body.portrait {
		width: 320px;
		height: 416px;
}


body.portrait #tabContainer {
	width: 100%;
	height: 366px;
}

body.portrait #tabs {
	height: 50px;
}

body.portrait #tabs .tab {
	float: left;
	width: 25%;
	height: 50px;
	text-align: center;
	line-height: 50px;
	vertical-align: middle;
}

body.portrait td.dial {
	background:  url(../images/iphone/dialerbg1.gif) repeat-x
}

body.portrait #b_bspace, body.portrait #destphone {
	line-height: 70px;
	height: 72px;
}

/* hacky, but % width gets resized badly */
body.portrait .key {
	width: 105px;
	background-image:  url(../images/iphone/keybg1.gif)
}

body.portrait #b_call {
	width: 106px;
	background-image:  url(../images/iphone/callbg1.gif)
}

body.portrait #b_callback {
	background-image:  url(../images/iphone/cbackbg1.gif)
}



body.landscape {
	width: 480px;
	height: 268px;
}

body.landscape #tabContainer {
	width: 400px;
	height: 100%;
	float: left;
}

body.landscape #tabs  {
	width: 80px;
	height: 100%;
	float: right;
}

body.landscape #tabs .tab {
	height: 65px;
	text-align: center;
	line-height: 65px;
	vertical-align: middle;
}

body.landscape td.dial {
	background:  url(../images/iphone/dialerbg2.gif) repeat-x
}

body.landscape #b_bspace, body.landscape #destphone {
	line-height: 54px;
	height: 54px;
}

/* hacky, but % width gets resized badly */
body.landscape .key {
	width: 132px;
	background-image:  url(../images/iphone/keybg2.gif)
}

body.landscape #b_call {
	background-image:  url(../images/iphone/callbg2.gif)
}

body.landscape #b_callback {
	background-image:  url(../images/iphone/cbackbg2.gif)
}

.tab {
	display: none;
	text-decoration: none;
	color: inherit;
}

#dialer {
	width: 100%;
	height: 100%;
	background-color: #404040;
	position: relative;
}

td.dial {
	height: 20%;
	font-size: 32px;
	background-color: #314B70; /*#200060;*/
}

#destphone {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	font-family: Arial;
	font-size: 100%;
	font-weight: normal;
	width: 100%;
	color: white;
	background: transparent;
	border: none;
	padding: 0px;
	margin: none;
}

#b_bspace {
	display: block;
	width: 55px;
/*	height: 100%;*/
	border-left: 1px solid #404040;
/*	float: right;
*/	background-color: transparent;
	background-image: none;
	color: black;
	text-decoration: none;
	position: absolute;
	right: 0;
}

.status {
	font-size: 10px;
	font-weight: normal;
	text-align: center;
	color: white;
}

.key {
	font-family: Arial;
	font-size: 30px;
	font-weight: bold;
	text-align: center;
	color: white;
	background-color: black;
	width: 33.33%;
	height: 20%;
}

.key > a {
	display: block;
	width: 100%;
	text-decoration: none;
	color: white;
	padding: 4px 0 4px 0;
}

#b_callback {
	font-size: 20px;
	background-color: #5A79C0; /*#200060;*/
	color: white;
	height: 21%;
	max-width: 33.33%;
}

#b_call {
	font-size: 30px;
	background-color: #00A000;
	color: white;
	max-width: 33.33%;
}



.msgCenter {
	width: 290px; 
	margin-left: auto !important;
	margin-right: auto !important;
	position: absolute; 
	left: 0; 
	right: 0; 
	top: 20%;
}

ul.msgCenter li:first-child {
	text-align: center;
}

#startMenu, #optionsMenu, #loginMenu {
	display: none;
}


#statusMsg {
	z-index: 2;
	padding: 8px;
	color: white;
	background-color: rgba(60,60,60,0.8);
	border-width: 1px;
	border-style:solid ;
	border-color:rgb(217,217,217);
	-webkit-border-radius: 8px;
	top: 30%;
	text-align: center;
	display: none;
}


#myphone {
	font-size: 20px;
	font-weight: bold;
}

.removeDest {
	float: right;
}

.label select {
	margin-top: -4px;
}


ul.rounded
{	   
	padding: 0;	   
	margin-top:0;
	margin-right:10px;
	margin-bottom:17px;
	
	font-size:17px;
	font-family: Helvetica;
	font-weight:bold;
	color:black;
	
	width: 300px;
	background-color: white;
	
	border-width: 1px;
	border-style:solid ;
	border-color:rgb(217,217,217);
	
	-webkit-border-radius: 8px;
}

body.landscape .panel ul.rounded {
	width: 450px;
}

ul.rounded > li
{	
	list-style-type: none;
	
	border-top-width:1px;
	border-top-style:solid;
	border-top-color:rgb(217,217,217);

	padding-top:12px;
	padding-right:10px;
	padding-bottom:12px;
	padding-left:10px;
}


ul.rounded > li:first-child 
{
	border-top:0;
}


ul.rounded > li a 
{
	display: block;   
	padding: 10px 8px 11px 8px;
	margin: -10px -8px -11px -8px; 
	text-decoration: none;
	color:black;
}


ul.rounded > li input 
{
	box-sizing: border-box;
	-webkit-box-sizing: border-box;

	display: block;
	padding: 10px 8px 11px 8px;
	margin: -10px -8px -11px -8px; 

	color: #324F85;
	border: none;
	width: 100%;

	font-size:17px;
	font-family: Helvetica;
	font-weight:normal;
	-webkit-appearance: none;
}

ul.rounded > li input.empty
{
	color: #b0b0b0;
}


ul.rounded > li .inputHelp
{
	font-size: 10px;
	font-weight: normal;
	color: #A0A0A0; 
	text-align: left; 
	margin-bottom: -11px;
	display: none;
	padding-left: 8px;
}

ul.rounded > li .withLabel
{
	padding-left: 78px;
}

ul.rounded > li img {
	margin-top: -6px;
	margin-bottom: -6px;	 
}

div.label {
	float: left;
	width: 60px;
	text-align: right;
	padding-top: 4px;
	margin-right: 10px;
	font-size: 12px;
  font-weight: bold;
  color: #324F85;
  text-transform: lowercase;
}

.showArrow /*	Add an arrow button to a link */
{  
	margin-right:10px;		
	padding-right:16px;	   /* Distance between the arrow button and a text */
	
	background-image: url(../images/iphone/chevron.png); 
	background-repeat: no-repeat;
	background-position: right; 
}

.secondary	/* Used for secondary text (text that is less important) */
{
	font-weight:normal;		/* Regular font is used for secondary text */
	float:right;			 /* Align secondary text to the right of its parent cell */
	margin-right:10px;	  
}

.secondaryWArrow /* Used for secondary content that contains a link and a button */
{
	display:block;		 /* Set the secondary content to be a block	 */
	font-weight:normal; 
	float:right;
	color: #324F85;		 /* sets the color of the link */
}

.secondaryWLink /* Used for secondary text that is a link */
{
	font-weight:normal;		
	float:right;		  
	margin-right:10px;	  
	color: #324F85;		 /* sets the color of the link */
}


.withToolbar > *:not(.toolbar) {
	position: absolute;
	margin: 0;
	padding: 0;
	left: 0;
	top: 45px;
	width: 100%;
}

body.portrait .withToolbar .panel {
	min-height: 371px;
}

body.landscape .withToolbar .panel {
	min-height: 223px;
}

.toolbar {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	border-bottom: 1px solid #2d3642;
	border-top: 1px solid #6d84a2;
	padding: 10px;
	height: 45px;
	background: url(../images/iphone/toolbar.png) #6d84a2 repeat-x;
}

.toolbar > h1 {
	position: absolute;
	overflow: hidden;
	left: 50%;
	margin: 1px 0 0 -75px;
	height: 45px;
	font-size: 20px;
	width: 150px;
	font-weight: bold;
	text-shadow: rgba(0, 0, 0, 0.4) 0px -1px 0;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #FFFFFF;
}

body.landscape .toolbar > h1 {
	margin-left: -125px;
	width: 250px;
}

.button {
	position: absolute;
	overflow: hidden;
	top: 8px;
	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: #FFFFFF;
	text-shadow: rgba(0, 0, 0, 0.6) 0px -1px 0;
	text-overflow: ellipsis;
	text-decoration: none;
	white-space: nowrap;
	background: none;
	-webkit-border-image: url(../images/iphone/toolButton.png) 0 5 0 5;
}

.blueButton {
	-webkit-border-image: url(../images/iphone/blueButton.png) 0 5 0 5;
	border-width: 0 5px;
}

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

.backButton {
	left: 6px;
	right: auto;
	padding: 0;
	max-width: 55px;
	border-width: 0 8px 0 14px;
	-webkit-border-image: url(../images/iphone/backButton.png) 0 8 0 14;
}

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

.whiteButton {
	-webkit-border-image: url(../images/iphone/whiteButton.png) 0 12 0 12;
	text-shadow: rgba(255, 255, 255, 0.7) 0 1px 0;
}

.grayButton {
	-webkit-border-image: url(../images/iphone/grayButton.png) 0 12 0 12;
	color: #FFFFFF;
}


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

ul.normal > li.group {
	position: relative;
	top: -1px;
	margin-bottom: -2px;
	border-top: 1px solid #7d7d7d;
	border-bottom: 1px solid #999999;
	padding: 1px 10px;
	background: url(../images/iphone/listGroup.png) repeat-x;
	font-size: 17px;
	font-weight: bold;
	text-shadow: rgba(0, 0, 0, 0.4) 0 1px 0;
	color: #FFFFFF;
}

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

ul.normal > li > a {
	display: block;
	margin: -8px 0 -8px -10px;
	padding: 8px 32px 8px 10px;
	text-decoration: none;
	color: inherit;
	background: url(../images/iphone/listArrow.png) no-repeat right center;
}

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;
}


.panel {
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	padding: 10px !important;
	background: #c8c8c8 url(../images/iphone/pinstripes.png);
	bottom: auto !important;
}

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

.panel ul.rounded {
	width: 300px;
	border-color:#999999;
}