/*
Theme Name: JMSilva
Theme URI: http://sites.ipleiria.pt/labsUED/
Description: Inspired by <a href="http://xuui.net/wordpress/istudio-theme-release.html">iStudio</a>.
Version: 1.0.1
Author: Cláudio Esperança <claudio.esperanca@ipleiria.pt>, Joana Mineiro <joana.mineiro@ipleiria.pt>
Author URI: http://ued.ipleiria.pt

The CSS, XHTML and design is released under GPL:
http://www.opensource.org/licenses/gpl-license.php
*/

@CHARSET "UTF-8";
@IMPORT url("./css/html5-reset-1.4.css");

@font-face {
     font-family: lane;
     src:	url('fonts/lane_narrow_.eot');
     src:	local('Lane - Narrow'),
			url("fonts/lane_narrow.svg") format("svg"),
         	url('fonts/lane_narrow.ttf') format('opentype');
}

/* Generic classes */
	.shadow {
		-moz-box-shadow:0 0 3px #A7A9AC;
		-webkit-box-shadow:0 0 3px #A7A9AC;
		-khtml-box-shadow:0 0 3px #A7A9AC;
		box-shadow: 0 0 3px #A7A9AC;
	}
	.opacity {
		-moz-background-clip:border;
		-moz-background-inline-policy:continuous;
		-moz-background-origin:padding;
		-webkit-background-clip:border;
		-webkit-background-inline-policy:continuous;
		-webkit-background-origin:padding;
		-khtml-background-clip:border;
		-khtml-background-inline-policy:continuous;
		-khtml-background-origin:padding;
		
		background-clip:border;
		background-inline-policy:continuous;
		background-origin:padding;
		
		background:rgba(255, 255, 255, 0.5) none repeat scroll 0 0;
	}
	.box{
		-moz-border-radius:6px;
		-webkit-border-radius: 6px;
		-khtml-border-radius: 6px;
		border-radius: 6px;
	}
	.border{
		border: 1px solid #A7A9AC;
	}
	.clear {
		clear: both;
	}

	body {
		background: #dee0df url("images/bg.jpg") no-repeat scroll center top;
		font-family: Arial, sans-serif;
		font-size: 12px;
		line-height: 16px;
		vertical-align: middle;
		color:#414042;
	}
/* Links */
	a,
	a:link,
	li#calendar a,
	li#calendar a:link,
	li#calendar a:visited,
	#nav a,
	#nav a:link,
	#nav a:visited,
	.comments_link a,
	.comments_link a:link,
	.comments_link a:visited,
	h1 a,
	h1 a:link,
	h1 a:visited,
	h2 a,
	h2 a:link,
	h2 a:visited,
	#footer a,
	#footer a:link,
	#footer a:visited {
		text-decoration: none;
		color: #157A8C;
	}
	
	a:hover,
	a:active,
	li#calendar a:hover,
	li#calendar a:active,
	.comments_link a:hover,
	.comments_link a:active,
	h2 a:hover,
	h2 a:active,
	.sidebar ul li a:hover,
	.sidebar ul li a:active,
	#footer a:hover,
	#footer a:active,
	.postTitle h2 a:hover {
		color: #157A8C;
		text-decoration: underline;
	}
/* Links end */

/* Structure */
	#page{
		position: absolute;
		top: 0px;
		left: 0px;
		width: 100%;
		height: 100%;	
	}
	
	#pagewrapper {
		width: 955px;
		margin: 0 auto;
	}
	
	header div{
		padding: 22px 42px;
	}
	
	#contentwrapper{
		background-color: #FFFFFF;
		width: 655px;
	}
	
	#sidebarwrapper{
		float: right;
		width: 230px;
	}
	
	#content {
		overflow: hidden;
		margin: 0;
		width: 100%;
		height: 100%;
	}
	
	#navbar,
	#wrapper{
		-moz-box-shadow:0 0px 3px #A7A9AC;
		-webkit-box-shadow:0 0px 3px #A7A9AC;
		-khtml-box-shadow:0 0px 3px #A7A9AC;
		box-shadow: 0 0px 3px #A7A9AC;
		border: 1px solid #A7A9AC;
	}
	
	#wrapper{
		background-color: #FFFFFF;
		
		/* borders settings */
		border-top: 0px none;
		
		/* gecko */
		-moz-border-radius-bottomleft:6px;
		-moz-border-radius-bottomright:6px;
		-moz-border-radius-topleft:0;
		-moz-border-radius-topright:0;
		
		/* webkit */
		-webkit-border-top-left-radius: 0;
		-webkit-border-top-right-radius: 0;
		-webkit-border-bottom-left-radius: 6px;
		-webkit-border-bottom-right-radius: 6px;
		
		/* khtml */
		-khtml-border-top-left-radius: 0;
		-khtml-border-top-right-radius: 0;
		-khtml-border-bottom-left-radius: 6px;
		-khtml-border-bottom-right-radius: 6px;
		
		/* css 3 */
		border-top-left-radius: 0;
		border-top-right-radius: 0;
		border-bottom-right-radius: 6px;
		border-bottom-left-radius: 6px;
		
		padding: 25px;
	}
	
	#navbar,
	nav{
		-webkit-border-top-left-radius: 6px;
		-khtml-border-top-left-radius: 6px;
		-moz-border-radius-topleft: 6px;
		border-top-left-radius: 6px;
	
		-webkit-border-top-right-radius: 6px;
		-khtml-border-top-right-radius: 6px;
		-moz-border-radius-topright: 6px;
		border-top-right-radius: 6px;
	}
	
	#navbar,
	nav div{
		height: 27px;
	}
	
	#navbar{
		background: #FFFFFF url("images/menu.jpg") repeat-x top center;
		line-height: 26px;
		white-space: nowrap;
		border-bottom: 0px none;
	}
	
	nav div {
		padding: 1px 0px 0px 15px;
		float: left;
	}
	
	nav div.sitemenu {
		padding-left: 5px;
	}
/* Structure end */

/* Fonts */
	h1.blogtitle,
	small.blogdescription, 
	.text {
		color: #414042;
	}
	
	.text {
		font-weight: normal;
	}
	
	h1.blogtitle{
		font-family: lane, Helvetica, Verdana, Arial, sans-serif;
		font-size: 28px;
		/*font-weight: lighter;*/
	}
	
	small.blogdescription{
		font-family: Arial, sans-serif;
		font-size: 10px;
	}
	
	li.homelink a img{
		margin: 2px 10px 0 0;
		width: 18px;
		height: 18px;
		background: url("images/home.jpg") no-repeat scroll center top transparent;
		
		border: 1px solid #FFFFFF;
		-moz-border-radius: 3px;
		-webkit-border-radius: 3px;
		-khtml-border-radius: 3px;
		border-radius: 3px;
	}
	
	li.homelink a:hover img,
	li.homelinkenabled a img{
		background-position: center bottom;
	}
	li.homelink:hover> a{
		background: none;
		border-color: transparent;
	}
/* Fonts end */

/* Menu */
	nav ul, 
	nav li, 
	ul.nav503, 
	ul.nav503 li,
	.sidebar ul,
	.sidebar ul li{
		list-style-image:none;
		list-style-position:outside;
		list-style-type:none;
		margin: 0;
		padding: 0;
	}
	
	nav li.page_item a,
	nav li.page_item a span.menuitem{
		height: 22px;
		line-height:24px;
		vertical-align: middle;
	}
	
	nav li {
		float:left;
		position:relative;
	}
	
	nav li.page_item a{
		font-size: 11px;
		cursor: hand;
		font-size: 12px;
		font-weight: bold;
		vertical-align: middle;
		text-shadow: 1px 1px #FFFFFF;
	}
	
	nav li.page_item a, 
	nav span.menuitem {
		display:block;
		text-decoration:none;
	}
	
	nav span.menuitem {
		/*min-width:70px;*/
		text-align:center;
		white-space:nowrap;
		width:auto !important;
		outline-style:none;
		outline-width:medium;
		padding: 0 15px;
	}
	
	nav li.page_item li span.menuitem{
		text-align: left;
	}
	
	
	/* menu disabled */
	nav li.page_item a{
		/*color:#157A8C;*/
		color:#414042;
		border: 1px solid transparent;
		background: none;
	}
	
	nav li.page_item li a{
		color:#666666;
	}
	
	nav li.current_page_item a span.mark,
	nav li.current_page_ancestor a span.mark{
		display: block;
		visibility:visible;
		position: absolute;
		width: 100%;
		height: 9px;
		margin: 0 auto;
		background: url("images/current.png") no-repeat scroll center bottom transparent;
	}
	
	nav li a span.mark,
	nav li li a span.mark,
	nav li.current_page_item li span.mark,
	nav li.current_page_ancestor li span.mark{
		display: none;
		visibility: hidden;
	}
	
	nav li.page_item:hover > ul,
	nav li.page_item a:focus + ul,
	nav li.page_item a:active + ul  {
		display: block;
		z-index: 1;
	}
	
	nav li.page_item li:hover > ul,
	nav li.page_item li a:focus + ul,
	nav li.page_item li a:active + ul,
	nav ul ul {
		display: none;
	}

	/* menu active */
	nav li.page_item:hover> a,
	nav li.page_item> a:focus,
	nav li.current_page_item> a,
	nav li.current_page_ancestor> a{
		color: #FFFFFF;
		background: url("images/menuover.jpg") repeat-x scroll left top #157A8C;
		border: 1px solid #157A8C;
		text-decoration: none;
		text-shadow: none;
	}
	nav li.page_item li:hover> a,
	nav li.page_item li.current_page_item> a,
	nav li.page_item li.current_page_ancestor> a{
		color: #157A8C;
		border: 1px solid transparent;
		text-decoration: none;
		background: none no-repeat 0 0 transparent;
		background: rgba(200, 200, 200, 0.1) none repeat scroll 0 0;
		-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
	}
	nav li.page_item:hover li> a, 
	nav li.page_item:hover li:hover> a{
		border: 0px none;
	}

	/* level 2 list */
	nav ul ul {
		margin: 0;
		padding: 0;
		/*width: 185px;*/
		position: absolute;
		top: 24px;
		left: 0px;
		background: #FFFFFF;
		border: 1px solid #157A8C;
	
		-webkit-box-shadow: 0 1px 3px rgba(0,0,0, .3);
		-moz-box-shadow: 0 1px 3px rgba(0,0,0, .3);
		box-shadow: 0 1px 3px rgba(0,0,0, .3);
	}
	nav ul ul li.page_item {
		float: none;
		margin: 0;
		padding: 0;
	}
	
	#nav ul a {
		font-weight: normal;
		text-shadow: 0 1px 0 #fff;
	}
	
	/* level 3+ list */
	nav ul ul ul {
		display: none;
		/*
		left: 184px;
		top: 0px;
		*/
		position: static;
		padding-left: 15px;
		
	}
	
	/* rounded corners of first and last link */
	nav ul ul li:first-child > a {
		-webkit-border-top-left-radius: 3px;
		-khtml-border-top-left-radius: 3px;
		-moz-border-radius-topleft: 3px;
		border-top-left-radius: 3px;
	
		-webkit-border-top-right-radius: 3px;
		-khtml-border-top-right-radius: 3px;
		-moz-border-radius-topright: 3px;
		border-top-right-radius: 3px;
	}
	nav ul ul li:last-child > a,
	nav ul ul {
		-webkit-border-bottom-left-radius: 3px;
		-khtml-border-bottom-left-radius: 3px;
		-moz-border-radius-bottomleft: 3px;
		border-bottom-left-radius: 3px;
	
		-webkit-border-bottom-right-radius: 3px;
		-khtml-border-bottom-right-radius: 3px;
		-moz-border-radius-bottomright: 3px;
		border-bottom-right-radius: 3px;
	}
	
	/* clearfix */
	nav:after {
		content: ".";
		display: block;
		clear: both;
		visibility: hidden;
		line-height: 0;
		height: 0;
	}
	 
	* html nav {
		height: 1%;
	}

/* Menu end */

/* Footer */
	#footer{
		text-align: center;
		vertical-align: top;
		padding: 0;
		margin: 5px 10px;
		position: relative;
		font-size: 10px;
	}
	#footer div.pleft, #footer div.pright{
		position: absolute;
		top: 0px;
	}
	#footer div.pleft{
		left: 0px;
	}
	#footer div.pright{
		right: 0px;
	}
	#footer div.copyright,
	ul#uFooterMenu li{
		padding: 0 10px;
	}
	#footer div.copyright, 
	#footer div.footerPages{
		float: left;
	}
	
	#footer div.footerPages{
		border-left: 1px solid #888;
	}
	#footer div.footerPages a{
		color: 	#58595B;
	}
	ul#uFooterMenu{
		list-style-image:none;
		list-style-position:outside;
		list-style-type:none;
	}
	
	ul#uFooterMenu li{
		float: left;
		border-left: 1px solid #000000;
	}
	
	ul#uFooterMenu li:FIRST-CHILD{
		border-left: none;
	}
/* Footer end*/

/* Page login button */
	a.pageLoginItem {
		float: right;
	}
	a.pageLoginItem img{
		background-image: url("./images/lock.png");
		background-repeat: no-repeat;
		background-position: center top;
		height: 10px;
		width: 10px;
	}
	
	a.pageLoginItem:hover img, a.pageLoginItem img.pageLoginItemImgAuthenticated{
		background-position: center bottom;
	}
/* Page login button end */

/* Sidebar widgets boxes */
	.dbx-box,
	.widget{
		padding:0 0 15px;
	}
	.dbx-box .dbx-content,
	.dbx-box .dbx-handle{
		border: 1px solid #A7A9AC;
	}
	
	.dbx-box .dbx-content{
		background-color: #f8f8f8;
		border-top: 0px none;
		padding: 5px 10px;
	}
	
	.dbx-box .dbx-handle {
		background:url(images/navgrad-normal.png) repeat-x 0 0;
		padding: 0px 10px ;
		height: 22px;
		line-height: 22px;
		vertical-align: middle;
		font-size: 12px;
		font-weight: bold;
		color: #414042;
		
		-moz-border-radius-topleft: 5px;
		-webkit-border-top-left-radius: 5px;
		-khtml-border-top-left-radius: 5px;
		border-top-left-radius: 5px;
		
		-moz-border-radius-topright: 5px;
		-webkit-border-top-right-radius: 5px;
		-khtml-border-top-right-radius: 5px;
		border-top-right-radius: 5px;
	}
	
	.dbx-box-closed .dbx-content{
		height: 0px;
		border: 0px none;
		padding: 0;
		display: none;
		visibility: hidden;
	}
	
	.dbx-box .dbx-content,
	.dbx-box-closed .dbx-handle{
		-moz-border-radius-bottomleft: 5px;
		-webkit-border-bottom-left-radius: 5px;
		-khtml-border-bottom-left-radius: 5px;
		border-bottom-left-radius: 5px;
		
		-moz-border-radius-bottomright: 5px;
		-webkit-border-bottom-right-radius: 5px;
		-khtml-border-bottom-right-radius: 5px;
		border-bottom-right-radius: 5px;
	}
	
	.sidebar ul li a{
		color: #777777;
	}
	.sidebar ul li a:hover{
		color: #414042;
	}

/* Sidebar widgets boxes end */

/* Search form */
	form.searchform{
		display: block;
		position: relative;
		height: 40px;
	}
	form.searchform label{
		display: none;
		visibility: hidden;
	}
	form.searchform #s,
	form.searchform #searchsubmit{
		border: 1px solid #A7A9AC;
		padding: 0;
		margin: 0;
	}
	form.searchform #s {
		background: #FFFFFF url(images/search_input.png) repeat-x top left;
		
		-moz-border-radius-bottomleft: 15px;
		-webkit-border-bottom-left-radius: 15px;
		-khtml-border-bottom-left-radius: 15px;
		border-bottom-left-radius: 15px;
		-moz-border-radius-topleft: 15px;
		-webkit-border-top-left-radius: 15px;
		-khtml-border-top-left-radius: 15px;
		border-top-left-radius: 15px;
		
		width: 185px;
		height: 24px;
		line-height: 24px;
		font-size: 10px;
		vertical-align:middle;
		/*position: absolute;
		top: 0px;
		left: 0px;*/
		float: left;
		
		padding: 0 5px;
	}
	
	form.searchform #searchsubmit {
		background: transparent url(images/search_btn.jpg) no-repeat top center;
		width: 30px;
		height: 26px;
		cursor: pointer;
		text-indent: -999%;
		line-height: 22px;
		margin:0;
		padding: 0;
		color: transparent;
		/*position: absolute;
		top: 0px;
		right: 0px;*/
		float: left;
		border-left: 0px none;
		
		-moz-border-radius-bottomright: 15px;
		-webkit-border-bottom-right-radius: 15px;
		-khtml-border-bottom-right-radius: 15px;
		border-bottom-right-radius: 15px;
		-moz-border-radius-topright: 15px;
		-webkit-border-top-right-radius: 15px;
		-khtml-border-top-right-radius: 15px;
		border-top-right-radius: 15px;
	}
	
	form.searchform #searchsubmit:HOVER,
	form.searchform #searchsubmit:FOCUS {
		background-position: bottom center;
	}
	
	.sidebar form {
		margin: 0;
	}
/* Search form end */

/* Sidebar lists */
	.sidebar ul li li{
		padding: 0 0 0 13px;
	}
	.sidebar ul li a {
		font-size: 10px;
	}
/* Sidebar lists end */

/* Content */
	.post header h2,
	.page header h2,
	 h2.pagetitle{
		font-size: 24px;
		font-weight: normal;
		color: #157A8C;
		padding: 5px 0;
	}
	.searchresults article{
		padding: 15px 0;
	}
	.post header small,
	.page header small{
		font-size: 11px;
	}
	
	.post div.entry{
		padding: 18px 0 50px;
	}
	
	.fright {
		float:right;
	}
	.fleft {
		float:left;
	}
	.fclear{
		clear: both;	
	}
	.ftag {
		font-size: 9px;
		margin-top: 2px;
		
	}
/* Content end */

/* Begin Images */
	p img {
		padding: 0;
		max-width: 100%;
	}
	
	img.centered {
		display: block;
		margin-left: auto;
		margin-right: auto;
	}
	
	img.alignright {
		padding: 4px;
		margin: 0 0 2px 7px;
		display: inline;
	}
	
	img.alignleft {
		padding: 4px;
		margin: 0 7px 2px 0;
		display: inline;
	}
	
	.alignright {
		float: right;
	}
	
	.alignleft {
		float: left;
	}
/* End Images */

/* Begin Lists

	Special stylized non-IE bullets
	Do not work in Internet Explorer, which merely default to normal bullets. */

	.entry ul {
		margin-left: 0px;
		padding: 0 0 0 30px;
		list-style: none;
		padding-left: 10px;
	}
	
	.entry li {
		margin: 7px 0 8px 10px;
	}
	
	.entry ul li:before, .sidebar ul ul li:before {
		content: "\00BB \0020";
		margin-left: -10px;
	}
	
	.entry ol {
		padding: 0 0 0 35px;
		margin: 0;
	}
	
	.entry ol li {
		margin: 0;
		padding: 0;
	}
	
	.postmetadata ul, .postmetadata li {
		display: inline;
		list-style-type: none;
		list-style-image: none;
	}


/* End Entry Lists */


/* Begin Calendar */
	#wp-calendar {
		empty-cells: show;
		margin: 10px auto 0;
		width: 155px;
	}

	#wp-calendar #next a {
		padding-right: 10px;
		text-align: right;
	}
	
	#wp-calendar #prev a {
		padding-left: 10px;
		text-align: left;
	}
	
	#wp-calendar a {
		display: block;
	}
	
	#wp-calendar caption {
		text-align: center;
		width: 100%;
	}
	
	#wp-calendar td {
		padding: 3px 0;
		text-align: center;
	}
	
	#wp-calendar td.pad:hover { /* Doesn't work in IE */
		background-color: #fff;
	}
/* End Calendar */

/* Begin Various Tags & Classes */
	acronym, abbr, span.caps {
		cursor: help;
	}
	
	acronym, abbr {
		border-bottom: 1px dashed #999;
	}
	
	blockquote {
		margin: 15px 30px 0 10px;
		padding-left: 20px;
		border-left: 5px solid #ddd;
	}
	
	blockquote cite {
		margin: 5px 0 0;
		display: block;
	}
	
	.center {
		text-align: center;
	}
	
	.hidden {
		display: none;
	}
		
	.screen-reader-text {
	     position: absolute;
	     left: -1000em;
	}
	
	hr {
		display: none;
	}
	
	a img {
		border: none;
	}
	
	.navigation {
		display: block;
		text-align: center;
		margin-top: 10px;
		height: 20px;
	}
/* End Various Tags & Classes*/

/* Specific content */
ol.curriculum li{
	font-weight: bold;
	margin-bottom: 5px;
	color: #157A8C;
}

table.curriculum thead tr th{
	text-align: left;
}

table.curriculum tbody tr td{
	text-align: justify;
	vertical-align: top;
	padding: 0px 15px 10px 0px;
}



.curriculum .title{
	padding: 10px 0px 5px;
	margin: 20px 0px 5px;
	border-bottom: 2px solid #157a8c;
	color: #333132;
	background-color: #f6f6f6;
}
.totop{
	text-align: right;
	font-size: 9px;
}
