/*PERMACULTURING IN PORTUGAL LAYOUT CSS*/
/*primary CSS file - spacial relationships and text definitions*/

@-ms-viewport {
    width: extend-to-zoom;
    zoom: 1.0;
}
html {
 	height: 100%;
	margin-bottom: 1px
}
body {
	margin: 0;
	font-family: Arial, Helvetica, Sans-Serif;
	background: url(../images/layout/bkgnd-fern2.jpg) no-repeat top center;
	color: #333;
	text-align: center;
	font-size: 100%;
}
* {
	margin: 0;
	padding: 0;
}

/* default typography */

h2, h3, h4, h6, p, blockquote,
 form, label, ul, ol, dl, td, fieldset, address {
    margin-bottom: 0.8em
}
p, ul, td {
	font-weight: normal;
	font-size: 75%;
}
ul {
	padding-left: 2.5em
}
ul li ul {
    font-size: 100%;
}
ul li ul li {
    list-style: disc; 
}
h1, h2, h3 {
	font-weight: normal;
	color: #930;
	margin: 0;
	padding-bottom: 0.8em
}
h1 {
	font-size: 150%;
    line-height: 120%;
	padding: 1em 0 0.6em;
}
h2 {
	font-size: 120%;
	padding: 1.2em 0 0.8em 0
}
h3 {
	font-size: 90%;
	padding: 0.7em 0 0.4em 0
}
a {
	font-weight: normal;
	text-decoration: none
}
	a:link, a:visited {  
		color: #930;
	}
	a:hover, a:active {
		color: #333;
		text-decoration: underline
	}

/* select typography */

#header h1 {
	font-size: 250%;
	line-height: 100%;
	font-weight: bold;
	padding: 10% 0 0;
}
.description {
	font-family: "Times New Roman", Times, serif;
	font-style: italic;
	font-size: 100%;
	margin: 0 0 7%;
}
img {
	border-width: 0;
	margin: 0;
	padding: 0;
}
.indent, .quote {
	padding-left: 1.2em
}
.portuguese {
	color: #933
}
.label {
	font-size: 70%;
	line-height: 110%;
	padding-top: 0.3em;
    color: #99a3a4;
}
.small {
	font-size: 60%;
}
.caption {
    font-size: 60%;
    line-height: 110%;
    padding: 0.8em 0px 1em;
    color: #99a3a4;
}
.clear {
	clear: both
}
.complex {
    padding-bottom: 10px;
}
hr {
    display: block;
    width: 100%;
    max-width: 670px;
    margin: 0 auto;
    border-top: 1px solid #666;
}


/* page layout */

/* default layout */

#header {
	max-width: 670px;
	margin: 0 auto;
    background-color: transparent;
    text-align: left;
}
#banner {
    max-width: 670px;
    min-height: 154px;
    display: block;
	margin: 0 auto 1.5em;
    overflow: hidden;
    position: relative;
}

#controlbar {
    max-width: 670px;
	margin: 0 auto -1em;
    min-height: 50px;
    display: block;
    background-color: transparent;
    padding-top: 1em;
}
#controlbar .sb-toggle-left {
	width: 26px;
	float: left;
    vertical-align: middle;
	margin: 1.5% 3% 0%;
}
#controlbar .socialmedia {
    width: 75%;
    float: left;
    margin: 0 auto;
    padding: 0
}
    .socialmedia img {
        -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
        filter: alpha(opacity=40); /* For IE8 and earlier */
        -khtml-opacity: 0.4;
        -moz-opacity: 0.4;
        opacity: 0.4;
    }
#controlbar .sb-toggle-right {
	width: 26px;
	float: right;
	vertical-align: middle;
	margin: 1.5% 3% 0%;
}
.navicon-line {
	width: 24px;
	height: 3px;
	border-radius: 1px;
	margin-bottom: 3px;
	background-color: #933;
}
/* #sb-site dimensions are in slidebars.css - max-width: 670px; width: 100%; margin: 0 auto; position: relative; */
#sb-site {
	color: #333;
	line-height: 130%;
	text-align: left;
}

.column1 {
	float: left;
	width: 70%;
}
.column2 {
	float: right;
	width: 24%;
}

#underfoot {
	max-width: 670px;
	margin: 2% auto 5%;
	padding: 0 1em 0;
	background: transparent;
	color: #930;
	text-align: left;
}
		#underfoot p {
			font-size: 60%;
		}
		#underfoot a:link, #underfoot a:visited {
			color: #930;
			text-decoration: none
		}
		#underfoot a:hover, #underfoot a:active {
			color: #333;
			text-decoration: underline
		}

/* select elements */

.images {
	float: left;
	padding: 1.2em 2em 0 0
}
#slideshowOuter {
    width: 100%;
    height: 55px;
    overflow: scroll;
}
    #slideshowInner img {float:left;margin-right:0.3em}

.videoWrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
}
.videoWrapper2 {
	position: relative;
	padding-bottom: 68%; /* 4:3 */
	padding-top: 25px;
	height: 0;
}
.videoWrapper iframe, .videoWrapper2 iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.open {
    display: inline-block;
background: rgb(180,221,180); /* Old browsers */
/* IE9 SVG, needs conditional override of 'filter' to 'none' */
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2I0ZGRiNCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjE3JSIgc3RvcC1jb2xvcj0iIzgzYzc4MyIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjMzJSIgc3RvcC1jb2xvcj0iIzUyYjE1MiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjY3JSIgc3RvcC1jb2xvcj0iIzAwOGEwMCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjgzJSIgc3RvcC1jb2xvcj0iIzAwNTcwMCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMwMDI0MDAiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -moz-linear-gradient(top, rgba(180,221,180,1) 0%, rgba(131,199,131,1) 17%, rgba(82,177,82,1) 33%, rgba(0,138,0,1) 67%, rgba(0,87,0,1) 83%, rgba(0,36,0,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(180,221,180,1)), color-stop(17%,rgba(131,199,131,1)), color-stop(33%,rgba(82,177,82,1)), color-stop(67%,rgba(0,138,0,1)), color-stop(83%,rgba(0,87,0,1)), color-stop(100%,rgba(0,36,0,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(180,221,180,1) 0%,rgba(131,199,131,1) 17%,rgba(82,177,82,1) 33%,rgba(0,138,0,1) 67%,rgba(0,87,0,1) 83%,rgba(0,36,0,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(180,221,180,1) 0%,rgba(131,199,131,1) 17%,rgba(82,177,82,1) 33%,rgba(0,138,0,1) 67%,rgba(0,87,0,1) 83%,rgba(0,36,0,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(180,221,180,1) 0%,rgba(131,199,131,1) 17%,rgba(82,177,82,1) 33%,rgba(0,138,0,1) 67%,rgba(0,87,0,1) 83%,rgba(0,36,0,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(180,221,180,1) 0%,rgba(131,199,131,1) 17%,rgba(82,177,82,1) 33%,rgba(0,138,0,1) 67%,rgba(0,87,0,1) 83%,rgba(0,36,0,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b4ddb4', endColorstr='#002400',GradientType=0 ); /* IE6 */
    color: #fff;
    font-size: 160%;
    font-weight: bolder;
    line-height: 200%;
    text-align: center;
    width: 4em;
}
.closed {
    display: inline-block;
background: rgb(255,48,25); /* Old browsers */
/* IE9 SVG, needs conditional override of 'filter' to 'none' */
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmMzAxOSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM4OTBkMDIiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -moz-linear-gradient(top,  rgba(255,48,25,1) 0%, rgba(137,13,2,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,48,25,1)), color-stop(100%,rgba(137,13,2,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  rgba(255,48,25,1) 0%,rgba(137,13,2,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  rgba(255,48,25,1) 0%,rgba(137,13,2,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  rgba(255,48,25,1) 0%,rgba(137,13,2,1) 100%); /* IE10+ */
background: linear-gradient(to bottom,  rgba(255,48,25,1) 0%,rgba(137,13,2,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff3019', endColorstr='#890d02',GradientType=0 ); /* IE6-8 */
    color: #fff;
    font-size: 160%;
    font-weight: bolder;
    line-height: 200%;
    text-align: center;
    width: 5em;
}

/*navigation properties*/

.menu {
	background: #fff;
	width: 100%;
	clear: both;
}
.nav {
	position: relative;
    height: 100%;
	padding: 0;
	background: #fff;
	list-style: none;
}			
.nav li {margin: 0; padding: 0;}
.nav a {display: block}
.nav img {width: 100%;}

.column2 .socialmedia {
    width: 100%;
    padding: 0.5em 0 1em;
}
.projects {
    width: 100%;
	line-height: 100%;
	color: #933;
    text-align: left;
}
    .projects td {
        padding-bottom: 0.5em
    }
    .projects ul li, .projects h3 {
        display: block;
        width: 94%;
        margin-left: 0;
        padding: 8% 3%;
        background-color: #fff;
    }
    .projects h3 {
        font-size: 80%;
        font-weight: bold;
    }

/* device-dependent layout */

@media screen and (max-width: 768px) {#header, #sb-site {padding: 0 1em 0}
    .column1 {padding-left: 1em;}}
@media screen and (max-width: 570px) {.column2 {display: none;}
    .column1 {width: 90%;margin: 0 auto;}
    .projects {display: none;}
    #banner {margin-bottom: 0}}
@media screen and (min-width: 571px) {#controlbar {display: none;}}
@media print {.column2 {display: none;}
    .column1 {width: 80%}}
@media screen and (max-width: 460px) {.images {clear: both}}

