html {
	height: 100%;
}

body {
	font-size: 14px;
	font-family: Arial;
	padding: 0;
	margin: 0;
	height:100%;
	background: #fffbce;	
}

#container {
	position: relative;
	margin: 0 auto;
	width: 960px;
	min-height:100%;
	overflow-x:visible;
}

#content {
	position: relative;
	padding-bottom:40px;
	margin-left: 5px;
}

#stage1 {
	margin-bottom: 20px;
}

#stage2 {
	clear: both;
	border-top: 1px dashed #dec279;
	padding: 10px;
	padding-top: 20px;
}

#s2-left {
	float: left;
	width: 600px;
}

#stage2 h2 {

}

#leaderboard {
	width: 728px;
	height: 90px;
	position: absolute;
	top:15px;
	right:0;
}

#top-row {
	width: 100%;
}


.comments {
	
}

.comments .messages {
	margin: 0;
}

h2.comments-title {
	margin-bottom: 15px;
	text-indent: 15px;
}

.comment {
	padding: 15px;
	position: relative;
}

.comment .header {
	margin-bottom: 10px;
	font-size: 16px;
}

.comment .header .name {
	float:left;
	margin-right: 20px;
	font-weight: bold;
}

.comment .header .comdate {
	float:right;
	color: #754c24;
	font-size: 12px;
}

.comment .header .comdate .date {
	float:left;
	margin-right: 10px;
}

.comment .header .comdate .time {
	float:left;
}

.comment .content {
	font-size: 14px;
}

.comment .content p {
	margin-bottom: 8px;
}


.odd {
	background:#fcf7c4;
}

.comment .counter {
	position: absolute;
	top:0px;
	right:0px;;
	color:#fcf7c4;
	font-size: 14px;
	font-weight: bold;
}

.odd .counter {
	color:#fffbce;
}

.just-posted {
	display: none;
	background: #fff;
}


#header-right {
	position: absolute;
	bottom: 0;
	right: 0;
	height: 60px;
	background: url('images/grayrowbg.png') 0 0 repeat-x;	
}

#header-right .left {
	background: url('images/grayrowleft.png') 0 0;
	width: 10px;
	height: 60px;
	position: absolute;
	top:0;
	left:0;
}

ul#user-top-menu {
	float:left;
	position: relative;
	margin-left: 10px;
	margin-right: 170px;
}

ul#user-top-menu li {
	float:left;	
}

ul#user-top-menu li a {
	line-height: 30px;
	padding: 0 20px;
	color: white;
	font-size: 16px;
	line-height: 60px;
	display: block;
	color: #BFBFBF;
	border-left: 1px solid #505050;
}

ul#user-top-menu li.first a {
	border: none;
}


ul#user-top-menu li.logout-link a {
	height: 60px;
	width: 20px;
	background: url('images/logout.png') 56% 50% no-repeat;
}

ul#user-top-menu li.logout-link a span {
	display: none;
}


ul#user-top-menu li a:hover,
ul#user-top-menu li.active a {
	color: white;
}


#atsiusk {
	position: absolute;
	width: 165px;
	height: 60px;
	top:0;
	right:0;
	background: url('images/atsiusk.png') 0 0 no-repeat;
}

#atsiusk a {
	height: 60px;
	padding: 0 20px;
	display: block;
	color: white;
	font-size: 20px;
	text-align: center;
	line-height: 22px;
	padding-top: 6px;
	padding-left: 22px;
}

#footer {
   position:absolute;
   bottom:0;
   left:0;
   width:100%;
   height:20px;   /* Height of the footer */
   margin-top: 10px;
}

#footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
	margin-left: 5px;
}

#footer ul li {
	float: left;
	margin-right: 10px;
	font-size: 12px;
	color: #444;
}

#left {
	width: 600px;
	float:left;
	position: relative;
}

#right {
	width:330px;
	float:right;
	position: relative;
}

.ad-right {
	margin-top: 20px;
	text-align: center;
	width: 100%;
}

h1, h2, h3, h4, h5 {
	margin: 0 5px 0 0;
	font-family: Trebuchet MS, Arial;
	color: #754c24;
}

p {
	margin: 0 5px 0 0;
	line-height: 140%;
}

ul, li {
	padding: 0;
	margin: 0;
	list-style: none;
}


#header {
	position: relative;
	margin-bottom: 15px;
}

h1#logo, div#logo {
	font-family: Trebuchet MS, Arial;
	margin: 0;
	padding: 0;
	width: 295px;
	height: 176px;
	background: url('images/mieli.png') 0 0 no-repeat;
	float:left;
	margin-top: 20px;
	margin-left: -4px;
	position: relative;
}

#logo a {
	display: block;
	width: 295px;
	height: 176px;
}

#logo a span {
	display: none;
}


#header-right .white-block {
	margin-top: 47px;
}


a, a:visited, a:active, a:link {
	text-decoration: none;
	color: #983600;
}

div.input {
	margin-bottom: 10px;
}

.content-top {
	margin-bottom: 15px;
}

.catnav ul {
	height: 28px;
	margin-left: 4px;
}

.catnav ul li {
	float: left;
	margin-right: 10px;
	height: 28px;
	background: url('images/navlileft.png') 0 0 no-repeat;
}

.catnav ul li.active,
.catnav ul li:hover {
	background: url('images/navlialeft.png') 0 0 no-repeat;
}

.catnav ul li.active a,
.catnav ul li:hover a {
	background: url('images/navliaright.png') 100% 0 no-repeat;
}

.catnav ul li a {
	line-height: 28px;
	display: block;
	padding: 0 8px;
	background: url('images/navliright.png') 100% 0 no-repeat;
	margin-right: -6px;
	color: white;
	font-weight: bold;
	font-size: 14px;
}

.category-list {
	width: 960px;
	margin-bottom: 10px;
}

.category-list .item {
	float:left;
	margin-right:12px;
	margin-bottom: 8px;
	position: relative;	
	width: 180px;
}


.round {
	background: url('images/left.png') 0 0 repeat-y;
	width: 100%;
}

.top-left {
	background: url('images/top-left.png') 0 0 no-repeat;
	position: absolute;
	top:0;
	left:0;
	height: 9px;
	width: 100%;
}

.top-right {
	background: url('images/top-right.png') 0 0 no-repeat;
	position: absolute;
	top:0;
	right:0;
	height: 9px;
	width: 10px;
}

.bottom-left {
	background: url('images/bottom-left.png') 0 0 no-repeat;
	position: absolute;
	bottom:0;
	left:0;
	height: 10px;
	width: 100%;
}

.bottom-right {
	background: url('images/bottom-right.png') 0 0 no-repeat;
	position: absolute;
	bottom:0;
	right:0;
	height: 10px;
	width: 10px;
}

.inner {
	background: url('images/right.png') 100% 0 repeat-y;
	padding: 10px 15px;
}

#upload-form-block {
	width: 500px;
}

.white-block {
	position: relative;
	background: url('images/wleft.png') 0 0 repeat-y;
}

.white-top-left {
	background: url('images/wtop-left.png') 0 0 no-repeat;	
}

.white-top-right {
	background: url('images/wtop-right.png') 0 0 no-repeat;	
}


.white-inner {
	background: url('images/wright.png') 100% 0 repeat-y;
	padding: 10px 15px;
}

.white-bottom-left {
	background: url('images/wbottom-left.png') 1px 0 no-repeat;	
}

.white-bottom-right {
	background: url('images/wbottom-right.png') 0 0 no-repeat;	
}


.category-list .item img.taxonomy-image {
	margin-top: 0;
	width: 180px;	
}

.category-list .item p.title {
	bottom:0;
	left:0;
	position: absolute;
	width: 180px;
	text-align: center;
	font-size: 14px;
	margin: 0;
	padding: 0;
	line-height: 30px;
	font-weight: bold;
	background: transparent url('images/70percentwhite.png');
}

.category-list .item p.title a {

	color:#404040;
}

.category-list .item p.control {
	font-size: 11px;
	position: absolute;
	top:0;
	left:0;
}

.category-list .item p.control {
	background: transparent url('images/70percentwhite.png');
	padding: 2px 3px;
}

.category-list .item p.control a {
	color: black;
}

table {
	width: 100%;
	border-collapse: collapse;
}

th, td {
	padding: 5px;
	vertical-align: top;
}

th {
	text-align: left;
}

table.moderate-images td,
table.moderate-images th {
font-size: 12px;
}

table.moderate-images th {
	background: #f7f7f7;
}

table.moderate-images td {
	border-top: 1px solid #ddd;
}

table.moderate-images td.controls {
	width: 70px;
	text-align: center;
}



.messages {
	margin-left: 5px;
	padding-bottom: 5px;
	width: 500px;
	font-weight: bold;	
}

.messages .msg {
	margin-bottom: 5px;
	position: relative;
}

.messages .err {
	color: brown;
}

.messages .win {
	color: #609d14;
}

.messages .info {
	color:#444;
}

h1 {
	margin-bottom: 10px;
}

.cat-images {
	width: 960px;
}

.cat-images .cat-image {
	margin-right: 12px;
	margin-bottom: 12px;
	float:left;
	position: relative;
	width: 180px;
	height: 180px;
}

.cat-images .cat-image img {
	width: 180px;
	height: 180px;

}


.small-cat-images .cat-image {
	margin: 5px;
	width: 80px;
	float:left;
	position: relative;

}

.small-cat-images .cat-image img {
	width: 80px;
	height: 80px;
}

.small-cat-images .active-image{
	margin: 3px;
	padding: 2px;
	padding-bottom: 0;
	margin-bottom: 5px;
	background: orange;
}

.pager {
	clear: both;
	margin-bottom: 5px;
}

.pager ul.pages {
	padding: 0;
	margin: 0;	
	list-style: none;
}

.pager ul.pages li {
	float:left;
	position: relative;
	list-style: none;
	height: 24px;
}

.pager ul.pages li a {
	padding: 0 5px;
	line-height: 24px;
}

.pager ul.pages li.active a {
	color: black;
	font-weight: bold;
}

#admin-menu {
	margin: 0;
	padding: 0;
	list-style: none;
	margin-bottom: 15px;
	padding-bottom: 5px;
}

.image {
	position: relative;
}

.mielas {
	position: absolute;
	top:0;
	left:0;
	z-index: 100;
}

.image-post .image-info {
	margin-top: 10px;
}

.image-post p.source, 
.image-post p.uploader {
	margin-bottom: 3px;
	color: #444;
}

.mieli-side-block {
	margin-bottom: 20px;
}

#share-link-input {
	width: 290px;
	font-size: 18px;
}

.block-content {
	padding: 0 5px;
}

.mieli-side-block p.title {
	margin-bottom: 8px;
	font-size: 20px;
	color: #557329;
	font-weight: bold;
}

.mieli-side-block h1.image-title {
	margin-bottom: 5px;
	font-size: 24px;
}

.image-info p.image-description {
	margin-bottom:10px;
}

.image-info p.control {
	margin-bottom:10px;
	color: #444;
}

.image-info p.source {
	margin-bottom:10px;
	color: #555;
}


.share-link {
	margin-bottom: 10px;
}

.share-facebook {
	float:left;
	margin-right: 20px;
	margin-top: 2px;
}

.share-twitter {
	margin-right: 20px;
	float:left;
}

.image-post {
	width: 600px;
}

.image {
	text-align: center;
}

.image .prev {
	position: absolute;
	top:0;
	left: 0;
}

.image .next {
	position: absolute;
	top:0;
	right: 0;
}

.prev a,
.next a {
	display: block;
}

.prev a {
	/*background: url('images/prev.png') 0 0 no-repeat;*/
}

.next a {
	/*background: url('images/next.png') 100% 0 no-repeat;*/
}


.prev a span,
.next a span {
	display: none;
}

.next a {
	text-align: right;
}
.prev a {
	text-align: left;
}

.prev a img, .next a img {

}



a img {
	border: none;
}

#share-block {
	height: 110px;
}

.clearfix:after {
	content: ".";
	display: block;
	clear: both;
	visibility: hidden;
	line-height: 0;
	height: 0;
}
 
.clearfix {
	display: inline-block;
}
 
html[xmlns] .clearfix {
	display: block;
}
 
* html .clearfix {
	height: 1%;
}
