/*
Theme Name: School Navigation
Author: Ville Hjelt
Version: 1.4
Description: Theme for School Navigation
*/

/* General CSS */

html {
	position: fixed;
}

html, body {
	background-color: #f1f1f1;
	height: 100%;
	width: 100%;
	max-height: 100%;
	min-height: 100%;
	max-width: 100%;
	min-width: 100%;
	padding: 0;
	margin: 0;
}

html, html * {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	font-family: Helvetica, sans-serif;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	-ms-backface-visibility: hidden;
}

body {
	font-family: verdana, calibri, arial;
	display: flex;
	height: 100%;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
}

h1 {
	padding-bottom: 10px;
	font-size: 32px;
	font-weight: normal;
}

h2 {
	padding-bottom: 5px;
	font-size: 18px;
	font-weight: bold;
}

hr {
	border: none;
	border-bottom: 1px solid #0375b7;
	margin: 16px 0px;
}

a:link,
a:visited {
	text-decoration: none;
	color: #007bad;
	cursor: pointer;
}

header#site-header .logo a:link:hover,
header#site-header .logo a:visited:hover,
section#content a:link:hover,
section#content a:visited:hover {
	text-shadow: 0px 0px 0px #808080;
	transition: 200ms;
}

table {
	border-collapse: collapse;
}

tr {
	height: 26px;
}

td {
	width: 90px;
	text-align: center;
}

/* Site Header */

header#site-header {
	display: flex;
	background: #0375b7;
	background: -webkit-linear-gradient(#0375b7, #1390d8);
	background: -o-linear-gradient(#0375b7, #1390d8);
	background: -moz-linear-gradient(#0375b7, #1390d8);
	background: linear-gradient(#0375b7, #1390d8);
	background-size: contain;
	background-repeat: no-repeat;
	height: 120px;
	text-align: center;
	justify-content: center;
	align-content: stretch;
	flex-direction: column;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	align-items: center;
	justify-content: center;
	-webkit-user-drag: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-o-user-select: none;
	user-select: none;
}

header#site-header div.logo {
	flex: 1 0 auto;
	text-shadow: 3px 2.5px 8px #0d4069;
	width: 100%;
	z-index: 1000;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

header#site-header a.logo-text {
	display: block;
	font-size: 50px;
	font-family: "Trebuchet MS", Helvetica, sans-serif;
	color: #FFF;
	position: relative;
	display: inline-block;
	flex: 0 0 auto;
	padding: 0;
}

header#site-header p {
	font-size: 50px;
	color: #FFF;
}

header#site-header p:hover {
	-webkit-transition: border 300ms ease-out;
	transition: border 300ms ease-out;
}

header#site-header .watermark {
	background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48ZyB0cmFuc2Zvcm09Im1hdHJpeCguMTY2MDIgMCAwIC4xNjYwMiAtMzI5LjEzIC01OS43NikiPjxjaXJjbGUgY3g9IjIyODMuMzc2OTEiIGN5PSI2NTkuNTE2NDYiIHI9IjI2MCIgZmlsbD0ibm9uZSIvPjxwYXRoIGQ9Ik0yMTk3LjM3NjkgNzIyLjAxNjQ4bDgxLjkuMi02Mi44LTE4My4yIDI2LjA1LjE1LTEuMTUtMzkuNjVoLTEyM2w3OSAyMjIuNXpNMjM0MC4zMzk0IDUyMS43OTg1bDEzLjMzNzUgMzguNzQyOTcgMTAuMTUzMTMuNDI4MTItNjEuMzUzMTMgMTg2LjU0Njg4IDc2LjItMS41IDc5LjYtMjI0LjJjMCAuMDAwNzgtMTE3LjkzNzUtLjYxNzk4LTExNy45Mzc1LS4wMTc5OHpNMjIwNC4zMzI0NiA3NDcuMzI3Nmw0OC4xNDQ0NCAxMzQuMTg4ODhoNDQuOHYtNjJsNDcuNC0uNSAxNC42LTM3LjgtNjIuNS0uNy0xMS43LTM0LTgwLjc0NDQ0LjgxMTF6Ii8+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTIzNjYuNTM0MDYgMjgyLjQ3OTU3aDYwMHY2MDBoLTYwMHoiLz48L2c+PGNpcmNsZSBjeD0iNTAiIGN5PSI1MCIgcj0iNTAiIGZpbGw9Im5vbmUiLz48L3N2Zz4=");
	background-repeat: no-repeat;
	height: 100px;
	width: 100px;
	position: absolute;
	top: 0px;
	right: 0px;
	opacity: 0.6;
}

header#site-header a.watermark:hover {
	opacity: 0.75;
}

/* Site Navigation */

nav#site-nav {
	display: flex;
	color: #000;
	background: #FFF;
	border-top: 1px solid #e7e7e7;
	border-bottom: 1px solid #e7e7e7;
	width: 100%;
	font-size: 30px;
	position: absolute;
	top: 130px;
	cursor: default;
	align-items: center;
	justify-content: center;
	padding: 0px 0px 16px 0px;
	-webkit-user-drag: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-o-user-select: none;
	user-select: none;
	flex: 0 0 auto;
	z-index: 1600;
}

nav#site-nav a:link,
nav#site-nav a:visited,
nav#site-nav a:hover {
	color: #000;
}

nav#site-nav li {
	padding: 8px;
	margin: 4px;
	font-size: 14px;
	font-weight: bold;
	-webkit-transition: border 200ms ease-in;
	transition: border 200ms ease-in;
	border-bottom: 2px solid transparent;
	list-style: none;
}

nav#site-nav ul li {
	display: inline;
}

nav#site-nav li.current-menu-item,
nav#site-nav li.current-page-ancestor {
	border-bottom: 2px solid #ae2adf;
	cursor: default;
	pointer-events: none;
}

nav#site-nav li:not(.current-menu-item):hover {
	border-bottom: 2px solid #2aabdf;
}

/* Site Content */

section#content {
	display: flex;
	flex-direction: column;
	color: #000;
	overflow: hidden;
	position: absolute;
	line-height: 24px;
	top: 190px;
	right: 0;
	bottom: 0;
	left: 0;
	-webkit-overflow-scrolling: touch;
}

section#content .content-wrapper {
	margin: 0 auto;
	padding: 20px;
	background: #FFF;
	border: 1px solid #e7e7e7;
	flex: 1 0 auto;
	opacity: 0;
	overflow: hidden;
	max-width: 100%
}

section#content h2 {
	display: block;
	padding: 10px 0px 8px 0px;
	font-size: 22px;
	flex: 1;
}

section#content h3 {
	display: block;
	padding: 6px 0px 6px 0px;
	font-size: 16px;
	font-weight: normal;
	flex: 1;
}

section#content a {
	color: #007bad;
	cursor: pointer;
	text-decoration: none;
	-webkit-user-drag: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-o-user-select: none;
	user-select: none;
}

section#content .content-wrapper a:hover {
	-webkit-filter: brightness(70%);
	-moz-filter: brightness(70%);
	-o-filter: brightness(70%);
	-ms-filter: brightness(70%);
	filter: brightness(70%);
	-webkit-transition: 200ms;
	transition: 200ms;
}

section#content .content-wrapper a,
section#content .content-wrapper a:link,
section#content .content-wrapper a:visited {
	color: #007bad;
	cursor: pointer;
}

section#content article.post li {
	margin: 0px 0px 0px 30px;
	line-height: 24px;
}

/* Content Navigation */

section#content .content-wrapper nav#content-nav div.sub-menu {
	font-size: 20px;
	padding: 8px 12px;
	background: #eaf5fb;
	border: 1px solid #e7e7e7;
	margin: 10px 0px 0px 0px;
}

section#content .content-wrapper nav#content-nav a:hover {
	color: #2aabdf;
	-webkit-filter: brightness(70%);
	-moz-filter: brightness(70%);
	-o-filter: brightness(70%);
	-ms-filter: brightness(70%);
	filter: brightness(70%);
	-webkit-transition: 200ms;
	transition: 200ms;
}

section#content .content-wrapper nav#content-nav div.breadcrumb #breadcrumbs {
	list-style: none;
	font-size: 22px;
	margin: 10px 0px;
	overflow: hidden;
	display:flex;
	flex-wrap: nowrap;
}

section#content .content-wrapper nav#content-nav div.breadcrumb #breadcrumbs li {
	display: inline-block;
	vertical-align: middle;
	margin: 0px 10px;
	display: inline-block;
	overflow: hidden;
}

section#content .content-wrapper nav#content-nav div.breadcrumb #breadcrumbs li.item-current {
	text-overflow: ellipsis;
	white-space: nowrap;
}

section#content .content-wrapper nav#content-nav div.breadcrumb #breadcrumbs .separator {
	font-size: 18px;
	color: #000;
}

section#content .scroll-wrapper {
	height: 100%;
	display: flex;
	align-content: stretch;
	flex-direction: column;
	overflow: hidden;
	overflow-y: auto;
	position: relative;
}

/* Site Footer */

footer#site-footer {
	display: flex;
	background: #0375b7;
	background: -webkit-linear-gradient(#1390d8, #0375b7);
	background: -o-linear-gradient(#1390d8, #0375b7);
	background: -moz-linear-gradient(#1390d8, #0375b7);
	background: linear-gradient(#1390d8, #0375b7);
	color: #FFF;
	width: 100%;
	padding-left: 10px;
	flex: 1 0 40px;
	max-height: 40px;
	cursor: default;
	align-items: center;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

footer#site-footer a,
footer#site-footer div#sign-in a,
footer#site-footer div#sign-in a:link:hover {
	color: #FFF;
}

footer#site-footer .login {
	flex: 1;
	display: block;
	padding: 0px 10px 0px 0px;
	text-align: right;
	font-weight: bold;
}

/* Custom */

.disabled {
	cursor: default !important;
	color: #000 !important;
	background: #808080 !important;
	opacity: 0.6;
	pointer-events: none;
}

ul.dropdown-menu {
	list-style: none;
}

.children {
	font-size: 18px;
	padding-left: 20px;
	list-style: none;
}

/* General Device Support */

@media (max-width: 650px) {
	header#site-header .watermark {
		background-size: contain;
		height: 60px;
		width: 60px;
		opacity: 0.5;
	}
	footer#site-footer .copyright .hideable {
		display: none;
	}
	section#content .content-wrapper {
		align-items: center;
		justify-content: center;
	}
	header#site-header {
		height: 60px;
	}
	header#site-header .logo a {
		font-size: 36px;
	}
        header#site-header .logo a p {
                font-size: 28px;
        }
	nav#site-nav {
		top: 70px;
	}
	section#content {
		top: 130px;
	}
}

@media (max-width: 550px) {
	header#site-header .logo a {
		font-size: 30px;
	}
}

@media (max-width: 420px) {
	header#site-header .watermark {
		height: 55px;
		width: 55px;
	}
}

@media (max-width: 300px) {
	footer#site-footer .copyright {
		display: none;
	}
	footer#site-footer .login {
		padding-top: 0px;
		text-align: center;
	}
	header#site-header .watermark {
		display: none;
	}
}

@media (max-width: 290px) {
	section#content .content-wrapper {
		padding: 10px;
	}
}

@media (max-height: 500px) {
	header#site-header {
		height: 60px;
	}
	header#site-header .logo a {
		font-size: 30px;
	}
	header#site-header .watermark {
		height: 55px;
		width: 55px;
		background-size: contain;
		opacity: 0.5;
	}
	nav#site-nav {
		top: 70px;
	}
	section#content {
		top: 130px;
	}
}
