/*
Theme Name: Tenpai.net
Theme URI: http://tenpai.net/
Description: Mahjong-seura Tenpain sivuilla k&auml;ytetty WordPress-teema.
Version: 1.0
Author: Samuli Hirvonen
Author URI: http://ferv.org/
Tags: green, mahjong, fixed width, two columns

	The CSS, XHTML and design is released under GPL:
	http://www.opensource.org/licenses/gpl-license.php

*/

body {
	font: 75%/150% "Trebuchet MS", Tahoma, Arial;
	color: #333333;
	background: #cfd2bb url(images/body-bg.jpg) no-repeat center top;
	margin: 0px;
	width: 100%;
	display: table;
	height: 101%;
	position: absolute;
}

img {
	border: none;
}

h2 {
	clear: both;
	padding-top: 5px;
}

hr {
	display: block;
	background: url(images/hr.png) no-repeat center top;
	width: 590px;
	height: 27px;
	border: 0;
	padding: 0;
	margin-bottom: 5px;
}
	

a {
	color: #763712;
	text-decoration: none;
	outline: none;
}

a:hover {
	text-decoration: underline;
}

.PageBackgroundGlare
{
	position: absolute;
	width: 100%;
	height: 321px;
	left: 0;
	top: 0;
}

.PageBackgroundGlareImage
{
	background-image: url('images/Page-BgGlare.png');
	background-repeat: no-repeat;
	height: 321px;
	width: 307px;
	margin: 0;
}

#header {
	height: 252px;
	width: 853px;
	margin: 0 auto;
	position: relative;
}

#nav {
	position: absolute;
	left: 0px;
	right: 0px;
	bottom: 0px;
	list-style: none;
	font: bold 12px Georgia, "Times New Roman", Times, serif;
	text-transform: uppercase;
	padding-left: 20px;
	margin-bottom: 4px;
}
#nav li {
	float: left;
	padding: 0;
	margin-right: 22px;
	width: 150px;
	text-align: center;
}

#nav li#nav-logout {
	float: right;
	width: 100px;
}

#nav li#nav-logout a {
	color: #FFF;
	text-transform: none;
	font: normal 12px Georgia, "Times New Roman", Times, serif;
}

.rss {
	background:transparent url(images/rss.jpg) no-repeat;
	height:119px;
	width:43px;
	position:absolute;
	right: -42px;
	top: 255px;
	text-align:center;
	z-index: 2;
}

/****** Content ******/

#content {
	width: 898px;
	min-height: 800px;
	margin: 0 auto;
	position: relative;
	background: url(images/content-bg2.jpg);
	margin-top: 10px;
	background-position: 0px;
	padding-left: 0px;

}

.narrowcolumn {
	float: left;
	width: 580px;
	padding-left: 30px;
	}
	
.sticky {
	background: #fefff9;
	padding: 0 10px 10px;
	}
	
.sticky h2 {	
	padding-top: 10px;
	}

div.sticky hr {
	display: none;
}

div.sticky span.comments-num {
	display: none;
}

.entry {
	background: #fefff9;
	padding: 5px 10px 10px;
}

.post {
	margin: 0 0 40px;
	text-align: justify;
	}

.post h2 {
	position: relative;
	left: 0;
}

.post hr {
	display: block;
	}

/****** Sidebar ******/
#sidebar
{
	margin-left: 632px;
	padding-left: 10px;
	width: 233px;
	display: block;
	height: 100%;
	background: #FFC;
	position: absolute;
	}

#sidebar ul, #sidebar ul ol {
	margin: 0;
	padding: 0;
	}

#sidebar ul li {
	list-style-type: none;
	list-style-image: none;
}

#sidebar ul {
	margin-top: 5px;
	margin-bottom: 5px;
	padding-left: 10px;
}

/****** Search ******/
#searchbox {
	width: 233px;
	padding: 5px;
	position: relative;
	top: -16px;
	left: -20px;
	border: 0;
	background: #9ba269;
	height: 15px;
	color: #FFF;
}

#searchsubmit {
	display: none;
}


/****** Footer ******/
#footer {
	clear: both;
	background: url(images/footer-bg.jpg) no-repeat center top;
	margin: 0 auto;
	position: relative;
	width: auto;
	overflow: hidden;
}

#footer p {
	text-align: center;
	font-size: xx-small;
	color: #C60;
	padding-top: 10px;
}

/****** Submenu navigation ******/

#submenu {
	list-style-type: none;
	list-style-image: none;
	clear: both;
}

#submenu ul {
	margin-bottom: 15px;
}

#submenu li {
	float: left;
	padding-right: 15px;
}

/****** NNGALLERY ******/

/*
CSS Name: Default Styles
Description: NextGEN Default Gallery Stylesheet
Author: Alex Rabe
Version: 1.50

This is a template stylesheet that can be used with NextGEN Gallery. I tested the
styles with a default theme Kubrick. Modify it when your theme struggle with it,
it's only a template design

*/

/* ----------- Album Styles Extend -------------*/

.ngg-albumoverview {
	margin-top: 10px;
	width: 100%;
	clear:both; 
	display:block !important;
}

.ngg-album {
    height: 100%;
    padding: 5px;
    margin-bottom: 5px;
    border: 1px solid #fff;
}

/* IE6 will ignore this , again I hate IE6 */
/* See also http://www.sitepoint.com/article/browser-specific-css-hacks */
html>body .ngg-album {
    overflow:hidden;
    padding: 5px;
    margin-bottom: 5px;
    border: 1px solid #cccccc;
} 

.ngg-album {
	overflow: hidden;
	padding: 5px;
	margin-bottom: 5px;
	border: 1px solid #cccccc;
}

.ngg-albumtitle {
	text-align: left;
 	font-weight: bold;
	margin:0px;
	padding:0px;
	font-size: 1.4em;
	margin-bottom: 10px;
}

.ngg-thumbnail {
	float: left;
	margin-right: 12px;
}

.ngg-thumbnail img {
	background-color:#FFFFFF;
	border:1px solid #A9A9A9;
	margin:4px 0px 4px 5px;
	padding:4px;
	position:relative;
}

.ngg-thumbnail img:hover {
	background-color: #A9A9A9;
}

.ngg-description {
	text-align: left;
}

/* ----------- Album Styles Compact -------------*/

.ngg-album-compact {
	float:left;
	height:180px;
	padding-right:6px !important;
	margin:0px !important; 
	text-align:left;
	width:120px;	
}

.ngg-album-compactbox {
	background:transparent url(albumset.gif) no-repeat scroll 0%;
	height:86px;
	margin:0pt 0pt 6px !important;
	padding:12px 0pt 0pt 7px !important;
	width:120px;
}


.ngg-album-compactbox .Thumb {
	border:1px solid #000000;
	margin:0px !important;
	padding:0px !important;
	width:91px; 
	height:68px;
}

.ngg-album-compact h4 {
	font-size:15px;
	font-weight:bold;
	margin-bottom:0px;
	margin-top:0px;
	width:110px;
}

.ngg-album-compact p {
	font-size:11px;
	margin-top:2px;
}

/* ----------- Gallery style -------------*/

.ngg-galleryoverview {
	overflow: hidden;
	margin-top: 10px;
	width: 100%;
	clear:both; 
	display:block !important;
}

.ngg-galleryoverview .desc {
/* required for description */
   margin:0px 10px 10px 0px;
   padding:5px;
}

.ngg-gallery-thumbnail-box {
	float: left;
}

.ngg-gallery-thumbnail {
	float: left;
	margin-right: 5px;
	text-align: center;
}

.ngg-gallery-thumbnail img {
	background-color:#FFFFFF;
	border:1px solid #A9A9A9;
	display:block;  
	margin:4px 0px 4px 5px;
	padding:4px;
	position:relative;
/* -------------- Rounded corners ---------------*/

	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;

/* ------------ Rounded corners end -------------*/
}

.ngg-gallery-thumbnail img:hover {
	background-color: #A9A9A9;
} 

.ngg-gallery-thumbnail span {
	/* Images description */
	font-size:90%;
	padding-left:5px;
	display:block;
}

.ngg-clear {
	clear: both;
}

/* ----------- Gallery navigation -------------*/

.ngg-navigation {
	font-size:0.9em !important;
	clear:both !important;
	display:block !important;
	padding-top:15px;
	text-align:center;
	
}

.ngg-navigation span {
	font-weight:bold;
	margin:0pt 6px;
}

.ngg-navigation a.page-numbers,
.ngg-navigation a.next,
.ngg-navigation a.prev, 
.ngg-navigation span.page-numbers,
.ngg-navigation span.next,
.ngg-navigation span.prev {
	border:1px solid #DDDDDD;
	margin-right:3px;
	padding:3px 7px;
}

.ngg-navigation a.page-numbers:hover,
.ngg-navigation a.next:hover,
.ngg-navigation a.prev:hover, 
.ngg-navigation span.page-numbers:hover,
.ngg-navigation span.next:hover,
.ngg-navigation span.prev:hover {
	background-color: #0066CC;
	color: #FFFFFF !important;
	text-decoration: none !important;
}

/* ----------- Image browser style -------------*/

.ngg-imagebrowser {
	
}

.ngg-imagebrowser h3 {
	text-align:center;
}

.ngg-imagebrowser img {
	border:1px solid #A9A9A9;
	margin-top: 10px; 
	margin-bottom: 10px; 
	width: 100%;
	display:block !important;
	padding:5px;
}

.ngg-imagebrowser-nav {
	padding:5px;
	margin-left:10px;	
}

.ngg-imagebrowser-nav .back {
	float:left;
	border:1px solid #DDDDDD;
	margin-right:3px;
	padding:3px 7px;
}

.ngg-imagebrowser-nav .next {
	float:right;
	border:1px solid #DDDDDD;
	margin-right:3px;
	padding:3px 7px;
}

.ngg-imagebrowser-nav .counter {
	text-align:center;
	font-size:0.9em !important;
}

.exif-data {
  	margin-left: auto !important;
    margin-right: auto !important;	
}

/* ----------- Slideshow -------------*/
.slideshow {
	margin-left: auto; 
	margin-right: auto;
	text-align:center;
	outline: none;	
}

.slideshowlink {
	
}

/* ----------- Single picture -------------*/
.ngg-singlepic {
	background-color:#FFFFFF;
	display:block;  
	padding:4px;
}

.ngg-left {
	float: left;
	margin-right:10px;
}

.ngg-right {
	float: right;
	margin-left:10px;
}

.ngg-center {
  	margin-left: auto !important;
    margin-right: auto !important;
}

/* ----------- Sidebar widget -------------*/
.ngg-widget,
.ngg-widget-slideshow {
	overflow: hidden;
	margin:0pt;
	padding:5px 0px 0px 0pt;
	text-align:left;
}

.ngg-widget img {
	border:2px solid #A9A9A9;
	margin:0pt 2px 2px 0px; 
	padding:1px; 
}

/* ----------- Related images -------------*/
.ngg-related-gallery {
	background:#F9F9F9;
	border:1px solid #E0E0E0;
	overflow:hidden;
	margin-bottom:1em;
	margin-top:1em;
	padding:5px;
}
.ngg-related-gallery img {
	border: 1px solid #DDDDDD;
	float: left;
	margin: 0pt 3px;
	padding: 2px;
	height: 50px;
	width:  50px;
}

.ngg-related-gallery img:hover {
	border: 1px solid #000000;
} 

/* ----------- Gallery list -------------*/

.ngg-galleryoverview ul li:before {
	content: '' !important;
}

.ngg-gallery-list {
	list-style-type:none;
	padding: 0px !important;
	text-indent:0px !important;	
}

.ngg-galleryoverview div.pic img{
	width: 100%;	
}

.ngg-gallery-list li {
	float:left;
	margin:0 2px 0px 2px !important;
	overflow:hidden;
}

.ngg-gallery-list li a {
	border:1px solid #CCCCCC;
	display:block;
	padding:2px;
}

.ngg-gallery-list li.selected a{
	-moz-background-clip:border;
	-moz-background-inline-policy:continuous;
	-moz-background-origin:padding;
	background:#000000 none repeat scroll 0 0;
}

.ngg-gallery-list li img {
	height:40px;
	width:40px;	
}

li.ngg-next, li.ngg-prev {
	height:40px;
	width:40px;	
	font-size:3.5em;
}

li.ngg-next a, li.ngg-prev a  {
	padding-top: 10px;
	border: none;
	text-decoration: none;
}
