/*!
Styles for the UTIE FA Pilot Questionnaire
*/

/*--------------------------------------------------------------
>>> CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Utilities
	- Accessibility
	- Alignments
# Spacing, Fonts, and Titles
	- Body Margins
	- Content Wrapper
	- Text Spacing Reset
	- Typography
	- Page Title and Progress Bar
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 1.75em;
	margin: 0.67em 0;
}

/* Grouping content */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
.hidden {
	display: none;
}

:root {
	--breakpoint-sm: 650px !important;
}

/* Box sizing */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments */

.alignleft {
	/*rtl:ignore*/
	float: left;
}

.alignright {
	/*rtl:ignore*/
	float: right;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* Hide hidden stuff */
.hidden {
	display: none;
}

/*--------------------------------------------------------------
# Spacing, Fonts, and Titles
--------------------------------------------------------------*/

/* Dafuq django*/
label {
	margin: 0;
}

/* Body Margins */
body {
	margin: 1em;
}

/* Content Wrapper */

@media (max-width: 640px) {

	#content-wrapper {
		width: 100%;
		min-width: 500px;
		margin: 1em auto 0;
	}
}

@media (max-width: 1007px) {

	#content-wrapper {
		width: 80%;
		min-width: 500px;
		max-width: 800px;
		margin: 1.5em auto 0;
	}
}

#content-wrapper {
		width: 80%;
		min-width: 800px;
		max-width: 1250px;
		margin: 2em auto 0;
}

/* Text Spacing Reset */

h1, h2, h3, h4, p {
	margin: 0;
}


/* Typography */

body,
button,
input,
select,
optgroup,
textarea {
	color: #000000;
	font-family: "Noto Sans JP", sans-serif;
	font-weight: 400;
}

b {
	font-weight: 700;
}

h1 {
	font-weight: 900;
	margin: 0.5em 0 1em;
	line-height: 1.5em;
}

h2, p, ul {
	line-height: 2em;
	margin: 0 0 1.5em;
}

h2 {
	font-size: 1em;
	margin-top: -1em;
	color: #56479f;
}

h3 {
	font-size: 1.2em;
	color: #56479f;
	font-weight: 700;
	margin: 1.5em 0 1em;
}

p.nobmargin {
	margin: 0;
}

.error {
	color: #ff0000;
	font-style: italic;
}

/* Page Header and Progress Bar */

#page-header {
	color: #aaa3cf;
	font-weight: 700;
	text-align: center;
}

.progress-labels {
	font-weight: 900;
	font-size: 0.75em;
	color: #56479f;
	text-align: center;
	border-bottom: #aaa3cf .15em solid;
	padding-top: .25em;
	padding-bottom: .25em;
	margin-bottom: .25em;

}

/* Question Sctuffs */

.e-highlight {
	background-color: #ffc6c6;
}

.q-block {
	margin-top: 2.5em;
	margin-bottom: 3em;
}


.q-text {
	font-size: 1.25em;
	margin-bottom: 1em;
}

.q-text p {
	margin-bottom: 0.5em;
}

.q-desc {
	margin: -1em 0 1.5em 0.5em;
	font-style: italic;
}

.answer {
	display: block;
	width: 75%;
	min-width: 600px;
	margin: 1em auto;
	padding: 5px 10px;
	border-radius: 15px;
	border: #aaa3cf solid 3px;
	line-height: 1em;
	font-size: 1em;
	font-weight: 700;
	cursor: pointer;
}

.answer:hover, .answer.checked {
	border-color: #56479f;
	background-color: #aaa3cf;
}

.answer input[type="radio"], .answer input[type="checkbox"] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	border-radius: 3px;
	width: 1em;
	height: 1em;
	background-color: #aaa3cf;
	border: #aaa3cf .25em solid;
	margin-right: 0.5em;
	display: inline-block;
	vertical-align: middle;
	margin-bottom: 3px;
	cursor: pointer;
}

.answer input[type="radio"] {
	border-radius: 50%;
}

.answer:hover input[type="radio"], .answer:hover input[type="checkbox"] {
	background-color: #56479f;
	border-color: #56479f;
}

.answer input[type="radio"]:focus, .answer input[type="checkbox"]:focus {
	border-color: #56479f;
	outline: none;
}

.answer input[type="radio"]:checked, .answer input[type="checkbox"]:checked {
	background-color: #56479f;
	border-color: #56479f;	
}

.answer input.other {
	display: block;
	background-color: transparent;
	width: 100%;
	margin-top: 5px;
	border: 0;
	border-top: #aaa3cf 3px dotted;
	line-height: 1em;
	padding: 0 10px 0 30px;
}

.answer:hover input.other, .answer.checked input.other {
	background-color: #aaa3cf;
	border-top: #56479f 3px dotted;
}

.answer input[type="text"]:focus, .answer input[type="email"]:focus, textarea.answer:focus {
	outline: none;
	background-color: #aaa3cf;
}

.answer.nostyle {
	border: none;
}

.answer.nostyle:hover {
	border: none;
	background: none;
}

.answer.nostyle input[type="text"],.answer.nostyle input[type="email"] {
	display: block;
	width: 100%;
	margin: 10px 25px 0;
	border: #aaa3cf 3px solid;
	border-radius: 15px;
	padding: 5px 10px;
	line-height: 1em;
}

textarea.answer {
	font-weight: 400;
	line-height: 1.5em;
}

.scale {
	margin-left: 12.5%;
	margin-right: 12.5%;
	text-align: center;
}

.scale .q-text, .scale .error {
	margin-left: -16.6%;
	margin-right: -16.6%;
	display: block;
	text-align: left;
}

.scale .answer {
	display: inline-block;
	width: 150px !important;
	min-width: 150px;
	height: 100px !important;
	margin: 0 0.5em;
	line-height: 1.5em;
}

.scale .answer input[type="radio"], .scale .answer input[type="checkbox"] {
	display: block;
}

button {
	float: right;
	margin: 2em 0 1em;
	background-color: #56479f;
	color: #ffffff;
	border: #56479f 5px solid;
	border-radius: 15px;
	padding: 0 5px;
	text-transform: uppercase;
	line-height: 1.5em;
	font-size: 1.5em;
	letter-spacing: 0.05em;
}

button:focus {
	outline: none;
	border-color: #aaa3cf;
}


/* Descriptor Dual Scale Spacing */

.block-q, .scale-labels, .desc-block {
	display: block;
	width: 1250px;
	margin: 0 auto;
	font-size: 0;
	text-align: center;
}

.scale-x, .desc-text, .scale-y, .scale-z {
	display: inline-block;
	margin: 0;
}

.block-q div {
	height: 130px;
	font-size: 1.25rem;
	vertical-align: top;
	border-top: #56479f solid 3px;
}

.block-q .scale-x, .block-q .scale-y, .scale-labels {
	border-bottom: #56479f solid 3px;
}

.scale-x, .scale-y {
	width: 246px;
	border-left: #56479f solid 3px;
	border-right: #56479f solid 3px;
}

.scale-z {
	width: 78px;
	border-right: #56479f solid 3px;
}

.xanswer, .yanswer, .zanswer {
	display: table-cell;
	width: 60px;
	height: 75px;
	padding: 10px;
	border-right: #aaa3cf dotted 3px;
	font-size: 1rem;	
	cursor: pointer;
}

.xanswer input, .yanswer input, .zanswer input {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	border-radius: 3px;
	width: 1em;
	height: 1em;
	line-height: 100px;
	background-color: #aaa3cf;
	border: #aaa3cf .25em solid;
	display: inline-block;
	vertical-align: middle;
	cursor: pointer;
}

.xanswer input[type="radio"], .yanswer input[type="radio"], .zanswer input[type="radio"] {
	border-radius: 50%;
}

.xanswer:hover, .xanswer.checked, .yanswer:hover, .yanswer.checked, .zanswer:hover, .zanswer.checked {
	background-color: #aaa3cf;
	border-bottom-color: #56479f;
}

.scale-labels .xanswer:hover, .scale-labels .yanswer:hover, .scale-labels .zanswer:hover {
	background-color: #ffffff;
}

.xanswer:hover input, .yanswer:hover input, .zanswer:hover input {
	background-color: #56479f;
	border-color: #56479f;
}

.xanswer input:focus, .yanswer input:focus, .zanswer input:focus {
	border-color: #56479f;
	outline: none;
}

.xanswer input:checked, .yanswer input:checked, .zanswer input:checked {
	background-color: #56479f;
	border-color: #56479f;	
}

.scale-z .zanswer {
	width: 75px;
}

.scale-labels div {
	height: 75px;
	vertical-align: top;
}

.scale-labels .xanswer, .scale-labels .yanswer, .scale-labels .zanswer {
	font-size: 0.8rem;
	padding: 5px;
	height: 75px;
	vertical-align: middle;
}

.desc-text {
	font-size: 1.25rem;
	width: 680px;
}

.desc-text .dspace {
	display: table-cell;
	height: 125px;
	width: 680px;
	padding: 0.5em 2em;
	text-align: center;
	vertical-align: middle;
}

.scale-labels .desc-text {
	font-size: 1rem;
	font-weight: 700;
	color: #56479f;
}

.scale-labels .desc-text .dspace {
	height: 75px;
}

.noborder {
	border-width: 0px;
}

.desc-block {
	height: 128px;
	vertical-align: top;
	border-bottom: #56479f solid 3px;
}

.desc-block .desc-text {
	height: 125px;
}

.desc-block label, .desc-block div {
	height: 125px;
	vertical-align: middle;
}

#FA-B-Chart .desc-text {
	width: 926px;
	border-left: #56479f solid 3px;
}

#FA-B-Chart .desc-text .dspace {
	width: 926px;
}

#FA-B-Chart .block-q {
	margin: 2rem auto 0;
}