body {
	background : #f5f5f5 url(img/body_bg.jpg) repeat-x;
	color      : #3a3a3a;
	font       : 76% Verdana, Tahoma, Arial, sans-serif;
	line-height: 1.4em;
	margin     : 0 auto;
	padding    : 0;
}
#wrap {
	background: url(img/content_bg.jpg) no-repeat;
	color     : #303030;
	margin    : 0 auto;
	padding   : 0 9px;
	width     : 1023px;
}
#wrap_helper {
  background: #fff; 
  border: 1px solid #eee;
  border-top: none;
  border-bottom: none;
  width : 1003px;
}
#header {
	background: url(img/header_bg.jpg) no-repeat;
	color     : #505050;
	height    : 159px;
	margin    : 0 -1px 0 -10px;
	padding   : 0;
}

#header_sm {
	background: url(img/header_bg_sm.jpg) no-repeat;
	color     : #505050;
	height    : 159px;
	margin    : 0 -1px 0 -10px;
	padding   : 0;
}

#header_sm h1 {
	font-size  : 2.5em;
	font-weight: 400;
	letter-spacing: -2px;
	margin     : 0;
	padding    : 115px 0 0 0px;
	text-align : center;
}

#header_sm a {
	color: #e50000;
}

#header h1 {
	font-size  : 2.5em;
	font-weight: 400;
	letter-spacing: -2px;
	margin     : 0 0 15px 15px;
	padding    : 20px 0 0 120px;
	height     : 120px;
}
#header h1 a, #header h1 a:hover {
	font-weight: 400;
	padding    : 0;
}
#header p {
	font-size     : 1.1em;
	letter-spacing: -1px;
	margin        : 0 0 20px 15px;
	padding       : 0 0 0 3px;
}
/* Left sidebar and menu */
#leftside {
	float  : left;
	margin : 0 0 10px;
	padding: 0 0 0 8px;
	width  : 165px;
}
#leftside ul.avmenu {
	list-style: none;
	margin    : 0 0 18px;
	padding   : 0;
	width     : 165px;
}
#leftside ul.avmenu li,#leftside ul.avmenu li.menu_haschildren {
	background: url(img/menubg.gif) repeat-x bottom left #f4f4f4;
	display: inline;
	padding: 0;
	width  : 165px;
}

#leftside ul.avmenu li a {
	border-bottom: 1px solid #d8d8d8;
	border-left  : 4px solid #ccc;
	border-right : 1px solid #d8d8d8;
	border-top   : 1px solid #d8d8d8;
	color        : #505050;
	float        : left;
	font-size    : 1em;
	font-weight  : 700;
	margin-bottom: 5px;
	padding      : 5px 1px 5px 5px;
	text-decoration: none;
	width        : 150px;
}

#leftside ul.avmenu li a:hover, #leftside ul.avmenu li a.current {
	background: url(img/menubg2.gif) repeat-x bottom left #eaeaea;
	border-bottom: 1px solid #b0b0b0;
	border-left: 4px solid #cc3333;
	border-right: 1px solid #b0b0b0;
	border-top: 1px solid #b0b0b0;
	color: #505050;
}
#leftside ul.avmenu ul {
	font-size: 0.9em;
	margin   : 0 0 0 15px;
	padding  : 0 0 5px 0;
	width    : 145px;
}
#leftside ul.avmenu ul a {
	padding: 3px 1px 3px 5px;
	width  : 135px;
}
#leftside ul.avmenu ul ul {
	font-size: 1em;
	width    : 135px;
}
#leftside ul.avmenu ul ul a { width: 120px; }
#leftside h2 {
	font-size  : 1.5em;
	font-weight: 400;
}
#leftside .announce {
	background   : url(img/menubg.gif) repeat-x bottom left #f4f4f4;
	border-bottom: 1px solid #d8d8d8;
	border-left  : 4px solid #ff3333;
	border-right : 1px solid #d8d8d8;
	border-top   : 1px solid #d8d8d8;
	clear        : left;
	color        : #505050;
	line-height  : 1.3em;
	margin       : 10px 0;
	padding      : 5px 5px 5px;
	width        : 135px;
}
#leftside p, .announce p { font-size: 0.9em; }

#leftside ul.avmenu li.menu_haschildren span {
  display: block;
  background: url(img/menu_closed.gif) no-repeat 98% center;
}

#leftside ul.avmenu li.menu_haschildren_open span {
  display: block;
  background: url(img/menu_open.gif) no-repeat 98% center;
}

/* Right sidebar */
#extras {
	float  : right;
	margin : 0 0 0 0;
	padding: 0 9px 0 0;
	width  : 220px;
}
#extras p, #extras ul {
	font-size  : 0.9em;
	line-height: 1.3em;
	margin     : 0 0 1.5em;
	padding    : 0;
}
#extras li {
	list-style: none;
	margin    : 0 0 6px;
	padding   : 0;
}
#extras h2 {
	font-size: 1.5em;
	font-weight: 400;
	letter-spacing: -1px;
	margin: 0 0 6px;
}

#mainokset {
  text-align:center;
  margin-bottom: 1em;
  border-bottom: 1px solid #eee;
}
#mainokset p {
  margin-bottom: 0;
}
#mainokset a {
  display: block;
  margin-bottom: 8px;
}

/* Breadcrumbs */
#path {
  margin-bottom: 9px;
}

#path a {
  font-size: 95%;
  font-weight: normal;
}

#path .B_currentCrumb {
  font-weight: bold;
}


/* Main content */
#content {
	line-height: 1.5em;
	margin: 0 0 0 185px;
	padding: 0;
	text-align: left;
	width: 580px;
}

#smr2 #content {
  width: auto;
}

#contentwide {
	line-height: 1.5em;
	margin: 10px 0 10px 160px;
	padding: 0;
	text-align: left;
}
#content h2, #contentwide h2 {
	font-size: 1.8em;
	font-weight: 400;
	letter-spacing: -1px;
	margin: 0px 0 15px;
	padding: 0;
}
#content h3, #contentwide h3 {
	font-size: 1.5em;
	font-weight: 400;
	margin: 0 0 10px 0;
	padding: 0;
}
#content ul, #content ol, #contentwide ul, #contentwide ol {
	margin: 0 0 16px 20px;
	padding: 0;
}
#content ul ul, #content ol ol, #contentwide ul ul, #contentwide ol ol {
	margin: 2px 0 2px 15px;
}
#content li, #contentwide li {
	margin: 0 0 2px 5px;
	padding: 0 0 0 4px;
}
/* Footer */
#footer {
	clear: both;
	color: #666;
	font-size: 0.9em;
	margin: 0 auto;
	padding: 8px 0;
	text-align: center;
}
#footer p {
	margin: 0;
	padding: 0;
}
#footer a {
	background: inherit;
	color: #666;
	font-weight: 400;
	text-decoration: none;
}
#footer a:hover {
	text-decoration: underline;
}
#footer span {
	font-size: 1.2em;
}
/* Links and paragraphs */
a {
	background: inherit;
	color: #166090;
	text-decoration: none;
	font-weight: 700;
}
a:hover {
	background: inherit;
	color: #286ea0;
	text-decoration: underline;
}
a img {
	border: 0;
}
p {
	margin: 0 0 16px;
}
blockquote {
	background: url(img/menubg.gif) repeat-x bottom left #f4f4f4;
	border-bottom: 1px solid #d8d8d8;
	border-left: 4px solid #ccc;
	border-right: 1px solid #d8d8d8;
	border-top: 1px solid #d8d8d8;
	color: #505050;
	margin: 16px;
	padding: 7px 7px 7px 11px;
}
blockquote p {
	font-size: 1.1em;
	line-height: 1.3em;
	margin: 0;
}
/* Tables and forms */
table {
	border: 1px solid #d8d8d8;
	border-collapse: collapse;
	line-height: 1.3em;
	width: 99%;
	margin: 0 0 16px;
	padding: 0;
}
caption {
	font-size: 1.5em;
	font-weight: 400;
	margin: 0;
	padding: 6px 0 8px;
	text-align: left;
}
th {
	background: url(img/menubg2.gif) repeat-x bottom left #eaeaea;
	color: #505050;
	padding: 7px;
	text-align: left;
}
td {
	background: #f8f8f8;
	color: #303030;
	font-size: 0.9em;
	padding: 7px;
	text-align: left;
}
input, textarea {
	border: 1px solid #ccc;
	font-family: Verdana, Tahoma, Arial, Sans-Serif;
	font-size: 1em;
	margin: 0;
	padding: 4px;
}
label {
	margin: 2px 0 2px 0;
}
/* Search box */
#searchbox label, .hide {
	display: none;
}
#searchbox {
	margin: 6px 0 16px;
	padding: 0;
}
#searchform {
	background: #fff;
	border: 1px solid #ccc;
	color: #505050;
	font-size: 0.9em;
	padding: 4px;
	width: 116px;
}
/* Ditto */
.ditto_documentInfo {
	margin-bottom: 5px;
	font-style: italic;
	font-size: 95%;
}
.ditto_pageTitle {
	margin: 0 0 5px;
}
.ditto_pageTitle a {
	font-size: 105%;
}
.ditto_pageTitle span {
	font-size: 90%;
	font-style: italic;
}

.ditto_pages .ditto_currentpage {
    border: 1px solid #166090;
    padding: 1px 5px 2px; 
    margin-right: 1px;
    background-color: #166090; 
    color: #fff;
} 
.ditto_pages .ditto_off {
    border: 1px solid #ccc;
    padding: 1px 5px 2px; 
    margin-right: 1px;
    color: #ccc;
}
.ditto_pages a, .ditto_pages a:link, .ditto_pages a:visited {
    border: 1px solid #166090; 
    padding: 1px 5px 2px; 
    margin-right: 1px; 
    text-decoration: none !important; 
    color: black;
} 

/* Additional classes */
.announce h2 {
	margin: 0 0 10px;
	padding: 0;
}
.textright {
	margin: -10px 0 4px;
	text-align: right;
}
.center {
	text-align: center;
}
.small {
	font-size: 0.8em;
}
.large {
	font-size: 1.3em;
}
.red {
	color: red;
}
.green {
	color: green;
}
.blue {
	color: blue;
}
.highlighted {
	background: #f0f0f0;
	border: 1px solid #b0b0b0;
	color: #303030;
	padding: 3px;
}
.button {
	background: url(img/menubg.gif) repeat-x bottom left #f4f4f4;
	border-bottom: 1px solid #d8d8d8;
	border-left: 4px solid #ccc;
	border-right: 1px solid #d8d8d8;
	border-top: 1px solid #d8d8d8;
	color: #505050;
	font-weight: 400;
	font-size: 1.2em;
	margin: 0 0 15px;
	padding: 7px 7px 7px 11px;
	width: 120px;
}
.left {
	float: left;
	margin: 10px 10px 5px 0;
}
.right {
	float: right;
	margin: 10px 0 5px 10px;
}

.clr {clear: both;}


/**
 * Tapahtumakalenterin tyylit
 */
.ee_listDetailsContainer {
  margin-bottom: 1em;
}

.easyEventsList_heading {
  font-size: 110%;
}  

.easyEventsList_item {
  margin-top: 0.5em;
}

.easyEventsList_time {
  font-size: 90%;
  font-style: normal;
}

/**
 * aputyylit
 */
.kunto_msg,.kunto_error {
  background: lightyellow;
  padding: 4px;
}

.kunto_msg {
  border: 2px solid green;
}   

.kunto_error {
  border: 2px solid red;
}

/**
 * Osallistujakisan tyylejä
 */
#partitable {
  width: auto;
}
#partitable th {
  text-align: center;
}
#partitable th, #partitable td { 
  padding: 3px 2px;
  margin : 0;
}
#partitable td.on,#partitable td.off { 
  width: 30px;
  text-align: center;
}
#partitable td.on {
	background: #BBDDBB;
}
#partitable td.off {
	background: #EEEEEE;
} 
#partitable td {
  border: 1px solid #fff;  
}

