/* Start of CMSMS style sheet 'Layout: default' */
/*****************
browsers interpret margin and padding a little differently, 
we'll remove all default padding and margins and
set them later on
******************/
* {
margin:0;
padding:0;
}

/*
Set initial font styles
*/
body {
   text-align: left;
   font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
   font-size: 75.01%;
   line-height: 1em;
}

/*
set font size for all divs,
this overrides some body rules
*/
div {
   font-size: 1em;
}

/*
if img is inside "a" it would have 
borders, we don't want that
*/
img {
   border: 0;
}

/*
default link styles
*/

/* set all links to have underline and bluish color */

a, a:link, a:active, a:visited{
   text-decoration: none;
   background-color: inherit; 
   color: #C5257A;
   line-height: 1.2em;
   margin:0;
   padding: 0;
}


/* remove underline on hover and change color */
a:hover {
   text-decoration: none;
   color: #555;
}

/*****************
basic layout 
*****************/
body {
   background-color: #000;
   color: #555;
   margin: 0;    /* gives some air for the pagewrapper */

}

/* center wrapper, min max width */
div#pagewrapper {
   margin: 0 auto;       /* this centers wrapper */
   width: 980px;
   color: #555;
   background-color: #FFF;
}

/*** header ***
we will hide text and replace it with a image
we need to assign a height for it so that the image wont cut off
*/
div#header {
   width: 980px;
   height: 60px;    /* adjust according your image size */
   float: left;
   background-image: url('http://www.fclahti.fi/uploads/images/layout/topbar.jpg')
}

div#leftbar {
   float: left;
   width: 160px;
   background: #FFF url('http://www.fclahti.fi/uploads/images/layout/leftbar.jpg') no-repeat;
   margin: 0;
   height: 620px;
}

div#vahvemmat {
   float: left;
   width: 140px;
   height: 112px;
   background: #FFF;
   margin: 256px 0 0 9px;
   border: 1px solid #000;
}

div#vahvemmat img {
   margin: 0;
   padding: 0;
   border: none;
   overflow: hidden;
}

div#poll {
   float: left;
   width: 140px;
   background: #FFF;
   margin: 0;
   margin: 10px 0 0 9px;
   border: 1px solid #000;
}

div#content {
   background-color: #FFF;
   width: 660px;
   float: left;
}

div#main {
   float: left;
   margin:  20px;
}

div#sidebar {
   float: left;        /* set sidebar on the left side. Change to right to float it right instead. */
   width: 26%;     /* sidebar width, if you change this please also change #main margins */
   display: inline;  /* FIX IE double margin bug */
   margin-left: 0;
   float: left;
}

div#bannerbar {
   width: 140px;
   background-color: #FFF;
   float: right;
   margin-top: 10px;
   margin-right: 12px;
}

div#seuraava_o, div#edellinen_o {
   border: 1px solid #CCC; 
   background-color: #FFF;
   width: 160px;
   height: 130px;
   margin: 10px 0 0px 0;
   float: left;
}

div#sarjataulukko {
   border: 1px solid #CCC; 
   background: #FFF;
   width: 160px;
   margin: 10px 0 0px 0;
   float: left;
}

div#footer {
   clear: both;       /* keep footer below content and menu */
   color: #C5257A;
   background-color: #FFF; /* same bg color as in header */
   margin: 0;
   padding: 0;
}

div#footer p {
   font-size: 0.8em;
   padding: 10px 0 10px 0;       /* some air for footer */
   text-align: center;  /* centered text */
   margin: 0;
   color: #C5257A;
}

div#footer p a {
   color: #C5257A; /* needed becouse footer link would be same color as background otherwise */
}

/* as we hid all hr for accessibility we create new hr with extra div element */
div.hr {
   height: 1px;
   padding: 1em;
   border-bottom: 1px dotted black;
   margin: 1em;
}

/* relational links under content */
div.left49 {
  width: 49%; /* 50% for both left and right might lead to rounding error on some browser */
}

div.right49 {
  float: right;
  width: 49%;
  text-align: right;
}




/********************
CONTENT STYLING
*********************/
div#content {

}

/* HEADINGS */
div#content h1 {
   color: #555; 
   font-size: 1.5em; 
   text-align: left; 
   padding-bottom: 20px;
   line-height: 1.5em;
   margin: 0;
}

div#content h2 {
   color: #555; 
   font-size: 1.3em; 
   text-align: left; 
   padding-bottom: 20px;
   line-height: 1.3em;
   margin: 0;
   font-weight: bold;
}

div#content h3 {
   color: #555; 
   font-size: 1.2em;
   line-height: 1.2em;
   margin: 0;
   font-weight: bold;
   padding-bottom: 20px;
}
div#content h4 {
   color: #555; 
   font-size: 1.1em;
   line-height: 1.1em;
   margin: 0;
   font-weight: bold;
}
div#content h5 {
   color: #555; 
   font-size: 1em;
   line-height: 1em;
   margin: 0;
   font-weight: bold;
}
h6 {
   color: #555; 
   font-size: 1em;
   line-height: 1em;
   margin: 0;
   font-weight: bold;
}
/* END HEADINGS */

/* TEXT */
p {
   font-size: 1em;
   margin: 0;
   line-height: 1.2em;
   padding-bottom: 20px;
}

blockquote {
   border-left: 10px solid #ddd;
   margin-left: 10px;
}
strong, b {
/* explicit setting for these */
   font-weight: bold;
}
em, i {
/* explicit setting for these */
   font-style:italic;
}

/* Wrapping text in <code> tags. Makes CSS not validate */
code, pre {
 white-space: pre-wrap;       /* css-3 */
 white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
 white-space: -pre-wrap;      /* Opera 4-6 */
 white-space: -o-pre-wrap;    /* Opera 7 */
 word-wrap: break-word;       /* Internet Explorer 5.5+ */
 font-family: "Courier New", Courier, monospace;
 font-size: 1em;
}

pre {
   border: 1px solid #000;  /* black border for pre blocks */
   background-color: #ddd;
   margin: 0 1em 1em 1em;
   padding: 0.5em;
   line-height: 1.5em;
   font-size: 90%;


}

/* Separating the divs on the template explanation page, with some bottom-border */
div.templatecode {
  margin: 0 0 2.5em;
}

/* END TEXT */

/* LISTS */
/* lists in content need some margins to look nice */
div#main ul,
div#main ol,
div#main dl {
   font-size: 1.0em;
   line-height: 1.2em;
   margin: 0 0 0 1.5em 0;
   position: relative;
   top: -1em;
}

div#main ul li,
div#main ol li {
   margin: 0 0 0.25em 3em;
}

/* definition lists topics on bold */
div#main dl dt {
   font-weight: bold;
   margin: 0 0 0 1em;
}
div#main dl dd {
   margin: 0 0 1em 1em;
}

div#main dl {

  padding-bottom: 1em;
  border-bottom: 1px solid #c0c0c0;
}


/* END LISTS */



/* TABLES*/

th {
   font-weight: bold;
   text-transform: uppercase;
   font-size: 0.8em;
   padding: 1px 0 1px 0;
}

td {
   padding: 3px 0 3px 0;
   font-size: 1em;
   text-decoration: none;
}
td.lyhenne
{
width: 200px;
}
td.ottelut, td.voitot, td.tappiot, td.tasat,td.pisteet,td.ero
{
width: 80px;
}
td.number
{
width: 40px;
}
tr.bgrow td
{
background-color: #dddddd;
}
td.o, td.p, th.tho, th.thp
{
padding: 2px 5px 2px 5px;
}
td.lyh
{
padding: 2px 0px 2px 3px;
}
td.nbr
{
padding: 2px 0 2px 3px;
}
/* END TABLES */



/* FRONTPAGE STYLES */

div#edellinen_o h2, div#seuraava_o h2, div#sarjataulukko h2, div#poll h2, div#vahvemmat h2{
   color: #FFF;
   font-size: 0.8em;
   line-height: 1em;
   background: #C5257A;
   text-transform: uppercase;
   text-decoration: none;
   text-align: left;
   padding: 2px 10px 2px 10px;
   border: none;
   margin: 0;
   border-bottom: 1px solid #CCC;
}

div#bannerbar img {
   border: 1px solid #CCC;
   display: block;
}

div#bannerbar p {
   display: block;
   margin: 0;
   padding: 0 0 10px 0;
}

/* KUMPPANIT STYLES */

div#kumppanit img{
   margin: 10px;
}

div#kumppanit p, a, h3{
   padding: 10px 0 0 0px;
}

/* POPUP STYLES */

#popupCloseButton
{
position: absolute;
top: 12px;
left: 491px;
z-index: 2;
width:21px;
height:21px;
background-image: url('http://www.fclahti.fi/uploads/images/layout/sulje.png');
background-repeat: no-repeat;

	background-position: top;
	display: block;
	overflow: hidden;
	margin: 0px;
	margin-top:0px;
	padding-right: 0px;
	padding-bottom: 0px;
	padding-left: 0px;
	border-style:none;
	cursor: hand;
}
#popupcloselink
{
position: absolute;
top: 12px;
left: 491px;
z-index: 2;
border-style:none;
}
#popupcontainer
{

display = 'none';
/*background-color: #C5257A;*/
background-image:url('http://www.fclahti.fi/uploads/images/layout/tausta.png');
	background-repeat: no-repeat;
width: 525px;
height: 425px;
position: absolute;
top: 50%;
left: 50%;
margin-left: -263px;
margin-top: -212px;
z-index: 999;
}
#popupcontent
{
background-color: white;
margin: 12px;
width: 480px;
height: 380px;
}
/* End of 'Layout: default' */

