@charset "UTF-8";
/* Johannapiritta Huovisen kotisivujen (http://www.johannapiritta.net/) tyylimäärittelyt */
/* Ari Ruotsalainen, elokuu-syyskuu 2008 */

/*---------------------------------------------------------------------------------------*/
/* RESET: TEXT AND PAGE */
	html {
	font-size:16px;
	margin:0;
	padding:0;
	}

/*---------------------------------------------------------------------------------------*/
/* RESET: STYLES */
body,
fieldset,
form {
	font-family:"Trebuchet MS", "Lucida Grande", sans-serif;
	font-size:100%;
	margin:0;
	padding:0;
	}
	
h1,
h2,
h3,
h4,
h5,
h6,
p,
address,
ul,
ol,
dl,
form {
	font-weight:normal;
	margin:0 0 1em;
	padding:0;
	}
	
address,
dd,
dt,
h1,
h2,
h3,
h4,
h5,
h6,
input,
label,
li,
p,
textarea {
	font-size:1.2em;
	font-style:normal;
	}

li ul,
li li {
	font-size:1em;
	}

fieldset,
a img {
	border:none;
	}

/*---------------------------------------------------------------------------------------*/
/* LAYOUT */

html {
	background:#668622 url(../kuvat/bg-green.png) repeat-x top;
	}
body {
	color:#000;
	font-size:80%;
	padding:.9em 0;
	text-align:left;
	}

#page {
	color:#000;
	margin:auto;
	padding:0 0 0 0;
	position:static;
	text-align:left;
	width:81.2em;
	z-index:20;
	}

#header {
	background:url(../kuvat/page_bg_middle.png) repeat-y left top;
	height:15em;
	width:81.2em;
	padding:.8em 0 1.7em 1.5em;
	}

#category_bar {
	margin-bottom: -.9em;
	font-size: 1em;
	position:inherit;
	width:55em; /* määrittelee elementin leveyden, oletus 81.2em, kuten kaikki muutkin elementit. vaikuttaa selainikkunan leveyteen.*/
	padding:.8em 0 0 8.5em; /* viimeinen luku määrittelee vasemman reunan marginaalin, oletus .9em (kun kaikki kategoriat ovat käytössä) */
	}

#breadcrumb {
	background:url(../kuvat/page_bg_top.png) no-repeat left top;
	padding:0 0 .4em 0;
	}

#wrapper {
	background:url(../kuvat/page_bg_middle.png) repeat-y left;
	clear:both;
	line-height: 1.3em;
	width:auto;
	min-height:5em;
	overflow:auto;
	padding:.9em 2em 0 2em;
	position:inherit;
	width:81.2em;
	}

#content {
	color:#000;
	line-height:1.4;
	text-align:justify;
	margin:0 1.5em 0 0;
	margin-left:9em;
	padding:0 .2em;
	z-index:20;
	}

#content.narrow {
	float:left;
	width:36.5em;
	}

.wide {
	line-height:1.75;
	width:50em;
	}

.full {
	width:55em;
	}

.secondary_content {
	background:#fff;
	margin-left:60em;
	padding:1em;
	position:absolute;
	right:3.7em;
	top:6.4em;
	width:16.4em;
	}

#nav {
	background:#fff;
	float:left;
	padding-left:.3em;
	}

#footer {
	background:url(../kuvat/page_bg_bottom.png) no-repeat left bottom;
	position: relative;
	color:#333;
	padding:4em 11.5em 1.7em 1.5em;
	text-align:right;
	}

/*---------------------------------------------------------------------------------------*/
/* TEXT */

html {
	font-size:14px;
	margin:0;
	padding:0;
	}

a:link,
a:visited,
p a:link,
p a:visited {
	color:#668622;
	text-decoration:none;
	}

a:hover,
p a:hover {
	color:#000000;
	}

blockquote {
	border-left:.4em double #668622;
	font-style:italic;
	margin:1em;
	padding:0 1em;
	}

#content li {
	margin-left:2.5em;
	}

.caps {
	letter-spacing:.05em;
	}


/*---------------------------------------------------------------------------------------*/
/* TEXT HEADERS */

h1,
h2,
h3,
h4,
h5,
h6 {
	text-align:left;
	color:#668622;
	}

h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover {
	color:#000000;
	}

h2 {
	font-size:2.5em;
	font-weight:bold;
	letter-spacing:-.03em;
	line-height:1.1;
	margin:0 0 .7em;
	}

h3 {
	font-size:2em;
	line-height:1;
	text-transform:uppercase;
	margin:1em 0 .1em;
	}

h4 {
	font-size:1.6em;
	margin:.7em 0 .3em;
	}

h5 {
	font-size:1.3;
	font-weight:bold;
	}

h6 {
	font-size:1.2;
	font-style:italic;
	}

/*---------------------------------------------------------------------------------------*/
/* PAGE HEADER */

h1 {
	background: url(../kuvat/header_noanimation.png) no-repeat;
	height:179px;
	width: 779px;
	margin:0;
	text-indent:-1234em;
	}

#flash_content {
	position:relative;
	top: inherit;
	}

#flash_content p {
	color:#ffffff;
	font-size:0.9em;
	margin:-1.5em 17em 0 0;
	text-align:right;
	}

#flash_content a:link {
	color:#ffffff;
	font-style:italic;
	border-bottom:none;
	}

#flash_content a:hover {
	color:#ffff00;
	background-color:inherit;
	}


/*---------------------------------------------------------------------------------------*/
/* CATEGORIES (Navigation bar items) */
#categories {
	font-size:1em;
	left:2.3em;
	right:.5em;
	list-style:none;
	overflow:hidden;
	position:relative;
	top:-.3em;
	}

#categories li {
	background:#FFFFFF url(../kuvat/categories_bg_topleft.gif) no-repeat top left;
	float:left;
	margin-right:.1em;
	}

#categories li:hover, 
#categories li.current {
	background:#668622 url(../kuvat/categories_bg_topleft_hover.gif) no-repeat top left;
	}

#categories span {
	background:url(../kuvat/categories_bg_topright.gif) no-repeat top right;
	display:block;
	}

#categories span:hover,
#categories .current span {
	background:url(../kuvat/categories_bg_topright_hover.gif) no-repeat top right;
	}

#categories li a {
	background:url(../kuvat/categories_bg_shadow.gif) repeat-x 110% left;
	border-bottom:none;
	display:block;
	font-weight:bold;
	padding:.3em .9em .2em;
	}

#categories li a:hover,
#categories li.current a {
	background:url(../kuvat/categories_bg_shadow_hover.gif) repeat-x 110% left;
	color:#000000;
	}

#categories li.current a {
	cursor:default;
	}


/*---------------------------------------------------------------------------------------*/
/* TOOLBAR & BREADCRUMB */
#breadcrumb {
	font-size: 1.5em;
	list-style:none;
	overflow: hidden;
	position:relative;
	}

#breadcrumb li {
	float:left;
	list-style:none;
	margin:0;
	padding:0;
	}

#breadcrumb li:hover, 
#breadcrumb li.current {
	color:#FF0000;
	}

#breadcrumb li a {
	color:#668622;
	display:block;
	float:left;
	list-style:none;
	font-weight:bold;
	padding:.3em 0em 0em .8em;
	}

#breadcrumb li a:hover,
#breadcrumb li.current a {
	color:#000000;
	}

#breadcrumb li.current a {
	cursor:default;
	}


/*---------------------------------------------------------------------------------------*/
/* HOME PAGE */

#johannapiritta #content {
	float:left;
	margin-left:3em;
	}

.johannapiritta #nav {
	margin-top:.1em;
	}

#johannapiritta .secondary_content {
	background:#f0f0f0 url(../kuvat/box-gray2-bottom.png) no-repeat left bottom; /* TAUSTAKUVA */
	float:left;
	margin-left:.5em;
	padding:0;
	position:static;
	width:17.2em;
	}

#johannapiritta .box {
	border-bottom:2px solid #ffffff;
	padding:0 1em;
	position:relative;
	}

#johannapiritta .box h3 {
	font-size:1.6em;
	margin:-.6em -.6em .2em;
	padding:.65em .65em 0;
	}

#johannapiritta .box h4 {
	background:#668622;
	color:#ffffff;
	font-size:.9em;
	letter-spacing:.15em;
	line-height:1;
	margin:0 -1.15em .6em;
	padding:.56em 1.4em .5em;
	text-transform:uppercase;
	}

#johannapiritta .box p {
	font-size:1.1em;
	line-height:1.25;
	}

#johannapiritta .box a {
	height:100%;
	left:0;
	position:relative;
	text-align:center;
	text-indent:-1234em;
	top:0;
	width:100%;
	}

#johannapiritta .b1 h4 {
	background:#668622 url(../kuvat/box-gray2-top.png) no-repeat top left; /* TAUSTAKUVA */
	}

#johannapiritta .b2,
#johannapiritta .b3 {
	padding-bottom:.4em;
	}

/*---------------------------------------------------------------------------------------*/
/* SECONDARY CONTENT */

.secondary_content li {
	margin-left:1em;
	padding:.1em;
	}

.secondary_content * {
	margin-left:0;
	margin-right:0;
	}

.secondary_content p {
	font-size:1.2em;
	font-style:none;
	line-height:1.5;
	}

/*---------------------------------------------------------------------------------------*/
/* TOPICS NAVIGATION (NAV) */

#nav { /* OK */
	font-weight:bold;
	list-style:none;
	margin:-1em;
	width:12em;
	}

#nav li { /* OK */
	font-size:1.3em;
	list-style:none;
	line-height:1.5;
	}

#nav a:visited { /* OK */
	text-decoration:none;
	}

#nav .page_item a { /* OK */
	display:block;
	padding:.1em .5em .1em .5em;
	}

#nav .page_item  a:hover { /*1.tason linkin päälläleijunta */
	background:#668622;
	color:#fff;
	}

#nav .current_page_item a, /* valitun linkin, ylemmän tason linkin ja niien päälläleijunta */
#nav .current_page_item a:hover,
#nav .current_page_ancestor a,
#nav .current_page_ancestor a:hover {
	background:#668622;
	color:#fff;
	cursor:pointer;
	margin:0 0 0 0;
	padding:.1em 2.8em .2em .5em;
	}

#nav .page_item ul {
	border-bottom:.2em solid #668622;
	font-size:0.65em;
	font-weight:none;
	margin:0;
	padding:0 0 .5em 1em;
	width:inherit;
	}

#nav .current_page_item ul {
	border-bottom:.1em solid #668622;
	font-weight:none;
	margin:0;
	width:inherit;
	}

#nav .page_item ul .page_item {
	line-height:1.2;
	list-style:none;
	}

#nav .page_item ul ul {
	border-bottom:0;
	font-size:1.2em;
	padding:0 0 .8em 1em;
	}
	
#nav .page_item ul ul .page_item {
	font-style:none;
	font-weight:normal;
	line-height:1;
	}

#nav .page_item ul .current_page_item ul .page_item {
	list-style:none;
	list-style-image:none;
	}

#nav .page_item ul li a,
#nav .page_item ul li a:hover {
	color:#a9c966;
	cursor:pointer;
	margin-left:-.75em;
	padding:.3em 0 .2em 1.2em;
	}




#nav .page_item ul li a:hover,
#nav li.current_page_ancestor li.current_page_item ul li.page_item a:hover {
	background:#a9c966;
	color:#668622;
	cursor:pointer;
	}

#nav .page_item ul .current_page_item a,
#nav .page_item ul .current_page_item a:hover {
	background:#668622; /* edit */
	color:#fff;
	cursor:default;
	}
#nav .page_item .page_item .page_item a {
	font-size:.65em;
	}

#nav .current_page_item ul .page_item a {
	background:#fff;
	color:#668622;
	font-size:.65em;
	padding:0 0 .5em 1em;
	}

#nav .current_page_item ul .page_item a:hover {
	background:#a9c966;
	color:#668622;
	font-size:.65em;
	padding:0 0 .5em 1em;
	}