body {
	margin: 0;
	padding: 0;
	background: url(i/background.jpg) 50% 0% repeat black;
	
	font-family: "Trebuchet MS", Helvetica;
	font-size: 13px;
	color: white;
/*	text-shadow: 0px 0px #000000;*/
	text-shadow: rgb(0, 0, 0) 0px 0px 1px;
}

:focus {
	outline: 0;
}

a {
	color: white;
}

#outerbox {
	position: relative;
	background: url(i/content_bg.png) no-repeat;
	width: 790px;
	height: 501px;
	
	margin: 117px auto 0 auto;
}

p {
	margin: 0 0 1em 0;
}

h2 {
	font-size: 100%;
	font-weight: bold;
	
	margin: 0 0 1em 0;
	
	color: rgba(255, 255, 255, 0.7);
}

h3 {
	font-size: 100%;
	font-weight: normal;
	
	margin: 0 0 5px 0;
	
	color: rgba(255, 255, 255, 0.5);
}

span.comment {
	color: rgba(255, 255, 255, 0.5);
	font-size: 80%;
}

/* Q logo */

h1, a.h1 {
	display: block;
	
	background: url(i/logo.png) no-repeat;
	width: 224px;
	height: 56px;
	
	margin: 0;
	
	position: absolute;
	left: 285px;
	top: -39px;
	
	text-indent: -10000px;
}

/* on5 logo */

a.on5 {
	display: block;
	
	background-image: url(i/on5_logo_but.png);
	background-repeat: no-repeat;
	background-position-x: 0;
	background-position-y: 0;

	width: 70px;
	height: 41px;
	
	text-indent: -10000px;
	
	position: absolute;
	left: 360px;
	top: 550px;
}

a.on5:hover {
	background-position-y: -42px;
}

/* links */

div.links {
	position: absolute;
	left: 565px;
	top: 471px;
}

div.links a {
	color: white;
	text-decoration: none;
	background-image: url(i/link-underline.png);
	background-repeat: repeat-x;
	background-position: 0% 100%;
	margin-right: 10px;
}

div.links a:hover {
	background-image: url(i/link-underline-over.png);
}

/* FB/TW */

div.fbtw {
	position: absolute;
	left: 565px;
	top: 410px;
	
	background: url(i/link-underline-over.png) 0px -100px no-repeat;
}

div.fbtw div {
	color: rgba(255, 255, 255, 0.3);
	text-shadow: none;
}

div.fbtw a {
	display: block;
	
	padding-left: 35px;
	width: 65px;
	height: 32px;
	
	text-decoration: none;
	
	background-repeat: no-repeat;
	background-position: 0 0;
}

div.fbtw a:hover {
	background-position: 0 -32px;
}

div.fbtw a.fb {
	background-image: url(i/fb.png);
	float: left;
	margin-left: -5px;
}

div.fbtw a.tw {
	background-image: url(i/tw.png);
	margin-left: 100px;
}

div.fbtw a span {
	line-height: 32px;
}

div.fbtw a:hover span {
	line-height: 32px;
	background: url(i/link-underline-over.png) 0% 100% repeat-x;
}

/* AppStore */

a.appstore {
	display: block;
	position: absolute;
	left: 565px;
	top: 370px;
	
	width: 83px;
	height: 27px;
	
	background-image: url(i/appstore.png);
	background-repeat: no-repeat;
	background-position: 0 0;
	
	text-indent: -10000px;
}

a.appstore:hover {
	background-position: 0 -27px;
}

/* iPhone video */

div.ivideo {
	position: absolute;
	left: 250px;
	top: 361px;
	
	width: 287px;
	height: 160px;
	
	background: url(i/iphone_preview.png) no-repeat;
}

div.ivideo div.content {
	position: absolute;
	left: 48px;
	top: 13px;
	
	width: 193px;
	height: 129px;
	background: url(i/video_cover.png) no-repeat;
}

div.ivideo div.content a {
	position: absolute;
	left: 64px;
	top: 32px;
	
	width: 64px;
	height: 64px;
	background-image: url(i/play_button.png);
	background-repeat: no-repeat;
	background-position: 0 0;
}

div.ivideo div.content a:hover {
	background-position: 0 -64px;
}

div.ivideo_big {
	display: none;

	position: absolute;
	width: 719px;
	height: 406px;
	
	left: 36px;
	top: 140px;
	
	background: url(i/iphone_video.png) no-repeat;
	
	z-index: 2;
}

div.ivideo_big a.close {
	display: block;

	position: absolute;
	left: 665px;
	top: 1px;
	
	width: 26px;
	height: 26px;
	
}

/* screenshots */

div.screens {
	position: absolute;
	left: 40px;
	top: 363px;
	
	width: 189px;
	height: 127px;
	
	background: url(i/screens/all_screens.png) no-repeat;
}

div.screens a {
	position: absolute;
	left: 30px;
	top: 26px;
	
	width: 129px;
	height: 75px;
	
	background-image: url(i/screenshots_but.png);
	background-repeat: no-repeat;
	background-position: 0 0;
	
	text-indent: -10000px;
	
	display: none;
}

div.screens a:hover {
	background-position: 0 -75px;
}

/* left part */

div.leftpart {
	position: absolute;
	left: 45px;
	top: 25px;
	
	width: 325px;
	height: 330px;
}

div.didyouknow {
	position: relative;
	height: 50px;
	margin-bottom: 10px;
	
	overflow: hidden;
}

div.didyouknow div {
	position: absolute;
	height: 50px;
}

/* right part */

div.rightpart {
	position: absolute;
	left: 420px;
	top: 25px;
	
	width: 325px;
	height: 330px;
}

div.thisweek, div.lastweek {
	position: absolute;
	top: 0px;
	
	width: 155px;
	height: 150px;
}

div.thisweek {
	left: 0px;
}

div.lastweek {
	left: 175px;
}

div.thisweek table, div.lastweek table {
	width: 155px;
}

div.thisweek td, div.lastweek td {
	overflow: hidden;
}

div.thisweek td.score, div.lastweek td.score {
	text-align: center;
	width: 45px;
	color: #99cc00;
}

div.rightpart div.lower {
	position: absolute;
	left: 0px;
	top: 150px;
}

div.lower ul {
	margin: 0px;
	padding: 0px;
	list-style: none;
}

div.lower ul li {
	padding-bottom: 3px;
	padding-left: 3px;
	
	cursor: default;
}

div.lower div.answer {
	display: none;
	position: absolute;
	
	padding: 10px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	
	border-width: 1px;
	border-color: #404040;
	border-style: solid;
	
	background: rgba(0, 0, 0, 0.9);
	-webkit-box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.5);
}

ul.questions li span.answer {
	display: none;
	color: rgba(255, 255, 255, 0.5);
}

/* lightbox */

#overlay {
   position:absolute;top:0;left:0;right:0;bottom:0;
   z-index:3;
   background:url(i/overlay.png);
}
.popup {
   position:absolute;top:-20px;left:50%;
   z-index:4;
/*   margin:-436px 0 0 -342px;*/
   margin:0 0 0 -342px;
   width:684px;height:540px;
}
.popup a.next, .popup a.prev {
   position:absolute;top:229px;
   display:block;
   width:59px;height:59px;
   background:url(i/l_navi.png) no-repeat 0 0;
}
.popup a.prev {
   left:-18px;
   background-position:0 0;
}
.popup a.prev:hover {background-position:0 -59px;}
.popup a.next {
   right:-18px;
   background-position:-59px 0;
}
.popup a.next:hover {background-position:-59px -59px;}

.big_pic {
   position:absolute;top:83px;left:84px;
   padding:18px;width:480px;height:320px;
   background:url(i/big_pic.png) no-repeat 0 -1px;
}
.popup p {
   position:absolute;top:452px;left:0;
   width:100%;
   text-align:center;
}
.popup p a {
   display:inline-block;
   width:102px;height:68px;
   padding:9px 12px 9px 6px;
   background:url(i/small_pic.png) no-repeat 0 0;
}
.popup p a img {
   width:102px;height:68px;
}
.popup p a.on {background-position:-120px 0;}

/* Questions post */

form#words input.tx {
	border: 1px #42363b solid;
	width: 100%;
	height: 20px;
	
	padding-left: 5px;
	
	background: url(i/input_bg.png) repeat-x;
	color: #7baaff;
}

div#qpostresult {
	color: #d0d0d0;
}

span.yes {
	color: #00a000;
}

span.no {
	color: #d00000;
}