/*
 * This is a manifest file that'll automatically include all the stylesheets available in this directory
 * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
 * the top of the compiled file, but it's generally better to create a new file per style scope.






*/

/* General Page Structure
-------------------------------------------------------------------------------------- */

html {
	background: url(bg-tile.gif) repeat top left;
}
body {
	background: transparent url(bg-gradient.png) repeat-x top left;
	margin: 0;
	padding: 17px 0 20px;
}
#container {
	margin: 0 auto;
	padding: 0;
	width: 990px;
}
div.wrapper {
	padding: 0 45px;
	width: 900px;
}
#header {
	background: url(header.png) no-repeat top center;
	height: 104px;
	padding-bottom: 13px;
	overflow: hidden;
}
#main-wrap {
	background: url(content-top.png) no-repeat top center;
	padding-top: 40px;
	position: relative;
}
#main-inner {
	background: url(content-bottom.png) no-repeat bottom center;
	padding-bottom: 40px;
}
#main {
	background: url(content-inner.png) repeat-y top center;
}


/* General Styles
-------------------------------------------------------------------------------------- */
.clear:after,
form div.row:after {
	clear: both;
	content: ".";
	display: block;
	height: 0;
	visibility: hidden;
}
a img {
	border: none;
}


/* General Typography
-------------------------------------------------------------------------------------- */
body {
	font: 12px/1.5 Arial, Helvetica, sans-serif;
}
h1, h2, h3, h4, h5, h6, p, ol, ul {
	margin: 0 0 12px;
}
h1, h2 {
	font-family: Tahoma, Arial, Helvetica, sans-serif;
	font-weight: normal;
}
h1 {
	color: #363535;
	font-size: 18px;
	word-wrap: break-word;
}
h2 {
	display: inline-block;
	font-size: 15px;
	background-color: #221e1f;
	color: #fff;
	font-weight: normal;
	padding: 3px 10px;
	border-radius: 4px;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
}
h3 {
	font-size: 12px;
}
a {
	text-decoration:none;
	color: #00C;
}
a:hover {
	background-color: #cee;
}
a:visited {
	color: #808;
}
#content h2 a, h2 a:visited {
	color: white;
	font-weight: normal;
	text-decoration: underline;
}
h2 a:hover {
	background-color: #ccc;
}
abbr {
	border-bottom: 1px dotted #ccc;
}

/* Buttons
-------------------------------------------------------------------------------------- */
a.button {
	background: url(button-purple.png) no-repeat top left;
	color: #fff;
	display: block;
	font-size: 11px;
	font-weight: bold;
	height: 25px;
	line-height: 25px;
	outline: none;
	padding-right: 10px;
	text-align: center;
	text-decoration: none;
	width: 167px;
}


/* Header
-------------------------------------------------------------------------------------- */
#main_nav {
	color: #fff;
	height: 29px;
	overflow: hidden;
}

#main_nav a,
#footer a {
	color: #fff;
	background: transparent;
	text-decoration: none;
}

#main_nav a:hover,
#footer a:hover {
	color: #e8e8e8;
	background: transparent;
}

#nav-menu li:hover {
	background-color: #655271;
}

ul#nav-menu {
	list-style: none;
	margin: 0 0 0 12px;
	padding: 0;
}
ul#nav-menu li {
	background: #765b82 url(header-tab-shadow.png) repeat-x bottom left;
	display: block;
	height: 29px;
	float: left;
	margin-right: 2px;
}
ul#nav-menu li a {
	display: block;
	height: inherit;
	line-height: 29px;
	outline: none;
	padding: 0 20px;
}
#user-links {
	background: #77ae51 url(header-tab-shadow.png) repeat-x bottom left;
	float: right;
	height: 29px;
	margin: 0 8px 0 0;
	line-height: 29px;
	padding: 0 15px;
	list-style: none;
}

#user-links li {
	display: block;
	float: left;
}

#user-links li::after {
	content: '|';
	margin: 0 10px;
}

#user-links li:last-child::after {
	margin: 0;
	content: '';
}

#header-main {
	height: 75px;
	overflow: hidden;
	width: inherit;
}
a#logo {
	float: left;
	margin-right: 10px;
	outline: none;
}
a#logo:hover {
	background-color:inherit;
}
a#logo img {
	display: block;
}
#title {
	text-align:right;
	line-height: 75px;
	margin-right: 3em;
}
#title h1 {
}


/* Content
-------------------------------------------------------------------------------------- */
#content {
	padding: 0 30px;
	position: relative;
	z-index: 10;
}
#content a {
	font-weight: bold;
}

#alert-messages {
	position: absolute;
	margin: 0 30px 5px 30px;
	top: 1em;
	text-align: center;
	width: 83%;
	z-index:10;
}
#error {
	color: #f22;
	font-weight: bold;
}
#notice {
	color: #2a2;
}

span.correct {
	padding-right: 17px;
	background: url(tick.png) top right no-repeat;
}
span.wrong {
	padding-right: 14px;
	background: url(cross.png) bottom right no-repeat;
}

.break-word {
	word-wrap: break-word;
}

/* Feature
-------------------------------------------------------------------------------------- */
#feature {
	background: url(sky.png) no-repeat top left;
	height: 140px;
	left: 45px;
	padding: 140px 460px 0 30px;
	position: absolute;
	top: 0;
	width: 410px;
}
img#title {
	display: block;
	left: -43px;
	position: absolute;
	top: 45px;
	z-index: 5;
}
img#illustration {
	display: block;
	left: 520px;
	position: absolute;
	top: 108px;
	z-index: 5;
}
#feature div.content {
	position: relative;
	z-index: 15;
}
#feature p.actions a.button {
	float: left;
}
#feature p.actions span {
	color: #181818;
	font: bold 15px/25px Tahoma, Arial, Helvetica, sans-serif;
	float: left;
	padding: 0 10px;
}

/* Front Page Content
-------------------------------------------------------------------------------------- */
body.home #content {
	padding-top: 280px;
}

#intro{
	float: left;
	width: 320px;
}

body.home #new_prediction {
  float: left;
  width: 50%;
}

body.home #responses li {
  margin: 0 0 0.75em 0.75em;
}

body.home #popular {
  width: 48%;
  float: right;
}
input[type="text"],
input[type="password"],
textarea {
	border: 1px solid #ccc;
	font: 11px Arial, Helvetica, sans-serif;
	padding: 5px;
}
input[type="image"] {
	outline: none;
}

.outcome form.button-to, .outcome form.button-to > div { display: inline; }

form .error span.message { padding-left: 1em; color: red; }
form .error textarea + span.message { display: block; padding-left: 0; }

form .preview { margin-top: 1em; color: green; display: block; background: transparent;}
form { padding-bottom: 0.5em;}

span.action-comment { font-style: italic; }

span.notice {
  padding: 4px;
}
span.notice a {
  text-decoration: none;
}

p.note {
  font-style: italic;
  color: #777;
  width: 28em;
}
p.note em {
  color: #000;
  font-weight: bold;
  font-style: normal;
}
.withdraw p.note {
  width: inherit;
}

.hidden-help { display: none; }

form label {
  display: block;
  font-weight: bold;
}

form#new_prediction {
	float: left;
	font-size: 11px;
}
form #prediction_description { width: 30em; height: 3.5em; }
form #response_comment { height: 2.5em; width: 97%; }
form input[type="text"],
form input[type="password"],
form textarea {
  font-size: larger;
	margin: 0 5px 0 0;
	width: 225px;
}
form input[type="checkbox"] {
	margin: 2px 4px 0;
	padding: 0;
	vertical-align: top;
}
form input.confidence {
	width: 25px;
}
form input.date {
	width: 170px;
}
form div.slider {
	float: left;
	margin-right: 5px;
	width: 237px;
}
form a.tip {
	float: left;
}
form a.tip img {
	display: block;
	padding: 4px 0;
}

form#search {
	float: right;
	padding: 25px 15px 0;
}
form#search input {
	float: left;
	margin-top: 2px;
}
form#search input[type="text"] {
	font-size: 14px;
	margin-right: 5px;
	padding: 4px;
	width: 150px;
}


form.single-checkbox-form {
  margin-bottom: 0;
}
form.single-checkbox-form + p.note {
  margin-top: -1em;
  padding-top: 0;
  padding-bottom: 5px;
}
/* PREDICTIONS */


h1 a.edit {
  color: #777;
  font-size: x-small;
}
h1 a.edit:before { content: '[';}
h1 a.edit:after { content: ']';}

#judgement, #response, #notification {
  float: right;
  clear: right;
  width: 40%;
}
ul#responses {
  float: left;
  width: 50%;
}
div#responses {
  clear:both;
}
/* ul#responses is on the prediction pages;
div#responses ul is on the homepage and happenstance. */
ul#responses, #responses ul {
  padding-left: 0.5em;
  margin-left: 0.5em;
}
#responses li {
  margin: 0 0 0.75em 0.75em;
}
#responses .change, #responses .change a {
  color: #777;
  font-style: italic;
  word-wrap: break-word;
}
#judgement .withdraw form { 
  float: left; 
  padding: 0; 
}

.prediction .private.status {
  color: black;
}

li.prediction p, li p.prediction { 
  margin: 0; 
  display: inline; 
}
li.prediction p.description { 
  display: block; 
}
li.prediction {
  padding-bottom:0.5em;
}
li.prediction.right, li.prediction.wrong {
   list-style: none;
}
li.prediction:before {
  display: inline-block;
  float: left;
  margin-left: -1.2em;
  width: 1em;
  text-align: center;
}
li.prediction.right {
  list-style-image: url(tick.png);
}
li.prediction.wrong {
  list-style-image: url(cross.png);
}
.prediction {
  font-size: 130%;
}
.prediction .date {
  background-color: inherit;
  padding: 0;
}
.prediction .responses, .prediction .description, .prediction .status {
  color: #888;
  font-size: small;
}
.prediction .description {
  padding: 0.2em 0 0 2em;
}
.title {
  word-wrap: break-word;
}
h1.withdrawn, .prediction.withdrawn .title, span.withdrawn {
  text-decoration: line-through;
}
span.notice, .judged .prediction .description .judgement,
.unjudged .prediction .deadline,
.future .prediction .deadline,
.recent .prediction .creator,
.recent .responses .mean_confidence {
  color: black;
  background-color: #ffffe0;
  padding: 1px 3px;
}
p .responses {
  white-space: nowrap;
}

li.response, li.change, .comment {
  word-wrap: break-word;
}

.confidence {
  font-weight: bold;
}

.statistics table {
  width: 65%;
  margin-right: 1em;
  margin-bottom: 2em;
}

.statistics table th { padding: 0 4px; }
.statistics table td { text-align: center; }
.statistics table th.narrow { width: 40px; }

.statistics {float: right; text-align: right;}
.statistics table tbody th { border: none; text-align: right; vertical-align: middle; }
.statistics table th {border-bottom: 1px solid #000; }
.statistics table thead th { text-align: center; }
.statistics table td { text-align: center; padding: 4px 8px; border: 1px dashed #CCC; border-top: none;border-top:none;}
.statistics table { width: auto; margin:1em 0.5em 1em 18px; font-size:90%; border-collapse:collapse; }
.statistics img { margin-right:6px; }
/* Footer
-------------------------------------------------------------------------------------- */
#footer {
	background: url(footer-shadow.png) no-repeat top center;
	color: #fff;
	font-size: 11px;
	padding-top: 15px;
}
#footer ul {
	list-style: none;
	line-height: 13px;
	margin: 0 0 2px;
	padding: 0;
}
#footer ul.left-links { float: left; }
#footer ul.right-links { float: right; }
#footer ul li {
	float: left;
	padding: 0 7px;
}
#footer ul.left-links li { border-right: 1px solid #fff; }
#footer ul.left-links li:first-child { padding-left: 0; }
#footer ul.left-links li:last-child { border-right: none; }
#footer ul.right-links li:last-child { padding-right: 0; }

#footer span.copyright {
	clear: both;
	float: right;
}
#facebox .b {
  background:url(facebox/b.png);
}

#facebox .tl {
  background:url(facebox/tl.png);
}

#facebox .tr {
  background:url(facebox/tr.png);
}

#facebox .bl {
  background:url(facebox/bl.png);
}

#facebox .br {
  background:url(facebox/br.png);
}

#facebox {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  text-align: left;
}

#facebox .popup {
  position: relative;
}

#facebox table {
  border-collapse: collapse;
}

#facebox td {
  border-bottom: 0;
  padding: 0;
}

#facebox .body {
  padding: 10px;
  background: #fff;
  width: 370px;
}

#facebox .loading {
  text-align: center;
}

#facebox .image {
  text-align: center;
}

#facebox img {
  border: 0;
  margin: 0;
}

#facebox .footer {
  border-top: 1px solid #DDDDDD;
  padding-top: 5px;
  margin-top: 10px;
  text-align: right;
}

#facebox .tl, #facebox .tr, #facebox .bl, #facebox .br {
  height: 10px;
  width: 10px;
  overflow: hidden;
  padding: 0;
}

#facebox_overlay {
  position: fixed;
  top: 0px;
  left: 0px;
  height:100%;
  width:100%;
}

.facebox_hide {
  z-index:-100;
}

.facebox_overlayBG {
  background-color: #000;
  z-index: 99;
}

* html #facebox_overlay { /* ie6 hack */
  position: absolute;
  height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
}
