body, html {
	margin: 0;
	padding: 0;
	background: #1e3249 url(../img/main_bg.gif) no-repeat bottom fixed;
	text-align:center;
	width:100%;
	height:100%;
	font-family: verdana, tahoma, arial; 
	font-size: 13px; 
}
h1, h2, h3, h4, h5 {
	padding: 0;
	margin: 10px 3px;
}

/* MAIN ELEMENTS */
#container {
	background:url(../img/cont_bg.gif) repeat-y;
	position:relative;
	margin:0px auto;
	padding:0;
	text-align:left;
  	width:808px;
}
#upper {
	width: 800px;
	margin: 0px auto;
	padding: 0;
	}
/* graywhite fade*/
#content {
	display: inline; /* this hopefully fixes the ie double border bug ------ */
	width: 800px;
	position: relative;
	background: url(../img/cont_v_bar.gif) repeat-x top;	
	margin: 0px 4px;
	padding: 0;
	min-height: 300px;
	float:left;
	}
#contentmain {
	padding: 0px 0px;
	position: relative;
	width: auto;
	margin: 0px 4px;
	padding: 30px 40px;
}

#legal {
	clear: both;
	position: relative;
	text-align: center;
	margin: 10px 10px;
	padding: 3px 0px;
	font-family: verdana;
	font-size: 9px;
}

/* UPPER PART */
#pagehead {
	position: relative;
	background: #3c8bcd url(../img/top_bar.jpg) repeat-x;
	height: 104px;
	width: auto;	
	margin: 0;

}
#pagehead h1, h2 { display:none; }
#pagehead img {
	position: absolute;
	bottom: 0px;
}


#vote {
	position: relative;
	background: transparent url(../img/dot.gif) repeat-x bottom;
	padding-bottom: 25px;
}

#forum {
 	
}
#login {
	position:relative;
	left:0px;
	width:304px;
	padding:0px 45px 0px 0px;
	margin:0;
}

/* navigation pane */
#navigation {
	background: #0066cc url(../img/hbar.gif) repeat-x;
	position: relative;
	text-decoration: none;
	font-size: 12px;
	height: 29px;
}
#navigation ul
{
	border: 0;
	margin: 0;
	padding: 3px 0 3px 0;
	list-style-type: none;
	text-align: center;
}

#navigation ul li { 
	
	display: inline;
	text-align: center;
	padding: 0;
	margin: 0;
}

#navigation ul li a
{
	background: #0066cc;
	width: auto;
	padding: 0 8px;
	height: 21px;
	float: left;
	border-top: 1px solid #000000;
	border-left: 1px solid #000000;
	border-bottom: 1px solid #000000;
	border-right: none;
	margin: 0 0 0 0;
	color: #f5d7b4;
	text-decoration: none;
	display: block;
	text-align: center;
	font: normal 11px/18px "Lucida Grande", "Lucida Sans Unicode", verdana, lucida, sans-serif;
}

#navigation ul li a:hover
{
	color: #fff;
	background: #417ed5;
}


#navigation a:active
{
	background: #417ed5;
	color: #fff;
}

#navigation li#active a
{
	background: #417ed5;
	border: 1px solid #c60;
	color: #fff;
}
table.draft {
 	width: 80%;
 	margin: 10px auto;
  border: 0;
  background: transparent;
  border-collapse:collapse;
  font-family:arial,sans-serif;
}
td.draft
{
	background: transparent;
  	border: 0px;
  	padding:5px;
} 

/* table stuff */
table.board {
	width: 100%;
}
table {
 	width: 80%;
 	margin: 10px auto;
  	border:1px solid #000;
  	border-collapse:collapse;
  	font-family:arial,sans-serif;
}
td{
  	border:1px solid #000;
  	border-collapse:collapse;
  	padding:5px;
  	background: #f8f8f8;
} 

td.odd {
  	border:1px solid #000;
  	border-collapse:collapse;
  	padding:5px;
  	background: #ececec;
} 

th {
	border:1px solid #000;
  	background: #cdcdcd;
  	text-align: left;
  	padding: 5px;
}

/* Forms */
fieldset {
	margin: 20px 20px;
	width: auto;
	
}
fieldset div {
	margin: 0;
	padding:0;
	clear: both;
}
/* form helppi */
fieldset div span {
	display: none;
}
fieldset div:hover span {
	border: 1px solid #000;
	font-size: 9px;
	background: #ffffff;
	padding: 3px;
	margin-left: 25em;
	display: block;
	position: absolute;
	z-index: 100;
	width: auto;
	float: right;
}
* html fieldset div span {
	display: block;
	font-size: 9px;	
}
/* form error */
fieldset span {
	color: #ff0000;
}
label, fieldset div.cr p {
	margin: 3px;
	display: block;
	width: 13em;
	text-align: right;
	float: left;
}
fieldset div.cr label {
	text-align: left;
	margin-left: 13em;
	width: auto;
	float: none;
}
input, textarea
{
	background-color: #FFFFFF;
	color: #333333;
	font-size: 75%;
	font-family: Verdana, Helvetica, Arial, sans-serif;
}
select {
	background-color: #FFFFFF;
	color: #333333;
	font-size: 75%;
	font-family: Verdana, Helvetica, Arial, sans-serif;	
}
input.send {
	border: 0;
	padding: 0;
}
label.pakko {
	font-weight:bold;
}
/* ERROR kenttä */
span.error {
	color: #c02023;
	font-weight: bold;
	padding: 5px;
}
/* LINKIT */
A:link    { /*text-decoration: none;*/ color: #000040; }
A:visited { /*text-decoration: none;*/ color: #000040; }
A:active  { /*text-decoration: none;*/ color: #0E6D94; }
A:hover   { /*text-decoration: none;*/ color: #0E6D94; }

/* logout */
#logout {
	position: absolute;
	margin: 3px;
	right: 0px;
	top: 0px;
}
#logout A:link    { font-size: 10px; text-decoration: none; color: #ffffff; }
#logout A:visited { font-size: 10px; text-decoration: none; 	 color: #ffffff; }
#logout A:active  { font-size: 10px; text-decoration: none; color: #ffffff; }
#logout A:hover   { font-size: 10px; text-decoration: none; color: #ffffff; }

.admin {
	background: transparent url(../img/admin_bg.gif) no-repeat top left;
	border: 1px dotted #000000;
	padding: 10px;
	padding-left: 40px;
	margin: 10px 40px;
}

.date {
	color: #3544d1;
	line-height: 20px;
}

#content ul {
	padding-left: 0;
	margin-left: 4px;
	margin-top: 0;
}

#content li {
	list-style: none;
	margin: 0;
	
}
/* ADMIN ICONI */
.borderediconimage {
	padding-left: 8px;
	border: 0;
	
}
/* ETUSIVU */
#newarticles h3 {

}
.subject {
	font-weight: bold;
	
}
.text {
	font-size:90%;
	line-height: 20px;
	
}
.com {
	font-size:90%;
	padding-bottom: 25px;
	margin-bottom: 40px;
}

#right {
	/* position:absolute; */
	float: right;
	width: 300px;
	padding: 15px;
	margin-bottom:40px;
}
#left { 
	background: transparent url(../img/dot.gif) repeat-y right;
 	width: 437px;
	margin:0; 
	padding:0;
	padding: 15px;
	position: relative;
	margin-right: 300px;
	margin-bottom:40px;
	min-height: 450px;
}
html>body .leftbox
{
	height: auto;
	min-height: 450px
}
#newarticles {
	position: relative;
	background: transparent url(../img/dot.gif) repeat-x bottom;
	padding-bottom: 25px;
}
#newtournaments{
	position: relative;
}

#newnews{
	position: relative;
}

#login {
	text-align:center;
	width: 250px;
	position: relative;
	padding-bottom: 15px;
	background: transparent url(../img/dot.gif) repeat-x bottom;
}

p.date {
	display: inline;
	margin-top: 0.75em;
	margin-bottom: -0.5em;
	padding: 4px 10px;
	background-color: #7F7F7F;
	color: #FFFFFF;
	font-size: 85%;	
}

p.comments {
	display: inline;
	margin-top: 0.75em;
	margin-bottom: -0.5em;
	padding: 4px 10px;
	background-color: #C5C5C5;
	font-size: 85%;
}

input.password, input.username {
   color: #000000;
    font-family: arial,helvetica;
    font-size: 8pt;
    font-weight: 500;
    background-color: transparent;
    padding-left: 5px;
    width: 70px;
    height: 20px;
}

input.username {
    font-weight: 800;
    background: url(../img/user.gif);
    text-align:center;
    padding-right:10px;
    }
    
input.password {
    font-weight: 800;
    background: url(../img/pass.gif);
    text-align:center;
    padding-right:10px;
    } 
input.submit {
    margin-top:15px;
}