html, body {
	margin: 0;
	padding: 0;
}

body {
	margin: 0 auto;
	font: 78%/1.4 "Lucida Grande", Verdana, Arial, sans-serif;
	min-width: 840px;
	min-height: 400px;
	text-align: center;
	background: #3f3f3f url(/i/images/bg/body_bg.png) top left repeat-x;
}

img {
	border: none;
}

/* head */

div#logo {
	position: absolute;
	top: 40px;
}
div#logo img {
	margin-right: 8px;
}

div#head {
	width: 840px;
	background: #2b2b2b url(/i/images/bg/head_end.png) bottom left no-repeat;
}

div#head a, div#head a:hover {
	color: #bfd627;
	text-decoration: underline;
}

div#head:after, div.clear {
	content: ".";
	display: block;
	height: 0;
	width: 0;
	clear: both;
	visibility: hidden;
}

* html div#head, * html div#content {
	height: 1%;
}

div#head div#head-what, div#head div#head-how, div#head div#head-stats {
	float: left;
	width: 240px;
	margin-top: -8px;
	padding: 20px 20px 40px 20px;
	color: white !important;
	font-size: 1.05em;
}

div#head div#head-how {
	width: 239px;
	border-right: 1px solid #3F3F3F;
	border-left: 1px solid #3F3F3F;
	height: 7em; /* fixme: one fine day, here will be something bit more scalable	*/
}

div#head div#head-stats {
	width: 239px;
}

/* content */

div#container {
	margin: 118px auto 0 auto;
	width: 840px;
	padding-top: 8px;
	background: transparent url(/i/images/bg/head_top.png) top left no-repeat;
	text-align: left;
}

div#content {
	border-top: 8px solid #82AC00;
	background: white url(/i/images/bg/content_bg.png) top left repeat-y;
	color: #292929;
}

div#content a, div#content a:hover {
	text-decoration: underline;
	color: #292929;
}

div#content h1 {
	font: 1.7em/0.7 Arial, sans-serif;
	font-weight: bold;
	margin: 0 0 16px;
}

div#content h2 {
	font: 1.3em/1 Arial, sans-serif;
	font-weight: bold;
	margin: 0 0 5px;
}

div#content-left, div#content-right, div#content-center {
	width: 239px;
	padding: 20px;
	float: left;
}

div#content-wide {
	border-top: 8px solid #82AC00;
	width: 800px;
	padding: 20px;
	background: white;
	float: left;
}

div#content-left p {
	font-weight: bold;
	font-size: 1.05em;
}

div#content-left small {
	font-weight: normal;
	white-space: nowrap;
}

div#content-right p {
	margin: 2px 0;
}

div#content-right a, div#content-right a:hover {
	color: #176fac;
}

div#content-right h2 a {
	line-height: 1.2;
	color: #292929;
	text-decoration: none;
}


h1#blog {
	margin-top: 20px !important;
}

span.date {
	font-weight: bold;
	font-size: 0.8em;
}

/* tube content */

div#right-wrap {
	float: right;
	width: 559px;
}

div#content-right-span {
	width: 519px;
	padding: 20px;
	background: white;
	border-top: 1px solid #BABABA;
	clear: both;
}

/* tag cloud */

div#tag-cloud a, div#tag-cloud a:hover {
	color: #176fac;
	text-decoration: none;
	padding-bottom: 2px;
	margin-bottom: 10px;
}
div#tag-cloud a:hover {
	text-decoration: underline;
}

div#tag-cloud .size-xxs {
	font-size: 0.8em;
}

div#tag-cloud .size-xs {
	font-size: 0.9em;
}

div#tag-cloud .size-s {
	font-size: 1em;
}

div#tag-cloud .size-m {
	font-size: 1.1em;
}

div#tag-cloud .size-l {
	font-size: 1.2em;
}

div#tag-cloud .size-xl {
	font-size: 1.3em;
}

div#tag-cloud .size-xxl {
	font-size: 1.5em;
}

div#tag-cloud .size-xxxl {
	font-size: 1.7em;
}

/* footer */

div#legal {
	margin-top: 4px;
	padding: 10px 8px 12px 8px;
	background: #565656 url(/i/images/bg/footer.png) bottom left no-repeat;
	margin-bottom: 30px;
}

div#legal img {
	margin-right: 5px;
	vertical-align: -25%;
}

* html div#legal img {
	vertical-align: middle;
}

div#legal a, div#legal a:hover {
	color: white;
	text-decoration: none;
	font-size: 0.9em;
}

#moods p small {
    white-space: nowrap;
}