/*
Theme Name: MikScarlet
Theme URI: http://mikscarlet.co.uk/
Description: Custom theme for the talented Mik Scarlet.
Version: 1.0
Author: SiteByDiane
Author URI: http://www.sitebydiane.co.uk/

Tags:
Built using _s famework by the fabulous people at ThemeShaper http://themeshaper.com/
Resetting and rebuilding styles have been helped along thanks to the fine work of
Eric Meyer http://meyerweb.com/eric/tools/css/reset/index.html
along with Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
and Blueprint http://www.blueprintcss.org/
*/

/* =Reset
-------------------------------------------------------------- */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	border: 0;
	font-family: inherit;
	font-size: 100%;
	font-style: inherit;
	font-weight: inherit;
	margin: 0;
	outline: 0;
	padding: 0;
	vertical-align: baseline;
}
html {
	font-size: 62.5%; /* Corrects text resizing oddly in IE6/7 when body font-size is set using em units http://clagnut.com/blog/348/#c790 */
	overflow-y: scroll; /* Keeps page centred in all browsers regardless of content height */
	-webkit-text-size-adjust: 100%; /* Prevents iOS text size adjust after orientation change, without disabling user zoom */
	-ms-text-size-adjust: 100%; /* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ */
}
body {
	background: #fff;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section {
	display: block;
}
ol, ul {
	list-style: none;
}
table { /* tables still need 'cellspacing="0"' in the markup */
	border-collapse: separate;
	border-spacing: 0;
}
caption, th, td {
	font-weight: normal;
	text-align: left;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: "";
}
blockquote, q {
	quotes: "" "";
}
a:focus {
	outline: thin dotted;
}
a:hover,
a:active { /* Improves readability when focused and also mouse hovered in all browsers people.opera.com/patrickl/experiments/keyboard/test */
	outline: 0;
}
a img {
	border: 0;
}

/* apply a natural -moz-box layout model to all elements */
*, *:before, *:after {
  -moz-box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box;
 }

/* =Global
----------------------------------------------- */

@font-face {
    font-family: 'embossed';
    src: url('fonts/embosst1-webfont.eot');
    src: url('fonts/embosst1-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/embosst1-webfont.woff') format('woff'),
         url('fonts/embosst1-webfont.ttf') format('truetype'),
         url('fonts/embosst1-webfont.svg#embossing_tape_1_brkregular') format('svg');
    font-weight: normal;
    font-style: normal;

}
@font-face {
    font-family: 'RockSalt';
    src: url('fonts/RockSalt-webfont.eot');
    src: url('fonts/RockSalt-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/RockSalt-webfont.woff') format('woff'),
         url('fonts/RockSalt-webfont.ttf') format('truetype'),
         url('fonts/RockSalt-webfont.svg#RockSaltRegular') format('svg');
    font-weight: normal;
    font-style: normal;

}

body,
button,
input,
select,
textarea {
	color: #333;
	font-family: Verdana, Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-size: 1.4rem;
	line-height: 1.5;
}

/* Headings */
h1,h2,h3,h4,h5,h6 {
	font-family: 'embossed', Helvetica, Arial, Verdana, sans-serif;
	clear: both;
}
h1 {
	font-size: 24px
}
h1.widget-title, h2 {
	font-size: 18px
}
#news h1, #onblog h1{
	background: #000;
	color: #fff;
	padding: 0 0 0 0.5em;
}
#news h2, #onblog h2 {
	font-family: Verdana, Helvetica, Arial, sans-serif;
	font-size: 1em;
	font-weight: bold;
	margin: 0.5em 0 -1em;
}
hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

/* Text elements */
p {
	margin-bottom: 1.5em;
}
ul, ol {
	margin: 0;
}
ul {
	list-style: disc;
}
ol {
	list-style: decimal;
}
ul li, ol li {
	padding-left: 0.5em;
}
ul ul, ol ol, ul ol, ol ul {
	margin-bottom: 0;
	margin-left: 1.5em;
}
.entry-content ul, .entry-content ol {
	margin: 1em 0 1.5em 2em;
}
dt {
	font-weight: bold;
}
dd {
	margin: 0 1.5em 1.5em;
}
b, strong {
	font-weight: bold;
}
dfn, cite, em, i {
	font-style: italic;
}
blockquote {
	margin: 0 1.5em;
}
sup,
sub {
	font-size: 75%;
	height: 0;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}
sup {
	bottom: 1ex;
}
sub {
	top: .5ex;
}
small {
	font-size: 75%;
}
big {
	font-size: 125%;
}
figure {
	margin: 0;
}
table {
	margin: 0 0 1.5em;
	width: 100%;
}
th {
	font-weight: bold;
}
button,
input,
select,
textarea {
	font-size: 100%; /* Corrects font size not being inherited in all browsers */
	margin: 0; /* Addresses margins set differently in IE6/7, F3/4, S5, Chrome */
	vertical-align: baseline; /* Improves appearance and consistency in all browsers */
	*vertical-align: middle; /* Improves appearance and consistency in all browsers */
}
button,
input {
	line-height: normal; /* Addresses FF3/4 setting line-height using !important in the UA stylesheet */
	*overflow: visible;  /* Corrects inner spacing displayed oddly in IE6/7 */
}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
	background: #000;
	color: #fff;
	cursor: pointer; /* Improves usability and consistency of cursor style between image-type 'input' and others */
	-webkit-appearance: button; /* Corrects inability to style clickable 'input' types in iOS */
	font-size: 14px;
	font-size: 1.4rem;
	padding: 0.75em 1.5em;
	border: 0;
	transition: all 0.5s ease-in-out;
	transform: rotate(-2deg);
}
button:hover,
html input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
button:focus,
html input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
button:active,
html input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active {
	transform: rotate(2deg) scale(1.2);
}
input[type="checkbox"],
input[type="radio"] {
	-moz-box-sizing: border-box; /* Addresses -moz-box sizing set to content-box in IE8/9 */
	padding: 0; /* Addresses excess padding in IE8/9 */
}
input[type="search"] {
	-webkit-appearance: textfield; /* Addresses appearance set to searchfield in S5, Chrome */
	-moz-box-sizing: content-box;
}
input[type="search"]::-webkit-search-decoration { /* Corrects inner padding displayed oddly in S5, Chrome on OSX */
	-webkit-appearance: none;
}
button::-moz-focus-inner,
input::-moz-focus-inner { /* Corrects inner padding and border displayed oddly in FF3/4 www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ */
	border: 0;
	padding: 0;
}
input[type=text],
textarea {
	color: #666;
	margin: 0.5em 0;
	border: 1px solid #ccc;
	border-radius: 3px;
}
input[type=text]:focus,
textarea:focus {
	color: #111;
}
input[type=text] {
	padding: 3px;
}
textarea {
	overflow: auto; /* Removes default vertical scrollbar in IE6/7/8/9 */
	padding-left: 3px;
	vertical-align: top; /* Improves readability and alignment in all browsers */
	width: 98%;
}
#contactForm.field {
	margin: 0.5em 0;
}
.screenreader { left: -9999px; position: absolute; top: -9999px; }
 #s.field {
	width: 90%;
 }
 #secondary #s.field {
	width: 80%;
	margin: 0;
}
#searchsubmit {
	font-size: 1.1em;
	padding: 0.25em;
}

/* Links */
a {
	color: #000;
	text-decoration: underline;
}
a:visited {
	color: #000;
}
a:hover,
a:focus,
a:active {
	color: #000;
	text-decoration: none;
}

h1 a {
	text-decoration: none;
}
#news h1 a, #onblog h1 a{
	color: #fff;
}
#news h1 a:hover, #onblog h1 a:hover{
	color: #ccc;
}
#news a, #onblog a{
	text-decoration: none;
}
#news a:hover, #onblog a:hover{
	color: #666;
}

.entry-title a:hover {
	color: #333;
}
footer.entry-meta a {
	color: #ccc;
}
footer.entry-meta a:hover {
	color: #fff;
}

.site-footer a {
	color: #ccc;
	text-decoration: none;
}
.site-footer a:hover {
	color: #fff;
}

/* Layout */
#masthead {
	max-width: 960px;
	width: 100%;
	margin: 0.1em auto;
}
.banner {
	width: 100%;
	height: auto;
	margin: 0;
	position: relative;
	background: #000;
}
#home-content, .site-content {
	margin: 0 auto;
	max-width: 960px;
	width: 100%;
}
#gallery-content {
	margin: 1.0em auto 1.5em;
}
#home-story {
	max-width: 100%;
	 content: "";
  display: table;
  clear: both;
}
#content {
	max-width: 650px;
	width: 55em;
	margin: 1.0em 0;
	float: right;
}
#secondary { /* Sidebar 1 */
	width: 18em;
	margin: 1.0em 0;
	float: left;
}
#news, #onblog {
	max-width: 460px;
	width: 100%;
	height: 245px;
	overflow: hidden;
}
#news {
	float: left;
}
#onblog {
	float: right;
}
.connections {
	margin: 0 0 1.5em 0;
}
.site-footer {
	clear: both;
	max-width: 960px;
	width: 100%;
	margin: 0 auto;
	text-align: center;
}
	.site-info {
		clear: both;
	}

.clearfix:after { 
   content: "."; 
   visibility: hidden; 
   display: block; 
   height: 0; 
   clear: both;
}
@media only screen and (max-width: 960px) {
	#home-story, #content, #secondary, #news, #onblog {
		-moz-box-sizing:border-box;
		max-width: 100%;
		width: 100%;
		margin: 0;
		padding: 1em 0.75em;
	}
	#content, #secondary, #news, #onblog {
		float: none;
	}
	#news, #onblog {
		height: auto;
	}
}
	
/* Page Styles */

#primary.homepage {
	text-align: justify;
}
/*@media only screen and (min-width: 960px) and (max-width: 1024px) {*/
/*	#primary.homepage {*/
/*		background: url('img/home_bg.jpg') no-repeat 480px 3.75em; */
/*	}*/
/*}*/
/*@media only screen and (min-width: 1025px) and (max-width: 1375px){*/
/*	#primary.homepage {*/
/*		background: url('img/home_bg.jpg') no-repeat 650px 3.75em; */
/*	}*/
/*}*/
/*@media only screen and (min-width: 1376px) and (max-width: 1670px) {*/
/*	#primary.homepage {*/
/*		background: url('img/home_bg.jpg') no-repeat 80% 5em; */
/*	}*/
/*}*/
/*@media only screen and (min-width: 1671px) {*/
/*	#primary.homepage {*/
/*		background: url('img/home_bg.jpg') no-repeat 70% 3.75em; */
/*	}*/
/*}*/

/*@media only screen and (min-width: 960px) {*/
/*    .homepage .entry-content {*/
/*        min-height: 445px;*/
/*    }*/
/*}*/

#news, #onblog {
	background: rgba(255, 255, 255, .5);
}
	#news p, #onblog p {
		font-size: 12px;
		text-align:justify;
		line-height: 1.75em;
	}

.site-footer {
	font-family: 'embossed', Helvetica, Arial, Verdana, sans-serif;
	font-size: 12px;
	color: #ddd;
}
	.site-info {
		background: #000;
		display: inline-block;
		width: auto;
		margin: 0.5em auto;
		padding: 0.25em 0.5em;
		transform: rotate(1.1deg);
	}

/* Alignment */
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
}
.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
}
.aligncenter {
	clear: both;
	display: block;
	margin: 0 auto;
}
@media only screen and (max-width: 480px) {
	.alignleft, .alignright {
		float: none;
		clear: both;
		display: block;
		margin: 0 auto;
	}
}

/* Text meant only for screen readers */
.assistive-text {
	clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
}


/* =Menu
----------------------------------------------- */

.main-navigation {
	font-family: 'embossed', Helvetica, Arial, Verdana, sans-serif;
	font-size: 18px;
	background: #000;
	width: 100%;
	line-height: 2.25em;
	height: 2em;
	margin: 1em 0;
	padding: 0;
	display: block;
	float: left;
	clear: both;
}
.main-navigation ul {
	list-style: none;
	margin: 0;
	padding-left: 0;
}
.main-navigation li {
	float: left;
	position: relative;
}
.main-navigation a {
	color: #ccc;
	display: block;
	text-decoration: none;
	padding: 0 0.75em;
}
.main-navigation li:hover > a,
.main-navigation li.current_page_item a,
.main-navigation li.current-menu-item a  {
	color: #fff;
}

/* Small menu */
.hide-button{
	display: none;
}
.menu-toggle {
	cursor: pointer;
	width: 48px;
	height: 48px;
	margin: -24px 0;
	text-indent: -9999px; 
	position:absolute;
	top: 50%;
	right: 0;
}
.menu-toggle.menu-open {
	background: url('img/menu_open.png') no-repeat; 
}
.menu-toggle.menu-close {
	background: url('img/menu_closed.png') no-repeat;
}
.main-small-navigation .menu {
	display: none;
	font-family: 'embossed', Helvetica, Arial, Verdana, sans-serif;
}
.main-small-navigation .menu  ul{
		list-style: none;
		margin: 0;
	}
	.main-small-navigation ul li {
		list-style: none;
		padding-left: 0;
	}
	.main-small-navigation li:first-child{
		border-top: 2px solid #222;
	}
		.main-small-navigation li:last-child{
		border-bottom: 2px solid #222;
	}
	.main-small-navigation .menu li a{
		display:block;
		color: #000;
		text-decoration: none;
		height: 3em;
		line-height: 3em;
		margin: 0;
		padding: 0 0 0.5em 0.5em;
		border-bottom: #000 1px solid;
	}
	.main-small-navigation .menu li a:hover{
		color: #fff;
		background-color: #000;
		border-bottom: #fff 1px solid;
	}

/* Sub Naviagtion */
#secondary ul {
	margin: 0 0 1.5em 1.25em;
}
#secondary li a {
	color: #333;
	background: #fff;
	text-decoration: none;
	display: inline-block;
	transition: all 0.5s ease-in-out;
}
#secondary li a:hover {
	color: #000;
	transform: rotate(-1.5deg) scale(1.2);
}
 
 /* footer menu */
.site-footer  ul{
	background: #000;
	list-style: none;
	margin: 0.5em auto;
	padding: 0.35em 0;
}
.site-footer li {
	display:inline;
}
.site-footer li  a{
	padding: 0 0.5em;
}
@media only screen and (max-width: 905px) {
	.menu li a {
		display: block;
		height: 2em;
		line-height: 2em;
	}
}

/* =Content
----------------------------------------------- */

.sticky {
}
.entry-header, .hentry {
	margin: 0 0 1.5em;
}
.entry-meta {
	font-size: 0.85em;
	clear: both;
}
.byline {
	display: none;
}
.single .byline,
.group-blog .byline {
	display: inline;
}
.entry-content,
.entry-summary {
	margin: 0 0 1.5em;
	text-align: justify;
}
.page-links {
	clear: both;
	margin: 0 0 1.5em;
}
.attachment-150x150.wp-post-image{
  float: right;
  margin: 1.5em 0 0 1.5em;
}
footer.entry-meta {
	background: #000;
	color: #fff;
	margin: 1.5em 0;
	padding: 0.45em 0.75em;
}


/* =Asides
----------------------------------------------- */

.blog .format-aside .entry-title,
.archive .format-aside .entry-title {
	display: none;
}


/* =Media
----------------------------------------------- */

.site-header img,
.entry-content img,
.comment-content img,
.widget img {
	max-width: 100%; /* Fluid images for posts, comments, and widgets */
}
.site-header img,
.entry-content img,
img[class*="align"],
img[class*="wp-image-"] {
	height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */
}
.site-header img,
.entry-content img,
img.size-full {
	max-width: 100%;
	width: auto; /* Prevent stretching of full-size images with height and width attributes in IE8 */
}
@media only screen and (max-width: 905px) {
	.site-header img {
		width: 85%
	}
}
.entry-content img {
	background: #fff;
	padding: 1em;
	box-shadow: 1px 2px 4px #666;
}
/*take off image style for some elements*/
.entry-content img.wp-smiley, .comment-content img.wp-smiley , .wp-caption img, .gallery img, .synved-social-button img  {
	padding: 0;
	box-shadow: 0 0 0;
}
img.alignleft,
img.alignright,
img.aligncenter  {
	margin-top: 1em;
	margin-bottom: 1em;
}
.entry-content img.wp-smiley,
.comment-content img.wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
}
.wp-caption {
	max-width: 100%;
	background: #fff;
	padding: 1em;
	box-shadow: 1px 2px 4px #666;
}
.wp-caption.aligncenter,
.wp-caption.alignleft,
.wp-caption.alignright {
	margin-bottom: 1.5em;
}
.wp-caption img {
	display: block;
	margin: 1.2% auto 0;
	max-width: 98%;
}
.wp-caption-text.gallery-caption, .wp-caption .wp-caption-text, .entry-caption  {
	font-family: 'RockSalt', cursive;
	color: #000;
}
.wp-caption-text.gallery-caption, .wp-caption .wp-caption-text  {
	text-align: center;
}
.wp-caption .wp-caption-text{
	margin: 0.9em 0;
}
.entry-caption {
	margin: 1em 0.5em -1em;
}
#gallery-content .gallery {
	margin: 0 auto;
}
#gallery-content .gallery a img, #content .gallery a img{
	border: none;
	height: auto;
	max-width: 100%;
}
.gallery img {
	background: #fff;
	padding: 1.0em;
	box-shadow: 1px 2px 4px #666;
	transition: all 0.5s ease-in-out
}
.gallery img:hover {
	box-shadow: 1px 4px 8px #999;
}
.gallery-item {
	float: left;
	margin: 0.5em 0.5em 0.75em 0.5em;
	width: 33%;
}
.gallery dl {
	position: relative;
	margin-right: -0.75em;
}
.gallery dl:nth-of-type(2n+1) {
	transform: rotate(2.5deg);
}
.gallery dl:nth-of-type(2n) {
	transform: rotate(-1.5deg);
}
.gallery dl:nth-of-type(3n) {
	transform: rotate(1.5deg);
	top: -5px;
}
.gallery dl:nth-of-type(5n) {
	transform: rotate(4deg);
}
.gallery dl:nth-of-type(7n) {
	transform: rotate(0deg);
	top: 5px;
}
.gallery dl:nth-of-type(8n) {
	transform: rotate(1.75deg);
}
.gallery dt {
	transition: all 0.5s ease-in-out;
	transform: rotate(0deg) scale(0.85);
	position: relative;
}
.gallery dl:hover, .gallery dt:hover{
	z-index: 100;
}
.gallery dt:hover {
	transform: rotate(-1.5deg) scale(1);
}
.gallery dd {
	margin: -0.75em auto 0 ;
}
@media only screen and (max-width: 905px) {
	.wp-caption-text.gallery-caption {
		font-family: cursive;
		font-size: 0.85em;
	}
}
@media only screen and (max-width: 480px) {
	.entry-content img {
		float: none;
	}
	.gallery-item {
		float: none;
		margin: 0.5em auto 0.75em;
		width: 100%;
	}
	.gallery dl, .gallery dl:nth-of-type(2n+1), .gallery dl:nth-of-type(2n), .gallery dl:nth-of-type(3n), 
	.gallery dl:nth-of-type(5n), .gallery dl:nth-of-type(7n), .gallery dl:nth-of-type(8n) {
		margin-right: 0;
		transform: rotate(0);
	}
	.gallery dt, .gallery dt:hover  {
		transform: rotate(0deg) scale(1);
	}
	.gallery dd {
		margin: 0.5em auto 0.75em ;
	}
}

/* Make sure embeds and iframes fit their containers */
embed,
iframe,
object {
	max-width: 100%;
}

.entry-content iframe,
.entry-content object,  
.entry-content embed {
	margin-top: 1.5em;
	margin-bottom: 1.5em;
}
.video-container {
	position: relative;
	margin: 0 0 0.75em;
	padding-bottom: 56.25%;
	padding-top: 30px;
	height: 0;
	overflow: hidden;
}

.video-container iframe,  
.video-container object,  
.video-container embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* =Navigation
----------------------------------------------- */

#content .site-navigation {
	font-size: 0.85em;
	margin: 0 0 1.5em;
	overflow: hidden;
}
#content .site-navigation a { color: #444; }
#content .nav-previous {
	float: left;
	width: 50%;
}
#content .nav-next {
	float: right;
	text-align: right;
	width: 50%;
}

/* =Comments
----------------------------------------------- */

.bypostauthor {
}

#comments article {
	padding: 0 0 1.2em;
	border-bottom: 1px dotted #ccc;
}
#commentform label {
	margin-right: 1.5em;
}
.comment {
	margin: 1em 0;
}
.commentlist, .children {
	list-style: none;
	margin: 0;
}
.comment-author.vcard {
	margin: 0 0 0.75em 0;
}
.vcard img {
	margin: 0 1.5em 0 0;
	float: left;
}
.fn, .reply {
	font-family: 'RockSalt', cursive;
}

#sfw-respond form input[type="text"], #sfw-respond form textarea {
	font-size: 1.0rem;
	font-size: 1.0em;
}

/* =Widgets
----------------------------------------------- */

.widget {
	margin: 0 0 1.5em;
}

/* Social Media */
.facebook a , .rss a, .linkedin a, .gplus a, .youtube a, .spotlight a{ margin: 0 10px 5px 0; width:32px; height:32px; text-indent: -9999px; float:left;}
.facebook a {background: url('img/facebook-icon.png') no-repeat;}
.rss a {background: url('img/rss-icon.png') no-repeat;}
.linkedin a {background: url('img/linkedin-icon.png') no-repeat;}
.gplus a {background: url('img/gplus-icon.png') no-repeat;}
.youtube a {background: url('img/youtube-icon.png') no-repeat;}
.spotlight a {background: url('img/spotlight-logo.png') no-repeat;}
.synved-social-button img {padding-top: 1.0em;}