html, body {
	background-color: #f3ffe6;
	background-image: url(../images/layout/bg_gradient.png);
	background-repeat: repeat-x;
	color: #3b3b3b;
	font-family: Verdana, sans-serif;
	font-size: 12px;
	margin: 0;
}

img { border: 0 }

#bgdecor {
	position: absolute;
	z-index: 0;
	top: -100px;
	left: -200px;
	width: 468px;
	height: 538px;
	background-image: url(../images/layout/taustalehti.png);
}

#main {
	width: 900px;
	margin: 10px auto 0 auto;
	z-index: 1;
	position: relative;
}

#header {
	background-image: url(../images/layout/koulutuskeskus.png);
	background-repeat: no-repeat;
	padding-top: 96px;
	position: relative;
}

#header h1 { display: none }

#locales {
	position: absolute;
	top: 60px;
	right: 22px;
}

#locales img {
	box-shadow: 0 3px 8px rgba(0,0,0,0.3);
	-moz-box-shadow: 0 3px 8px rgba(0,0,0,0.3);
	-webkit-box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

#topmenu {
	height: 38px;
	background-image: url(../images/layout/btn_gradient.png);
	border-radius: 3px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	position: relative;
}

#topmenu ul {
	padding: 0;
	margin: 0;
}

#topmenu li ul { visibility: hidden }
#topmenu li:hover ul { visibility: visible }

#topmenu ul ul li {
	z-index: 1;
	position: relative;
	background-color: #70a430;
	float: none;
	width: 100%;
	height: 24px;
	line-height: 24px;
}

#topmenu ul.menu-right {
	position: absolute;
	right: 0;
}

#topmenu li {
	float: left;
	height: 38px;
	line-height: 38px;
	list-style: none;
	border-right: 1px solid rgba(0,0,0,0.05);
}

#topmenu li>span { cursor: arrow }

#topmenu li a, #topmenu li>span {
	display: block;
	padding: 0 18px;
	color: #3b3b3b;
	text-decoration: none;
	text-shadow: 0 1px 1px rgba(255,255,255,0.8);
}

#topmenu li:hover a, #topmenu li:hover>span {
	background-image: url(../images/layout/btn_gradient_pushed.png);
	color: #f0fbe4;
	text-shadow: none;
}

#topmenu ul ul li {
	border-bottom: 1px solid #66972c;
	border-right: none;
}

#topmenu ul ul li a {
	background-image: none!important;
	color: #f0fbe4;
	text-shadow: none;
	padding-top: 1px;
	padding-bottom: 1px;
}

#topmenu ul ul li a:hover {
	background-color: #79ad32;
	border-top: 1px solid #84b63f;
	border-bottom: 1px solid #84b63f;
	padding-top: 0;
	padding-bottom: 0;
}

#contentbox {
	margin-top: 11px;
	background-color: #f5f5f5;
	border-radius: 4px;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	padding: 22px 22px;
	position: relative;
}

#contentfoot {
	padding-top: 110px;
	padding-left: 10px;
	margin: 20px -22px -5px -22px;
	position: relative;
}
#contentfoot>.decorflash {
	position: absolute;
	left: 0;
	bottom: 297px;
}
	
#contentfoot>.decor {
	background-image: url(../images/layout/aallot.png);
	width: 921px;
	height: 160px;
	top: 0;
	left: -10px;
	position: absolute;
}

#contentfoot>.content {
	height: 290px;
	margin-left: -10px;
}

#contentfoot h2 {
	color: #f3ffe6;
	font-size: 17px;
}

#cfbox1, #cfbox2, #cfbox3 {
	width: 254px;
	padding: 0 8px;
	float: left;
	margin-left: 23px;
	min-height: 241px;
	position: relative;

	border-radius: 0 0 3px 3px;
	-moz-border-radius: 0 0 3px 3px;
	-webkit-border-radius: 0 0 3px 3px;
}

#cfbox1 {
	background: #68a724 url(../images/layout/ggrad1.png) repeat-x bottom;
	margin-top: -10px;
	padding-top: 40px;
}

#cfbox2 {
	background: #85c145 url(../images/layout/ggrad2.png) repeat-x bottom;
	margin-top: 5px;
	padding-top: 25px;
}
#cfbox2>.shim {
	background: #85c145;
	width: 122px;
	height: 20px;
	position: absolute;
	left: 0;
	top: -20px;
}
#cfbox3 {
	background: #a9e228 url(../images/layout/ggrad3.png) repeat-x bottom;
	margin-top: 0px;
	padding-top: 30px;
}

#footer {
	background-color: #f1f3ed;
	border-radius: 3px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	position: relative;

	margin-top: 11px;
	padding: 5px 22px;
	color: #b2b2b2;

	clear: both;
}

#footer a { color: #748b44 }

#footer .right-align {
	position: absolute;
	top: 5px;
	right: 22px;
}

#adminlink { text-align: right }
#accountlink {
	position: absolute;
	top: 22px;
	right: 0;
}

/* mini calendar */
#minicalendar {
    width: 215px;
    color: #fff;
    background-color: #a3ca73;
    border: 1px solid #91ae73;
    -moz-border-radius: 6px;
    font-size: 15px;
    margin: 0 auto;
}

#minicalendar a {
    color: #7c9761;
    text-decoration: none;
}

#minicalendar td.today a { border: 1px solid #b0e68f }

#minicalendar td.event a { color: #cbfda3 }

#minicalendar .myevent { font-weight: bold }

#minicalendar td { text-align: center }

.footlink { text-align: right }
.footlink a {
    text-decoration: none;
    color: #000;
    font-size: 13px;
    margin-right: 21px;
    text-shadow: 0 1px 1px rgba(255,255,255,0.4);
}

/* newsbox */
.newsbox .date { margin-bottom: 0; }
.newsbox .title { margin-top: 0.5em }

/* The big calendar */
#bigcalendar {
	width: 100%;
	font-size: 10px
}

#bigcalendar {
    background: #c7e2a6;
}

#bigcalendar th {
	background: #447424;
	color: #bbd69a;
	padding-top: 0.5em;
	padding-bottom: 0.5em;
	text-align: center
}

#bigcalendar td {
	background: #cdf2ad;
	text-align: center;
}

#bigcalendar th.week {
    background: #3a5519;
}

#bigcalendar th.pointoftime, #bigcalendar th.day {
	background: #708b4f;
}

#bigcalendar th.day { width: 120px }

#bigcalendar td.highlight { outline: 2px solid #ff0; }

#bigcalendar a {
	text-decoration: none;
	color: black;
	font-weight: bold;
}

#bigcalendar td:hover { 
	background-color: #ADEF77 !important;	 
}

/* Misc. things */
.float {
	float: left;
	margin: 0.5em
}

.bulletbox {
	border: 2px groove #85DA41;
}

.bulletbox h1 {
	padding-left: 1em
}

.bulletbox ul {
	padding-left: 1em;
	list-style-position: inside;
}

blockquote.anecdote {
	padding-top: 1em;
	font-style: italic
}

table.info2c {
	margin-top: 1em;
	margin-bottom: 1em;
	border-collapse: collapse
}

table.info2c th, table.info2c td {
	padding: 0.3em;
	border: 1px solid #000;
	text-align: left
}

table.info2c th {
	background-color: #efd;
	padding-right: 2em
}

table.report {
	width: 100%;
	text-align: left;
	border-collapse: collapse
}

table.report thead th { border-bottom: 1px solid #000 }

table.report tfoot th { height: 2em }

table.report td {
	padding-top: 0.2em;
	padding-bottom: 0.2em
}

a.action {
	padding-left: 10px;
	background-image: url(../images/bulletin_green.gif);
	background-repeat: no-repeat;
	background-position: 0 center
}

select {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px
}

.warning { color: red }
.correction { font-style: italic }

input.yesno { width: 6em }

tbody tr>th { text-align: right }

/* Course type emblem is displayed in the corner of the page*/
#coursetypeemblem {
	position: absolute;
	color: #000;
	top: -1em;
	right: 1px;
	padding: 0.5em;
	-moz-border-radius-bottomleft: 0.5em
}

/* Press release page and press release sidebar */
.pressrelease { margin-bottom: 3em }
.sidenews {
	margin-bottom: 1em;
	width: 183px 
}

.pressrelease .title, .sidenews .title {
	font-weight: bold;
	margin-top: 0.5em
}

.pressrelease .title:before {
	content: url(../images/musta_nelio.jpg);
	margin-right: 0.5em
}

.pressrelease .date, .sidenews .date {
	font-size: smaller;
	font-weight: bold;
	color: #4FB001
}

.pressrelease p {
	margin-top: 0;
	margin-bottom: 0.5em
}

.pressrelease > p:first-of-type:before {
	content: url(../images/musta_nelio.jpg);
	margin-right: 0.5em
}

.pressrelease ul {
	list-style-position: inside;
	list-style-image: url(../images/musta_nelio.jpg)
}


#sidebar {
	float: left;
	width: 230px;
	padding-top: 20px;
}

#realcontent {
	margin-left: 240px;
	background-image: url(../images/borderridge.png);
	background-repeat: repeat-y;
	padding-left: 20px;
}

.sidebarbox {
	background-image: url(../images/sidebarboxbg.png);
	background-repeat: repeat-x;
	background-color: #8ab05a;
	padding: 20px 5px 10px 5px;	
	
	border-radius: 8px;
	-wekit-border-radius: 8px;
	-moz-border-radius: 8px;
}

