/*! HTML5 Boilerplate v5.0.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 {
    color: #666;
    font-size: 1em;
    line-height: 1.4;
	letter-spacing:0.05em;
	background:#f2f2f2;
	font-family:"futura-pt";
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
   
      /* Chrome, Safari, Opera */ 
@-webkit-keyframes closeOver {
    0%   {background:url(../img/close-1.png) center center no-repeat;}
    33%  {background:url(../img/close-2.png) center center no-repeat;}
    66%  {background:url(../img/close-3.png) center center no-repeat;}
    100%  {background:url(../img/close-4.png) center center no-repeat;}
} 

/* Standard syntax */ 
@keyframes closeOver {
    0%   {background:url(../img/close-1.png) center center no-repeat;}
    33%  {background:url(../img/close-2.png) center center no-repeat;}
    66%  {background:url(../img/close-3.png) center center no-repeat;}
    100%  {background:url(../img/close-4.png) center center no-repeat;}
}
@-webkit-keyframes closeOut {
    0%   {background:url(../img/close-4.png) center center no-repeat;}
    33%  {background:url(../img/close-3.png) center center no-repeat;}
    66%  {background:url(../img/close-2.png) center center no-repeat;}
    100%  {background:url(../img/close-1.png) center center no-repeat;}
} 

/* Standard syntax */ 
@keyframes closeOut {
    0%   {background:url(../img/close-4.png) center center no-repeat;}
    33%  {background:url(../img/close-3.png) center center no-repeat;}
    66%  {background:url(../img/close-2.png) center center no-repeat;}
    100%  {background:url(../img/close-1.png) center center no-repeat;}
}

h1 {
	font-weight:500;
	text-transform:uppercase;
	font-size:48px;
	line-height:48px;
	color:#000;
	letter-spacing:0.26em;
	letter-spacing:0.15em;
	margin:0;
}

h2 {
	font-weight:300;
	text-transform:uppercase;
	font-size:24px;
	line-height:24px;
	color:#999;
	letter-spacing:0.15em;
	margin:0;
}

#logo h2 {letter-spacing:0.26em;}

.line1 {color:#666;}
.line3 {color:#ccc;}

h3 {
	color:#333;
	font-weight:500;
	text-transform:uppercase;
	font-size:16px;
	line-height:16px;
	letter-spacing:0.15em;
}

ul {
	list-style:none;	
	font-size:14px;
	line-height:17px;
}

li {
	padding:5px 0;
}

p a, li a {text-transform:uppercase; color:#000; text-decoration:none;}

.sitelink {
	text-decoration:none; 
	color:#000; 
	text-transform:uppercase; 
	font-size:14px;
	line-height:17px;
}

.note {
	font-size:10px;
	line-height:12px;
	display:inline-block;
	margin:10px 0 0;
	
}

#overlay {
	position:absolute;
	z-index:9;
	top:-20px;
	right:-20px;
	bottom:-20px;
	left:-20px;
	display:none;
}

#close {
	width:36px;
	height:36px;
	background-position:center center;
	background:url(../img/close-1.png) no-repeat;
	display:block;
	position:absolute;
	top:40px;
	right:40px;
	
	-webkit-animation: closeOut 0.1s 1;
    animation: closeOut 0.1s 1;
}

#close:hover {
	background:url(../img/close-4.png) top center no-repeat;
	-webkit-animation: closeOver 0.2s 1;
    animation: closeOver 0.2s 1;
}

#header {
	position:fixed;
	top:0;
	left:0;
	bottom:0;
	width:300px;
	background:#fff;
	padding-top:20px;
}

#nav {
	text-transform:uppercase;
	font-size:14px;
	line-height:14px;
	padding:0;
	margin:64px 0 0;
	list-style:none;
}

#nav li {
	margin:0;
	padding:0;
}

#nav a {
	transition:0.5s;
	color:#ccc;
	padding:8px 0;
	text-decoration:none;
	display:inline-block;
}

#nav a:hover, #nav .selected a {color:#000;}

.inner {
	padding:40px;
}

#container {
	position:relative;
	margin-top:20px;
	margin-left:320px;
	margin-right:20px;
}

#tile-holder {
	z-index:0;
	position:relative;
	padding-bottom:20px;
	background:#F2F2F2;
}

#tile-holder.fixed {position:fixed; top:20px; left:320px; right:20px;}

.tile {width:20%; height:400px; background:#ddd; overflow:hidden; cursor:pointer;}

.readmore {
	position:absolute; 
	top:0; 
	left:0; 
	right:0; 
	bottom:0; 
	z-index:9;
	display:none;
}

.tile .overlay {
	position:absolute; 
	top:0; 
	left:0; 
	right:0; 
	bottom:0; 
	background:#000; 
	opacity:0.7; 
	-moz-opacity:0.7; 
	-webkit-opacity:0.7;
}

.moreTxt {
	position:absolute;
	top:50%;
	left:0;
	right:0;
	margin: -15px 0 0;
	text-transform:uppercase;
	font-size: 18px;
	color:#fff;
	opacity:0;
	text-align:center;
}

.moreTxt span {display:inline-block;border:1px solid #fff;padding:10px 20px; margin:0 20px;}

.tile img {display:block; position:absolute; top:50%; left:50%;}

#content {
	background:#fff;
	margin:0 0 20px;
	z-index:2;
	position:relative;
}

#title {}

#copy {
	width:25%; float:left;
}

#copy .inner {margin-right:20px;}

#copy ul {list-style:none;margin:0 0 0 20px;padding:0;}

#imgHolder {position:relative; float:right; width:75%;}

#imgHolder img {
	display:block;
	width:100%;
	height:auto;
	margin:20px 0;
}

#imgHolder img.ipad {
	width:50%;
	margin-left:auto;
	margin-right:auto;
}

#textHolder {
	background:#fff;
}

#text {width:50%;}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers:
 * http://juicystudio.com/article/screen-readers-display-none.php
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.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:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, 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;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width: 1024px) {
    /* Style adjustments for viewports that meet the condition */
	#header {width:230px;}
	#header .inner {padding:30px;}
	#container {margin-left:250px;}
	#tile-holder.fixed {left: 250px;}
	#copy {width:100%;float:none;}
	#imgHolder {width:100%; float:none;}

	#text {width:66.666%;}
}

@media only screen and (max-width: 768px) {
	#header {width:100%; bottom:auto; position:relative;} 
	#header .inner {padding:20px 40px;}
	
	#logo {float:left;}

	#nav {float:right; margin:40px 0 0;}
	
	#nav li {display:inline-block;}
	
	#nav a {padding:8px;}
	
	#container {margin-left:20px; position:static;}
	#content {position:absolute; top:0px; left:20px; right:20px;}
	#tile-holder.fixed {
		top:153px;
		left:20px;
	}
	#text {width:100%;}
}

@media only screen and (max-width: 480px) {
	h1 {font-size:36px; line-height:36px;}
	#content h1 {margin-top:60px;}
	
	.inner {padding:20px;}
	#nav {float:left; margin:20px 0 0;}
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
