/*
Theme Name: Oliver Emberton
Theme URI: http://oliveremberton.com/
Author: Oliver Emberton
Author URI: http://oliveremberton.com/
Description: Official theme for Oliver Emberton's personal site
Version: 0.1
*/

/*
==============================================
fadeIn
==============================================
*/

img.size-full, img.size-large, .fadeInOnView { 
	visibility: hidden;
}

.fadeIn{
    animation-name: fadeIn;
    -webkit-animation-name: fadeIn;

    animation-duration: 0.5s;
    -webkit-animation-duration: 0.5s;

    animation-timing-function: ease-in;
    -webkit-animation-timing-function: ease-in;

    visibility: visible !important;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/*
	Shared styles
	---------------------------------------------------------------------------------------------
*/

body {
	padding: 0;
	margin: 50px 0 0 0;
	background: #fff;
	color: #4D4D4D;
	height: 100%;
	font-size: 22px;
}

#allsite {
	width: 1200px;
	margin: 40px auto 120px auto;
	height: 100%;
	overflow: hidden;
	max-width: 100%;
}



h1 a, h2 a, h3 a {
	color: #333333;
}	

h1 {
	font-size: 250%;
	line-height: 1;
	margin: 0 0 30px 0;
}

h2 {
	font-size: 150%;
	line-height: 1.2;
}

h3 {
	font-size: 120%;
	line-height: 1.2;
}

h4 {
	font-size: 100%;
	line-height: 1.2;
}

a {
	color: #007cdf;
	text-decoration: none;	
}

#wrap h2, #wrap h3 {
	margin-top: 40px;
}

.content {
	color: #4D4D4D;
}

time {
	color: #888;
}

p.intro {
	font-size: 150%;
	margin-top: 20px;
	line-height: 1.2;
}

blockquote {
	padding: 0 25px;
	margin: 0;
	font-size: 100%;
	color: #888;
}

.clear {
	clear: both;
}

hr {
	height: 1px;
	border: 0;
	background: #e2e2e2;
	margin: 45px 40px 40px;
}

.linebreak {
	height: 1px;
	background: #4D4D4D;
	position: relative; /* To fix About page footer glitch */
}

#input-header {
	max-width: 300px;	
}

#colourful-strip {
	width: 100%;
	height: 40px;
	margin-top: 40px;
	background: transparent url("img/strip7.jpg") center center;
	background-size: cover;
	-moz-background-size: cover;
	-webkit-background-size: cover;
	filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/strip.png.png', sizingMethod='scale')";
    	-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/strip.png.png', sizingMethod='scale')";
}

.faintpanel1 {
	background-color: #E0F0FF;
	padding: 20px 40px;
	margin: 40px auto;
	border-radius: 5px;
	border: 1px solid #ABD;	
}

.linebreak-light {
	height: 1px;
	background: #e2e2e2;	
	margin: 30px 0;
}

/*
	Shares & comments
	---------------------------------------------------------------------------------------------
*/

.socialinfo {
	margin-top: 20px;
	line-height: 1.2;
	color: #888;
}

.socialinfo .bignumber {
	font-size: 150%;
	font-weight: bold;
	color: #6B0;
}

#wrap-home .socialinfo {
	float: right;
	margin: -2px 0 10px 20px;
}

#wrap .socialinfo {
	border-top: 1px solid #DDD;
	border-bottom: 1px solid #DDD;
	margin: 30px 0;
	padding: 10px 10px 12px 10px;
}

#wrap .socialinfo .bignumber {
	font-size: 200%;
}

.socialinfo a {
	margin-left: 20px;
	color: #FFF;
	padding: 2px 14px 4px;
	position: relative;
	top: -10px;
	border-radius: 4px;
	font-size: 80%;
}

.socialinfo a.facebook {
	background: #2d609b;
	margin-left: 40px;
}

.socialinfo a.twitter {
	background: #00c3f3;
}

#sharepanel1 {
	background: #E0F0FF;
	border: 1px solid #ABD;
	padding: 20px 20px 22px 20px;
	margin: 40px 0;
	border-radius: 5px;
}

#sharepanel1b {
	border-top: 1px solid #DDD; 
	margin-top: 40px;
	padding: 25px 0;
	color: #666;
}

#sharepanel1 p {
	padding: 0;
	margin: 0;
}

#sharepanel2 {
	border-top: 1px solid #DDD; 
	border-bottom: 1px solid #DDD; 
	padding: 25px 20px 20px 20px;
}

#sharepanel2 .socialbutton {
	float: left;
	width: 45px; 
	padding-right: 30px;
}

#sharepanel2 .lessersocialbutton {
}

#sharepanel2 .subscribeForm {
	float: right;	
}

#sharepanel2 .subscribeForm h4 {
	padding: 0;
	margin: 0 0 10px 0;
}
	

/*
	Nav
	---------------------------------------------------------------------------------------------
*/

#logo {
	position: absolute;
	top: -5px;
	width: 319px;
	height: 60px;
}

#logo-text {
	display: none;
	position: absolute;
	margin: 13px 0 0 13px;	
	width: 251px;
	height: 22px;
}

#topstrip {
	position: fixed;
	z-index: 8675310;
	top: 0;
	color: #ffffff;
	width: 100%;
	background: #212121;
	transition: all 0.3s;	
	min-height: 50px;
}

#topstrip #top-div {
	max-width: 1300px;
	margin: 0 auto;	
}

#topnav {
	float: right;
	display: block;
	margin-top: 14px;
}

#topnav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#topnav ul li {
	float: left;
}

#topnav ul li a {
	display: block;
	text-align: right;
	letter-spacing: 1px;
	color: #a1a1a1;
	padding: 0 20px;
	font-size: 17px;
	transition: all 0.3s ease-out;
	text-transform: uppercase;
	text-decoration: none;  
}

#topnav ul li.selected a {
	color: #fff;
}

#topnav li a:hover {
	color: #ffffff;
}

#mobilenav {
	display: none;
	width: 26px;
	height: 18px;
	position: relative;
	top: -2px;
	background: #212121 url('img/menu-icon.png') center;	
}


/*
	Index
	---------------------------------------------------------------------------------------------
*/

#wrap-home {
	width: 650px;
	max-width: 100%;
	margin: 0 20px 20px 40px;
	float: left;
}

#wrap-home h2 {
	margin-top: 0;
	max-width: 600px;
}

#wrap-home p.published {
	margin-bottom: 5px;
}

#wrap-home div.featured {
	margin: 0;
}

#wrap-home img {
	width: 100%;	
}

#wrap-home p.intro {
	font-size: 130%;
	line-height: 1.2;
}

#sidebar p.subscribeFormInfo {
	padding: 0;
	margin: 5px 0 0 0;
}

#sidebar p.subscribeFormInfo a {
	color: #888;
}

.previousLink {
	float: left;
}

.nextLink {
	float: right;
}

.pageNav {
	clear: both;
	margin: 10px 0;
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}


/*
	About
	---------------------------------------------------------------------------------------------
*/

#allsite-about {
	width: 1350px;
	margin: 120px 0 120px 0;
	height: 100%;
	overflow: hidden;
	max-width: 100%;
}

#text-about { 
	margin-left: 620px;      
	float: left;
	padding: 0 20px;
}
	
#image-about {
	max-width: 523px;
	position: fixed;
	top: 0;
}

#image-about img {
	float: none;
	margin: 20px 10px 10px 0;
}


/*
	Banners
	---------------------------------------------------------------------------------------------
*/


#banner {
	width: 100%;
	height: 650px;		
	background: transparent center center no-repeat;
	background-size: cover;
	-moz-background-size: cover;
	-webkit-background-size: cover;
}

/*
	Related block
	---------------------------------------------------------------------------------------------
*/

.related {
		
}

.related .article {
	width: 30%;
	margin-right: 15px;
	float: left;
}

.related .article .cropped-image {
	width: 100%;
	height: 150px;
	overflow: hidden;
}

.related .article img {
	width: 100%;
	padding: 0 !important;
	margin: 0;
}

.related .article h2 {
	font-size: 100%;
	color: #DDD;
	margin-top: 10px !important;
	margin-bottom: 5px;
}

.shareCount {
	color: #6B0;
	margin: 0;
}


/*
	Individual article
	---------------------------------------------------------------------------------------------
*/

#wrap {
   margin: 20px auto;        
   max-width: 700px;
}

#wrap div.pullout {
	margin: 0;
	padding: 0;
}

#wrap img {
	max-width: 100%;	
	height: auto;
	margin: 10px 0;
}

#wrap div.pullout img, #wrap-home div.pullout img {
	width: 100%;
}

#wrap ul li, #wrap ol li {
	padding: 10px 0;
}

/*
	Icon (span tag)
	---------------------------------------------------------------------------------------------
*/

#back-top {
	position: fixed;
	bottom: 0px;
	margin-left: 30px;
	z-index: 200;
}

#back-top span {
	width: 40px;
	height: 40px;
	display: block;
	margin-bottom: 10px;
	background: #6f6f6f url('img/smallarrow.png') no-repeat center center;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	-webkit-transition: 1s;
	-moz-transition: 1s;
	transition: 1s;
	
}

#back-top a:hover span {
	background-color: #000;
	box-shadow: 0px 0px 125px #FFF;
}



/*
	Subscribe form
	---------------------------------------------------------------------------------------------
*/

label {
	font-weight: bold;
	display: inline-block;
	margin-bottom: 8px;
}

input[type="text"], input[type="email"], textarea {
	border: 1px solid #aaaaaa;
	background: #f0f0f0;
	color: #444;
	font-family: arial, verdana;
	font-size: 20px;
	padding-left: 5px;
	transition: all 0.3s;
	box-sizing: border-box;
	margin: 0 3px 5px 0;
	height: 50px;
	border-radius: 5px;
	text-align: left;
}

input[type="text"]:focus, textarea:focus {
	border: 1px solid #aaa;
	background: #fff;
	outline: none;
}

.button, input[type="submit"] {
	background: #B00;
	padding: 0 15px;
	color: #fff !important;
	font-size: 20px;
	border: 1px solid #C1272D;
	transition: all 0.3s;
	height: 50px;
	font-family: arial, verdana;
	border-radius: 5px;
	text-align: left;
}

.button:hover, input[type="submit"]:hover {
	background: #D00;
	color: #fff !important;
}

#subscribe-footer p.subscribeFormInfo {
	padding: 0;
	margin: 5px 0 0 0;
}

#subscribe-footer p.subscribeFormInfo a {
	color: #888;
}

/*
	Sidebar
	---------------------------------------------------------------------------------------------
*/

#sidebar {
	margin: 50px 0 0 740px;
	padding: 0 20px;
}

#sidebar img {
	float: left;
	margin: 20px 10px 10px 0;
}

#sidebar #sidebar-icons img {
	transition: all 0.3s ease-out;
	-moz-transition: all 0.3s ease-out;
	-webkit-transition: all 0.3s ease-out;
	position: relative !important;
}

#sidebar #sidebar-icons img:hover {
	opacity: 0.8;
	top: -3px;
}	

#sidebar h2, #sidebar p a {
	color: #333333;
}

#sidebar p {
	width: 430px;	
	max-width: 100%;
	font-size: 90%;
	line-height: 140%;
}

#sidebar h2 a {
	color: #333333;
}

/*
	Footer
	---------------------------------------------------------------------------------------------
*/

#subscribe-footer, #rights-footer {
	position: relative;
	z-index: 100;
}

#oliver-footer {
	background: #212121;
	padding: 30px 0;
}

#oliver-footer .content-align-center {
	margin-top: -72px;
}
	
#oliver-footer h3, #oliver-footer h3 a {
	color: #fff;
	font-weight: 100;
}

#oliver-footer p, #oliver-footer p a {
	color: #888;
}

#oliver-footer .content-align-center .socialicons img {
	padding: 0 2px;
	transition: all 0.3s ease-out;
	-moz-transition: all 0.3s ease-out;
	-webkit-transition: all 0.3s ease-out;
	position: relative !important;
}

#oliver-footer .content-align-center .socialicons img:hover {
	opacity: 0.8;
	top: -3px;
}	

#subscribe-footer {
	background: #1A1A1A;
	padding: 30px 0;
}

#subscribe-footer h3 {
	color: #fff;
	font-weight: 100;	
	margin-top: 0;
}

#rights-footer {
	background: #212121;
	padding: 30px 0 80px 0;
	margin-bottom: -80px;
	position: relative;
	z-index: 100;	
}

#rights-footer p {
	color: #888; 
	margin: 0;	
}

#rights-footer p a {
	color: #BBB; 
}

.content-align-center {
	text-align: center;
	max-width: 700px;
	margin: 0 auto;
}

.responsive {
	display: none;
}

/*
	Subscribe to book list form
	--------------------------------------------------------------------------------
*/

.bigForm {
	background-color: #E0F0FF;
	padding: 40px;
	margin: 40px auto;
	border-radius: 5px;
	border: 1px solid #ABD;
}

.bigForm label {	
	color: #468;	
	font-weight: 100;
	padding-top: 15px;
}

.bigForm h2 {
	margin-top: 0;
	padding-top: 0;
	color: #468;
}

.bigForm input[type="text"], .bigForm select {
	background-color: #FFF;
	width: 100%;
}

.bigForm .footnote {
	font-size: 15px;
	opacity: 0.7;
	padding: 0;
	margin: 0;
}

.bigForm .email {
	background: #fff;
	width: 70%;
}

.bigForm .button {
	text-align: center;
	width: 20%;
}

.bigForm input[type="text"]:focus, .bigForm select:focus {
	border: 1px solid #6CD;
	-moz-box-shadow: 0 0 8px rgba(60,180,255,1);	
	-webkit-box-shadow: 0 0 8px rgba(60,180,255,1);	
	box-shadow: 0 0 8px rgba(60,180,255,1);	
}

.bigForm input[type="radio"] {
	margin: 5px 5px 5px 15px;
} 

/*
	Responsive
	---------------------------------------------------------------------------------------------
*/

@media screen and (max-width: 1300px) 
{
	#topstrip #top-div {
		max-width: 1100px;
	}
	
	#text-about { 
		margin-left: 570px;      
	}
	
	#banner {
		width: 100%;
		height: 600px;	
	}
}

@media screen and (max-width: 1160px) 
{
	#topstrip #top-div {
		max-width: 950px;
	}

	#text-about { 
		margin-left: 550px;      
	}
	
	#allsite-about {
		margin: 90px 0;
	}

	#wrap-home {
		width: 580px;
	}

	#sidebar {
		margin: 0 10px 0 640px;
		padding: 0 20px;
	}

}


@media screen and (max-width: 950px) 
{
	#topstrip #top-div {
		max-width: 800px;
	}
	
	#topnav {
		clear: both;
		display: none;
		float: none; 
		margin-left: 5px;
		padding: 20px;
	}

	#topnav ul li {
		float: none;
		border: none;
	}
	
	#topnav ul li a {
		text-align: left;
		padding: 10px 0;
	}
	
	#topnav ul li.selected a {
		background: none;
	}	
	
	#mobilenav {
		display: inline-block;
		float: right;
		margin: 17px 5px 1px 0;
	}

	#wrap-home {
		width: 500px;
	}
	
	#sidebar {
		margin: 0 40px 10px 580px;
	}
	
	#oliver-banner {
		width: 100%;
		height: 400px;	
	}
	
	#oliver-banner {	
		background: transparent url("img/oliver-mobile.jpg");
		background-size: cover;
		-moz-background-size: cover;
		-webkit-background-size: cover;
		filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/oliver-mobile.jpg', sizingMethod='scale')";
		-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/oliver-mobile.jpg', sizingMethod='scale')";
	}

	#text-about { 
		margin: 20px auto;      
	}
	
	#image-about {
		display: none;
	}
	
	.disappear {
		display: none;
	}

	#allsite-about {
		margin: 25px 0;
	}
}
	
@media screen and (max-width: 880px) 
{
	#allsite {
		width: 750px;
		margin: 40px auto;
		box-sizing: border-box;
		padding: 0 10px;
	}
	
	#topstrip #top-div {
		max-width: 700px;
	}
	
	#banner {	
		background-size: cover;
		-moz-background-size: cover;
		-webkit-background-size: cover;
		height: 500px;	
	}
	
	#wrap {
		margin: 20px 20px 80px 20px;
	}

	#wrap-home {    
	   width: 700px;
	   margin: 0 auto;
	}
		
	#wrap-home img {
		max-width: 100%;
	}
	
	#sidebar {
		display: none;
	}

	#back-top {
		position: fixed;
		bottom: 0px;
		margin-left: 20px;
	}
	
	#back-top span {
		width: 30px;
		height: 30px;
		background: #6f6f6f url('img/mobsmallarrow.png') no-repeat center center;
		opacity: 0.9;
	}
	
	#rights-footer-responsive {
		display: none;
	}		
}

@media screen and (max-width: 740px) 
{
	#sharepanel .subscribeForm {
		display: none;
	}
}

@media screen and (max-width: 700px) 
{
	#topstrip #top-div {
		max-width: 550px;
	}
	
	#wrap-home div.featured {
		margin: 0 -20px;
	}
	
	body {
		font-size: 21px;
	}
	
	.related .article {
		width: 100%;
		margin-right: 0;
		padding-bottom: 20px;
		float: none;
	}
	
	.related .article .cropped-image {
		height: auto;
	}
	
	.socialinfo a {
		display: none;
	}	
}


@media screen and (max-width: 630px) 
{	
	#wrap {
	   margin: 20px auto 80px auto;        
	}

	#banner {	
		height: 400px;	
	}	
	
	#oliver-banner {	
		background: transparent url("img/oliver-mobile.jpg");
		background-size: cover;
		-moz-background-size: cover;
		-webkit-background-size: cover;
	}
	
	#oliver-banner {
		height: 350px;	
	}
	
	.content-align-center {
		margin: 0 20px;
	}	

	.bigForm .email {
		width: 100%;
	}

	.bigForm .button {
		width: 100%;
	}
	
}

@media screen and (max-width: 440px) 
{	
	#subscribe-footer .button {
		width: 70%;
	}
	
	#mobilenav {
		margin: 17px 10px 1px 0;
	}
	
	#banner {	
		height: 350px;	
	}	
	
	#colourful-strip {
		display: none;
	}	
	
	body {
		font-size: 18px;
	}
	
	h1 {
		font-size: 220%;
	}
	
	#allsite {
		margin: 20px auto;
	}
	
	#sharepanel .lessersocialbutton {
		display: none;
	}

	/*#sharepanel {
		display: none;
	}*/
}

@media screen and (max-width: 350px) 
{
	#logo {
		display: none;
	}
	
	#logo-text {
		display: block;
	}
		
	.button {
		width: 100%;
		text-align: left;
	}
	
	#oliver-banner {
		height: 200px;	
	}
	
	#banner {	
		height: 300px;	
	}		
}

/*
	Print
	---------------------------------------------------------------------------------------------
*/

@media print 
{
	body {
		margin: 0;
	}

	#topstrip, #colourful-strip, #subscribe-footer, #rights-footer, .socialicons, .previousLink, .nextLink, #banner {
		display: none;
	}
	
	#oliver-footer {
		background: #f0f0f0;
		color: #444;
	}

	#oliver-footer h3 a {
		color: #444;
	}
	
	#allsite {
		width: 750px;
		margin: 30px auto;
		box-sizing: border-box;
		padding: 0 20px;
	}
	
	#topstrip #top-div {
		max-width: 700px;
	}
	
	#wrap {
		margin: 40px 20px 80px 20px;
	}
	
	#wrap-home {    
	   width: 700px;
	   margin: 0 auto;
	}
		
	#wrap-home img {
		max-width: 100%;
	}
	
	#sidebar {
		display: none;
	}
}