/*
 * 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
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
	font-size: 1em;
	line-height: 1.4;
	background-color:#F2F2F2
	/*background-color:#3F3F3F*/
}

/*
 * 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: #D7D7DB;
    text-shadow: none;
}

::selection {
    background: #D7D7DB;
    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 Margins ======= */
#top, #bottom, #left, #right {
    background: #FFF;
    /*background: #5E5E5E;*/
    position: fixed;
    z-index: 50;
    }
    #left, #right {
        top: 0; bottom: 0;
        width: 12px;
        }
        #left { left: 0; }
        #right { right: 0; }
        
    #top, #bottom {
        left: 0; right: 0;
        height: 12px;
        }
        #top { top: 0; }
        #bottom { bottom: 0; 
        }

/* ====== General ===== */


img{max-width:100%;height:auto;display:block;}

body{
	font-family: 'Armata';
	font-size: 11px;
	color: #8C8C8C;
	line-height: 2em;
	letter-spacing: 0.1em;
}

#site-container{
	max-width: 80%;
	height: auto;
	margin: 0 auto;
}

#site-margin{
    margin-left:40px;
    margin-right:40px;
    margin-bottom:30px;
}



/* ====== Logo ===== */

#logo{
	width: 16px;
	height: 110px;
	left: 35px;
	top: 48px;
	position: fixed;
}

.workOn { 
	width: 41px; 
	height: 20px;
	position: fixed;
	left: 22px;
	top: 221px;
	z-index: 110;
	background: url('../img/work_over.png') no-repeat; 
	} 
	
.infoOn { 
	width: 28px; 
	height: 28px;
	position: fixed;
	left: 28px;
	top: 274px;
	z-index: 110;
	background: url('../img/info_over.png') no-repeat; 
	} 

 /* ====== Work pages ===== */

#content-studio{
    margin-top: -40px;
}  

#content-studio img{max-width:100%;height:auto;display:block;}


.bottom{
    margin-top:50px;
    float:left;
    width:100%;
    visibility: hidden;
    
}
        

/******* HOME **********/

#content-home{
    margin-top: 184px;
}

#content-home ul{
    list-style-type: none;
    margin:0;
    padding:0;
}

#content-home li{
    float:left;
    margin:.5% .5% .5% .5%;
    width:32%;
}

#content-home li div { overflow:hidden; position:relative;}



/*
.shadow {  position:absolute; top:0; left:0; opacity:1; background:transparent; width:100%; height:100%; 
    -webkit-box-shadow: inset 0 0 60px 20px rgba(37,27,23,.1);
    -moz-box-shadow: inset 0 0 60px 20px rgba(37,27,23,.1); 
    box-shadow: inset 0 0 60px 20px rgba(37,27,23,.1);
    -webkit-transition: opacity 1.5s .5s;-moz-transition:opacity 1.5s .5s; -o-transition:opacity 1.5s .5s;-ms-transition:all 1.5s .5s; transition:opacity 1.5s .5s;
}*/

#content-home li div:hover .shadow {opacity:0;}

#content-home li div img {position:relative; top:0;left:0; max-width:auto;vertical-align:bottom;width:100%;
    -webkit-transition: all 1800ms cubic-bezier(0.190, 1.000, 0.220, 1.000); 
   -moz-transition: all 1800ms cubic-bezier(0.190, 1.000, 0.220, 1.000); 
    -ms-transition: all 1800ms cubic-bezier(0.190, 1.000, 0.220, 1.000); 
     -o-transition: all 1800ms cubic-bezier(0.190, 1.000, 0.220, 1.000); 
        transition: all 1800ms cubic-bezier(0.190, 1.000, 0.220, 1.000);
    }

#content-home li div img.onhover {opacity:0;position:absolute;}

/*#content-home li div:hover img {-webkit-transform: scale(1) rotate(0);-moz-transform:scale(1) rotate(0);-o-transform:scale(0) rotate(0);-ms-transform:scale(0) rotate(0);transform:scale(0) rotate(0);
}*/

#content-home li div:hover img.onhover {opacity:1;}


/*********** CREATIVE  **********/

.project-details img{
    max-width:100%;
    height:auto;
    display:block;
}


#content-creative{
    margin-top: 171px;
}

.project-details{
    max-width:700px;
    margin:0 auto;
}

.project-details h3{
	font-family: Armata;
	font-size: 20px;
}

.project-details h2{
	font-family: Armata;
	font-size: 14px;
}


.project-details p{
    margin-bottom:26px;
    line-height: 2em;
}

.project-details a:hover{
	text-decoration: none; 
	padding-bottom:2px;}

.work-image{
	margin-bottom: 10px;
}

.main-nav{
	width: 73px;
	height: 132px;
	position: fixed;
	left: 0px;
	top: 193px;
	background-image: url(../img/homenav_back.png);
	z-index: 100;
	/*opacity: .2;*/
}

.work-nav{
	width: 73px;
	height: 192px;
	position: fixed;
	left: 0px;
	top: 345px;
	background-image: url(../img/homenav_back.png);
	z-index: 100;
	/*opacity: .25;*/
}


.imgWork { 
	width: 41px; 
	height: 20px;
	position: fixed;
	left: 22px;
	top: 221px;
	z-index: 110;
	background: url('../img/work_button.png') no-repeat; 
	} 
	
.imgWork:hover { 
	width: 41px; 
	height: 20px;
	background: url('../img/work_over.png') no-repeat; 
	}
	
a.workLink{
	width: 41px; 
	height: 20px;
    display: block;
}


.imgInfo { 
	width: 28px; 
	height: 28px;
	position: fixed;
	left: 28px;
	top: 274px;
	z-index: 110;
	background: url('../img/info_button.png') no-repeat; 
	} 
	
.imgInfo:hover { 
	width: 28px; 
	height: 28px; 
	background: url('../img/info_over.png') no-repeat; 
	}
	
a.infoLink{
    width:28px;
    height:28px;
    display: block;
}

.imgNext { 
	width: 25px; 
	height: 25px;
	position: fixed;
	left: 25px;
	top: 370px;
	z-index: 110;
	background: url('../img/navNext.png') no-repeat;
	} 
	
.imgNext:hover { 
	width: 25px; 
	height: 25px; 
	background: url('../img/navNext_over.png') no-repeat; 
	}
	
.nextLink{
    width:28px;
    height:28px;
    display: block;
}

.imgBack { 
	width: 25px; 
	height: 25px;
	position: fixed;
	left: 25px;
	top: 428px;
	z-index: 110;
	background: url('../img/navBack.png') no-repeat; 
	} 
	
.imgBack:hover { 
	width: 25px; 
	height: 25px; 
	background: url('../img/navBack_over.png') no-repeat; 
	}
	
a.backLink{
    width:28px;
    height:28px;
    display: block;
}

.go-to-top {
    width:25px;
    height:25px;
	position: fixed;
	left: 25px;
	top: 483px;
	z-index: 110;
    background:url('../img/navTop.png') no-repeat;
    
}

.go-to-top:hover {
    background:url('../img/navTop_over.png') no-repeat;
}

a.topLink{
    width:25px;
    height:25px;
    display:block;
}



/********* iPad Tablet Size *************/

@media screen and (max-width: 1024px) and (min-width: 719px) {

#content-home{
    margin-top: 48px;
}


#content-creative{
    margin-top: 36px;
}

.description{
    width:100%;
    margin-top:50px;
    margin-left: 0px;
    margin-bottom:100px;
    clear:left;
}

#site-margin{
    margin-left:50px;
    margin-right:50px;
}

#home-site-margin{
    margin-left:26px;

}

.bottom{
    visibility: visible;
}


/***** HOME  ****/

#content-home li{
    float:left;
    margin:1.92307% 1.92307% 3.92307% 1.92307%;
    width:45.904%;
}

.work-nav{
	width: 73px;
	height: 133px;
	position: fixed;
	left: 0px;
	top: 345px;
	background-image: url(../img/homenav_back.png);
	z-index: 100;
}

.go-to-top {
    display:none;
}

#creative-nav, #creative-nav-studio{
    float:left;
    padding-left:15%;
    margin-top:-90px;
}

#studio-nav, #studio-nav-studio {
    float:right;
    padding-right:17%;
    margin-top:-90px;
}





}


/***************** Mobile view **************/

@media screen and (max-width: 720px) {


.description{
    width:100%;
    margin-left: 0px;
    clear:left;
    margin-top:30px;
}

.contact{
    float:none;
    margin:0 auto;
    padding-top: 30px;
}

.large-grey{
    margin-top:50px;
    width:100%;
    height:auto;
}


#top, #bottom, #left, #right {
    display:none;
}

.bottom{
    visibility: visible;
}

#content-home li{
    float:left;
    margin:1.92307% 1.92307% 3.92307% 0%;
    width:100%;
}

#header ul{
    list-style-type: none;
    margin:0;
    padding:0;
}

#header ul li{
    display: block;
}

.project-nav{
    display:none;
}

.main-nav{
	width: 61px;
	height: 132px;
	position: fixed;
	left: 0px;
	top: 193px;
	background-image: url(../img/homenav_back.png);
	z-index: 100;
}

.work-nav{
    width: 61px;
	height: 133px;
	position: fixed;
	left: 0px;
	top: 345px;
	background-image: url(../img/homenav_back.png);
	z-index: 100;
}

.imgWork { 
	width: 41px; 
	height: 20px;
	position: fixed;
	left: 10px;
	top: 221px;
	z-index: 110;
	background: url('../img/work_button.png') no-repeat; 
	} 

.imgInfo { 
	width: 28px; 
	height: 28px;
	position: fixed;
	left: 16px;
	top: 274px;
	z-index: 110;
	background: url('../img/info_button.png') no-repeat; 
	} 

.imgNext { 
	width: 25px; 
	height: 25px;
	position: fixed;
	left: 18px;
	top: 370px;
	z-index: 110;
	background: url('../img/navNext.png') no-repeat;
	}
	
.imgBack { 
	width: 25px; 
	height: 25px;
	position: fixed;
	left: 19px;
	top: 428px;
	z-index: 110;
	background: url('../img/navBack.png') no-repeat; 
	} 


#logo{
	width: 16px;
	height: 110px;
	left: 23px;
	top: 48px;
	position: fixed;
}

.workOn { 
	width: 41px; 
	height: 20px;
	position: fixed;
	left: 10px;
	top: 221px;
	z-index: 110;
	background: url('../img/work_over.png') no-repeat; 
	} 
	
.infoOn { 
	width: 28px; 
	height: 28px;
	position: fixed;
	left: 16px;
	top: 274px;
	z-index: 110;
	background: url('../img/info_over.png') no-repeat; 
	} 


.go-to-top {
    display:none;
}
#content-creative{
    margin-top:0px;
}

#content-home{
   margin-top:50px; 
}

#content-home{
    width:92%;
    margin:0 auto;
}

#content-home li{
margin-bottom:44px;
}

#site-margin-studio{
    margin-left:20px;
    margin-right:20px;
    margin-bottom:30px;
}


}








/* ==========================================================================
   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: 100%;
}

/*
 * 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: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* Style adjustments for high resolution devices */
}
