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

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












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

.glass {
	position: relative;
}

.glass > * {
	z-index: 200;
    position: relative;
}

.glass:after{
	content: " "; 
	display: block;
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	border: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 0;
	-webkit-background-origin: border-box;
	-moz-background-origin: border;
	background-origin: border-box;
	background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(255, 255, 255, .15)), to(rgba(0, 0, 0, .25))), -webkit-gradient(linear, left top, right bottom, color-stop(0, rgba(255, 255, 255, 0)), color-stop(0.5, rgba(255, 255, 255, .15)), color-stop(0.501, rgba(255, 255, 255, 0)), color-stop(1, rgba(255, 255, 255, 0)));
	background: -moz-linear-gradient(top, rgba(255, 255, 255, .15), rgba(0, 0, 0, .25)), -moz-linear-gradient(left top, rgba(255, 255, 255, 0), rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0));
	background: linear-gradient(top, rgba(255, 255, 255, .15), rgba(0, 0, 0, .25)), linear-gradient(left top, rgba(255, 255, 255, 0), rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0));
	z-index: 0;
}

html, body {
	width: 100%;
	margin: 0;
	padding: 0;
	height: 100%;
	font-family: 'Roboto', sans-serif;
	overflow: auto;
}

body {
	background-image: url(../img/background.jpg);
	background-position: center;
	background-size: cover;
	background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6, p {
	margin: 0;
	line-height: 1em;
	font-size: 1em;
}

header {
	margin: 0 0 1em 0;
}

header h1 {
	font-weight: 700;
	font-size: 40px;
	letter-spacing: 1px;
	text-transform: uppercase;
}
header .subtext {
	font-weight: 500;
	font-size: 18px;
	letter-spacing: 2px;
	color: #666;
}
p {
	font-weight: 400;
	font-size: 16px;
	letter-spacing: 1px;
	line-height: 1.5em;
}
p + p {
	margin-top: 1.5em;
}

ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
	overflow: auto;
}

.main {
	width: 1024px;
	margin: 0 auto;
	padding: 50px 0;
	position: relative;
}

.panel {
	position: relative;
	overflow: hidden;
	margin: 0 0 1em 0;
	padding: 1.5%;
	width: 97%;
	border-radius: 5px;
	border: 1px solid rgba(255, 255, 255, .25);

	color: #f1f1f1;
	background-color: rgba(0, 0, 0, .25);

	padding: 0 1.5%;
	opacity: 0;
	height: 0px;
	overflow: hidden;
	position: absolute;

	box-shadow: 0px 0px 10px rgba(0,0,0,.5);

	transition: padding 1s, margin 1s, opacity 1s, height 1s;
}

.panel-1 #panel-1,
.panel-2 #panel-2,
.panel-3 #panel-3,
.panel-4 #panel-4,
.panel-5 #panel-5 {
	padding: 1.5%;
	opacity: 1;
	height: auto;
	position: relative;
}

.panel .left,
.panel .right {
	float: left;
}
.panel .left {
	width: 35.5%;
	padding: 0 1.5% 0 0;
}
.panel .right {
	width: 61.5%;
	padding: 0 0 0 1.5%;
}

#inspiration-images li {
	float: left;
	margin: 1.5%;
	width: 125px;
	height: 100px;
	border: 1px solid rgba(255, 255, 255, .25);
	box-shadow: inset 0px 0px 5px rgba(0,0,0,.5);
	overflow: hidden;
	cursor: pointer;
}

#inspiration-images img {
	max-height: 100px;
}

#panel-1 {
	
}

#panel-2 {
	font-family: 'Roboto', sans-serif;
	font-weight: 700;
	font-size: 40px;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-align: center;
}

#panel-3 {
	
}

#panel-4 {
	
}

.swatch {
	width: 80px;
	height: 100px;
	box-shadow: inset 0px 0px 5px rgba(0,0,0,.5);
	float: left;
	margin: 0 10px 0 0;
}

.color {
	border-bottom: 1px solid rgba(255, 255, 255, .25);
	overflow: auto;
	padding: 5px 0;
}

#palette li:last-child .color {
	border-bottom: none;
}

.color header {
	float: left;
	margin: 0 10px;

	background-color: rgba(255,255,255, .75);
	padding: 5px;
	color: #333;
	width: 100px;

	border-radius: 2px;
	text-align: center;
}
.color header .swatch {
	margin: 5px 10px;
}

.color .description {
	float: left;
	width: auto;
}

.color h1 {
	font-size: 1.2em;
	line-height: 1em;
	margin: 0;
}

.color h2 {
	font-size: 1em;
	line-height: 1em;
	text-align: center;
	margin: 0;
}
.color .smallText {
	font-size: .8em;
	margin: 0;
}

.color.pantones {
	padding: 0;
	list-style-type: none;
	overflow: auto;
}
.color .pantones li {
	float: left;
}
.color .pantones li div {
	text-align: center;
	font-weight: bold;
}
.color .pantones li .swatch {
	margin: 5px auto;
	float: none;
	width: 130px;
	height: 60px;
}

.pantone {
	margin: 5px;
	background-color: rgba(255,255,255, .75);
	padding: 5px;
	color: #333;
	width: 150px;

	border-radius: 2px;
}
.pantone p {
	text-align: center;
}
#back {
	position: absolute;
	top: 5px;
	right: 5px;
	opacity: 0;
	outline: none;
	border: none;
	background-color: transparent;
	text-shadow: 0 0 5px rgba(255,255,255, .75);
	font-weight: bold;
	padding: 0 5px;
	cursor: pointer;
	z-index: 6000;
	border-radius: 2px;
	color: #333;

	transition: opacity 2s;
}
.panel-4 #panel-4 #back {
	opacity: 1;
}

.small {
	display: none;
}
.large {
	display: block;
}
span.large {
	display: inline;
}

#picture {
	margin: 30px 0 0 15px;
}

label.filebutton {
    overflow:hidden;
    position:relative;
}

label span input {
    z-index: 999;
    line-height: 0;
    font-size: 50px;
    position: absolute;
    top: -2px;
    left: -700px;
    opacity: 0;
    filter: alpha(opacity = 0);
    -ms-filter: "alpha(opacity=0)";
    cursor: pointer;
    _cursor: hand;
    margin: 0;
    padding:0;
}

.button {
	-moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
	-webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
	box-shadow:inset 0px 1px 0px 0px #ffffff;
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) );
	background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% );
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf');
	background-color:#ededed;
	-moz-border-radius:6px;
	-webkit-border-radius:6px;
	border-radius:6px;
	border:1px solid #dcdcdc;
	display:inline-block;
	color:#777777;
	font-family:arial;
	font-size:18px;
	font-weight:bold;
	padding:12px 36px;
	text-decoration:none;
	text-shadow:1px 1px 0px #ffffff;
}
.button:hover {
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) );
	background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% );
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed');
	background-color:#dfdfdf;
}
.button:active {
	position:relative;
	top:1px;
}

@media only screen and (min-device-width : 320px) and (max-device-width : 480px) and (orientation : landscape) {
/* @media only screen and (min-width : 320px) and (max-width : 480px) { */
	.main {
		width: 300px;
		padding: 10px 0 0;
	}

	.panel {
		max-height: 145px;
		overflow: auto;
		margin: 0;
	}

	.panel .left {
		width: 42.5%;
	}

	.panel .right {
		width: 54.5%;
	}

	#inspiration-images li {
		width: 70px;
		height: 70px;
	}

	header h1 {
		font-size: 32px;
	}

	.small {
		display: block;
	}
	span.small {
		display: inline;
	}
	
	.large,
	span.large {
		display: none;
	}

	#palette {
		margin-top: 1em;
	}

	.color header {
		margin: 0;
	}
	.color header .swatch {
		height: 125px;
	}

	.color .description {
		width: 299px;
		position: relative;
		margin: 0 0 0 10px;
	}

	.pantone {
		overflow: hidden;
		margin: 0 5px 5px 0;
		width: 125px;
	}
	.color .pantones li .swatch {
		float: left;
		margin: 0;
		width: 50px;
		height: 50px;
	}

	.pantone h2 {
		float: right;
		width: 70px;
		text-align: left;
		line-height: 25px;
	}

	.pantones li:last-child {
		display: none;
	}
}

@media only screen and (min-device-width : 320px) and (max-device-width : 480px) and (orientation : portrait) {
	.main {
		width: 300px;
		padding: 10px 0;
	}

	.panel {
		max-height: 390px;
		overflow: auto;
	}

	.panel .left,
	.panel .right {
		float: left;
		width: 100%;
		margin-bottom: 10px;
	}

	.small {
		display: block;
	}
	span.small {
		display: inline;
	}
	
	.large,
	span.large {
		display: none;
	}

	header h1 {
		font-size: 30px;
	}

	#inspiration-images {
		margin: 0 0 0 15px;
	}

	#inspiration-images li {
		width: 75px;
		height: 75px;
	}

	#picture {
		margin: 20px 0 15px 48px;
	}
}