/*
 * HTML5 Boilerplate
 *
 * 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;
}

body {
    font-size: 1em;
    line-height: 1.4;
    
    /* Enable fake CSS3 3D Transforms */
  	-webkit-backface-visibility: hidden;
	-webkit-perspective: 1000;
	-webkit-transform: translateZ(0);
}


.lazy {
  display: none;
}


/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations 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 images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
	background-image:url('../img/bkg.jpg');
	background-repeat:no-repeat;
	background-color:#DDDDDD;
	background-size:100%;
}

.scrolling-element-class * {
	-webkit-transform: translate3d(0,0,0);
	-webkit-overflow-scrolling: touch;
	
}

/* =============
 * FONTS
 * =============
 */

@font-face {
	font-family: din-medium;
	src: url('../fonts/din-medium.ttf'), url('../fonts/din-medium.eot'), url('fonts/din-medium.svg') format('svg');
}

@font-face {
	font-family: din-medium;
	src: url('../fonts/din-bold.ttf'), url('../fonts/din-bold.eot'), url('fonts/din-bold.svg') format('svg');
	font-weight:bold;
}

/*
@font-face {
	font-family: din-light;
	src: url('../fonts/din-light.ttf'), url('../fonts/din-light.eot');
}
*/


@font-face {
	font-family: din-regular;
	src: url('../fonts/din-regular.ttf'), url('../fonts/din-regular.eot'), url('../fonts/jotting_regular-webfont.svg#webfonttEfFltbI') format('svg');
}

/* 
@font-face {
	font-family: chaparralpro-regular;
	src: url('../fonts/ChaparralPro-Regular.ttf'), url('../fonts/ChaparralPro-Regular.eot');
}

@font-face {
	font-family: chaparralpro-regular;
	src: url('../fonts/ChaparralPro-Bold.ttf'), url('../fonts/ChaparralPro-Bold.eot');
	font-weight:bold;
}
*/



/* =============
 * THUMBS
 * =============
 */

#thumbs-toppadding {
	width:100%;
	height:20px;
}

#thumbs-bottompadding {
	width:100%;
	height:40px;
}

[class*="col-"] {
	float: left;
	/*padding-right: 2px;
	padding-bottom: 2px; */
	background-repeat: no-repeat;
}

/*
[class*='col-']:last-of-type {
	padding-right: 0;
}
*/


/*
[class*='col-'] {
	float: left;
	padding-left: 2px;
	padding-top: 2px;
}


[class*='col-']:first-child {
	padding-left: 0;
}
*/


.col-1 {
	width: 239px;
	height: 186px;
}

#centercontainer {
	width: 100%;
	min-width: 640px;
	/*
	display:-moz-box;
	-moz-box-pack:center;
	-moz-box-align:center;
	
	display:-webkit-box;
	-webkit-box-pack:center;
	-webkit-box-align:center;
	
	display:box;
	box-pack:center;
	box-align:center;
	*/
}

#centercontainer a:link {color:#1386b6; text-decoration:none; display:inline-block; }
#centercontainer a:visited {color:#1386b6; text-decoration:none; display:inline-block; }
#centercontainer a:hover {color:#1698ce; text-decoration:none; display:inline-block; }
#centercontainer a:active {color:#1386b6; text-decoration:none; display:inline-block; }

.grid {
	min-width: 640px; /* was 478 */
	max-width: 1691px; /* was 1200 */
	margin: 0px auto;
	
}

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


*, *:after, *:before {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

figure {
	display: block;
	position: relative;
	float: left;
	overflow:hidden;
	margin:0;
	width:237px;
	height:184px;
}

figcaption {
	position: absolute;
	background: black;
	background: rgba(0,0,0,0.9);
	display:inline;
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#DD000000, endColorstr=#DD000000); /* IE 6/7 */
	-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#DD000000, endColorstr=#DD000000)"; /* IE8 */
	color:#BBBBBB;
	font-family:din-medium;
	font-size:100%;
	line-height:100%;
	padding:10px 15px;
	opacity:0;
	width:100%;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.0);  /* kludge to fix ios 5 rendering issue */
	
	-webkit-transition: all 0.6s ease;
	-moz-transition: all 0.6s ease;
	-o-transition: all 0.6s ease;
}

.caption-project {
	color:#FFFFFF;
	font-family:din-medium;
	font-size:100%;
	line-height:140%;
	
}

#caption-project {
	
}


#caption-project a:link {color:#FFFFFF; text-decoration:none; display:inline; }
#caption-project a:visited {color:#FFFFFF; text-decoration:none; display:inline; }
#caption-project a:hover {color:#DDDDDD; text-decoration:none; display:inline; }
#caption-project a:active {color:#FFFFFF; text-decoration:none; display:inline; }


.caption-client {
	top:2px;
	color:#BBBBBB;
	font-family:din-regular;
	font-size:90%;
	line-height:150%;
}

.caption-client-linkfix {
	position:relative;
	top:-12px;
}

.caption-service {
	top:2px;
	display:inline;
	color:#888888;
	font-family:din-regular;
	font-size:80%;
	
}

.caption-service-linkfix {
	position:relative;
	top:-12px;
}

.height-100 {
	height:100px;
}

figure:hover figcaption {
	opacity: 1;
}

figure:active figcaption {
	opacity: 1;
}

figure:hover:before {
	opacity: 0;
}

figure:active:before {
	opacity: 0;
}

.cap-bot:before { bottom: 10px; left: 10px; }
.cap-bot figcaption { left: 0; bottom: -30%; }
.cap-bot:hover figcaption { bottom: 0; }
.cap-bot:active figcaption { bottom: 0; }

/* =============
 * HEADER
 * =============
 */

#logo {
	/* Absolutely positioned logo element */
	position:absolute;
	z-index:2;
	left:12%;   /* target px: 187 */
	top:0px;
	width:245px;
	height:146px;
	background-image:url('../img/logo.png');
	background-repeat:no-repeat;
}

#header {
    /* Container for Header */
    width:100%;
    height:92px;
  
}


/*
#navpadding {
	position:relative;
	width:53%;
	min-width: 300px;
}
*/

/*
#nav {
	position:absolute;
	left:53%; 
	top:66px;		
	width:35%		
	
}
*/

.navgrid {
	position:relative;
	/* float:left; */
	/*left:53%;*/
	top:62px;
	width:100%;
	min-width: 600px;
	max-width: 1280px;
	margin: 0;
}

.navgrid:after {
	content: "";
	display:inline;
	clear:both;
	min-width: 600px;
}

.col-navspacer {
	width: 53%;
	min-width: 300px;
}

.col-nav {
	width: 11.75%;  /* was 25% */
	height: 25px;
	font-family:din-regular;
	font-weight:regular;
	font-size:15;
	color:#3e3e3e;
}


/* =============
 * CONTENTAREA
 * =============
 */

#contentarea {
	/* Container for Content Area */
	width:100%;
	min-width: 640px;
	height:300px;		/* 1030px expanded? */
	background-color:#343435;
}

#projectcontainer {
	/* Container for a project detail div */
	width: 77.3%;
	height: 100%;
	
}

/*
a:link {color:#FFFFFF; text-decoration:none; }
a:visited {color:#FFFFFF; text-decoration:none; }
a:hover {color:#FFFFFF; text-decoration:none; }
a:active {color:#FFFFFF; text-decoration:none; }
*/	
	
#aboutcontainer {
	position:relative;
	top:10%;
	left:10%;
	width: 80%;
	height: 70%;
	min-width: 512; /* was 600px */
	font-family:din-medium;
	font-size:100%;
	line-height:105%;
	text-align:center;
	color:#BBBBBB;	/* was F5F5F5 */
	
	text-shadow: 1px 1px 1px #212222;
	
}



/* =============
 * FOOTER
 * =============
 */

#footer {
	/* Container for Footer */
	width:100%;
	height:100%;
	
	z-index: 3;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.0);
}

#footer a:link {color:#777777; text-decoration:none; display:block; }
#footer a:visited {color:#777777; text-decoration:none; display:block; }
#footer a:hover {color:#222222; text-decoration:none; display:block; }
#footer a:active {color:#777777; text-decoration:none; display:block; }

#footer_rule {
	position:relative;
	left:8%;
	width:84%;
	min-width: 537.6px;
	/*max-width: 1280px;*/
	background-image:url('../img/footer_rule.png');
	background-repeat:no-repeat;
	background-size:100%;
	height:3px;
}

#footer_toppadding {
	width:100%;
	height:20px;
}

#footer_bottompadding {
	position:relative;
	width:100%;
	height:100px;
}

.footergrid {
	position:relative;
	float:left;
	left:8%;
	width:82%;
	min-width: 524.8px;
	/* max-width: 1280px; */
	margin: 0;
}

.footergrid:after {
	content: "";
	display:inline;
	clear:both;
	min-width: 640px;
}

.col-footer1 {
	position:relative;
	width: 33.33%; 
	height: 26px;
	font-family:din-medium;
	font-weight:bold;
	font-size:90%;
	line-height:150%;
	text-align:left;
	
	/* text-shadow: 1px 1px 1px #212222; */
	
	
	color:#3e3e3e;
}

.biggersize {
	font-size:120%;
}

.furtherdown {
	position:relative;
	top:2px;
}

.morelineheight {
	line-height: 1.8;
}

.furtherup {
	position:relative;
	top:-4px;
}
.col-footer2 {
	display:block;
	position:relative;
	width: 33.33%;
	height:100px;
	line-height:150%;
	font-family:din-medium;
	font-size:90%;
	color:#3e3e3e;
}

.lesslineheight {
	line-height: 40%;
}

.bumpup {
	position:relative;
	top:-21px;
}

.bumpdown {
	position:relative;
	top:4px;
}

.nowordwrap {
	word-wrap:normal;
	
}

/* ==========================================================================
   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;
}

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

@media only screen and (min-width: 0px) {
    
   .grid {
   		min-width: 478px;
		max-width: 478px;
		margin: 0px auto;
	}
	#contentarea {
		height:330px;		
	}
}

@media only screen and (min-width: 239px) {
    
   .grid {
   		min-width: 478px;
		max-width: 478px;
		margin: 0px auto;
	}
	#contentarea {
		height:330px;		
	}
}

@media only screen and (min-width: 478px) {
    
   .grid {
   		min-width: 239px;
		max-width: 478px;
		margin: 0px auto;
	}
	#contentarea {
		height:330px;		
	}
}


@media only screen and (min-width: 734px) {
    /* Style adjustments for viewports that meet the condition */
   .grid {
   		min-width: 478px;
		max-width: 717px;
		margin: 0px auto;
	}
	#contentarea {
		height:300px;		
	}
}

@media only screen and (min-width: 974px) {
    /* Style adjustments for viewports that meet the condition */
   .grid {
   		min-width: 478px;
		max-width: 960px;
		margin: 0px auto;
	}
	
	#contentarea {
		height:270px;		
	}
}

@media only screen and (min-width: 1213px) {
    /* Style adjustments for viewports that meet the condition */
   .grid {
   		min-width: 478px;
		max-width: 1213px;
		margin: 0px auto;
	}
	
	#contentarea {
		height:240px;		
	}
}

@media only screen and (min-width: 1452px) {
    /* Style adjustments for viewports that meet the condition */
   .grid {
   		min-width: 478px;
		max-width: 1452px;
		margin: 0px auto;
	}
	
	#contentarea {
		height:210px;		
	}
}

@media only screen and (min-width: 1691px) {
    /* Style adjustments for viewports that meet the condition */
   .grid {
   		min-width: 478px;
		max-width: 1691px;
		margin: 0px auto;
	}
	
	#contentarea {
		height:210px;		
	}
}

@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 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;
    }
}
