/******************************************************************************************
CSS RESET
******************************************************************************************/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	/*vertical-align: baseline;*/
}
ol, ul { list-style-type: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after { content: ''; content: none; }

/* remember to define focus styles! */
:focus { outline: 0; }

/* remember to highlight inserts somehow! */
ins { text-decoration: none; }
del { text-decoration: line-through; }

/* tables still need 'cellspacing="0"' in the markup */
table { border-collapse: collapse; border-spacing: 0; }
textarea { resize: none; }

/**************************************/

html, body {
	height: 100%;
	background: #d7e1cd;
}

body {
	font: normal 62.5%/1.5 Arial, Helvetica, sans-serif;
	margin: 0;
	padding: 0;
	text-align: left;
	position: relative;
	background: #d7e1cd;
	color: #333;
	height: 100%;
}

/************************************
Basic elements
 ************************************/

p {
	margin: 0;
	padding: 0;
}
a { 
	color: #0033cc;
	outline: none; 
}
a:visited, a:active {
	text-decoration: underline;
}
a:visited {
	color: #551a8b;
}
a:hover {
	text-decoration: none;
}
img {
	margin: 0;
	padding: 0;
	border: 0;
}
#header-container h1 a, #header-container h1 {
	background: transparent url('images/logo-optikkofi.png') no-repeat top left;
	height:49px;
	width:98px;
}
#header-container h1 a, #header-container h1 a:active{
	color: #333;
	text-decoration:none;
	display:block;
}
#header-container  h1 a:hover{
	text-decoration:none;
}
#header-container h1 span {
	color: #fff;
	font-size: 18px;
	visibility:hidden;
}
h1, h2, h3, h4 {
	margin: 0 0 0.5em 0;
	padding: 0;
	text-align: left;
	font-weight: bold;
}
h1 {
	font-size: 2.2em;
	color: #333;
	line-height:20px;
	margin-top:-5px;
	position: relative;
}
h1 a, h1 a:active{
	color: #333;
	text-decoration:none;
}
#content h1 a:hover{
	text-decoration:underline;
}
h2 {
	font-size: 2.2em;
	color: #333;
	line-height:20px;
	margin-top:-5px;
	position: relative;
}
h2 a, h2 a:active{
	color: #333;
	text-decoration:none;
}
#content h2 a:hover{
	text-decoration:underline;
}
h2 a:visited {
	color: #333;
	text-decoration:none;
}
h3 {
	font-size: 1.5em;
	color: #52790e;	
}
h4 {
	font-size: 1.3em;
	color: #333;
}
h5 {
	font-size: 1.3em;
	color: #333;
}
sub {
    vertical-align: baseline;
    position: relative;
    bottom: -0.25em;
    font-size: smaller;
}
sup {
    vertical-align: baseline;
    position: relative;
    bottom: 0.33em;
    font-size: smaller;
}
ul, li {
	list-style-type: none;
	margin: 0;
	padding: 0;
}
li {
	margin: 0;
	padding-left: 8px;
}
li p {
	margin: 0;
}
object {
	margin: 0;
	padding: 0;
}

/************************************
Layout
***********************************/

#wrapper {
	min-height: 100%;
	height: auto !important;
	height: 100%;
	margin: 0 auto -144px; 
}
#header {
	padding: 0;
	clear: both;
	min-height: 79px;
	height: auto !important;
	height: 79px;
	position: relative;
	background: #003810;
}
#header #logo {
	position: absolute;
	left: 0;
	top: 20px;
	height:49px;
}
#search {
	height: 48px;
	position: absolute;
	top: 20px;
}
#topMenu{
	position: absolute;
	top: 7px;
	right: 0;
	font-size:11px;
	color:#d7e1cd;
}
#topMenu a, #topMenu a:active, #topMenu a:visited{
	color:#d7e1cd;
	text-decoration:none;
}
#topMenu a:hover{
	color:#fff;
	text-decoration:underline;
}
#search {
	right: 0px;
}
#page {
	margin: 0 auto;
	text-align: left;
	position: relative;
	height: auto;
	background: #d7e1cd url('images/page-background.gif') repeat-x 0px 0px;
}
#navigation {
	clear: both;
	height: 40px;
	background: #639111 url('images/navigation-background.gif') repeat-x top left;
}
#header-container, #navigation-container, #footer-container {
	margin: 0 auto;
	text-align: left;
	position: relative;
	width: 960px;
}
#header-container {
	background: #003810 url('images/header-background.gif') repeat-y top center;
	height: 79px;
}
#container {
	padding: 0 0 0 0;
	position: relative;
	clear: both;
	width: 960px;
	margin: 0 auto;
	min-height: 400px;
	height: auto !important;
	height: 400px;
}
#main {
	width: 675px;
	float: right;
	padding-top: 6px;
}
#sidebar {
	width: 270px;
	float: left;
	margin:0;
	padding:0;
	}
#content {
	margin: 0;
	background-color:#FFFFFF;
}
#footer {
	clear: both;
	height: 144px;
	background: #000 url('images/footer-background.jpg') repeat top left;
	width: 100%;
}
div.push {
	height: 144px;
}
#footer-navigation {
	width: 300px;
	position: absolute;
	top: 0;
	left: 0;
}
#footer-partners {
	width: 320px;
	float: right;
	margin-top: 14px;
	top: 12px;
	right: 0;
	position: absolute;
}
#footer-partners h4 {
	background: transparent url('images/heading-partners-trans.png') no-repeat 0 0;
	width: 302px;
	height: 17px;
}
#footer-partners h4 span {
	display: none;
}


/*******************************
Boxes
 */
div.box-top {
	height: 7px;
	background: transparent url('images/box-top.gif') no-repeat bottom left;
}

/*div.box-content {
	background-color: white;
	padding: 16px 20px 1px 20px;
}*/
div.box-content {	
background-color: white;	
padding: 26px 30px 11px 30px;
}

div.box-bottom {
	height: 18px; 
	background: transparent url('images/box-bottom.gif') no-repeat top left;
	margin-bottom:25px;
}
div.sidebar-box-top {
	height: 42px;
	background: transparent url('images/sidebox-heading-ajanvaraus-trans.png') no-repeat bottom left;
}

div.sidebar-box-top h3 {
	display: none;
}

div.sidebar-box-content {
	background-color: #eef3e9;
	min-height: 60px;
	height: auto !important;
	height: 60px;
	border-left: 1px solid #c5cfb8;
	border-right: 1px solid #c5cfb8;
}

div.sidebar-box-bottom {
	height: 7px; 
	background: transparent url('images/sidebar-box-bottom.gif') no-repeat top left;
	margin-bottom: 12px;
	_margin-bottom: 0px;
}

body.id-3 div.sidebar-box-top {
	background-image: url('images/sidebox-heading-naonhuolto-trans.png');
}
body.id-4 div.sidebar-box-top {
	background-image: url('images/sidebox-heading-oppaat-ja-ohjeet-trans.png');
}
body.id-5 div.sidebar-box-top {
	background-image: url('images/sidebox-heading-muoti-trans.png');
}
body.id-6 div.sidebar-box-top {
	background-image: url('images/sidebox-heading-kysy-ja-kommentoi-trans.png');
}
body.id-7 div.sidebar-box-top {
	background-image: url('images/sidebox-heading-selvannakijat-trans.png');
}

/******************************************************************************************
ACCORDION
******************************************************************************************/


#acc {
	width:600px; 
	list-style:none;
	color:#033; 
	margin:0 auto;
	padding:0}

#main #accordion {
	padding-top:5px;
}

#main #accordion ul li{
	list-style:none;
	list-style-type:none;
	background-image:none;
	list-style-position:inside;
	padding:0;
}

#acc h3 {
	font-size:13px;
	color:#fff;
	width:585px; 
	border:1px solid #52790E; 
	padding:6px 6px 8px; 
	font-weight:bold; 
	margin:10px 0 0 0; 
	cursor:pointer;
	background-color:#52790E;
	line-height:15px;
	
}
#acc h3:hover {
	background-color:#76A425;
	border:1px solid #76A425; 
}


#acc .acc-section {
	overflow:hidden; 
	background:#fff; 
	padding:0; margin:0; 
	width:620px;
}
#acc .acc-content {
	width:570px; 
	padding:15px; 
	border-top:none; 
	background:#EEF3E9; 
	font-size:12px;
	background: transparent url('images/background-fieldset2.gif') no-repeat bottom left;
	*margin-left:16px;
}


/************************************ 
 Tuned content elements
************************************/
#main p, #sidebar p {
	font-size: 1.3em;
	margin-bottom: 0.9em;
}
#main table {
	border-collapse: collapse;
}
#main th {
	text-align: left;
	font-weight: normal;
}
#main td {
	vertical-align: top;
	padding: 1px;
	text-align: left;
}
#main td p {
	margin: 0;
	padding: 0;
}
#main ul {
	font-size: 1.3em;
	margin: -3px 0 1.5em 0.5em;
}
#main ul li {
	padding: 0 0 0 22px;
	background: url('images/bullet-round.gif') no-repeat 4px 4px;
	margin: 0 0 5px 0;
}

/************************************ 
 Selv�nn�kij�t
************************************/

#SelvNakHeader {
	width:675px;
	height:219px;
	margin:0 0 15px 0;
	}
#SelvNakHeader.vappu{
	background: url('images/selvannakijat/vappu-header.jpg') no-repeat;
	}
	#SelvNakHeader.satu{
	background: url('http://www.optikko.fi/assets/site/images/selvannakijat/satu-tuomisto/header.jpg') no-repeat;
	}
#SelvNakHeader p{
	float:inherit;
	font-size:13px;
	color:#fff;
	width:335px;
	margin:0 0 0 20px;
	padding-top:85px;
	}
.profileBox {
	width:590px;
	background-color:#eef3e9;
	border: 1px solid #e1e9d9;
	padding:10px 10px 0 10px;
	display:block;
	float:left;
	margin:0 0 20px 0;
	}
#main .profileBox p {
	font-size:12px;
	color:#4f5945;
	margin:0;
	}
#main .profileBox h3 {
	color:#4f5945;
	margin:0 0 10px 0;
	line-height:13px;
	}
.profileBox img {
	float:left;
	margin:0 15px 0 0;
	}
#main ul#kuvasarja1, #main ul#kuvasarja2, #main ul#kuvasarja3 {
	width:500px;
	margin:0 auto;
}
#main ul#kuvasarja1 li, #main ul#kuvasarja2 li, #main ul#kuvasarja3 li{
	list-style:none;
	list-style-type:none;
	background-image:none;
	list-style-position:inside;
	padding:0;
}

/************************************ 
Fixes and special cases
************************************/

.clearfix { clear: both; height: 0px; }
.hidden {
	display: none;
}

div.form-row:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
div.form-row {display: inline-block;}
/* Hide from IE Mac \*/
div.form-row {display: block;}
/* End hide from IE Mac */

/************************************
Styles
************************************/
.col1, .col2 {
	width:300px;
	float:left;
}

.col1 {
	margin-right:20px;
}
.col1 h4,  .col2 h4 {
	color:#fff;
	background-color:#527d08;
	padding:2px 0 0 6px;
	margin-top: 15px;
	font-size:1.5em;
}
.col1 h3,  .col2 h3 {
	color:#333;
	margin: 18px 0 2px 0;
	font-size:1.4em;
}
.date {font-size: 11px; color: #8b8b8b; }
.left { 
	float:left;
	margin:4px 20px 10px 0;
}
.right { 
	float:right;
	margin:4px 0 10px 20px;
}
.right-edge { 
	float:right;
	margin:4px -20px 10px 20px;
}
.center{
	margin: 0 auto;
	display:block;
	}
a.link-button {	
	font-size: 12px; 
	font-weight: bold; 
	text-decoration: none; 
	color: #fff; 
	line-height: 2.5;
	padding: 0.35em 1em 0.25em 24px; 
	width: auto; 
	background: #527d08 url('images/bullet-link-button.gif') no-repeat 12px 55%;
}
a.link-button:visited { 
	color: #fff; text-decoration: none;
	}
a.link-button:hover { 
	background-color: #76a425; 
	color: #fff;
} 
div.horRule {
	height: 1px;
	background: url('images/bg-hr.gif') repeat-x bottom left;
	margin-top: 20px;
	margin-bottom: 20px;
}
div.horRule hr {
	display: none;
}
.clearfix { 
	clear: both; 
	height: 0px;
}
.puh {
	background: #fff url('images/icon-puh.gif') no-repeat 10px 50%;
	padding: 2px 0 2px 32px;
	font-weight:bold;
	letter-spacing:1px;
}
.addr {
	padding: 0 0 0 10px;
	display:block;
}
.caption {
	font-style:italic;
	text-align:center;
	margin:0 auto;
	display:block;
	margin-top:5px;
	padding-bottom:10px;
	line-height:16px;
	width:480px;
	}
.blockquoteWrapper{
	background: url('images/bg-blockquote-top.gif') no-repeat 0 0;
	position:absolute;
	left:0px;
	_left:-2px;
	margin:-40px 0 0 0;
	width:235px;
	padding:20px 30px 4px 20px;
	color:#829069;
	font-family:Georgia, "Times New Roman", Times, serif;
	font-style: italic;
	font-size:12px;
	text-align:center;
	display:block;
	float:left;
}
.blockquoteBtm {
	background: url('images/bg-blockquote-btm.gif') no-repeat 0 0;
	position:absolute;
	left:0;
	bottom:-10px;
	width:285px;
	color:#d7e1cd;
}
blockquote {
	background-image: url(images/q-open.gif);
	background-repeat: no-repeat;
	background-position: left 5px;
	padding-left:20px;
}
blockquote span {
	background-image: url(images/q-close.gif);
	background-repeat: no-repeat;
	background-position: right bottom;
	display: block;
	padding-right: 20px;
}
#main .credits {
	font-size:11px;
	color:#4f5945;
	margin-top:25px;
}
.hide {
	visibility:hidden;
	}
.facebook {
	float:left;
	margin:20px 40px 20px 0;
	}
