
/*
Theme Name: Magic behind Farming is Magic
Theme URI: http://www.green-shoots.org
Description: Custom theme to magic up the Farming is Magic site
Version: 1
Author: Patrick Harvey
Author URI: http://www.green-shoots.org
*/

/* basic typography */


* {
	padding:0;
	margin:0;
}

#pageHeader h1,
#pageHeader h2,
#mainPage h1 {
	font-family: 'Fredericka the Great', cursive;
	font-weight:normal;
}

h2 {
	font-family: 'Open Sans Condensed', sans-serif;
	font-weight:300;
}

p, li, div, h2{
	font-family: 'Open Sans', sans-serif;
}


body{
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	background-attachment: fixed;
	/*background-image: url(https://www.farmingismagic.co.uk/wp-content/themes/farmingmagic/images/farming-is-magic.jpg);*/
	background-repeat: no-repeat;
	background-position: center center;
	background-color: #6A840B;
	padding:0;
	margin:0;
}


#pageHeader {
	width:1024px;
	margin:0 auto;
}

#pageHeader h1,
#pageHeader h2 {
	font-weight:normal;
	color:#fff;
	text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
	text-align:center;
}

#pageHeader h1 {
	font-size:60px;
	margin: 0 0 0.5em 0;
}

#pageHeader h1 a {
	text-decoration:none;
	color:#fff;
}

#pageHeader h2 {
	font-size:25px;
	margin:1.5em 0 0 0;
}

#showMenu {
	display:none;
}


/* top menu */
#topNav {
	width:1024px;
	margin:0 auto;
	z-index:10;
	font-size:0.8em;
	background:#fff;
	background:rgba(255,255,255,0.8);
	border-radius:3px;
	border:1px solid #666;
	border: 1px solid rgba(0, 0, 0, 0.3);
}

.menu-main-menu-container{
	width:1015px;
	margin:0 auto;
}

#topNav ul {
	list-style:none;
	padding:0;
	margin:0 0.5em;
}

#topNav li {
	font-family: 'Open Sans Condensed', sans-serif;
	font-weight:bold;
	float:left;
	transition:0.5s;
	padding:0;
	background-image: url(https://www.farmingismagic.co.uk/wp-content/themes/farmingmagic/images/menu-sep.png);
	background-position:left;
	background-repeat:no-repeat;
	text-align:center;
}

#topNav>div.topLevel3>ul>li{
	width:33%;
}

#topNav>div.topLevel4>ul>li{
	width:25%;
}

#topNav>div.topLevel5>ul>li{
	width:20%;
}

#topNav>div>ul>li:first-child {
	background-image:none;	
}

#topNav li a {
	transition:0.5s;
	color:#555;
	text-decoration:none;
	display:block;
	font-size:18px;
	line-height:1em;
	padding:13px 0;
	border-radius:5px;
	margin:0 1em;
	text-shadow:1px 1px 3px #666;
	/*
	line-height:1.3em;
	padding:1em 0;	*/
}

#topNav>div>ul>li:first-child a { 
/*	padding-left:0; */
}

#topNav li a:hover {
	background-color:#eee;
}

#topNav>div>ul ul>li:first-child { 
	border-top:1px solid #eee;
}

#topNav ul ul {
	display:none;
	position:absolute;
	background:rgb(255,255,255);
	background:rgba(255,255,255,0.95);
	padding:0;
	margin-left: 2em;
}

#topNav ul li:hover ul {
	display:block;
}

#topNav ul ul li {
	float:none;
	background-image:none;
	line-height:21px;
	border-right:1px solid #ccc;
	border-bottom:1px solid #ccc;
	border-left:1px solid #ccc;
}

#topNav ul ul li a {
	padding:13px 2em;
	margin:0;
}

/* end of top nav */


#breadcrumbs {
	margin:0.5em auto;
	width:1024px;
}

#breadcrumbs span{
	color:#fff;
	font-size:14px;
	text-shadow: 1px 1px 4px #000;
}

#breadcrumbs a{
	color:#fff;
	text-decoration:none;
}


/* previous/next page navigation */

.pageNavigation {
	text-align: center;
	background:#CCC;
	background: rgba(250, 250, 250, 0.7);
	clear: left;
	font-size:0.85em;
	color:#000;
	border:1px solid rgb(0,0,0);
	border:1px solid rgba(0,0,0,0.3);
	-webkit-background-clip: padding-box; /* for Safari */
    background-clip: padding-box; /* for IE9+, Firefox 4+, Opera, Chrome */
	border-radius:1px;
}

#mainPage .pageNavigation a{
	color:#000;
	text-shadow:rgba(0,0,0,0.5) 1px 1px 2px;
	text-decoration:none;
	transition:all 0.3s;
}

#mainPage .pageNavigation a:hover {
	color:#333333;
	text-shadow:rgba(0,0,0,0.5) 0px 0px 1px;
}

#mainPage {
	color:#fff;
	width:1024px;
	margin:0.7em auto 2em auto;
}

#mainPage h1,
#mainPage h1 a {
	color:#fff;
	text-decoration:none;
}

#mainPage p {
	padding:0.5em 0;
	line-height:1.5em;
	font-size:0.95em;
}

#mainPage li {
	font-size:0.95em;
	line-height:1.5em;
	margin: 0.2em 0 0.2em 3em;
}

#mainPage a {
	color:#eee;
}

blockquote {
	font-style:italic;
	color:#ACD5EC;
}

#singlePage {
	background:#000;
	background:rgba(0,0,0,0.75);
	border:1px solid rgb(250,250,250);
	border:1px solid rgba(238,238,238,0.3);
	-webkit-background-clip: padding-box; /* for Safari */
    background-clip: padding-box; /* for IE9+, Firefox 4+, Opera, Chrome */
	padding:1em 2em;
}

.darkBox {
	width:100%;
	margin:0 0 1em 0;
	padding:0.5em 5%;
	background:#000;
	background:rgba(0,0,0,0.5);
	border:1px solid rgb(250,250,250);
	border:1px solid rgba(238,238,238,0.3);
	-webkit-background-clip: padding-box; /* for Safari */
    background-clip: padding-box; /* for IE9+, Firefox 4+, Opera, Chrome */
	border-radius:2px;
}

#sideCol {
	width:15%;
	float:left;
}

#sideCol ul {
	list-style: none;
}

#sideCol li {
	margin: 0 0 0 0;
}

#sideCol ul ul {
	margin-top:0.5em;
}

#sideCol ul ul li{
	line-height: 1.1em;
	padding: 0.3em 0 0.3em 0.4em;
	font-size:0.85em;
}

#partPage{
	background:#000;
	background:rgba(0,0,0,0.7);
	border:1px solid rgb(250,250,250);
	border:1px solid rgba(238,238,238,0.3);
	-webkit-background-clip: padding-box; /* for Safari */
    background-clip: padding-box; /* for IE9+, Firefox 4+, Opera, Chrome */
	padding:1em 3%;
	width:73%;
	float:right;
	margin-bottom:2em;
	border-radius:1px;
}

.fim_films h1{
	margin:0 0 0.5em 0;	
}

.eachFilm {
	clear:both;
	float:left;
	border-top: 1px solid #FAFAFA;
	border-top: 1px solid rgba(238, 238, 238, 0.3);
	-webkit-background-clip: padding-box;
	background-clip: padding-box;
	padding:1em 2%;
	width:96%;
	transition:all 0.5s;
}
.eachFilm:hover{
/*	background:rgba(255,255,255,0.3);*/
	background:rgba(0,0,0,0.5);
}

.fim_films.eachFilm h1{
	margin:0;	
}


.fim_works img.alignright,
.fim_films img.alignright {
	float:right;
	box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.6);
	margin-top:1.5em;
}

/* archive page layout */

#partPage h2{
	font-size: 1.3em;
}

#partPage h2 a{
	text-decoration:none;
}

.ideaList,
.itWorksList {
	border-top: 1px dotted #FAFAFA;
	border-top: 1px dotted rgba(250, 250, 250, 0.4);
	transition:all 0.3s;
	padding: 0.5em 0;
}

.ideaList:hover,
.itWorksList:hover{
	background:#333;
	background:rgba(255,255,255,0.2);	
}

/* it works page layout */

.itWorksList {
	border-bottom: 1px dotted #FAFAFA;
	border-bottom: 1px dotted rgba(250, 250, 250, 0.4);
	clear:both;
}

.itWorksBox {
	width:208px;
	float:left;
	transition:all 0.3s;
}

.itWorksBox:hover {
	background:#333;
	background:rgba(255,255,255,0.2);
}

#mainPage .itWorksBox h2,
#mainPage .itWorksBox p {
	font-size:0.85em;
	padding:0 0 5px 0;
	margin:0 8px;
	line-height:1.1em;
}

#mainPage .itWorksBox p {
	font-size:0.75em;
}
#mainPage .itWorksBox img {
	margin: 5px 0 0 8px;
	display: block;
}

/* layout for home page */

.filmSet{
	clear:both;
	float:none;
	background:#333;
	background:rgba(255,255,255,0.2);
	margin:1em 0.5em 2em;
	padding:0;
}

.filmSet h2 {
	font-size:0.85em;
	font-weight:bold;
	padding:0 8px;
	background:#333;
	background:rgba(255,255,255,0.2);
	transition:all 0.3s;
	margin-bottom:5px;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.filmSet:hover h2 {
	background:#666;
	background:rgba(255,255,255,0.4);
}

.filmBox {
	float:left;
	width:20%;
	transition:all 0.3s;
	padding:0 2.5%;
	margin-bottom:5px;
}

.filmBox:hover {
	background:#333;
	background:rgba(255,255,255,0.2);
}

.filmBox img.filmImg {
	margin:5px 0 0 0;
	width:100%;
	height:auto;
}
.filmBox a{
	text-decoration:none;
}

.filmBox:hover a{
	text-decoration:underline;
}

#mainPage p.filmTitle {
	font-size:0.75em;
	padding: 0 0 5px 0;
	margin:0 8px;
	line-height:1.1em;
}

/* image caption */

div.wp-caption{
	border-radius:3px;
	border:1px solid #666;
	background:#999;
	background:rgba(255,255,255,0.5);
}


/* image positioning */

.wp-caption img{
	padding:5px 5px 0 5px;
	height:auto;
}

#mainPage p.wp-caption-text{
	font-size:0.8em;
	padding:0px 5px 5px 5px;
	text-align:center;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
}

div.wp-caption.alignright,
div.wp-caption.alignleft,
div.wp-caption.aligncenter,
img.alignright,
img.alignleft,
img.aligncenter {
	margin: 0.3em 1em 0.3em 1em;
}

div.wp-caption.alignright,
img.alignright {
	float:right;
	margin-right:0;
}
div.wp-caption.alignleft,
img.alignleft {
	float:left;
	margin-left:0;
}
div.wp-caption.aligncenter,
img.aligncenter {
	margin:0.3em auto;
	display:block;
}

/* Top tips layout */
/* achieved with formatting for h2 and p tags within an ol list */

#singlePage ol>li>h2 {
	font-weight:bold;
	font-size:1.1em;
	color:#D9C504;
	
}

#singlePage ol>li>p {
	padding-top:0;
}

/* footer layout */

#footer {
	width:1024px;
	margin:0 auto 2em auto;
	clear:both;
	font-size: 0.8em;
	background: #FFF;
	background: rgba(255, 255, 255, 0.8);
	border-radius: 5px;
	border: 1px solid #666;
	border: 1px solid rgba(0, 0, 0, 0.3);
}


.footerWidget {
	width:27%;
	margin:1em 1.5%;
	padding:0 1.5%;
	float:left;
	border-left: 1px solid #666;
	border-left: 1px solid rgba(0, 0, 0, 0.3);
}

.footerWidget:first-child{
	border-left:none;
}

.footerWidget ul {
	padding-left: 1.5em;
}

.footerWidget li{
	
}

.footerWidget a{
	text-decoration:none;
	color:#222;
}

.footerWidget a:hover{
	color:#555;	
}

.socialFooterBox {
	float:left;
	width:50%;
	text-align:center;
}

.socialFooterBox a {
	width: 100%;
}

.socialFooterBox img{
	display:block;
	margin: 0 auto;
}

/* center the youtube frame */
iframe {
	display:block;
	margin:0 auto;
}

/* clears */

.clearRow {
	clear:both;
	float:none;
}




/* responsive elements */

@media all and (max-width: 1024px){
	#pageHeader,
	#topNav,
	#mainPage,
	#breadcrumbs,
	#footer {
		max-width:94%;
	}
}

@media all and (max-width: 740px){

	.socialFooterBox {
		float:none;
		clear:both;
		width:100%;
	}
}

@media all and (max-width: 500px){
	#sideCol{
		width:100%;
		float:left;
		padding:0;
	}
	
	#partPage {
		width:98%;
		padding:1em 1%;
		float:left;
	}
	
	.darkBox {
		width:98%;
		padding:1.5% 1% 2.5% 1%;
		float:left;
	}
	
	div.wp-caption{
		max-width:95%;
	}



	/* image positioning */
	.wp-caption img{
		max-width:95%;
}
	
	
	#topNav #showMenu {
		display:block;
		cursor:pointer;
		background-image:url(https://www.farmingismagic.co.uk/wp-content/themes/farmingmagic/images/show-menu.png);
		background-repeat:no-repeat;
		background-position:right;
		height:25px;
		line-height:25px;
		margin:0.4em 2em;
	}
	
	#topNav .fimMainMenu {
		display:none;
	}
	
	#topNav li {
		background-image: url(https://www.farmingismagic.co.uk/wp-content/themes/farmingmagic/images/menu-sep-h.png);
		background-position:top;
		background-repeat:repeat-x;
	}
	
	#topNav>div.topLevel3>ul>li,
	#topNav>div.topLevel4>ul>li,
	#topNav>div.topLevel5>ul>li {
		float:none;
		width:100%;
		padding:2px 0;
		text-align:left;
	}
	
	#topNav li a {
		padding:13px;
	}


}

@media all and (max-width: 450px){
	.footerWidget {
		width:97%;
		margin:1em auto;
		float:none;
		clear:both;
		border-left:none;
		border-top: 1px solid #666;
		border-top: 1px solid rgba(0, 0, 0, 0.3);
	}
	.footerWidget:first-child{
		border-top:none;
	}
	.socialFooterBox {
		float:left;
		clear:none;
		width:50%;
	}
}

@media all and (max-width: 330px){
	.fim_films img.alignright {
		float: none;
		margin: 0 auto;
		display: block;
		width: 100%;
		height: auto;
	}
}
.upw-posts article{display:block;margin-bottom:1.5em;padding-bottom:1em;border-bottom:1px solid #ddd}.upw-posts article:last-child{border-bottom:0;padding-bottom:0}.upw-posts .entry-title{margin-bottom:.5em}.upw-posts .entry-title a{text-decoration:none}.upw-posts .entry-title a:focus,.upw-posts .entry-title a:hover{text-decoration:underline}.upw-posts .entry-image{margin-bottom:1em}.upw-posts .entry-image img{max-width:100%;height:auto}.upw-posts .entry-meta{color:#888;font-size:.9em;margin-bottom:1em;line-height:1.4}.upw-posts .entry-meta .comments{white-space:nowrap}.upw-posts .entry-content>:last-child,.upw-posts .entry-summary>:last-child{margin-bottom:1em}.upw-posts .more-link{white-space:nowrap}.upw-posts footer{display:block;color:#888;font-size:.9em;line-height:1.4}.upw-posts .custom-field,.upw-posts .entry-categories,.upw-posts .entry-custom-fields,.upw-posts .entry-tags{margin-bottom:.5em}.upw-after,.upw-before{margin-bottom:1rem}.upw-after>:last-child,.upw-before>:last-child{margin-bottom:0}