/*
Theme Name: Sandy's Theme
Theme URI: http://www.sandylogan.co.uk
Description: Wordpress theme for my personal website using HTML5, CSS3 and jQuery.
Author: Sandy Logan
Version: 1.0.1
Tags:
*/

/* Fonts */

/* Font Awesome */
@font-face {
  font-family: 'FontAwesome';
  src: url('fonts/fontawesome-webfont.eot?v=4.2.0');
  src: url('fonts/fontawesome-webfont.eot?#iefix&v=4.2.0') format('embedded-opentype'), url('fonts/fontawesome-webfont.woff?v=4.2.0') format('woff'), url('fonts/fontawesome-webfont.ttf?v=4.2.0') format('truetype'), url('fonts/fontawesome-webfont.svg?v=4.2.0#fontawesomeregular') format('svg');
  font-weight: normal;
  font-style: normal;
}

/* Other Styles */

html {
	background-color: #fefefe;
}

body {
	width: 100%;
	max-width: 60rem;
	margin: 0 auto;
	font-family: 'Open Sans', 'Arimo', sans-serif;
	font-size: 100%;
	color: #505050;
}

header {
	position: relative;
}

header h1 {
	margin: 0;
	padding-top: 4rem;
}

header h1 a, main section h1, nav.tabs {
	font-family: 'Pacifico', 'Open Sans', 'Arimo', sans-serif;
}

header h1 a {
	display: block;
	font-size: 5rem;
	font-weight: bold;
	line-height: 1.5;
	color: #7d9b9a;
	text-align: center;
	text-decoration: none;
	padding-bottom: 1rem;
	text-shadow: 3px 3px 0 #444444;
	padding: 1rem 0;
}

header h1 a span {
	display: block;
	margin-top: -2rem;
}

header h1 a:hover {
	color: #29bbb7;
	transition: all .2s ease-in;
}

header h1 a:active {
	font-size: 5.4rem;
	transition: all .2s ease-in;
}

header h2.quote {
	display: table;
	margin: 4rem auto;
	padding: 0 10%;
	color: #777777;
	font-size: 1.2rem;
	letter-spacing: -0.05em;
	font-style: italic;
	font-weight: normal;
	text-align: center;
}

header h2.quote .what {
	color: #cccccc;
	text-decoration: none;
	margin-left: 0.4rem;
	padding: 0.5rem;
}

header h2.quote .what:hover, header h2.quote .what:active {
	background-color: #eeeeee;
	color: #777777;
	border-radius: 0.5rem;
}

header .youtube {
	display: none;
}

a#menu {
	display: block;
	position: fixed;
	top: 1rem;
	right: 1rem;
	width: 3rem;
	height: 3rem;
	z-index: 999999;
	text-align: center;
	font-size: 200%;
	line-height: 1.5;
}

a#menu, a#top {
	color: #7d9b9a;
	opacity: 0.4;
}

a#close {
	color: #ffffff;
}

a#menu span, a#close span {
	display: none;
}

a#menu:before  {
	font-family: 'FontAwesome';
	content: "\f0c9";
}
	
a#menu:hover,
a#menu:active,
a#top:hover,
a#top:active {
	cursor: pointer;
	opacity: 1;
}

a#top {
	display: block;
	position: fixed;
	top: 1rem;
	left: 1rem;
	width: 3rem;
	height: 3rem;
	color: #7d9b9a;
	z-index: 999999;
	text-align: center;
	font-size: 200%;
	line-height: 1.5;
	border-radius: 0.2rem;
	opacity: 0.4;
}

a#top span {
	display: none;
}

a#top:before  {
	font-family: 'FontAwesome';
	content: "\f0d8";
}
	
a#top:hover, #top:active {
	cursor: pointer;
	opacity: 1;
}

/* Menu */	

nav.tabs {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #7d9b9a;
	z-index: 9999;
}

nav.tabs a#close {
	position: fixed;
	top: 1rem;
	right: 1rem;
	width: 3rem;
	height: 3rem;
	z-index: 99999;
	line-height: 1.5;
	font-size: 200%;
}

nav.tabs a#close:before {
	font-family: 'FontAwesome';
	content: "\f00d";
}

nav.tabs a#close:hover,
nav.tabs a#close:active {
	opacity: 0.8;
	/* transition: all .2s ease-in; */
}

nav.tabs ul {
	list-style-type: none;
	padding: 20% 0 0 20%;
	margin: 0;
}

nav.tabs ul li {
	padding: 0;
}

nav.tabs ul li a {
	color: #b1c3c2;
	font-size: 3rem;
	line-height: 1.2;
	text-decoration: none;
	text-align: center;
}

nav.tabs a:hover, nav.tabs a:active {
	color: #ffffff;
	cursor: pointer;
}

main {
	position: relative;
	background-color: #fefefe;
}

main > p {
text-align: center;
}

main p {
	font-size: 1.2rem;
	line-height: 1.4em;
	letter-spacing: -0.05em;
	padding: 0 1.4rem 1.4rem 1.4rem;
	margin: 0;
}

main p:nth-of-type(1) {
	padding-top: 0;
}

main p a {
	color: #333333;
	font-weight: bold;
	text-decoration: none;
	border-radius: 0.4em;
	padding: 0.1em 0;
	transition: all 0.5s ease;
}

main p a:hover, main p a:active {
	background-color: #eeeeee;
	padding: 0.2em 0.4em;
	margin: 0 0.1em;
}

main section {
	padding: 0;
}

main section#twitter {
	border: 0;
}

main section h1 {
	margin: 2rem 0;
	padding: 0;
	font-size: 3rem;
	color: #b4b4b4;
	text-align: center;
	text-shadow: 2px 2px 0 #6f6f6f;
}

main section h2 {
	margin: 2rem 0;
	font-size: 2.4rem;
	text-align: center;
	letter-spacing: -0.05rem;
}

main section h2 span {
	margin-bottom: 2rem;
	font-size: 1.8rem;
	letter-spacing: -0.05rem;
	color: #c7c7c7;
}

main section .photo {
	margin: 4rem auto;
}

main section .photo img {
	display: block;
	width: 100%;
	height: auto;
}

footer {
	position: absolute;
	left: 0;
	width: 100%;
	clear: both;
	background-color: #e8e8e8;
	margin-top: 20px;
	text-align: center;
	font-size: 14px;
}

/* About */


/* Folio */

#folio img {
	display: block;
	width: 100%;
	height: auto;
	margin: 2rem auto;
}

#folio div div h2 {
	text-align: left;
	padding: 0 1.4rem;
}	

#folio a.url {
	display: table;
	/* margin: 0 auto; */
	font-size: 1.4rem;
	font-family: 'Pacifico', 'League Gothic', 'Open Sans', 'Arimo', sans-serif;
	color: #7d9b9a;
	text-align: left;
	word-break: break-all;
	letter-spacing: -1px;
	padding: 0 1.4rem 0 1.4rem;
}

#folio a.url:hover {
	text-decoration: none;
}

/* Things */

#things div div img {
	display: block;
	width: 100%;
	background-color: #e5e5e5;
	height: auto;
	margin: 2rem 0;
}

#things div div h2 {
	margin: 2rem 1.4rem 0 1.4rem;
	font-size: 2.4rem;
	line-height: 1.1;
	text-align: left;
	letter-spacing: -0.05rem;
}

#things div div h2 span {
	display: block;
}

#things div div p {
	padding: 0;
	margin: 0 1.4rem 1rem 1.4rem;
}

/* Contact */

#contact {
	padding: 2rem 1rem;
}

#contact > p {
	/* font-style: italic; */
	text-align: center;
}

#contact #contactform, #contact p {
	width: 90%;
	margin: 2rem auto;
}

#contact p {
	text-align: center;
	/* font-style: italic; */
}

#contact #contactform fieldset {
	border: 0;
	padding: 0;
}

#contact .heythere {
	display: none;
}

#contact #contactform label {
	position: absolute;
	text-indent: -9999px;
}

#contact #contactform input[type=text],
#contact #contactform input[type=email],
#contact #contactform textarea {
	margin-bottom: 2rem;
	background-color: #e6e6e6;
	padding: 0.2rem 1rem;
	border: 0;
	width: 90%;
	font-size: 1.5rem;
}

#contact .website {
	display: none;
}
	
#contact .success {
	text-align: center;
}

#contact .success span {
	display: block;
	font-weight: bold;
	font-size: 30px;
	margin: 50px auto;
}

#contact #contactform .sendmessage {
	display: block;
	font-family: 'Pacifico', 'League Gothic', 'Open Sans', 'Arimo', sans-serif;
	background-color: #7d9b9a;
	color: #ffffff;
	margin: 0 auto;
	padding: 0.2rem 1.5rem 0.2rem 1rem;
	border-radius: 0.2rem;
	text-shadow: 1px 1px 0 #777777;
}

#contact #contactform .sendmessage:hover {
	padding: 0.3rem 1.5rem 0.1rem 1rem;
	transition: all .2s ease-in;
}

/* Twitter */

#twitter > div {
	width: 90%;
	margin: 0 auto;
}

/* Tablet */
@media screen and (min-width: 47rem) {
	
	body {
		font-size: 200%;
	}
	
	header {
		position: relative;
	}
	
	header #top {
		position: fixed;
		top: 1rem;
		left: 4rem;
		font-size: 120%;
	}
	
	header #menu {
		position: fixed;
		top: 1rem;
		right: 4rem;
		font-size: 120%;
	}
	
	header nav.tabs {
		padding: 0;
	}
	
	header nav.tabs #close {
		right: 5rem;
	}
	
	header nav.tabs ul {
		margin: 0 auto;
		text-align: center;
		padding: 10rem 0 0 0;
	}
	
	header nav.tabs a {
	}
	
	main p {
		font-size: 2rem;
	}
	
	section#about .photo {
		/* width: 100%; */
		height: 400px;
		overflow: hidden;
		margin: 4rem auto;
	}
	
	section#about .photo img {
		margin-top: -5%;
		width: auto;
		margin: 0 auto;
	}
	
	#about p, #folio p, #skills p {
		padding: 0 5rem 2rem 5rem;
	}
	
	header h1 a span {
		display: inline;
		margin-top: 0;
		margin-left: 1rem;
	}
	
	nav.tabs a {
		text-align: center;
	}
	
	#folio div {
		overflow: auto;
	}
	
	#folio div div {
		float: left;
		width: 33%;
		padding-bottom: 2rem;
		margin-right: 0.3%;
	}
	
	#folio div div:nth-of-type(3) {	
		margin-right: 0;
	}
	
	#folio div div h2 {
		line-height: 1;
		margin: 0;
		padding: 2rem 1rem;
		text-align: left;
		min-height: 5rem;
	}
	
	#folio div div img {
		margin: 0;
	}	
	
	#folio div div p {
		min-height: 14rem;
		font-size: 1rem;
		padding: 0 1rem;
	}
	
	#folio div div a.url {
		display: block;
		padding-left: 1rem;
		font-size: 1.4rem;
		text-align: left;
	}
	
	#things div {
		overflow: auto;
	}
	
	#things div div {
		float: left;
		width: 33%;
	}
	
	#things div div:nth-of-type(1n), #things div div:nth-of-type(2n) {
		float: left;
		margin-right: 0.3%;
	}
	
	#things div div h2 {
		min-height: 14rem;
		line-height: 1;
		border-bottom: 4px solid #c7c7c7;
		margin-bottom: 2rem;
	}
	
	#things div div p {
		font-size: 1rem;
	}
	
	#contact #contactform fieldset {
		width: 80%;
		margin: 0 auto;
	}
	
	#contact #contactform input[type=text],
	#contact #contactform input[type=email],
	#contact #contactform textarea{
		width: 100%;
	}
	
	#twitter > div {
		max-width: 520px;
		margin: 0 auto;
	}
	
}

/* Desktop */
/*
@media screen and (min-width: 64rem) {

	body {
	
	}
	
	main {
		
	}
	
	main p {
		font-size: 200%;
	}
	
}
*/