﻿/*-------------------------------------------------------------*\
Index - Copy these headings & search to navigate the file
	• GLOBAL - Screen dimensions, Font stack
	• HEADER - Progress bar, Logo
	• MAIN - Question container, Question label and input cards
	• INPUTS - Single, Multiple, Other, Text, Numeric
		• ENHANCED_INPUTS - mrMultiple and mrSingle
	• ERRORS - Error messages
	• NAVIGATION - Nav buttons
	• FOOTER - Footer text/links
	• SMALL_SCREENS_LVL1 < 640px
	• SMALL_SCREENS_LVL2 < 479px
	• SMALL_SCREENS_LVL3 < 360px
	• ACCESSIBLE - Screen reader-only text
\*-------------------------------------------------------------*/

/*-------------------------------------------*\
	GLOBAL - Screen dimensions, Font stack
\*-------------------------------------------*/

*, *:before, *:after {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

body {
	font-family: Roboto, Helvetica, Arial, sans-serif;
	-webkit-text-size-adjust: 100%;
	font-size:1em;
	margin: 0px;
}

#survey-page-container {
	display: flex;
	flex-flow: column;
	min-height: 100vh;
}

/*-------------------------------------------*\
	HEADER - Progress bar, Logo
\*-------------------------------------------*/
#header-container{
	flex: 0 1 auto;
	border-bottom: .06rem solid #8e8e8e;
}

#progress-bar {
	height: 24px;
}

#progress-bar table {
	border-collapse: collapse;
}

#progress-bar table tbody tr td {
	display: block;
	padding: 0px;
}

#progress-bar table tbody tr td:first-child {
	height: 4px;
}

.mrProgressText {
	font-size: .9em;
	text-align: right;
}

#progress-bar--background {
	background-color: rgba(0,0,0,.075);
	height: 4px;
	position: absolute;
	width: 100%;
}

#logo-container {
	padding-left: 120px;
	padding-bottom: 5px;
}

#logo-container .mrBannerText {
	font-size: 0px;
}

/*--------------------------------------------------------------*\
	MAIN - Question container, Question label and input cards
\*--------------------------------------------------------------*/
main {
	flex: 1 1 auto;
	background-color: #f0f0f0;
}

.question-panel {
	margin: 1.5em auto .5em auto;
	max-width: 640px;
	border: 1px solid #000;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
	background-color: #fff;
	color: #000;
}

/*.question-panel:nth-child(2) {
	margin-top: 2em;
}*/

/***** In Progress ******/
	.question-panel--half {
		/*display:flex;*/
		width: 49.9%;
		padding: .1%;
	}
/***** In Progress ******/

fieldset {
	border: 0px;
	padding: 0px;
	margin: 0px;
}

legend, .legend-like {
	display: inline-block;
	padding: 1em;
	line-height: 1.2;
	font-size: 1.25rem;
}

#accessible legend, #accessible .legend-like {
	line-height: 1.5;
}
legend em.oe-instruct, .legend-like em.oe-instruct {
	font-size: 16px;
}

.mrShowText {
	display: none;
}
.panel-divider {
	border: 0px;
	height: 1px;
	margin: 0px 40px;
	background-color: #ccc;
}

.controls-card {
	padding: .7em 1em;
	font-size: 1.05rem;
	color: #757575;
}

#testbanner {
	display: none;
	text-align: center;
	height: 0px;
}

.qlab-test {
	display: inline;
}
/*-------------------------------------------*\
	ERRORS - Error messages
\*-------------------------------------------*/
.mrErrorText {
	color: #b20000 !important;
	font-weight: normal !important;
	border-color: unset !important;
	display: block;
	font-size: 1.05rem;
}

legend .mrErrorText {
	margin-bottom: -15px;
}

#accessible .controls-card .mrErrorText {
	padding-left: 13px;
}

.rank-inputs .mrErrorText {
	padding-left: 0px !important;
}

.controls-card > .mrErrorText {
	padding-bottom: 5px;
}

.mrQuestionTable .mrErrorText {
	display: inline;
	padding-bottom: 0px;
	padding-left: 0px;
}

.exclamation {
	position: relative;
	display: inline-block;
	width: 24px;
	height: 18px;
	font-size: .9rem;
	margin-bottom: -1px;
}

.exclamation-mark {
	position: relative;
	border-left: 12px solid transparent;
	border-right: 12px solid transparent;
	border-bottom: 18px solid #b20000;
}

.exclamation-mark::after {
	content: "!";
	position: absolute;
	top: .175rem;
	color: white;
	left: -.14rem;
	font-weight: 700;
}

/*----------------------------------------------------*\
	INPUTS - Single, Multiple, Other, Text, Numeric
\*----------------------------------------------------*/
.controls-card .mrQuestionTable {
	margin-left: 0px !important;
}

.categorical-inputs span[id^="Cell"] {
	display: flex;
	margin-bottom: .5em;
}

#accessible .categorical-inputs .mrSingle, #accessible .categorical-inputs .mrMultiple {
	margin-top: 3px;
	align-self: flex-start;
	padding: 7px;
}

textarea {
	width: 100%;
	font-family: inherit;
	font-size: 1em;
	font-weight: 400;
	overflow: auto;
	resize: none;
	margin-left: 0px !important;
	margin-bottom: .25rem;
	border-radius: 4px;
	border: 1px solid rgba(211,211,211,.8);
}

div[id*="char-counter"] {
	display: flex;
	justify-content: flex-end;
}

input[type=text] {
	font-family: inherit;
	border-radius: 4px;
	border: 1px solid rgba(0,0,0,.4);
	-webkit-box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.2);
	-moz-box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.2);
	box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.2);
}

.otherTxtBox {
	margin-left: .4em;
}

.num-input .mrEdit {
	display: flex;
	resize: none;
	margin-bottom: 1rem;
}

.rank-inputs .mrQuestionTable {
	width: 100%;
}

.rank-inputs th {
	text-align: left;
	padding-right: 1.2em;
	font-weight: inherit;
	padding-bottom: 10px;
}

.rank-inputs td {
	text-align: left !important;
	width: 65% !important;
	padding-bottom: 10px;
}

.selected {
	color:#000;
}

/*-----------------------------------------------*\
	ENHANCED_INPUTS - mrMultiple and mrSingle
\*-----------------------------------------------*/
#enhanced .mrMultiple,
#enhanced .mrSingle {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

#enhanced .mrMultiple:focus + label:before,
#enhanced .mrSingle:focus + label:before {
	border-color: rgba(0,0,0,.54);
	background-color: #f2f2f2;
}

#enhanced .mrMultiple:active + label:before,
#enhanced .mrSingle:active + label:before {
	transition-duration: 0s;
}

#enhanced .mrMultiple + label,
#enhanced .mrSingle + label {
	position: relative;
	padding-left: 1.25em;
	vertical-align: middle;
	user-select: none;
	cursor: pointer;
}

#enhanced .mrMultiple + label:before,
#enhanced .mrSingle + label:before {
	box-sizing: content-box;
	content: '';
	color: rgba(0,0,0,.54);
	position: absolute;
	left: 0;
	top: 0;
	width: 11px;
	height: 11px;
	margin-top: 2px;
	border: 2px solid rgba(0,0,0,.54);
	text-align: center;
	transition: all 0.4s ease;
}

#enhanced .mrMultiple + label:before {
	border-radius: 2px;
}

#enhanced .mrSingle + label:before {
	/*top: 50%;*/
}

#enhanced .mrMultiple:checked + label:before,
#enhanced .mrSingle:checked + label:before{
	border: 2px solid rgb(158,158,158);
}

#enhanced .mrSingle:checked + label:after {
	background: rgb(158,158,158);
	transform: scale(1);
	position: absolute;
}

#enhanced .mrMultiple + label:after,
#enhanced .mrSingle + label:after {
	box-sizing: content-box;
	content: '';
	background-color: rgba(0,0,0,.54);
	position: absolute;
	top: 0;
	left: 0;
	width: 7px;
	height: 7px;
	margin-top: 6px;
	margin-left: 4px;
	transform: scale(0);
	transform-origin: 50%;
	transition: transform 200ms ease-out;
}

#enhanced .mrSingle:disabled:checked + label:before,
#enhanced .mrSingle:disabled + label:before,
#enhanced .mrMultiple:disabled + label:before {
	border-color: #cccccc;
}

#enhanced .mrSingle:disabled:checked + label:after {
	background-color: #cccccc;
	position: absolute;
}

#enhanced .mrMultiple:disabled:checked + label:before {
	background: #cccccc;
}

#enhanced .mrMultiple + label:after {
	background-color: transparent;
	width: 6px;
	height: 3px;
	border-style: solid;
	border-color: #ffffff;
	border-width: 0 0 2px 2px;
	border-image: none;
	transform: rotate(-45deg) scale(0);
	position: absolute;
}

#enhanced .mrMultiple:checked + label:after {
	content: '';
	transform: rotate(-45deg) scale(1);
	transition: transform 200ms ease-out;
	position: absolute;
}

#enhanced .mrSingle:checked + label:before {
	/*animation: borderscale 300ms ease-in;*/
	background-color: white;
}

#enhanced .mrSingle + label:before,
#enhanced .mrSingle + label:after {
	border-radius: 50%;
	position: absolute;
}

#enhanced .mrMultiple:checked + label:before {
	/*animation: borderscale 200ms ease-in;*/
	background: rgb(158,158,158);
}

#enhanced .mrMultiple:checked + label:after {
	transform: rotate(-45deg) scale(1);
	position: absolute;
}

#enhanced .mrSingle:active + label:before, #enhanced .mrSingle:focus + label:before {
	animation: borderscale 300ms ease-in;
}

#enhanced .mrMultiple:active + label:before, #enhanced .mrMultiple:focus + label:before {
	animation: borderscale 200ms ease-in;
}

@keyframes
borderscale {
	50% {
		box-shadow: 0 0 0 2px rgb(158,158,158);
	}
}

/*-------------------------------------------*\
	NAVIGATION - Nav buttons
\*-------------------------------------------*/
#navigation-container > .mrBannerText {
	width:100%;
}

#navigation-container {
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
	padding: 1em 0em 4em 0em;
	text-align: right;
}

.mrPrev, .mrNext {
	cursor: pointer;
	user-select: none;
	-webkit-appearance: none;
}

#enhanced .mrPrev {
	margin-right: .7em;
}

#accessible .mrPrev {
	margin-left: .7em;
}

.mrNext, .mrPrev  {
	border: 1px solid transparent;
	border-radius: .125rem;
	font-size: 1.2rem;
	text-decoration: none;
	width: 120px !important;
	height: 40px;
	text-shadow: 0px -0.5px 1px rgba(19,91,173,0.25);
	padding: .5rem 1rem;
	font-weight: 300;
	line-height: 1.25;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
}

/* .mrPrev {
	width: auto !important;
	background: none;
	color: inherit;
	border: none;
	padding: 0px;
	font: inherit;
	font-size: 1.1rem;
	text-decoration: underline;
	vertical-align: bottom;
}*/

/*-------------------------------------------*\
	FOOTER - Footer text/links
\*-------------------------------------------*/
#footer-container {
	flex: 0 0 80px;
	display: flex;
	flex-direction: row;
	padding: 0px 20px;
	align-items: center;
	justify-content: space-between;
	background-color: #31383E;
}

#footer-container .mrBannerText {
	color: #F0F0F0;
}

#footer-right {
	margin-left: 5px;
	text-align: right;
}

#footer-left {
	margin-right: 5px;
	text-align: left;
}

#footer-container a {
	color: #A9A9A9;
}

.privacy-link {
	display: block;
}

.privacy-link {
	display: inline;
}

/*-------------------------------------------*\
	SMALL_SCREENS_LVL1 < 640px
\*-------------------------------------------*/
@media only screen and (max-width: 640px) {
	#logo-container {
		padding-left: 0px;
		text-align: center;
	}
	
	.question-panel {
		border-left: none;
		border-right: none;
		border-radius: 0px;
		margin-top: .5em;
	}
	
	.question-panel:first-of-type {
		margin-top: 1em;
	}
	
	legend, .legend-like {
		padding: .5em;
	}
	
	.label-card, .controls-card {
		border-radius: 0px !important;
	}
	
	#accessible .mrSingle, #accessible .mrMultiple {
		margin-left: .3em !important;
	}
	
	#enhanced #navigation-container > .mrBannerText {
		display: inline-flex;
		padding: 0em 1em;
		justify-content: space-between;
	}
	
	#accessible #navigation-container {
		margin-right: 1em;
	}
	
	#footer-container {
		padding: 10px 5px;
	}
	
	#enhanced #footer-right {
		text-align: center;
		margin-left: auto;
		margin-right: auto;
	}
	
	#footer-left {
	
	}
}

/*-------------------------------------------*\
	SMALL_SCREENS_LVL2 < 479px
\*-------------------------------------------*/
@media only screen and (max-width: 479px) {
	.char-counter-container {
		padding: 0px 10px 10px 0px;
	}
}

/*-------------------------------------------*\
	SMALL_SCREENS_LVL3 < 360px
\*-------------------------------------------*/
@media only screen and (max-width: 360px) {
	
}

/*-------------------------------------------*\
	ACCESSIBLE - Screen reader-only text
\*-------------------------------------------*/
#accessible .sr-only {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden !important;
}

#enhanced .sr-only {
	display: none;
}
