@import url('https://fonts.googleapis.com/css?family=Expletus+Sans|Molengo|Spirax');

:root {
    --theme-color1: #0d74bf;
	--theme-color2: #002B3B;
    --theme-color3: #23D9FF;
	--theme-color4: #013E53;
    --theme-color5: #41aae3;
	--theme-color6: #ffc213;
	--theme-color7: #ff9405;
	--theme-color8: white;
	--dim: 92vw;
	--sidebar-width: 270px;
}

html { background-color: #f2f2f2; }

body { font: 14px Tahoma, Geneva, sans-serif; }

body, input, select, textarea { color: #4c4c4c; }

blockquote {
	padding-left: 42px;
	margin: 15px 0;
	position: relative;
}

blockquote::before {
	content: "‘‘";
	position: absolute;
	top: -15px;
	left: 0;
	font-size: 6em;
	color: var(--theme-color1);
	font-family: 'Spirax', 'cursive';
}

a {
	color: var(--theme-color5);
	text-decoration: none;
}

a:hover { color: var(--theme-color3); }

#midsection a:hover {
	color: var(--theme-color3);
	text-decoration: underline;
}

small, footer { font-size: 90%; }

h1, h2, h3 {
	font-family: 'Molengo', sans-serif;
	font-weight: normal;
	margin-bottom: 15px;
	font-size: 32px;
}

h1 {
	color: black;
	text-transform: uppercase;
	letter-spacing: -1px;
}

h2 {
	margin: 10px 0;
	font-size: 28px;
	color: var(--theme-color1);
	letter-spacing: -1px;
}

h3 {
	font-size: 22px;
	color: black;
	letter-spacing: -1px;
	margin: 10px 0;
}

header a { color: var(--theme-color8); }

#topbar { background-image: linear-gradient(var(--theme-color4), var(--theme-color2)); }

.wrapper {
	max-width: 980px;
	margin: auto;
}

#account_menu {
	color: var(--theme-color5);
	margin-right: 8px;
	float: right;
	margin-top: 20px;
}

#account_menu a, .marquee a { color: var(--theme-color8); }

#account_menu a:hover, .marquee a:hover { color: var(--theme-color3); }

.select_bar a.current, .ui-tabs-active a {
	color: var(--theme-color8);
	padding: 1px 4px;
	border-radius: 5px;
	background-color: var(--theme-color5);
}

.navbar {
	display: inline-block;
	z-index: 5;
}

nav ul { list-style: none; }

nav > ul > li { display: inline-block; }

nav > ul > li + li {
	background-image: url(separator.png);
	background-repeat: no-repeat;
	background-position: left center;
}

nav a {
	display: inline-block;
	font-family: 'Expletus Sans', cursive;
	font-size: 15px;
	font-weight: normal;
	color: var(--theme-color8);
	text-transform: uppercase;
	text-decoration: none;
	padding: 18px;
}

nav li:hover > a { color: var(--theme-color3); }

nav a.current { color: var(--theme-color5); }

#titlebar { background-image: linear-gradient(var(--theme-color3) 1px, var(--theme-color5) 1px, var(--theme-color1)); }

#titlebar .wrapper { background-image: radial-gradient(circle at bottom, var(--theme-color3), var(--theme-color3) 10%, transparent 85%); }

#title_box{
	max-height: 100%;
	display: flex;
	flex-direction: row;
	align-items: center;

}

#titleleft {
	float: none !important;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

#titlebar .wrapper{
	display: flex;
    padding: 0 50px;
}

#header_img {
	width: 400px;
	height: 250px;
	margin-top: -20px;
	margin-bottom: -20px;
	background-image: url(Children_Reading.png);
	background-repeat: no-repeat;
	background-size: contain;
	background-position: right;
	flex: 1;
}

#title {
	font-family: 'Expletus Sans', cursive;
	display: block;
	font-size: 47px;
	color: var(--theme-color8);
	text-shadow: 1px 1px rgba(0,0,0,.5);
	text-transform: uppercase;
	text-decoration: none;
	letter-spacing: -2px;
	line-height: 40px;
	font-weight: bold;
	margin-bottom: 15px;
}

#title img { max-height: 275px; }

#title::first-line {
	font-weight: normal;
	color: var(--theme-color2);
	text-shadow: 1px 1px rgba(255,255,255,.5);
}

.slogan {
	font-family: 'Expletus Sans', cursive;
	display: block;
	margin-top: 15px;
	font-size: 31px;
	color: var(--theme-color2);
	clear: left;
	padding-top: 15px;
	letter-spacing: -2px;
	border-top: thin solid var(--theme-color3);
}

.marquee {
	text-align: center;
	color: var(--theme-color1);
	letter-spacing: -1px;
	font-size: 25px;
	margin: 15px 10px 15px;
}

#midsection {
	padding: 20px 40px 30px;
	background-color: white;
	border-radius: 5px;
	margin-top: 20px;
	width: calc(100% - 30px);
}

.page p, .sidebar p { line-height: 20px; }

.has-sidebar .page {
	float: left;
	width: calc(100% - var(--sidebar-width) - 20px);
}

.sidebar {
	float: right;
	width: var(--sidebar-width);
	margin-left: 20px;
}

.sidebar h1 { font-size: 28px; }

.sidebar .copy ul {
	list-style: none;
	padding-left: 0;
}

.sidebar ul ul { font-size: .9em; }

.sidebar ul li a, .bulletblock {
	display: inline-block;
	padding: 10px 0 10px 40px;
	color: #363636;
	text-decoration: none;
	font-weight: bold;
}

.sidebar ul li a::before, .bulletblock::before {
	content: '\F013E'; /* chevron-double-right */
	display: inline-block;
	font-family: 'Material Design Icons';
	font-weight: 100;
	font-size: 18px;
	width: 23px;
	height: 23px;
	line-height: 23px;
	text-align: center;
	border: 3px solid white;
	border-radius: 8px;
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
	background-image: linear-gradient(var(--theme-color6), var(--theme-color7));
	color: white;
	margin-left: -38px;
	margin-right: 10px;
}

.sidebar ul li a:hover, .bulletblock:hover {
	color: var(--theme-color1);
	text-decoration: none;
}

.cms-button {
	text-transform: capitalize;
	height: 32px;
	padding: 0 15px;
	letter-spacing: -1px;
	color: white;
	border: 3px solid white;
	border-radius: 8px;
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
	background-image: linear-gradient(var(--theme-color6), var(--theme-color7));
	border: 3px solid white;
	border-radius: 8px;
	box-shadow: 0 0 4px rgba(50, 50, 50, 0.25) !important;
}

.cms-button:hover,
.cms-button:focus,
.cms-button:active {
	background-position: bottom;
	color: white;
}

.sidebar ul li a:hover::before,
.bulletblock:hover::before,
.cms-button:hover {
	background-image: linear-gradient(var(--theme-color5), var(--theme-color1));
}

footer {
	clear: both;
	text-align: center;
	padding: 20px 0;
}

footer a { color: var(--theme-color1); }

#all_socialmedia { margin-top: 5px; }

header.collapse { padding: 10px 26px; }

nav > ul > li > a {
	text-decoration: none;
	display: block;
	margin-left: 8px;
}

.mobile-button {
	display: none;
	text-decoration: none;
	cursor: pointer;
	font-size: 1.9em;
	color: var(--theme-color5);
	top: 0;
	right: 0;
	padding: 7px 10px;
}

nav ul ul { display: none; }

nav li:hover > ul {
	display: block;
	width: 210px;
	position: absolute;
	background-color: rgba(0,0,0,0.8);
	z-index: 9999999;
}

nav ul ul li:hover > ul {
	left: 210px;
	margin-top: -48px;
}

nav ul ul li { padding-left: 0; }

nav ul ul li:hover { background-color: rgba(100,100,100,0.8); }

nav ul ul li a {
	width: 200px;
	padding: 14px;
	display: block;
	text-transform: none;
}

nav ul ul { display: none; }

nav > ul > li > a::before {
	font-family: 'Material Design Icons';
	font-size: 1.7em;
	vertical-align: bottom;
	content: '\F035D'; /* menu-down */
	margin-left: -0.5em;
}

nav ul ul li > a::after {
	font-family: 'Material Design Icons';
	font-size: 1.7em;
	vertical-align: bottom;
	content: '\F035F'; /* menu-right */
	margin-right: -1em;
	margin-top: -4px;
	float: right;
}

nav ul ul ul { list-style: none; }

nav > ul > li > a:only-child::before, nav ul ul li > a:only-child::after {
	content: '';
	margin: 0;
}

header .mdi-magnify {
	margin-left: 8px;
	padding: 15px 0;
	cursor: pointer;
	padding-left: 20px;
	display: inline-block;
}

header .mdi-magnify::before { font-weight: bold; }

.copy-container::after {
	content: '';
	clear: both;
	display: table;
	height: 50px;
}

@media screen and (max-width: 1023px) {
	#topbar { height: 55px; }

	#account_menu {
		position: absolute;
		top: 0;
		right: 50px;
	}

	.mobile-button {
		display: inline-block;
		position: absolute;
	}

	.mobile-menu {
		opacity: 0;
		visibility: hidden;
		position: fixed;
		width: 40vw;
		height: 100%;
		background-image: radial-gradient(var(--theme-color4) 0%, var(--theme-color2) 100%);
		z-index: 5;
		transition: all;
		transition-duration: .5s;
		display: flex;
		align-items: center;
		justify-content: center;
		right: -40vw;
		box-shadow: 3px 1px 6px 4px rgba(0, 0, 0, 0.63);
	}

	header.active .mobile-menu {
		right: 0;
		z-index: 99;
	}

	header.active::before {
		content: '';
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.83);
		z-index: 3;
		transition: 2s all ease-in-out;
	}

	.mobile-menu {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	header nav.navbar {
		width: 100%;
		bottom: 0;
		overflow-y: auto;
		text-align: center;
		margin-top: 50px;
	}

	header.active .mobile-menu {
		opacity: 1;
		visibility: visible;
	}

	header.active .mdi-magnify { display: none; }
	
	header.active .wrapper { position: static; }
	
	nav li { display: block !important; }

	nav ul { line-height: initial; }
	
	nav li + li { background-image: none !important;}
	
	nav ul a { margin-left: 0 !important; }

	nav ul li a { font-size: 30px; }

	nav ul ul li a { font-size: 18px; }

	nav ul ul ul li a { font-size: 14px; }

	nav { text-align: center; }

	nav > ul > li { margin-top: 20px; }

	nav > ul > li:first-of-type { margin-top: 0; }

	nav > ul > li > a {
		text-transform: none;
		color: var(--theme-color3);
		padding: 0;
	}

	nav ul ul, nav li:hover ul, nav ul ul li:hover {
		position: static;
		display: block;
		width: 100%;
		background-color: transparent;
	}

	nav ul ul li:hover > ul { margin-top: 0; }

	nav ul ul li a {
		width: 100%;
		padding: 0;
	}

	nav > ul > li > a::before { display: none; }

	nav ul ul li > a::after {
		content: '\F035D'; /* menu-down */
		float: none;
		display: none;
	}
}

@media screen and (max-width: 1023px) and (min-width: 767px) {
	nav {
		max-height: 90vh;
		overflow: auto;
		padding-bottom: 20px;
	}
}

@media screen and (max-width: 767px) {
	#titleleft {
		margin-left: 0px;
		margin-right: 0;
		text-align: center;
	}

	#titlebar { padding-top: 20px; }

	#header_img { float: none; }

	.slogan {
		display: inline-block;
		margin-left: 0;
	}

	#topbar { height: 0; }

	#logo + #title-and-slogan #title { display: block; }

	header .wrapper {
		max-width: 100%;
		padding: 4vh 0 0 0;
		display: block;
	}
	
	#header_img{
		max-width: 100%;
		margin: auto;
	}
	
	#titlebar .wrapper {
		display: block;
		padding: 0 2vw;
		text-align: center;
	}

	.mobile-button {
		background-color: var(--theme-color4);
		border-radius: 0 0 0 100%;
		padding-left: 20px;
		padding-bottom: 20px;
		z-index: 1;
	}

	.mobile-menu {
		background-image: radial-gradient(at 100% top, var(--theme-color4) 40%, var(--theme-color2) 100%);
		width: var(--dim);
		height: var(--dim);
		border-radius: 0 0 0 100vw;
		top: calc(var(--dim) * -1);
		right: calc(var(--dim) * -1);
		visibility: hidden;
		opacity: 0;
	}

	.mobile-menu.overlay {
		width: 100vw;
		height: 100vh;
		border-radius: 0 !important;
		right: 0;
	}

	.mobile-menu.overlay nav { width: 100vw; }

	header.active .mobile-menu.overlay::after {
		height: 40px;
	}

	/* .mobile-menu nav ul li a { font-size: calc(var(--dim) * 0.045); } */

	header.active .mobile-menu {
		background-image: radial-gradient(at 100% top, var(--theme-color4) 40%, var(--theme-color2) 100%);
		border-radius: 0 0 0 100vw;
		top: 0;
		right: 0;
		overflow: hidden;
	}

	header.active .mobile-menu::after {
		content: '';
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 100px;
		background: linear-gradient(0deg, var(--theme-color2) 0%, var(--theme-color2) 60%, transparent 100%);
		pointer-events: none;
		z-index: 1;
	}

	header nav.navbar {
		width: 70%;
		position: absolute;
		top: 40px;
		right: 0;
		margin-top: 0;
		padding-bottom: 40px;
	}

	.sidebar {
		width: 100%;
		margin-right: 0;
		margin-left: 0;
	}

	.page, .has-sidebar .page { width: 100%; }

	.has-sidebar .page { padding-top: 5vh; }

	.page h1 { font-size: 5vw; }
}

@media screen and (max-width: 550px) {
	#topbar { text-align: center; }

	header nav.navbar { display: block; }

	#midsection {
		width: 100%;
		border-radius: 0;
	}
}
