/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #88aacd;
   	color: #fff;
    text-shadow: none;
}

::selection {
    background: #88aacd;
  	color: #fff;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #b09b93;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   
   NICK BAXTER STYLES
   
   ========================================================================== */

/* Fonts */
  
@font-face {
  font-family: 'Blaimim';
  src: url('../fonts/blaimim.eot?') format('embedded-opentype'), url('../fonts/blaimim.woff') format('woff'), url('../fonts/blaimim.ttf') format('truetype');
}

html {
	font-size: 100%;
	height: 100%;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
	width:100%;
	min-height: 100%;
	position:relative;
}

body {
	background: #000;
	color: #88aacd;
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
	height: 100%;
	position: relative;
	width: 100%;
}

a {
	color: #88aacd;
	text-decoration: underline;
	-webkit-transition: color 750ms ease;
	-moz-transition: color 750ms ease;
	-ms-transition: color 750ms ease;
	-o-transition: color 750ms ease;
	transition: color 750ms ease;
}

a:hover {
	text-decoration: none;
}

.blue {color: #88aacd;}

a.blue {
	color: #88aacd;
	text-decoration: none;
}

a.blue:hover {
	color: #b09b93;
}

.tan {color: #b09b93;}

a.tan {
	color: #b09b93;
	text-decoration: none;
}

a.tan:hover {
	color: #88aacd;
}

.container {
	font-size: 13px;
	min-width: 417px;
	max-width: 1200px;
	min-height: 100%;
	padding: 0 40px 0 20px;
}

/* .page-wrapper {
	margin: 0 auto -100px auto;
	min-height: 100%;
	position: relative;
}

.page-wrapper:after {
	content: " ";
	display: block;
	height: 100px;
} */

/* Header */

#header {
	margin-bottom: 55px;
	padding-top: 20px;
}

.site-title,
h1.site-title {
	margin: 0;
	padding: 0;
}

.site-title a {
	background: url('../img/nick_baxter_header.png') left top no-repeat;
	display: block;
	height: 187px;
	overflow: hidden;
	outline: none;
	width: 417px;
}

/* Nav Bar */

#sidebar {
	float: left;
	position: relative;
	width: 120px;
	z-index: 10;
}

.nav {
	font-family: 'Blaimim', "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
	font-size: 13px;
	margin-bottom: 45px;
	text-align: right;
}

.nav a {
	display: block;
	margin-bottom: 8px;
	overflow: hidden;
	outline: none;
}

.ebook-wrapper {
	font-family: 'Blaimim', "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
	font-size: 13px;
	margin-bottom: 45px;
	text-align: right;
}

/* Main Content Area */

.content-wrapper {
	max-width: 846px;
	padding: 0 0 0 226px;
	position: relative;
}

.content-wrapper p {
	margin: 0;
}

.content-wrapper p img {
	height: auto !important;
	max-width: 100% !important;
}

.view-more-link {clear: both; display: block;}

.home-content-wrapper p img {
	display: block;
	margin-bottom: 20px;
}

/* Thumbnail Galleries */

#thumbnailgallery {
	position: relative;
	top: -35px;
}

#thumbnailgallery {
	background: url('../img/preloader.gif') center 50px no-repeat;
}

.no-js #thumbnailgallery {
	background: none;
}

.thumbnails-wrapper {
	opacity: 0;
}

.no-js .thumbnails-wrapper {
	opacity: 1;
}

.thumbnail-nav-bar {
	height: 20px;
	margin-bottom: 20px;
	padding-right: 20px;
}

.thumbnail-nav-bar .helper-link {
	float: right;
}

#crumb-nav {
	float: left;
	width: 300px;
}

.thumbsThumbnail {
	display: inline-block;
	/* float: left; */
	height: 150px;
	margin: 0 16px 14px 0;
	width: 150px;
}

.thumbsThumbnail .nailthumb-container {
	display: block;
	height: 150px;
	width: 150px;
}

.thumbsThumbnail .nailthumb-container img {
	display: block;
}

.thumbnail-navigation {
	width: 480px;
}

/* Image Detail Page */

.gallery-image-wrapper {
	position: relative;
	top: -35px;
}

.gallery-image-nav-bar {
	height: 20px;
	margin-bottom: 20px;
}

.gallery-image-nav-bar #crumb-nav {
	float: left;
	width: 440px;
}

.gallery-image-nav-bar .image-navigation {
	float: left;
	font-size: 30px;
	margin: ;
	width: 175px;
}

.gallery-image {
	float: left;
	margin: 0 40px 34px 0;
	width: 400px;
}

.gallery-image-info-wrapper {
	float: left;
	padding-top: 30px;
	width: 175px;
}

.inside-content-wrapper .gallery-image-info-wrapper h1 {
	font-size: 13px;
	font-weight: bold;
	margin: 0 0 13px 0;
}

.gallery-image-info-wrapper .large-image-link,
.gallery-image-info-wrapper .detail-image-link,
.gallery-image-info-wrapper .back-link {
	display: block;
}

.gallery-image-info-wrapper .back-link {margin: 13px 0 25px 0;}

.gallery-image-info {margin-bottom: 25px;}

/* INFO PAGES */

.inside-content-wrapper h1 {
	font-size: 13px;
	font-weight: normal;
	margin: 0;
}

.article-entry {
	margin-bottom: 20px;
}

.inside-content-wrapper h1.info-header {
	padding: 0;
	margin-bottom: 10px;
}

/* LINKS PAGE */

.links-wrapper {
	position: relative;
	top: -6px;
}

/* FORUM PAGES */

.forum-wrapper {
	position: relative;
	top: -59px;
}

/* Footer */

#footer {
	color: #666;
	font-size: 12px;
	/* height: 100px; */
	padding-bottom: 20px;
	position: relative;
	text-align: right;
	width: 120px;
}

#footer a {color: #666;}

.footer-links {
	margin-bottom: 20px;
	padding-left: 12px;
	text-align: left;
}

.footer-links a {
	display: block;
	float: left;
	height: 30px;
	margin-left: 9px;
	overflow: hidden;
	outline: none;
	text-indent: -9000px;
	width: 30px;
}



.footer-links a.blog-button {
	background: url('../img/blog-button.png') left top no-repeat;
}

.footer-links a.twitter-button {
	background: url('../img/twitter-button.png') left top no-repeat;
}

.footer-links a.instagram-button {
	background: url('../img/instagram-button.png') left top no-repeat;
}
.footer-links a.youtube-button {
	background: url('../img/youtube-button.png') left top no-repeat;
}

.footer-text {line-height: normal;}

.rss-link {display: block;}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   
   RESPONSIVE STYLES
   
   ========================================================================== */

/* SCREEN SIZE LESS THAN 1132px WIDE */

@media all and (max-width : 1131px) {
	
	#thumbnailgallery {
		max-width: 680px;
	}
	
}

/* SCREEN SIZE LESS THAN 963px WIDE */

@media all and (max-width : 962px) {
	
	#thumbnailgallery {
		max-width: 510px;
	}
	
}

/* SCREEN SIZE LESS THAN 792px WIDE */

@media all and (max-width : 791px) {
	
	#thumbnailgallery {
		max-width: 340px;
	}
	
	.thumbnail-nav-bar {height: auto;}
	
	.thumbnail-nav-bar #crumb-nav {float: none;}
	
	.thumbnail-nav-bar .helper-link {
		float: none;
		margin-top: 20px;
	}
	
	.thumbnail-nav-bar .helper-link p {
		text-align: left !important;
	}
	
}

/* SCREEN SIZE LESS THAN 913px WIDE */

@media all and (max-width : 912px) {

	.gallery-image {
		float: none;
		margin-right: 0;
	}
	
	.gallery-image-info-wrapper {
		float: none;
		padding-top: 0;
		width: 400px;
	}
	
	.gallery-image-nav-bar {width: 400px;}
	
	.gallery-image-nav-bar #crumb-nav {
		width: 300px;
	}
	
	.gallery-image-nav-bar .image-navigation {
		float: right;
		margin: -9px 0 0 0;
		width: auto;
	}

}

/* SCREEN SIZE LESS THAN 769px */

@media all and (max-width : 768px) {

	.forum-intro-wrapper {display: none;}

}

/* SCREEN SIZE LESS THAN 651px */

@media all and (max-width : 650px) {
	
	#header {margin-bottom: 35px;}
	
	.site-title a {
		background: url('../img/nick_baxter_small_header.png') left top no-repeat;
		height: 248px;
		margin: 0 auto;
		width: 200px;
	}
	
	.container {
		margin: 0 auto;
		min-width: 200px;
		max-width: 440px;
		padding: 0 20px;
	}
	
	#sidebar {
		float: none;
	}
	
	.content-wrapper {
		padding: 0;
	}
	
	#sidebar {width: auto;}
	
	.nav {
		margin-bottom: 25px;
		text-align: center;
	}
	
	.nav a {
		display: inline-block;
		margin: 0 10px 0 10px;
	}
	
	.ebook-wrapper {
		margin-bottom: 55px;
		text-align: center;
	}
	
	#footer {
		margin-top: 55px;
		width: auto;
	}
	
	.footer-links {
		margin: 0 auto 20px auto;
		padding-left: 0;
		width: 108px;
	}
	
	.footer-text {
		text-align: center;
	}
	
	#thumbnailgallery {
		margin: 0 auto;
		top: 0px;
	}
	
	.thumbnail-nav-bar {
		padding-right: 0;
		text-align: center;
	}
	
	.thumbnail-nav-bar #crumb-nav {width: auto;}
	
	.thumbsThumbnail {
		margin: 0 8px 14px 8px;
	}
	
	.gallery-image-wrapper {
		top: 0px;
	}
	
	.gallery-image-nav-bar {width: auto;}
	
	.gallery-image-nav-bar #crumb-nav {
		width: 200px;
	}
	
	.gallery-image {
		margin: 0 auto 34px auto;
	}
	
	.gallery-image img {
		height: auto;
		max-width: 360px !important;
	}
	
	.gallery-image {
		text-align: center;
		width: 360px;
	}
	
	.gallery-image-info-wrapper {width: auto;}
	
	.image-navigation {text-align: right;}
	
	.thumbnail-nav-bar .helper-link p {text-align: center !important;}
	
	#thumbnailgallery {
		background: url('../img/preloader.gif') center 75px no-repeat;
	}
	
}

/* SCREEN SIZE LESS THAN 410px */

@media all and (max-width : 409px) {

	.contact-form-wrapper textarea {width: 90%;}
	
}

/* SCREEN SIZE LESS THAN 321px */

@media all and (max-width : 320px) {
	
	.thumbsThumbnail {
		display: block;
		margin: 0 auto 14px auto;
	}
	
	.gallery-image {width: 280px;}
	
	.gallery-image img {
		max-width: 280px !important;
	}
	
	.gallery-image-nav-bar {height: auto;}
	
	.gallery-image-nav-bar #crumb-nav {
		float: none;
		margin: 0 auto;
		text-align: center;
		width: auto;
	}
		
	.gallery-image-nav-bar .image-navigation {float: none; margin: 20px 0; text-align: center;}
	

}


/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
