body, input[type="submit"] {
	margin: 0;

	color: #666;
	font: 14px/18px Helvetica, Arial, sans-serif;
	text-align: center;
}

a {
	color: #07f;
}

a:not(.FBConnectButton):hover, a:not(.FBConnectButton):active {
        background: #0af;
        -moz-border-radius: 2px;
        -webkit-border-radius: 2px;
        border-radius: 2px;
        color: #fff !important;
        text-decoration: none !important;
        text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3), 0px 0px 12px rgba(255, 255, 255, 0.5);
}

a img {
	border: 0;
}

h1, h2, h3, h4, h5, h6, #logo a {
	color: #444;
	font: 36px/48px 'AlexandriaFLF Bold', Georgia, serif;
	text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.2);

	margin-top: 0;
}

h1 small, h2 small, h3 small, h4 small, h5 small, h6 small {
	color: #888;
}

h1 {
	margin-bottom: 0;

	border-bottom: 2px solid #ddd;
}

h2 {
	border-bottom: 1px solid #ddd;
}

h2, h3, h4, h5, h6 {
	font-size: 18px;
	line-height: 24px;
}

p.more {
	clear: left;
	padding-top: 3px;

	border-top: 1px solid #ddd;
}

p.meta {
	margin-top: 0;
	padding: 3px 0;

	border-bottom: 1px solid #ddd;
}

p.more a, p.meta a, input[type="submit"], div.action a {
	display: inline-block;
	padding: 3px 6px;

	background: #0af;
	border: 0;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	color: #fff;
	font-weight: bold;
	text-decoration: none;
	text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3), 0px 0px 12px rgba(255, 255, 255, 0.5);
}

p.more a:hover, p.more a:active, input[type="submit"]:hover, input[type="submit"]:active, div.action a:hover, div.action a:active {
	background: #08c;
}

p.meta a {
	background: #aaa;
}

p.meta a:hover, p.meta a:active {
	background: #666;
}

p.meta strong {
	display: inline-block;
	padding: 3px 6px;

	background: #6d2;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	color: #fff;
	font-weight: bold;
	text-decoration: none;
	text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3), 0px 0px 12px rgba(255, 255, 255, 0.5);
}

ol, ul {
	list-style: none;
	margin-left: 0;
	padding-left: 0;
	margin-right: 6px;
}

ol li, ul li {
	margin-left: 0;
	padding: 3px 0;
}

.info, form .errorSummary {
	margin: 1em 0;
	padding: 3px 6px;

	background: #ffa;
	border: 1px solid #fc8;
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
	border-radius: 6px;
	color: #840;	
}

.info {
	text-align: center;
}


/* FORMS */

form .errorSummary {
	background: #fcc;
	border-color: #f88;
	color: #800;
}

form .errorSummary p {
	margin: 0;
}

form .errorSummary ul {
	margin: .5em 0 0 0;
}

form .errorSummary li {
	margin-left: 1.25em;
	list-style: disc;
	font-weight: bold;
}

form dt, form dd {
	margin-top: 3px;
	min-height: 20px;
}

form dt {
	margin-right: 3px;
	text-align: right;
	font-size: 12px;
	clear: left;
	float: left;
	width: 150px;
}

form dd, form p.action {
	margin-left: 153px;
}

input[type="submit"], button {
	cursor: pointer;
}

input[type="text"], input[type="password"], textarea {
	padding: 1px 2px;

	border: 1px solid #ddd;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	color: #666;
	font: 12px Helvetica, Arial, sans-serif;
}

input[type="text"]:focus, input[type="password"]:focus, textarea:focus, input[type="text"]:hover, input[type="password"]:hover, textarea:hover {
	color: #444;
	border-color: #aaa;
}

input.error {
	color: #800;
	border-color: #d88;
}

input.error:focus, input.error:hover {
	border-color: #a44;
	color: #600;
}


/* TAGGING */

.tagList {
	display: block;
	margin-top: 0;
}

.tagList li {
	display: inline-block;
	margin-right: 4px;
}

.tagList li span {
	padding: 1px 6px;

	cursor: default;
	border: 1px solid #ddd;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	color: #666;
	font: 12px Helvetica, Arial, sans-serif;
}

input.tag[type="text"], .tagList li span {
	margin-right: 0;

	-moz-border-radius-bottomright: 0;
	-webkit-border-bottom-right-radius: 0;
	border-bottom-right-radius: 0;
	-moz-border-radius-topright: 0;
	-webkit-border-top-right-radius: 0;
	border-top-right-radius: 0;
}

button.tag, .tagList button {
	margin-left: 0;
	padding: 2px 6px;

	background: #aaa;
	border: 0;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	color: #fff;
	font: bold 12px Helvetica, Arial, sans-serif;

	-moz-border-radius-bottomleft: 0;
	-webkit-border-bottom-left-radius: 0;
	border-bottom-left-radius: 0;
	-moz-border-radius-topleft: 0;
	-webkit-border-top-left-radius: 0;
	border-top-left-radius: 0;
}

button.tag:hover, button.tag:active, button.tag:focus, .tagList button:hover, .tagList button:active, .tagList button:focus {
	background: #888;
}


/* AUTOCOMPLETE */

div.ac_results {
	background: #fff;
	border: 1px solid #ddd;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	color: #666;
	font: 12px Helvetica, Arial, sans-serif;
	text-align: left;
	-moz-border-radius-topleft: 0;
	-webkit-border-top-left-radius: 0;
	border-top-left-radius: 0;
	-moz-border-radius-topright: 0;
	-webkit-border-top-right-radius: 0;
	border-top-right-radius: 0;
}

div.ac_results ul {
	margin: 0;
	padding: 0;
}

div.ac_results li {
	padding: 0 4px;

	cursor: pointer;
}

div.ac_results .ac_over {
	background: #888;
	color: #fff;
}

/* COMMON ELEMENTS */

#page {
	width: 960px;
	margin: 0 auto;

	text-align: left;
}

#content {
	clear: both;
}

#logo, #slogan, #currentUser {
	margin-top: 12px;
}

#logo, #slogan {
	float: left;
	padding: 6px 9px;
}

#logo {
	background: #0af;
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
	border-radius: 6px;
}

#logo a {
	color: #fff;
	text-decoration: none;
	text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3), 0px 0px 12px rgba(255, 255, 255, 0.5);
}

#slogan {
	font: 18px/48px AlexandriaFLF, Georgia, serif;
}

#currentUser {
	float: right;
}

#currentUser p {
	margin: 0;
	vertical-align: middle;
	font: 18px/58px Helvetica, Arial, sans-serif;
	text-align: right;
}

#currentUser img {
	vertical-align: middle;
}

#footer {
	border-top: 2px solid #ddd;
	clear: both;
	margin-top: 24px;

	font-size: 11px;
	text-align: center;
}


/* WIDGETS */

.ratingForm {
	float: left;
	min-width: 42px;
	position: relative;
	margin: 0 6px 3px 0;

	border: 1px solid #ddd;
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
	border-radius: 6px;
	font: bold 36px/42px 'AlexandriaFLF Bold', Georgia, serif;
	text-align: center;
}

.ratingForm input {
	display: none;
	position: absolute;
	bottom: 0;
	padding: 0;
	height: 100%;
	width: 50%;

	background: #aaa;
	-moz-border-radius: 0;
	-webkit-border-radius: 0;
	border-radius: 0;
	color: #fff;
	font: bold 16px Helvetica, Arial, sans-serif;
	text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3), 0px 0px 12px rgba(255, 255, 255, 0.5);
	border: 0;
}

.ratingForm:hover input {
	display: block;
}

.ratingForm input:hover {
	background: #888;
}

.ratingForm input.voteUp {
	left: 0;

	-moz-border-radius-bottomleft: 6px;
	-webkit-border-bottom-left-radius: 6px;
	border-bottom-left-radius: 6px;
	-moz-border-radius-topleft: 6px;
	-webkit-border-top-left-radius: 6px;
	border-top-left-radius: 6px;
}

.ratingForm input.voteDown {
	right: 0;

	-moz-border-radius-bottomright: 6px;
	-webkit-border-bottom-right-radius: 6px;
	border-bottom-right-radius: 6px;
	-moz-border-radius-topright: 6px;
	-webkit-border-top-right-radius: 6px;
	border-top-right-radius: 6px;
}


.userBadge {
	float: right;
	min-width: 42px;
	height: 42px;
	position: relative;
	margin: 0 0 3px 6px;
	overflow: hidden;

	border: 1px solid #ddd;
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
	border-radius: 6px;
	text-align: center;
}

.userBadge > * {
	display: none;
}

.userBadge > .icon, .userBadge .FB_Link {
	display: block;
	overflow: hidden;
	position: absolute;
	top: 0;
	right: 0;
}

.userBadge > .icon:hover, .userBadge .FB_Link:hover {
	background: transparent !important;
}

.userBadge > .icon img, .userBadge .FB_Link img {
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
	border-radius: 6px;
}

.userBadge:hover > * {
	display: block;
}

.userBadge > p {
	height: 21px;
	margin: 0 53px 0 3px;

	font-size: 11px;
	line-height: 21px;
	text-align: left;
}


/* FRONT PAGE */

#popularTopics {
	width: 20%;
	float: right;

	background: #fff;
	padding-left: 3px;
}

#popularTopics ol li a {
	display: block;
}

#featuredQuestions > div {
	margin-right: 6px;
	width: 39%;
	float: left;
}

#featuredQuestions p.more {
	float: left;
	width: 79%;
}

#featuredAnswers {
	clear: left;
}


/* TOPIC LIST */

#allTopics > div {
	width: 24%;
	margin-right: 6px;
	float: left;
}


/* LISTS */

ol.questions > li, .answers > h2, .answers > ol > li {
	clear: left;
}

ol.questions > li, .answers > ol > li {
	font-size: 12px;
	line-height: 14px;
	position: relative;
	min-height: 44px;
	padding: 4px;
	border: 1px solid #ddd;
        -moz-border-radius: 9px;
        -webkit-border-radius: 9px;
        border-radius: 9px;
	margin-bottom: 6px;
}

ol.questions > li.featured, .answers > ol > li.selected {
	padding: 3px;
	border: 2px solid #6d2;
}

ol.questions > li > a {
        -moz-border-radius: 6px !important;
        -webkit-border-radius: 6px !important;
        border-radius: 6px !important;
	margin-right: 47px;
	display: block;
}

ol.questions > li p.meta, .answers > ol > li p.meta {
	color: #777;
	font-size: 11px;
	border-bottom: 0;
	padding-bottom: 0;
	margin: 0 0 0 4px;
}

ol.questions > li p.meta {
	position: absolute;
	left: 0;
	bottom: 0;
}

ol.questions > li p.meta > span, .answers > ol > li p.meta span {
	padding-right: .5em;
}

ol.questions > li p.meta strong, .answers > ol > li p.meta strong {
	text-shadow: none;
	color: #666;
	padding: 0;
	background: transparent;
}

ol.questions > li p.meta input[type="submit"], .answers > ol >li p.meta input[type="submit"] {
	padding: 2px 5px;
}

.answers > ol > li p {
	line-height: 1.5;
	margin-top: 0;
}

.answers > ol > li > *:last-child {
	margin-bottom: 0;
}


/* QUESTION */

.question > .content {
	margin: 2em;
}

.question > .header > h1 {
	padding-bottom: 1px;
}

.question > .header > .action {
	float: right;
	margin-top: 3px;
}

.question > .header > .action > form {
	display: inline;
}

.question > .question > .content, .question > .question > .comments {
	margin: 0 265px 0 0;
}

.question > .answers {
	margin-right: 260px;
}


/* COMMENTS */

.comments {
	background: #eee;
	font-size: 11px;
	line-height: 12px;

	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
	border-radius: 6px;
	padding: 6px;
}

.comments > * {
	margin: 0;
}

.comments h2 {
	font: bold 14px Helvetica, Arial, sans-serif;
	line-height: 14px;
	border-bottom: none;
}

/* override FB css rule */
.comments.hidden {
	display: block !important;
}

.comments.hidden > * {
	display: none;
}

.comments.hidden h2 {
	display: block;
}

.comments.hidden h2, .comments.visible h2 {
	cursor: pointer;
}

.comments ol, .comments p, .comments form {
	margin: 3px 0 0 0 !important;
}

.comments ol li {
	border-bottom: 1px solid #ddd;
}

.comments input {
	font-size: 11px;
	line-height: 12px;
	vertical-align: baseline;
	margin: 0;
}

.comments input[type="submit"] {
	padding: 2px 4px 3px 4px;
}


/* SOCIAL FEATURES */

.social {
	text-align: center;
	width: 250px;
	float: right;
	margin: 0 0 10px 10px;
}

/* MISC */

#content > .ratingForm, #content > .userBadge, .question > .ratingForm, .question > .userBadge {
	margin-top: 2px;
}
