/* Encorp Pacific (Canada) Return-It 101 School Page Layout CSS */
/* Last Updated: 2022.07.29 ET */

* { box-sizing: border-box; }

html,
body {
	height: 100%;
}

video {
	display: block;
	margin: 1em auto;
}

body > header {
	position: relative;
	background-color: white;
	min-height: 7.2rem;
}

body > footer {
	position: sticky;
	top: 100vh;
	background: rgb(19,18,15) url('/images/encp_ris101_bkgd_chalkboard.jpg') no-repeat top center;
	color: white;
	padding: 2rem;
}

body > footer a,
body > footer a:visited {
	color: white;
}

body > footer a:hover {
	color: rgb(249,158,28);
}

@media (max-width: 480px) {

	body > footer {
		padding-left: 1.6rem;
		padding-right: 1.6rem;
	}

}

footer > nav {
	max-width: 1260px;
	margin: 0 auto;
}

.hidden {
	opacity: 0.4;
}

.hidden::before,
.expressonly::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	background: white;
	font-size: 0.8rem;
	padding: 0.2em 0.5em;
	border: 1px dashed red;
	z-index: 1999;
}

.hidden::before {
	content: 'Hidden for users';
}
.expressonly::before {
	content: 'Near Express only';
}

div.dialog {
	display: none;
	max-width: 880px;
	background-color: white;
	text-align: center;
	margin: 0 auto;
	border-radius: 4px;
}

div.dialog iframe {
	display: block;
	width: 880px;
	height: 495px;
	border: none;
}

a.reveallink:after {
	content: '\25BC';
	display: inline-block;
	margin-left: 0.1em;
}

a.editlink,
a.editlink:visited {
	display: inline-block;
	background-color: rgba(255,255,255,0.5);
	font-size: 10px;
	line-height: 1;
	text-transform: uppercase;
	padding: 1px 4px;
}

a.editlink:hover {
	color: rgb(249,158,28);
}

a.editlink:after {
	content: '';
	display: inline-block;
	vertical-align: middle;
	background-color: rgb(97,161,158);
	background-image: url('/images/icon-12x12-edit.png');
	width: 12px;
	height: 12px;
	margin-left: 0.5em;
}

ul.subsections > li > a.editlink {
	position: absolute;
	top: -2em;
	right: 0;
	opacity: 0;
	transition: opacity 0.3s;
	z-index: 2000;
}

ul.childpages > li > a.editlink {
	position: absolute;
	top: 0;
	right: 0;
	opacity: 0;
	transition: opacity 0.3s;
	z-index: 2000;
}

ul.subsections > li:hover > a.editlink,
ul.childpages > li:hover > a.editlink {
	opacity: 1;
}

span[title]:after {
	content: '';
	display: inline-block;
	vertical-align: middle;
	background-color: rgb(97,161,158);
	background-image: url(../images/icon-12x12-question-mark.png);
	width: 12px;
	height: 12px;
	margin-left: 0.5em;
}

small[title] {
	cursor: help;
}

table.loginform th,
table.loginform td {
	text-align: left;
	padding: 0.25em 1em 0.25em 0;
}

div.buttonbar {
	text-align: center;
}

div.commandbar {
	border-top: 1px solid rgb(221,221,221);
	padding-top: 10px;
	margin: 1em auto;
}

/* div.commandbar div.helpinfo {
	float: left;
	text-align: left;
	line-height: 1.1;
	padding: 12px 0px 12px 45px;
	background-image: url('/images/encp_icon_question.png');
	background-repeat: no-repeat;
	background-position: left center;
} */

div.buttonbar > * {
	vertical-align: middle;
	margin: 0 10px;
}

div.credit {
	color: rgb(175,175,175);
	max-width: 1260px;
	font-size: 10px;
	margin: 2em auto 0.5em;
	clear: both;
	opacity: 0.5;
}

div.credit a,
div.credit a:visited {
	color: rgb(175,175,175);
	font-weight: normal;
}

ul.childnav {
	text-align: center;
	list-style: none;
	padding: 0;
	margin: 1em auto;
}

ul.childnav > li {
	position: relative;
	padding: 0;
	margin: 0 0 1em 0;
}

ul.footernav {
	position: relative;
	overflow: hidden;
	float: left;
	list-style: none;
	font-size: 0.86rem;
	line-height: 1.2;
	letter-spacing: 0.05em;
	padding: 0;
	margin: 4px auto 2em;
}

ul.footernav li {
	display: inline-block;
	padding: 0;
	margin: 0 0.3em 0 0;
}

ul.footernav li::before {
	content: '|';
	display: inline-block;
	margin: 0 0.5em 0 0;
}

ul.footernav li:first-child::before {
	display: none;
}

ul.footernav li.heading {
}

ul.footernav li a,
ul.footernav li a:visited {
	color: white;
	font-weight: bold;
	text-decoration: none;
}

ul.footernav li a:hover {
	color: rgb(249,158,28);
	text-decoration: underline;
}

ul.socialnav {
	position: relative;
	overflow: hidden;
	float: right;
	list-style: none;
	font-size: 0.86rem;
	line-height: 1.2;
	letter-spacing: 0.05em;
	padding: 0;
	margin: 0 0 2em 0;
}

ul.socialnav li {
	display: inline-block;
	vertical-align: middle;
	padding: 0;
	margin: 0 5px;
}

ul.socialnav li.heading {
}

ul.socialnav a:hover {
	filter: alpha(opacity=80);
	opacity: 0.8;
}

#fi-facebook { width:22px; height:22px; }
#fi-twitter { width:27px; height:22px; }
#fi-youtube { width:28px; height:20px; }

@media (max-width: 1200px) {

	ul.footernav,
	ul.socialnav,
	div.credit {
		float: none;
		text-align: center;
	}

	ul.socialnav li {
		margin: 0 8px;
	}

	#fi-facebook { width:32px; height:32px; }
	#fi-twitter { width:40px; height:32px; }
	#fi-youtube { width:41px; height:29px; }

}

@media (max-width: 800px) {

	ul.footernav li.heading,
	ul.socialnav li.heading {
		display: block;
		margin-bottom: 1em;
	}

	ul.footernav li.heading + li::before {
		display: none;
	}

}

@media (max-width: 500px) {

	ul.footernav,
	ul.socialnav {
		font-size: 0.72rem;
	}

	ul.footernav li {
		display: block;
		margin-bottom: 0.5em;
	}

	ul.footernav li::before {
		display: none;
	}

}

@media (max-width: 800px) {
	.hidetablet { display: none! important; }
}

@media (max-width: 500px) {
	.hidemobile { display: none! important; }
}

/* Descendent selectors */

main > header {
	background: rgb(19,18,15) url('/images/encp_ris101_bkgd_chalkboard-with-atoms_v2.jpg') no-repeat top center;
	background-size: cover;
	height: 230px;
	color: white;
	text-align: center;
	padding: 1.6rem;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-direction: column;
	-ms-flex-direction: column;
	flex-direction: column;
	-webkit-flex-wrap: nowrap;
	-ms-flex-wrap: nowrap;
	flex-wrap: nowrap;
	-webkit-justify-content: center;
	-ms-flex-pack: center;
	justify-content: center;
	-webkit-align-content: stretch;
	-ms-flex-line-pack: stretch;
	align-content: stretch;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
}

main > header h1 {
	margin-bottom: 0;
}

main > header p {
	font-size: 2rem;
	line-height: 1.1;
	letter-spacing: 0.05em;
	margin: 0.5em auto;
}

main > header p.note,
main > header p.teaser {
	font-size: 1.4rem;
}

div.milk2022 {
	max-width: 30em;
	background: rgb(0,76,152) url('/images/encp_grfx_milk-containers-10c_300x200.png') no-repeat left 20px center;
	background-size: 150px 100px;
	color: rgb(249,158,28);
	font-weight: 700;
	font-size: 24px;
	line-height: 1.2;
	text-align: center;
	text-shadow: 0.03em 0.03em white;
	padding: 1em 1em 1em 200px;
	border-radius: 0.25em;
	margin: 20px auto;
}

div.milk2022 a,
div.milk2022 a:visited {
	display: block;
	color: white;
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	text-shadow: none;
	margin-top: 0.5em;
}

main > header.homebanner {
	height: 590px;
}

@media (min-width: 800px) and (max-width: 1500px) {

	main > header h1 { font-size: 3.5vw; line-height: 1.2; }
	main > header p { font-size: 2.5vw; }
	main > header { height: 14vw; }
	main > header.homebanner { height: 35vw; }

}

@media (max-width: 800px) {

	main > header h1 {
		font-size: 1.5rem;
		line-height: 1.4;
	}
	main > header p {
		font-size: 1.2rem;
		line-height: 1.4;
	}
	main > header {
		height: auto;
		min-height: 150px;
	}
	main > header.homebanner {
		height: auto;
		min-height: 370px;
	}
	main > header p.note,
	main > header p.teaser {
		font-size: 1rem;
	}

}

main > section {
	position: relative;
	overflow: hidden;
	max-width: 1300px;
	margin: 0 auto;
	padding: 4rem 1.6rem 2rem;
}

main > section.banner {
	max-width: 100%;
	background: rgb(19,18,15) url('/images/encp_ris101_bkgd_chalkboard_full.jpg') no-repeat center center;
	color: white;
	text-align: center;
	padding: 4rem 1.6rem;
}

main > section.banner h3 {
	color: white;
	font-weight: bold;
}

main > section > section {
	padding-top: 1px;
	margin-top: 3rem;
}

main > footer,
section.feature {
	max-width: 100%;
	background-color: rgb(34,67,156);
	color: white;
	text-align: center;
	padding: 3rem 1.6rem;
}

main > footer p,
section.feature p {
	font-size: 2rem;
	line-height: 1.1;
	letter-spacing: 0.05em;
	margin: 0.5em auto;
}

@media (max-width: 800px) {

	main > section {
		padding: 2rem 1.2rem 1rem;
	}

	main > footer,
	section.feature {
		padding: 2rem 1.2rem;
	}

	main > footer p,
	section.feature p {
		font-size: 1.5rem;
		line-height: 1.4;
	}

}

main > header .actionbutton:hover,
main > footer .actionbutton:hover,
section.feature .actionbutton:hover {
	background-color: rgb(249,158,28) !important;
	color: rgb(34,67,156) !important;
}

main > header .actionbutton:hover span.nextarrow::after,
main > footer .actionbutton:hover span.nextarrow::after,
section.feature .actionbutton:hover span.nextarrow::after {
	border-color: rgb(34,67,156) !important;
}

section img {
	max-width: 100%;
	height: auto;
}

section table {
	margin: 1em auto;
}

div.admin {
	position: relative;
	padding: 0.2em 1em;
	border: 1px dashed red;
	border-radius: 4px;
}

div.admin::before {
	content: 'Admin View Only:';
	position: absolute;
	top: -2em;
	left: -1px;
	background-color: red;
	color: white;
	font-weight: bold;
	font-size: 0.8rem;
	padding: 0.25em 1em;
}

/* Elements by ID */

#nav-checkbox,
#show-nav {
	display: none;
}

#mainlogo {
	position: absolute;
	top: 1.66rem;
	left: 50%;
	margin-left: -110px;
	width: 221px;
	height: 133px;
	z-index: 2000;
}

#mainmenu {
	position: relative;
	overflow: hidden;
	font-family: DIN, sans-serif;
	font-weight: 700;
	font-size: 1.3rem;
	line-height: 1.1;
	letter-spacing: 0.05em;
	margin: 0;
	padding: 2.66rem 1rem 1rem;
}

#mainmenu ul {
	list-style: none;
	width: calc(50% - 130px);
	margin: 0;
	padding: 0;
}

#mainmenu ul:first-child {
	float: left;
	text-align: right;
}

#mainmenu ul:last-child {
	float: right;
}

#mainmenu ul > li {
	display: inline-block;
	text-align: center;
	vertical-align: top;
	margin: 0;
	padding: 0;
}

#mainmenu ul > li a,
#mainmenu ul > li a:visited {
	display: block;
	color: rgb(34,67,156);
	text-decoration: none;
	white-space: nowrap;
	padding: 0.5em 0.75em 0.25em;
}

#mainmenu ul > li a:hover,
#mainmenu ul > li.active a,
#mainmenu ul > li.active a:visited {
	color: rgb(249,158,28);
}

#mainmenu ul > li.active a {
}

#mainmenu ul > li.active a:hover {
	color: rgb(34,67,156);
}

#mainmenu ul > li.login {
	margin-left: 10px;
}

#mainmenu ul > li.login a,
#mainmenu ul > li.login a:visited {
	background-color: rgb(249,158,28);
	color: white;
	font-size: 0.75em;
	text-transform: uppercase;
	border-radius: 4px;
}

#mainmenu ul > li.login a::before {
	position: relative;
	content: '\00a0';
	font-size: 1em;
	width: 0.83em;
	height: 1.1em;
	top: -0.2em;
	background: url('/images/encp_ris101_icon_lock.png') no-repeat center center;
	background-size: contain;
	display: inline-block;
	vertical-align: middle;
	margin-right: 0.5em;
}

#mainmenu ul > li.login a:hover {
	background-color: rgb(34,67,156);
}

@media (min-width: 976px) and (max-width: 1200px) {

	/* #mainmenu ul > li a,
	#mainmenu ul > li a:visited {
		max-width: 8em;
		white-space: normal;
	} */

	/* #mainmenu ul > li.login a::before {
		display: none;
	} */

	.hideintermediate {
		display: none;
	}

}

@media (max-width: 975px) {

	body > header {
		min-height: 130px;
	}

	#mainlogo {
		top: 6px;
		left: 30px;
		margin-left: 0;
		width: 167px;
		height: 100px;
	}

	#show-nav {
		display: block;
		position: absolute;
		box-sizing: border-box;
		top: 40px;
		right: 30px;
		width: 60px;
		height: 44px;
		padding: 0;
		border-top: 6px solid rgb(34,67,156);
		border-bottom: 6px solid rgb(34,67,156);
		margin: 0;
		z-index: 3001;
	}

	#show-nav > span {
		position: absolute;
		overflow: hidden;
		width: 100%;
		top: 13px;
		height: 6px;
		color: rgb(34,67,156);
		background-color: rgb(34,67,156);
	}

	#show-nav::before,
	#show-nav::after {
		display: none;
	}

	#mainmenu {
		position: absolute;
		display: none;
		top: 0;
		right: 0;
		width: 270px;
		background-color: rgba(34,67,156,0.9);
		line-height: 1.3;
		padding: 130px 0;
		z-index: 3000;
	}

	#mainmenu ul {
		float: none !important;
		width: 100%;
	}

	#mainmenu ul > li {
		display: block;
		text-align: left;
		border-top: 1px solid rgb(85,125,180);
	}

	#mainmenu ul > li a,
	#mainmenu ul > li a:visited {
		display: block;
		color: white;
		white-space: normal;
		padding: 0.7em 1.5em 0.5em;
	}

	#mainmenu ul > li a:hover,
	#mainmenu ul > li.active a,
	#mainmenu ul > li.active a:visited {
		background-color: rgb(34,67,156);
		color: white;
	}

	#mainmenu ul > li.login {
		padding: 0.7em 1.5em 0.5em;
		margin-left: 0;
	}

	#mainmenu ul > li.login a,
	#mainmenu ul > li.login a:visited {
		font-size: 0.65em;
		padding: 0.3em 1em;
	}

	#mainmenu ul > li.login a::before {
	}

	#nav-checkbox:checked ~ #show-nav {
		top: 35px;
		right: 168px;
		width: 62px;
		height: 62px;
		border: 2px solid white;
		border-radius: 6px;
	}

	#nav-checkbox:checked ~ #show-nav > span {
		display: none;
	}

	#nav-checkbox:checked ~ #show-nav::before,
	#nav-checkbox:checked ~ #show-nav::after {
		display: block;
		position: absolute;
		top: 28px;
		left: 9px;
		width: 40px;
		height: 3px;
		background: white;
		border: none;
		transform: rotate(45deg);
	}

	#nav-checkbox:checked ~ #show-nav::after {
		transform: rotate(-45deg);
	}

	#nav-checkbox:checked ~ #mainmenu {
		display: block;
	}

}

#iealert {
	position: relative;
	background-color: rgb(255,255,204);
	background-image: url('/images/warning_bar_background.gif');
	background-repeat: repeat-x;
	text-align: center;
	padding-bottom: 0.5em;
	border-bottom: 2px solid rgb(240,73,41);
	z-index: 10000;
}

#iealert p {
	max-width: 100%;
	margin: 0.5em auto;
}

#siteindicator {
	position: fixed;
	top: 0px;
	left: 0px;
	z-index: 9500;
	background-color: red;
	color: white;
	font-weight: bold;
	text-transform: uppercase;
	padding: 0.1em 0.6em;
}

#modal {
	display: none;
	position: fixed;
	z-index: 9000;
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
	background-color: rgba(0,0,0,0.5);
	padding: 1rem;
}

#logindialog,
#goaldialog,
#reportdialog,
#reqbinsdialog {
	max-width: 540px;
	padding: 50px 30px;
}

#loginform { margin: 0; }

#loginform p.textfield { margin: 0.5em auto; }

#loginform p.textfield + p:not(.textfield) { margin-top: 2em; }

#loginform a { font-weight: normal; }

#loginform label {
	display: inline-block;
	width: 6em;
	font-weight: bold;
	text-align: left;
	margin-right: 1em;
}

#loginform input[type="text"],
#loginform input[type="password"] {
	width: 16em;
}

#logindialog div.helpinfo {
	max-width: 16em;
	margin: 0.5em auto;
}

@media (max-width: 500px) {

	#loginform label {
		display: block;
		width: 16em;
		margin: 1em auto 0;
	}

}

@media (max-width: 400px) {

	div.dialog button.actionbutton {
		min-width: 0;
		width: 100%;
	}

	#loginform label,
	#loginform input[type="text"],
	#loginform input[type="password"] {
		width: 100%;
	}

}

#thumbpreview {
	position: absolute;
	background: white;
	display: none;
	color: white;
	padding: 14px;
	border-radius: 4px;
	-webkit-box-shadow: 1px 1px 20px black;
	-moz-box-shadow: 1px 1px 20px black;
	box-shadow: 1px 1px 20px black;
	z-index: 8000;
}

#loader {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	background-color: white;
	width: 70px;
	height: 70px;
	padding: 20px;
	border-radius: 4px;
	margin-top: -35px;
	margin-left: -35px;
	-webkit-box-shadow: 1px 1px 20px black;
	-moz-box-shadow: 1px 1px 20px black;
	box-shadow: 1px 1px 20px black;
	z-index: 50000;
}

/* jQuery UI */

.ui-accordion-header {
	position: relative;
	cursor: pointer;
	z-index: 2000;
}

.ui-accordion-header.ui-state-focus {
	outline: none;
}

span.ui-accordion-header-icon {
	position: absolute;
	top: 50%;
	width: 1.2em;
	height: 1.2em;
	border-top: 3px solid white;
	border-right: 3px solid white;
	transform-origin: center;
	transform: translate(-2em, -50%);
	z-index: 2001;
}

span.ui-accordion-header-icon.ui-icon-triangle-1-e {
	transform: translate(-2em, -50%) rotate(45deg);
}

span.ui-accordion-header-icon.ui-icon-triangle-1-s {
	transform: translate(-2em, -70%) rotate(135deg);
}

@media (min-width: 701px) {

	span.ui-accordion-header-icon {
		left: 50%;
		margin-left: 15em;
	}

}

@media (max-width: 700px) {

	span.ui-accordion-header-icon {
		right: 2em;
		margin-left: 0;
	}

}

/* Page specific tweaks */

body.itype-0 main > section p {
	text-align: center;
}
