/*
 * 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;
}
a {color: #00e;}
a:visited {color: #551a8b;}
a:hover {color: #06e;}

/*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;}





/*==========================================================================
  Author's custom styles
  ==========================================================================*/
  
html{
	background:url(../../_ui/general/bg.jpg) repeat-x 0 150px;	
}

body{
	overflow-x:hidden;
}

ul li a{
	text-decoration:underline;
	cursor:pointer;
}


/*------WRAPPERS------*/
#header_wrap, #static_wrap, #content_wrap, #footer_wrap{
	width:100%;
}


/*Elements top down*/
#header, #static, #content, #crumbtrail, #footer, #disclosure{
	width:640px;
	margin:0 auto;
}


/*-------------HEADER------------*/
#header_wrap{
	background:url(../../_ui/general/header_bg.jpg) repeat-x;
}
#header_wrap, #header{
	height:64px;	
}
	#logo{
		background:transparent url(../../_ui/general/logo.png) no-repeat 0 20px;
		width:289px; height:40px;
	}




/*----------STATIC Age and Q Num----------*/
	#static{
		position:relative;	
	}
		#age-display{
			width:135px; height:97px;
			position:absolute;
			z-index:250;
			top:24px; right:58px;
		}
			#age-display h2{
				margin:0;
				text-align:center;
				width:68px; height:48px;
				position:absolute;
				z-index:252;
				color:#00447c;
				font-size:3em;
				top:15px; left:32px;
			}
			#age-display div{
				position:absolute;
				z-index:251;
				top:0; left:0;
				background:transparent url(../../_ui/general/age_bg.png) no-repeat;
				width:inherit; height:inherit; 
			}
	
	
/*-----INFO BUTTON POPOVER------*/			
#popover{
	right:20px; bottom:50px;
	z-index:6;
	position:absolute;
	width:342px; height:373px;
	background:transparent url(../../_ui/general/popover.png) no-repeat;
}
	#p-content{
		top:18px; left:30px;
		z-index:501;
		position:absolute;
	}
		#p-content h3{
			margin:0;
			color:white;
			font-size:0.9em;
		}
		#p-content div{
			margin:15px 0 0 0;
			overflow-x:auto;
			width:280px;
			height:265px;
		}
		#p-content p{
			margin:0 0 10px 5px;
			font-size:0.9em;
			line-height:1.1em;
		}
		#popover a{
			text-decoration:underline;
		}
		#popover a:hover{
			text-decoration:none;
		}
		#p-close{
			top:13px; right:24px;
			width:30px; height:30px;
			background:transparent url(../../_ui/general/close-x.png) no-repeat;
			z-index:502;
			position:absolute;
			visibility:hidden;
			cursor:pointer;
		}



/*----------BODY CONTENT----------*/
#content_wrap{
	overflow-x:hidden;
	background-color:none;
	margin-bottom:48px;
}
	#content{
		-webkit-border-radius: 0 0 4px 4px;
		   -moz-border-radius: 0 0 4px 4px;
				border-radius: 0 0 4px 4px;
		background:#b1d8eb;
		border:1px solid #999;
		min-height:256px;
		border-top:none;
		position:relative;
		height:auto;
		overflow:hidden;
	}
	
	/*------Question Num Display------*/
	#q-num{
	}
		#q-num p{
			margin:60px 0 0 64px;
			color:#e8941a;
			font-size:0.8em;
		}


	/*----------QUESTIONS----------*/
	#questions{
		width:9999px;
	}
		.question{
			width:512px;
			float:left;
			padding:20px 64px 64px;
			margin-bottom: 32px;
		}
			#q-title h2{
				margin:0;
				color:#00447c;
				line-height:1em;
				font-weight:lighter;
			}
			#q-text h3{
				color:#002d56;
				font-style:italic;
				line-height:1em;
				font-size:1em;
				font-weight:600;
			}
			#q-statement p{
				color:#333;
				margin:16px 0 0 0;
				font-size:0.8em;
			}
			
			/*Text Inputs*/
			#t-inputs > div{
				height:32px;
				clear:both;
				padding:5px 0;
			}
			#t-inputs p{
				float:left;
				margin:5px 0 0 10px;
				font-size:0.8em;
				font-weight:bold;	
			}
			#t-inputs input{
				float:left;	
			}
			
			
			
			
			.selection{
				margin:6px 0 0;
				height:42px;
				background: url(../../_ui/general/button_bg.jpg) repeat-x;
				border:#667279 1px solid;
				-webkit-border-radius: 4px;
				   -moz-border-radius: 4px;
						border-radius: 4px;		
				position:relative;
			}
				.selection p{
					margin:6px 50px 0 0;
					padding:0 8px;
					line-height:1.05em;
					font-weight:bolder;
					color:#003366;
					font-size:0.76em;
					
				}
				.trigger{
					width:50px;
					height:32px;
					margin-top:2px;
					padding:3px 0;
					border-left:#667279 1px solid;
					float:right;
					cursor:pointer;
				}
					.trigger img{
						margin:6px 0 0 13px;
					}
			
			
			
		/*----------Controls Nav----------*/		
		#back, #next, #info{
			position:absolute;
			float:left;
			cursor:pointer;
			width:36px; height:35px;
			display:block;
			bottom:32px;	
		}
		#back{
			right:140px;
			z-index: 302;
			background:url(../../_ui/general/back-up.png) no-repeat;
		}
		#info{
			right:101px;
			z-index: 301;
			background:url(../../_ui/general/info-up.png) no-repeat;
		}
		#next{
			right:62px;
			z-index: 300;
			background:url(../../_ui/general/next-up.png) no-repeat;
		}
			
		
		
/*----------Crumbtrail----------*/		
#crumbtrail{
	margin-top:16px;
	margin-bottom:0;
	height:30px;
	background: transparent url(../../_ui/general/jumper_bg.gif) repeat-x;
	display:block;
	border:#71858b 1px solid;
	-webkit-border-radius: 6px;
	   -moz-border-radius: 6px;
		    border-radius: 6px;
	
}
	#crumbtrail > div{
		float:left;
	}
	
	#crumbtrail > div:first-child{
		width:80px;	
	}
	#crumbtrail p{
		float:left;
		margin:0;
		padding:6px 0;
		color:#999;
		font-size:0.8em;
		width:inherit;
		text-align:center;
	}
	
	#c-item p{
		color:#fff;
		border-left:1px solid #666;	
		cursor:pointer;
		-webkit-touch-callout: none;
		-webkit-user-select: none;
		-khtml-user-select: none;
		-moz-user-select: none;
		-ms-user-select: none;
		user-select: none;
	}
	#c-item p.selected{
		color:#FE660D;
	}
	.selected{
		font-weight:bold;
	}


/*------------FOOTER----------*/
#footer_wrap{ 
	background:#014984 url(../../_ui/general/footer_bg.jpg) repeat-x;
	clear: both;
	position: fixed;
	z-index: 998;
	bottom:0;
}


#footer_wrap, #footer{
	height:48px;	
}
	#nm-logo{
		float:right;
		/*padding:13px 0 0 0;*/
		cursor:pointer;
		background: transparent url(../../_ui/general/nm_logo.png) no-repeat 0 12px;
		width:196px; height:36px;
	}
	#disclosure p{
		font-size:0.6em;
		margin:10px 0;
	}



/*------------MISC----------*/
#loader{
	padding:20px;	
}
.mrClear{
	clear:both;	
}
.disabled{
	opacity:0.40;
	cursor: default;
	background: transparent;
	zoom: 1;
	filter:alpha(opacity=40);
	-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
}
	.disabled img{
		filter:alpha(opacity=40);
		-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
	}

.noShow{
	display:list-item;
}











/* ==========================================================================
   Helper classes
   ========================================================================== */

/* Prevent callout */

.nocallout {
    -webkit-touch-callout: none;
}

.pressed {
    background-color: rgba(0, 0, 0, 0.7);
}

/* A hack for HTML5 contenteditable attribute on mobile */
textarea[contenteditable] {
    -webkit-appearance: none;
}

/* A workaround for S60 3.x and 5.0 devices which do not animated gif images if
   they have been set as display: none */
.gifhidden {
    position: absolute;
    left: -100%;
}

/*Image replacement*/
.ir {
    background-color: transparent;
    background-repeat: no-repeat;
    border: 0;
    direction: ltr;
    display: block;
    overflow: hidden;
    text-align: left;
    text-indent: -999em;
}
.ir br {
    display: none;
}

/*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 helper
 * Used to contain floats: h5bp.com/q
 */

.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}