/*! HTML5 Boilerplate v5.0.0 | MIT License | http://h5bp.com/ */

/*
 * 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 {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
	overflow-y: scroll;
	overflow: -moz-scrollbars-vertical;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * 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 audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

* {
	box-sizing: border-box;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

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

/*
 * Hide visually and from screen readers:
 * http://juicystudio.com/article/screen-readers-display-none.php
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.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:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, 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;
}

/* ==========================================================================
   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 the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* /////// VIDEO /////// */

.videoWrapper {
	position: relative;
	padding-top: 25px;
	height: 0;
	padding-bottom: 47%; /* 56.25% = 16:9 */
}
.videoWrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.quiz-vid iframe {
	width: 100%;
	height: 100%;
}
/* /////////////////// */

a, a:hover {text-decoration: none}

body {
	background: url(img/bg-med.png) #2A5849 top left repeat fixed;
	width: 100%;
	height: 100%;
}
#main {
    margin: 0 auto;
    width: 80%;
    text-align: center;
    background: #fff;
    border: 15px solid #70bf54;
/*	border-top: 0;*/
	min-height: 100vh;
}
h1, h2 {
	font-weight: 300;
	color: #2A5849;
}
h1 {
	font-family: 'Amatic SC', cursive;
	font-size: 8.5rem;
	line-height: 1.2;
	margin: 1rem 5rem 0;
}
h2 {
	font-family: 'Raleway', sans-serif;
	font-size: 1.5rem;
    line-height: 1.5;
	margin: 0;
}
#initial, #sojuform, #result {
	margin: 0 auto;
	overflow: none;
	width: 100%
}
#sojuform h1 {
	font-size: 8rem;
	line-height: 1;
	margin: 0 2rem;
}
#main form {
	margin-top: 1rem;
	display: inline-block;
	width: 60%; /* was 57% */
	font-family: 'Raleway', sans-serif;
	font-weight: 400;
}
#result {
    display: inline-block;
/*    width: auto;*/
	padding: 0 3rem;
/*	border-top: 15px solid #70bf54;*/
}
#result h1 {
	font-weight: 700;
	margin: 0 0 1rem;
}
.question {
	margin-bottom: 2rem;
}
legend.quiz {
	margin: 0 auto .5rem;
	text-align: center;
	padding: .5rem 1rem;
	background-color: #2A5849; /* #005838 */
	color: #fff;
	font-size: 1.5rem;
	border-radius: 5px;
}
.true, .false {
	display: inline-block;
	vertical-align: top;
	overflow: visible;
	width: 49%;
}
.true {
	margin-right: 1%;
}

/* /////// Radio Button Answers /////// */

form .radio {
    background-color: #70bf54;
    display: block;
    color: #fff;
    font-size: 1.65rem;
    padding: .5em;
	cursor: pointer;
/*	border: 6px solid #70bf54;*/
	border-radius: 5px;
}
form input[type=radio], form .radio {
	width: 100%;
}
form .radio:hover, form input[type=radio]:checked + .radio {
/*	border: 6px solid #70bf54;*/
	background-color: #2A5849; /* #005838 */
	color: #fff;
}
form input[type=radio] {
    display:none
}
form input[type=radio], 
form input[type=radio]:checked + .radio {
    background-color: #2A5849; /* #005838 */
	color: #fff;
}

/* ///////////////////////////// */

button, .button {
	font-family: 'Amatic SC', cursive;
	color: #fff;
	font-size: 2.5rem;
	cursor: pointer;
	margin: 0 .35rem 0 0;
    padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 5px;
}
button[type=button] {
	margin-right: 0;
}
button[type=submit], button[type=button], .button {
	background-color: #2A5849; /* #005838 */
}
/*
button[type=submit] {
	margin-left: .35rem;
}
*/

button[type=submit]:hover, .button:hover {
	background: #004028;
}
button[type=reset] {
	background: #7CCCED;
}
button[type=reset]:hover {
	background: #6eb5d4;
}
small {
	font-size: 2rem;
	vertical-align: super;
}
.footnote {
	width: 90%;
	margin: 2rem auto 0;
	font-size: .75rem;
	font-style: italic;
	text-align: center;
	color: #888;
}
footer, header { /* --- "header" on Slate Embedded Form --- */
	text-align: center;
	padding: 2rem;
	overflow: visible;
}
header > img { /* --- "header" on Slate Embedded Form --- */
	width: 200px;
	height: auto;
	padding: 0;
}
footer > img {
	width: 275px;
	height: auto;
	padding: 0 2rem;
}
#result footer img {
	border-top: 1px solid #70bf54;
	padding: 1.5rem 2rem 0;
	width: 275px;
	height: auto;
}
#result header > img {
	width: 100%;
	height: auto;
}
#result header.quiz2 > img {
	width: 90%;
	height: auto;
}
label.form_label, fieldset > div.form_label > legend { /* --- Slate Embedded Form --- */
	font-size: 1.25rem;
}
div.action { /* --- Slate Embedded Form --- */
	margin: 1.5rem;	
}


/* ************** Media Queries ************** */

@media screen and (max-width: 1023px) {
	body::after {
		background: none;
	}
	#main {
		width: 100%;
	}
	h1 {
		font-size: 12rem;
		margin: 1rem;
		line-height: 13rem;
		font-weight: 700;
	}
	#sojuform h1 {
		font-size: 8.5rem;
		margin: 0 .5rem 1rem .5rem;
	}
	#result h1 {
		font-size: 10rem;
	}
	h2 {
		font-size: 3rem;
		font-weight: 400;
	}
	#main form {
		width: 100%;
		font-size: 3rem;
		margin-top: 2rem;
	}
	.question {
		margin-bottom: 4rem;
	}
	legend.quiz {
		margin-bottom: 1rem;
		width: 90%;
		font-size: 2.5rem;
		font-weight: 600;
		padding: 1.5rem 1rem;
		border-radius: 10px;
	}
	.true, .false {
		width: 44%;
	}
	.true {
		margin-right: .25rem;
	}
	form .radio {
		font-size: 3rem;
		border: none;
		font-weight: 600;
		border-radius: 10px;
	}
	form .radio:hover, form input[type=radio]:checked + .radio {
		border: none;
	}
	button, .button {
		font-size: 5rem;
		padding: 1.5rem 4.5rem;
		font-weight: 700;
		border-radius: 10px;
	}
	small {
		font-size: 5rem;
	}
	.footnote {
		font-size: 2rem;
		margin: 4rem auto;
	}
	footer > img {
		width: 50%;
		padding: 4rem 0;
	}
	#result footer > img {
		padding: 4rem 0;
		width: 50%;
		margin-top: 3rem;
	}
	header > img {
		width: 35%;
		padding-top: .5rem;
	}
	label.form_label, fieldset > div.form_label > legend { /* --- Slate Embedded Form --- */
		font-size: 2.5rem;
	}
	div.form_question { /* Slate Override */
		padding: .5rem 1rem !important;
	}
	div.form_page input[type=text] { /* Slate Override */
		border: 1px solid #777 !important;
	}
	div.form_label { /* Slate Override */
		text-align: center !important;
	}
	div.form_label > legend { /* Slate Override */
		margin: 0 auto !important;
	}
	div.form_responses select:nth-child(1), div.form_responses select:nth-child(2) { /* Slate Override */
		margin-right: 20px !important;
	} 
}