

body {
  width: 320px;
  margin: 0px;
  padding: 0px;
  font-family: Helvetica;
  /* ensure that we don't get the default callout following a long touch on
  an element, which is a default behavior in Mobile Safari */
  -webkit-touch-callout: none;
  /* disable the Mobile Safari default behavior to adjust font size automatically
  to improve readability */
  -webkit-text-size-adjust: none;
}

/*
when the orientation changes to landscape mode, the body is assigned the .landscape
class so that we can easily change metrics and other properties via simple CSS matching
*/
body.landscape {
  width: 480px;
}

#browser {
  /* ensure we always fill the whole screen */
  min-height: 416px;
}

#footer {
}

body.landscape #browser {
  min-height: 268px;
}
/* ==================== HEADER ==================== */

#header {
  position: relative;
  height: 40px;
  background-image: url('images/header_middle.png');
  border-bottom: 1px solid rgb(45, 54, 66);
}
#header_html {
  height: 40px;
  background-image: url('images/header_middle.png');
  border-bottom: 1px solid rgb(45, 54, 66);
}

.button {
  /* use absolute positioning and transforms as these will be subject to hardware transitions */
  position: absolute;
  -webkit-transform: translate(0px, 0px);
  /* the buttons should be displayed on top of the titles so that they can always receive touches */
  z-index: 1;
  /* set up the font appearance */
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  color: white;
  text-shadow: rgba(0, 0, 0, .6) 0px -1px 0px;
  /* set up the chrome background */
  -webkit-border-image : url('images/back_button.png') 0 4 0 13;
  border-width : 0 4px 0 13px;
  padding-top: 7px;
  padding-right: 4px;
  /* base metrics used to ensure a minumum size and specify a max size that can be used to trim the contents */
  min-width: 40px;
  max-width: 60px;
  height: 23px; 
  /* enfore trimming if the label is too long */
  white-space : nowrap;
  overflow : hidden;
  text-overflow: ellipsis;
}

.button_html {
  z-index: 1;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  color: white;
  text-shadow: rgba(0, 0, 0, .6) 0px -1px 0px;
  /* set up the chrome background */
  background: url('images/back_button.png');
  border-width : 0 4px 0 13px;
  padding-top: 7px;
  padding-right: 4px;
  /* base metrics used to ensure a minumum size and specify a max size that can be used to trim the contents */
  min-width: 40px;
  max-width: 60px;
  height: 23px; 
  /* enfore trimming if the label is too long */
  white-space : nowrap;
  overflow : hidden;
  text-overflow: ellipsis;
}

body.landscape .button {
  max-width: 90px;
}

/* touched state for the buttons */
.button:active {
  -webkit-border-image : url('images/back_button_touched.png') 0 4 0 13;
}

.title {
  /* use absolute positioning and transforms as these will be subject to hardware transitions */
  position: absolute;
  -webkit-transform: translate(0px, 0px);
  /* base metrics */
  height: 31px;
  margin-top: 3px;
  /* the titles should be displayed below the button so that they don't receive touches */
  z-index: 0;
  /* set up the font appearance */
  font-size: 16pt;
  font-weight: bold;
  color: white;
  text-shadow: rgba(0, 0, 0, .6) 0px -1px 0px;
  /* enfore trimming if the label is too long */
  white-space : nowrap;
}

.title_html {
  font-size: 16pt;
  font-weight: bold;
  color: white;
  text-align: center;
  padding:30px;
  line-height:30px;
  
}

/* ==================== MAIN PAGES CONTENT ==================== */

#pages_container > div {
  position: absolute;
  /*
  add a default transform so that the contents of the pages
  are already composited as hardware elements and will animate
  smoothly later on when we launch transitions
  */
  -webkit-transform: translate(0px,0px);
}

ul {
  width: 300px;
  padding: 0px;
  margin: 10px 0px 6px 10px;
  font-size: 16px;
  font-weight: bold;
}

body.landscape ul {
  width: 460px;
}

li {
  height: 28px;
  list-style-type: none;
  background-color: white;
  border-style: solid;
  border-width: 1px 1px 0px 1px;
  border-color: rgb(171,173,176);  
  margin: 0px;
  padding-top: 14px;
  padding-left: 10px;
  padding-right: 20px;
  /* ensure that long pieces of text get trimmed */
  white-space : nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/*
this matches the first list item, which needs rounding in the top corners
and no bottom border as the item below will already draw a border at its top
*/
li:first-child {
  -webkit-border-top-left-radius: 8px;
  -webkit-border-top-right-radius: 8px;
  border: 1px solid rgb(171,173,176);
  border-bottom-width: 0;
}

/*
this matches the last list item, which needs rounding in the bottom corners
and a bottom border
*/
li:last-child {
  -webkit-border-bottom-left-radius: 8px;
  -webkit-border-bottom-right-radius: 8px;
  border: 1px solid rgb(171,173,176);
  margin-bottom: 5px;
}

/*
list items with the .group class are those that can be tapped to drill
further down and therefore need an arrow in the background to indicate that
*/
li.group {
  background-image: url('images/chevron.png');
  background-repeat: no-repeat;
  background-position: 280px 18px;
}

body.landscape li.group {
  background-position: 440px 18px;
}

/* this is for the touched state of list items */
li.group:active {
  background-image: url('images/chevron_touched.png'), url('images/item_background_touched.png');
  background-position: 280px 18px, 0 0;
  background-repeat: no-repeat, repeat-x;
  color: white;
}

body.landscape li.group:active {
  background-position: 440px 18px, 0 0;
}

/* Show only to IE PC \*/
* html .boxhead h2 {height: 1%;} /* For IE 5 PC */

.databox {
	position: relative;
	margin: 0 auto; /* center for now */
	width: 20em; /* ems so it will grow */
	background: url('images/sbbottom-r.gif') no-repeat bottom right;
	font-size: 100%;
}
.boxhead {
	background: url('images/sbhead-r.gif') no-repeat top right;
	margin: 0;
	padding: 0;
	text-align: center;
}
.boxhead h2 {
	background: url('images/sbhead-l.gif') no-repeat top left;
	margin: 0;
	padding: 22px 30px 5px;
	color: white; 
	font-weight: bold; 
	font-size: 1.2em; 
	line-height: 1em;
	text-shadow: rgba(0,0,0,.4) 0px 2px 5px; /* Safari-only, but cool */
}
.boxbody {
	background: url('images/sbbody.gif') repeat;
	margin: 0;
	padding: 5px 30px 31px;
}