/*****************************/
/*** Core html setup stuff ***/
/*****************************/

html, body {
  height: 100%;
  width: 100%;
  margin: 0; padding: 0; border: 0;
}

form {
  margin: 0;
  padding: 0;
}

body {
	font-size: 76%;
	font-family: Helvetica,Arial,sans-serif;
	line-height: 1.4;
	color: #333;
	background: #fff url(../images/body_background.gif) top repeat-x;
}

a:link, a:visited {
	text-decoration: none;
	font-weight: normal;
	color: #00a7d1;
}

a:hover {
	text-decoration: underline;
	font-weight: normal;
	color: #0cf;
}

input.button { cursor: pointer; }

p { margin: 0 0 0.5em; }

img { border: 0 none; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em; padding: 0;
	line-height: 1em;
	font-size: 1em;
	font-weight: normal;
}

.clearfix:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

.rounded {
	-webkit-border-radius: 8px;
	-khtml-border-radius: 8px;	
	-moz-border-radius: 8px;
	border-radius: 8px;
}

.contentheading,
.componentheading {
	font-size: 2em;
	font-weight: normal;
	padding: 2px 0 0.5em;
}

h1 {
	font-size: 1.5em;
	font-weight: bold;
}
h2, h3, h4, h5, h6 {
	font-size: 1.225em;
	font-weight: bold;
}

ol li {
	margin-bottom: 0.25em;
}

br {
	clear: both;
}

/**************/
/*** Canvas ***/
/**************/

div#canvas {
	width: 100%; min-height: 500px;
	background: transparent url(../images/top_background.gif) top center no-repeat;
	text-align: center;
}

div#canvas_painting {
	width: 925px;
	margin: 0 auto;
	padding: 3px 0;
	text-align: left;
}

/*************************/
/*** Document wrappers ***/
/*************************/

div.left_wrapper {
	clear: left; float: left; position: relative;
	width: 322px;
	margin-bottom: 3px;
}

div.right_wrapper {
	clear: right; float: right; position: relative;
	width: 603px;
	margin-bottom: 3px;
}

div.fullwrapper {
	clear: both;
	position: relative;
	width: 100%;
	margin: 0 0 3px 0;
	text-align: left;
}

/*************/
/*** BOXES ***/
/*************/

div.leftbox {
	width: 302px;
	margin: 0 0 3px 0;
	padding: 10px;
	background: #242424;
	color: #fff;
}
div.leftbox h1,
div.leftbox h2,
div.leftbox h3 {
	margin-bottom: 0.5em;
	font-size: 1.225em;
	font-weight: bold;
	text-align: center;
	color: #fff;
}
div.leftbox h4 {
	font-weight: bold;
}
div.leftbox p {
	margin: 0 0 10px;
}

/***********/
/*** TOP ***/
/***********/

div#topbar {
	background: #242424;
	height: 63px;
	margin: 0 0 3px;
	padding: 0 20px;
}

div#logo {
	position: relative;
	float: left;
	width: 152px; height: 53px;
	margin: 5px 50px 5px 0;
	background: transparent url(../images/logo_ohsrk.png) no-repeat;
}

div#topbar form {
	float: right; position: relative;
	width: 150px; margin: 20px 0 0 0; padding: 0;
}
div#topbar form div.search {
	margin: 0; padding: 5px;
	background: #4d4d4d;
}
div#topbar form div.search input {
	width: 140px; border: 0; margin: 0; padding: 0;
	color: #fff; background: #4d4d4d;
}

/*****************/
/*** Main Menu ***/
/*****************/

div#topbar ul {
	margin: 0; padding: 0; border: 0;
}
div#topbar li {
	float: left; display: block;
	height: 63px; line-height: 63px;
	padding: 0;
	list-style-type: none;
}
div#topbar li a {
	float: left; display: block;
	padding: 0 10px;
	color: #00a7d1;
	border: 3px solid transparent; border-width: 0 2px;
}
div#topbar li a:hover {
	background: #000;
}
div#topbar li.active a,
div#topbar li a#active_menu {
	border-color: #00a7d1;
	background: #fff;
	color: #242424;
	font-weight: bold;
}

/*****************/
/*** Side Menu ***/
/*****************/

ul.menu {
	padding: 20px;
}
ul.menu li {
	list-style-type: none;
	padding-bottom: 0.5em;
}
ul.menu li.active a {
	color: #242424;
}
ul.menu li#current a {
	font-weight: bold;
}
ul.menu li#current ul a {
	font-weight: normal;
}
ul.menu ul {
	margin: 10px 0;
}

/***************/
/*** Banners ***/
/***************/

div#big_banner_frontpage {
	float: right; position: relative;
	width: 600px; height: 300px;
	margin: 0 0 3px 0;
	background: transparent center top no-repeat;
	overflow: hidden;
}

/* Small banners, links to sites */
ul.ucd_list {
	margin: 0; padding: 0;
}
ul.ucd_list li {
	float: right; position: relative;
	/*width: 297px; height: 100px;*/
	width: 198px; height: 67px;
	margin: 0 0 3px 3px; padding: 0;
	list-style-type: none;
	background: #242424 center no-repeat;
	overflow: hidden;
	color: #fff;
}
ul.ucd_list li img {
	width: 200px;
}
ul.ucd_list li p {
	/*width: 100%; height: 100px; line-height: 100px;*/
	width: 100%; height: 67px; line-height: 67px;
	font-weight: bold;
	font-size: 1.125em;
	text-align: center;
}

/*********************/
/*** Header banner ***/
/*********************/

div.header_banner {
	position: relative;
	width: 100%; height: 250px;
	margin: 0 -1px;
	border: 1px solid #242424;
	background: transparent center no-repeat;
	overflow: hidden;
}

/******************/
/*** Breadcrumb ***/
/******************/

div.breadcrumbs {
	padding: 5px 20px;
	background: #00a7d1;
	color: #a1e4f5;
}
div.breadcrumbs a {
	color: #fff;
}

/**************/
/*** Footer ***/
/**************/

div#footer {
	padding: 10px;
	color: #666;
	text-align: center;
	font-size: 0.675em;
}

div#custom_footer {
	clear: both; position: relative;
	padding: 10px;
	background: #00a7d1;
	color: #fff;
	font-size: 1.125em;
	text-align: center;
}
div#custom_footer table {
	margin: 0 auto;
	text-align: center;
}
div#custom_footer table td {
	padding: 0 1em;
	text-align: left;
}
div#custom_footer td p,
div#custom_footer td h2 {
	margin: 0; padding: 0;
}

/***********************/
/*** Article Content ***/
/***********************/

div#art_content {
	padding: 20px;
}
div#art_content img {
	margin: 3px; padding: 2px;
	border: 2px solid #dedede;
	max-width: 550px;
}
div#art_content p {
	max-width: 563px;
}

/* Disable border around joomla icons */
div#art_content td.buttonheading img,
div#art_content div.pm-buttons img {
	border: 0;
}

/*****************/
/*** Eventlist ***/
/*****************/

/****************/
/*** Calendar ***/
/****************/

div#calendar_frontpage {
	position: relative;
	height: 300px; padding-top: 0; padding-bottom: 0;
	background: #adeaff url(../images/calendar_frontpage_background.png) top repeat-x;
	text-align: center;
	color: #191919;
}

/* Eventlist on frontpage */
ul.eventlistmod_frontpage {
	margin: 0; padding: 0;
}
ul.eventlistmod_frontpage li {
	margin: 0 0 1em; padding: 0 0 1em;
	border-bottom: 1px dashed #666;
	list-style-type: none;
	color: #fff;
}
ul.eventlistmod_frontpage span.date {
	display: block;
	color: #ccc;
}
ul.eventlistmod_frontpage span.location {
	display: block;
	font-size: 1.225em;
	font-weight: bold;
}

/* Eventlist */
table.eventlistmodadv {
	clear: both;
	width: 100%;
	margin: 2em 0;
}
table.eventlistmodadv tr {
	background-color: #f1f1f1;
}
table.eventlistmodadv tr.altrow {
	background-color: #fafafa;
}
table.eventlistmodadv td {
	padding: 5px 10px;
	vertical-align: top;
}
table.eventlistmodadv td.item-date {
	width: 15%;
	font-weight: bold;
	-webkit-border-radius: 8px 0 0 0;
	-khtml-border-radius: 8px 0 0 0;	
	-moz-border-radius: 8px 0 0 0;
	border-radius: 8px 0 0 0;
}
table.eventlistmodadv td.item-time {
	width: 15%;
	text-align: center;
}
table.eventlistmodadv td.item-title {
	width: 50%;
}
table.eventlistmodadv td.item-readmore {
	text-align: right;
	font-size: 0.875em;
}
table.eventlistmodadv td.item-description {
	font-style: italic;
	font-size: 0.875em;
}
table.eventlistmodadv td.rowspacer {
	background-color: #fff; color: #fff;
	border-top: 1px solid #dedede;
}

/* Event details */
div#eventlist.el_details h2.eventlist,
div#eventlist.el_details h2.location {
	color: #fff;
	background: #242424;
	border: 0;
	-webkit-border-radius: 8px;
	-khtml-border-radius: 8px;	
	-moz-border-radius: 8px;
	border-radius: 8px;
}
div#eventlist.el_details h2.description,
div#eventlist.el_details h2.location_desc {
	border: 0;
	background: none;
	color: #242424;
	font-size: 1em;
}

div#eventlist div.pageslinks span,
div#eventlist div.pageslinks a {
	margin: 0 0.5em;
}
div#eventlist div.pageslinks strong,
div#eventlist div.pageslinks strong span,
div#eventlist div.pageslinks strong a {
	margin: 0 0.2em;
	font-size: 1.125em;
}

/**********************/
/*** Phoca Download ***/
/**********************/

div#phoca-dl-category-box {
	margin: 0; border: 0; padding: 0;
}

div#phoca-dl-category-box div.pd-category h3 {
	margin: 0; border: 0; padding: 0;
	background: none;
	font-size: 2em;
	font-weight: normal;
	padding: 2px 0 0.5em;
}

div#phoca-dl-category-box div.pd-category div.contentpane {
}

div#phoca-dl-category-box div.pd-category td {
	border-bottom: 1px dashed #dedede;
	padding: 2em 0 0;
}
div#phoca-dl-category-box div.pd-category td.textonly {
	border-bottom: 5px solid #dedede;
	padding: 0.5em 0 2em;
}
div#phoca-dl-category-box div.pd-category td.pdfile {
	border-bottom: 5px solid #dedede;
	padding: 0.5em 0 2em;
}

div#phoca-dl-category-box div.pd-category div.pddownload,
div#phoca-dl-category-box div.pd-category div.pdplay {
	border: 0;
	padding: 3px;
	background: #00a7d1;
	-webkit-border-radius: 8px;
	-khtml-border-radius: 8px;	
	-moz-border-radius: 8px;
	border-radius: 8px;
}
div#phoca-dl-category-box div.pd-category div.pddownload div,
div#phoca-dl-category-box div.pd-category div.pdplay div {
	border: 0;
}
div#phoca-dl-category-box div.pd-category div.pddownload a,
div#phoca-dl-category-box div.pd-category div.pdplay a {
	color: #fff;
}

/* Frontpage listing */
div#phoca-dl-latest-module ul {
	margin: 0; padding: 0;
}
div#phoca-dl-latest-module ul li {
	list-style-type: none;
	margin: 0 0 0.5em; padding: 0 0 0.5em;
}
div#phoca-dl-latest-module ul li a {
	font-size: 1.225em;
	font-weight: bold;
}
div#phoca-dl-latest-module ul li span.description {
	display: block;
	font-style: italic;
}
div#phoca-dl-latest-module ul li span.small {
	display: block;
	color: #ccc;
}

/* PHOCA MENU */
div#phocamenuicons {
	float: right;
}
div#phocamenu div.pm-header {
	font-size: 1em;
	margin: 0; padding: 0;
	text-align: left;
}
div#phocamenu div.pm-header h1 {
	font-size: 2em;
	font-weight: normal;
	padding: 2px 0 0.5em;
}
div#phocamenu div.pm-group {
	padding: 5px 10px;
	margin: 1em 0;
	background: #adeaff;
	-webkit-border-radius: 8px;
	-khtml-border-radius: 8px;	
	-moz-border-radius: 8px;
	border-radius: 8px;
}
div#phocamenu div.pm-item {
	margin: 0;
	padding: 5px 10px;
	border: 1px solid #dedede; border-bottom: 0;
	-webkit-border-radius: 8px 8px 0 0;
	-khtml-border-radius: 8px 8px 0 0;	
	-moz-border-radius: 8px 8px 0 0;
	border-radius: 8px 8px 0 0;
}
div#phocamenu div.pm-item td.pmtitle {
	padding-top: 10px;
	font-weight: bold;
}
div#phocamenu div.pm-message {
	margin: 0;
	padding: 5px 10px;
	border: 1px solid #dedede; border-top: 0;
	-webkit-border-radius: 0 0 8px 8px;
	-khtml-border-radius: 0 0 8px 8px;	
	-moz-border-radius: 0 0 8px 8px;
	border-radius: 0 0 8px 8px;
}
/* Hide some menu items */
div#phocamenu div.pm-date {
	display: none;
}

/* Päivän sana */

/*.paivansana {
	position: relative;
	background: #adeaff url(../images/calendar_frontpage_background.png) top repeat-x !important;
	text-align: center;
	color: #fff !important;
}*/
.paivansana_header {
	background: #adeaff url(../images/calendar_frontpage_background.png) top repeat-x !important;
	text-align:center;
	height: 30px; line-height: 30px;
	padding-top: 0 !important; padding-bottom: 0 !important;
}
/*
.paivansana blockquote { text-align: left; padding:1em; margin: 5px 0; font-style: italic; background: #a8dff0; color: #333; }
*/
.paivansana {
	position: relative;
	height: 174px;
	padding-top: 0 !important; padding-bottom: 0 !important;
	/*background: #adeaff !important;*/
	background: #adeaff url(../images/calendar_frontpage_background_reverse.jpg) top repeat-x !important;
	text-align: center;
	color: #fff !important;
	
	/*display:table-cell;
    vertical-align:middle;*/
}
.paivansana blockquote {
	text-align: left;
	padding:20px 10px 10px; margin: 0;
	font-style: italic;
	color: #070707;
}

