/*
 * 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;
    color: #323232;
	width: 100%;
	min-width: 1140px;
}

/*
 * 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: #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
   ========================================================================== */
h1 {
	position: absolute;
	opacity: 0;	
	z-index: 500;
}  
  
h2 {
	color: #716663;
	font-size: 20px;
	text-transform: uppercase;
	font-weight: normal;
}

h3 {
	color: #323232;
	font-size: 14px;
	text-transform: uppercase;
	font-weight: bold;
}

ul li {
	font-size: 16px;
}
  
  
.wrapper {
	width: 1075px;
	min-width: 1075px;
	margin: 0 auto;
	position: relative;
}


.logo a {
	display: block;
	position: absolute;
	width: 322px;
	height: 72px;
	background: url('../img/logo.png') no-repeat;	
	top: 15px;
	left: 0px;
	cursor: pointer;

}

header {
	width: 100%;
	height: 103px;
	background-color: #e2e2cd;
}

	header .wrapper {
	}

header nav ul {
	display: block;
	position: absolute;
	margin: 0 0 0 0;
	padding: 0 0 0 0;
	top: 38px;
	left: 340px;
	width: 740px;
}

header nav li {
	display: block;
	float: left;	
}

/*********************************************
 * ROLLING LINKS
 *********************************************/

.csstransforms3d .roll {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;

    -webkit-perspective: 300px;
       -moz-perspective: 300px;
        -ms-perspective: 300px;
            perspective: 300px;

    -webkit-perspective-origin: 50% 50%;
       -moz-perspective-origin: 50% 50%;
        -ms-perspective-origin: 50% 50%;
            perspective-origin: 50% 50%;
}
.csstransforms3d .roll:hover {
    background: none;
    text-shadow: none;
}
.csstransforms3d .roll .roll-inner {
    display: block;
    position: relative;
    pointer-events: none;

    -webkit-transition: all 600ms ease;
       -moz-transition: all 400ms ease;
        -ms-transition: all 400ms ease;
            transition: all 400ms ease;
    
    -webkit-transform-origin: 50% 0%;
       -moz-transform-origin: 50% 0%;
        -ms-transform-origin: 50% 0%;
            transform-origin: 50% 0%;
    
    -webkit-transform-style: preserve-3d;
       -moz-transform-style: preserve-3d;
        -ms-transform-style: preserve-3d;
            transform-style: preserve-3d;
}

.csstransforms3d .roll:hover .roll-inner {
    -webkit-transform: translate3d( 0px, 0px, -55px ) rotateX( 90deg );
       -moz-transform: translate3d( 0px, 0px, -55px ) rotateX( 90deg );
        -ms-transform: translate3d( 0px, 0px, -55px ) rotateX( 90deg );
            transform: translate3d( 0px, 0px, -55px ) rotateX( 90deg );
}

	.is-ie {
        -ms-transform: none !important;
            transform: none !important;
        -ms-transition: all 400ms ease;
            transition: all 400ms ease;			
	}
	
	.is-ie :hover {
        -ms-transition: all 400ms ease;
            transition: all 400ms ease;	
		background-color: #ffffff;
		border: 2px solid #ffffff;
	}

.csstransforms3d .roll .roll-inner:after {
    content: attr(data-title);
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;

    background-color: #ffffff;
    
	color: #716663;
	font-size: 14px;
	padding: 8px 8px 8px 8px;
	margin-right: 20px;
	border: 2px solid #ffffff;
	text-transform: uppercase;
	text-decoration: none;
	font-weight: bold;    

    -webkit-transform-origin: 50% 0%;
       -moz-transform-origin: 50% 0%;
        -ms-transform-origin: 50% 0%;
            transform-origin: 50% 0%;

    -webkit-transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
       -moz-transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
        -ms-transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
            transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
}	

header nav a {
	text-decoration: none;	

}

header nav a span {
	color: #716663;
	font-size: 14px;
	padding: 8px 8px 8px 8px;
	margin-right: 20px;
	border: 2px solid #716663;
	text-transform: uppercase;
	font-weight: bold;
}

header nav a .last {
	margin-right: 0px;
}

	.is-ie header nav .roll-inner:hover, header nav .roll-inner.active {
		border: 2px solid #ffffff;
		background-color: #ffffff;
	}
	
section {
	background-color: #e2e2cd;
}

	section .wrapper {
		padding: 20px 0 110px 65px;
	}

	section p {
		width: 720px;
	}
	
	
footer {
	background: #f5f5ee url('../img/background-footer.png') repeat-x;
}

	footer .wrapper {
		padding: 20px 0 200px 0;
		text-align: center;
	}


footer nav {
	clear: both;
	display: block;
	position: relative;
}

footer nav ul {
	padding: 0;
	margin: 0 auto;
	display: block;
	position: relative;
	width: 550px;
	clear: both;
}

footer nav li {
	display: block;
	float: left;
}

footer nav a {
	color: #985542;
	font-size: 12px;
	padding: 0;
	text-decoration: none;
	padding-right: 5px;
	margin-right: 5px; 
	border-right: 1px solid #3a3a39;
}

	footer nav a.last {
		border-right: none;	
	}	

footer p {
	font-size: 10px;
	font-weight: bold;
	margin: 0 auto;
}

footer .phone-number {
	padding: 30px;
	font-size: 16px;
	color: #333333;
	font-weight: bold;
	clear: both;
}

	footer .phone-number span {
		padding: 10px;
		border: 2px solid #e0dfd3;
}

	footer .phone-number a {
		color: #985542;
	}


/*
 * Homepage and content page heros 
 */


#hero-container {
	width: 100%;
	height: 360px;
	border-bottom: 10px solid #f6f9ec;
}

#hero-container-content {
	width: auto;
	height: 130px;
	border-bottom: 10px solid #f6f9ec;
}

.hero-background-wrapper {
	position: relative;
	display: block;
	width: 100%;
}

.hero-background {
	position: absolute;
	width: 100%;
	opacity: 0;
	z-index: 100;
}

	.home .hero-background {
		background: url('../img/hero-background-home.jpg') no-repeat;
		background-size: cover;	
		height: 360px;
	}
	
	
	.features .hero-background, .house .hero-background, .contact .hero-background, .freestanding .hero-background {
		background: url('../img/hero-background-content.jpg') no-repeat;
		background-size: cover;	
		background-position: bottom right;
		height: 130px;
	}

.home .hero-item {
	position: absolute;
	left: 795px;
	top: 30px;
	opacity: 0;
	z-index: 500;
}


.hero-features-item {
	position: absolute;
	left: 640px;
	top: 30px;
	opacity: 0;
	z-index: 500;
}

.hero-warranty-item {
	position: absolute;
	left: 745px;
	top: 30px;
	opacity: 0;
	z-index: 500;
}

.freestanding h1 {
	left: 20px;
	top: 5px;
 	width: 576px;
 	height: 78px;
 	background: url( '../img/hero-text-freestandingdeck.png' ) no-repeat;
}

.house h1 {
	left: 20px;
	top: 5px;
 	width: 631px;
 	height: 78px;	
 	background: url( '../img/hero-text-houseattacheddeck.png' ) no-repeat;
}	

.home h1 {
	left: 20px;
	top: 50px;
 	width: 699px;
 	height: 91px;	
 	background: url( '../img/hero-text-homepage.png' ) no-repeat;	
}

.features h1 {
	left: 20px;
	top: 25px;
 	width: 538px;
 	height: 41px;	
 	background: url( '../img/hero-text-features.png' ) no-repeat;	
}

.contact h1 {
	left: 20px;
	top: 30px;
 	width: 280px;
 	height: 38px;	
 	background: url( '../img/hero-text-contactus.png' ) no-repeat;	
}

/*
 * Pge Specific
 */
.warranty {
	position: relative;
	display: block;
	width: 450px;
	height: 103px;
	background: url('../img/graphic-viewwarranty.png') no-repeat;
}

	.warranty p {
		position: absolute;
		left: 140px;
		top: 10px;
		width: 300px;	
		font-size: 15px;
		font-weight: bold;
		color: #716663;
		text-transform: capitalize;
	}
	
	.warranty a {
		position: absolute;
		left: 210px;
		top: 58px;
		width: 300px;	
		font-size: 11px;
		font-weight: bold;
		color: #ffffff;
	}
	
	
.features section ul {
	width: 450px;
}

.house section ol, .house section p {
	width: 625px;
}

.contact section p {
	padding: 30px 0 30px 40px;
	font-size: 18px;
	color: #333333;
	font-weight: bold;
	clear: both;
	background-color: #ebebdc;
	border: 2px solid #d1d0bd;
	width: 400px;
}

	.contact section a {
		color: #985542;
	}
	
	
/*
 * Tables
 */	

table {
	width: 940px;
	margin-bottom: 60px;
	border-spacing: 10px;
}

tr {
	width: 100%;
}

th {
	position: relative;
	height: 40px;
	margin-bottom: 10px;
	background-color: #716663;
	color: #ffffff;
	font-size: 18px;
	font-weight: normal;
	line-height: 40px;
}

td {
	display:block;
	float: left;
	color: #716663;
	font-size: 14px;
	background-color: #ffffff;
	padding: 10px 5px 10px 5px;
	margin: 8px 8px 0 0;
	text-align: center;
}

	td:last-child {
		margin-right: 0px;
	}

.column-selection-table {
	
}

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

.full li {
	width: 720px;
}

.subtext {
	font-size: 13px;	

}

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