/* Creative Sciences */

/* COLOUR SCHEME
Accent: 	#005aff
Complement:	#ff9001
*/

/* Common styling for all media sizes */
html, body {
	padding: 0;
}

h3 {
	font-size: 1.5rem;
}

.container-fluid {
	padding: 0;
}

.btn {
	text-transform: uppercase;
}

.btn-primary {
	background-color: #005aff;
}

.navbar {
	padding: 20px;
	transition: all 0.4s ease;
}

.navbar.scrolled {
	padding: 10px;
	background-color: white;
	box-shadow: 0 4px 3px -4px gray;
	transition: all 0.4s ease;
}

.navbar .nav-link {
	margin-right: 10px;
	color: white;
	text-transform: uppercase;
	font-size: 90%;
	font-weight: bold;
	display: none; /* Visible XL upwards */
	transition: all 0.4s ease;
}

.navbar.scrolled .nav-link {
	color: #005aff;
	transition: all 0.4s ease;
}

.navbar .nav-link:hover {
	text-decoration: underline;
}

.navbar .dropdown-toggle::after {
	display:none
}

.navbar .dropdown-menu {
	margin-top: 20px;
	padding: 0;
}

.navbar .dropdown-item {
	color: white;
	background-color: #005aff;
	height: 50px;
	line-height: 45px;
	border-bottom: 2px solid white;
}

.navbar .dropdown-item:last-of-type {
	border-bottom: none;
}

.navbar .logo {
	width: 132px;
	height: 45px;
	margin-top: -5px;
	background-image: url(/images/logo-white.png);
	background-size: cover;
	background-repeat: no-repeat;
	transition: all 0.4s ease;
}

.navbar.scrolled .logo {
	width: 103px;
	height: 35px;
	margin-top: -2px;
	background-image: url(/images/logo-accent-black.png);
	transition: all 0.4s ease;
}

.navbar .dropdown {
	margin-left: 30px;
}

.hero {
	position: relative;
	width: 100%;
	height: 700px;
}

.hero .hero-background {
	position: absolute;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.hero .hero-background-image {
	position: absolute;
	top: -10px;
	left: -10px;
	bottom: -10px;
	right: -10px;
	background-image:url(/images/hero-background.jpg);
	background-size: cover;
	background-position: 50% 50%;
	background-repeat: no-repeat;
	filter: blur(5px) brightness(60%);
	-webkit-filter: blur(5px) brightness(60%);

	-moz-filter: blur(3px);
	-o-filter: blur(3px);
	-ms-filter: blur(3px);
}

.hero .hero-subject {
	position: absolute;
	height: 85%;
	bottom: 0;
}

.hero .hero-overlay {
	position: absolute;
}

.hero .hero-overlay .question,
.hero .hero-overlay .answer {
	overflow: hidden;
}

.hero .hero-overlay .question p {
	color: white;
	margin: 0;
}

.hero .hero-overlay .answer p {
	color: #ff9001;
	margin: 0;
}

.hero .hero-overlay .prefix {
	width: 50px;
	color: white;
	font-weight: bold;
}

.elevator {
	color: white;
	background-color: #666666;
}

.section-odd,
.section-even {
	padding: 50px 0;
}

.section-odd {
	background-color: #ffffff;
}

.section-even {
	background-color: #eeeeee;
}

.section-heading {
	font-size: 2rem;
	text-align: center;
	margin-bottom: 30px;
}

.heading-panel h2 {
	text-align: center;
}

.side-panel {
	padding: 20px;
	text-align: center;
}

.side-panel p {
	margin-top: 20px;
}

.icon-heading {
	min-height: 60px;
	margin-bottom: 30px;
	clear: both;
}

.icon-heading .fa {
	float: left;
	margin-right: 20px;
	color: #005aff;
}

.icon-heading h3 {
	text-align: left;
	line-height: 30px;
}

.icon-block {
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: start;
}

.icon-block  .left {
	flex-grow: 0;
	flex-shrink: 0;
	flex-basis: 80px;
	text-align: center;
	color: #005aff;
}

.icon-block  .right {
	padding: 0 10px;
}

.icon-block.contact {
	line-height: 50px;
}

.platform {
	padding: 20px 40px;
	text-align: center;
}

.device {
	margin-top: 20px;
	padding: 20px;
	text-align: center;
}

.platform .caption {
	margin-top: 20px;
	font-variant: small-caps; 
}

.device .caption {
	margin-top: 20px;
	font-variant: small-caps; 
}

.xamarin-badge {
	width: 100%;
	max-width: 300px;
	text-align: center;
}

.service {
	margin: 20px 0;
}

.advantage {
	margin: 10px 0;
}

#contact-button-hero-narrow,
#contact-button-hero-wide {
	visibility: hidden;
}

#empty-section {
	/* This is temporary. Replace the empty section with a page footer bar */
	height: 1000px;
}

/* Extra small device width (portrait phone) */
@media screen and (min-width: 0) {
	.container {
		width: 100%;
	}

	.hero .hero-subject {
		right: -15%;
	}

	.hero .hero-overlay {
		left: 5%;
		width: 90%;
		font-size: 16pt;
	}

	.hero .hero-overlay .prefix {
		display: none;
	}

	.hero .hero-overlay .question,
	.hero .hero-overlay .answer,
	.hero .hero-overlay .question p,
	.hero .hero-overlay .answer p {
		height: 70px;
		line-height: 35px;
		font-weight: bold;
	}

	.elevator {
		padding: 40px 20px;
		font-size: 18pt;
	}
	
	#contact-button-nav {
		display: none;
	}
	
	#contact-button-hero-narrow {
		display: inline;
		margin-top: 10px;
	}

	#contact-button-hero-wide {
		display: none;
	}
}

/* Small device width (landscape phone or portrait phablet) */
@media screen and (min-width: 576px) {
	.container {
		width: 100%;
	}

	.hero .hero-subject {
		right: 0;
	}

	.hero .hero-overlay {
		font-size: 20pt;
	}

	.hero .hero-overlay .prefix {
		display: block;
		height: 70px;
		line-height: 35px;
	}

	.hero .hero-overlay .question,
	.hero .hero-overlay .answer,
	.hero .hero-overlay .question p,
	.hero .hero-overlay .answer p {
		font-weight: normal;
	}
	
	.hero-overlay .cta {
		padding-left: 50px;
	}

	.elevator {
		font-size: 18pt;
	}
	
	#contact-button-nav {
		display: inline;
	}
}

/* Medium device width (landscape phablet or portrait tablet) */
@media screen and (min-width: 768px) {
	.hero .hero-subject {
		right: 5%;
	}

	.hero .hero-overlay {
		font-size: 22pt;
	}

	.hero .hero-overlay .prefix,
	.hero .hero-overlay .question,
	.hero .hero-overlay .answer,
	.hero .hero-overlay .question p,
	.hero .hero-overlay .answer p {
		height: 50px;
		line-height: 50px;
	}

	.elevator {
		padding: 80px 40px;
		font-size: 20pt;
	}
	
	#contact-button-hero-narrow {
		display: none;
	}

	#contact-button-hero-wide {
		display: inline;
		margin-left: 30px;
	}
}

/* Large device width (landscape tablet, notebook or small desktop) */
@media screen and (min-width: 992px) {
	.hero .hero-overlay {
		font-size: 24pt;
	}

	.elevator {
		font-size: 22pt;
	}
}

/* Extra large device width (large desktop) */
@media screen and (min-width: 1200px) {
	.container {
		width: 1170px;
	}

	#menu-button {
		display: none;
	}
	
	.hero .hero-overlay {
		left: 15%;
		width: 70%;
		font-size: 26pt;
	}

	.elevator {
		font-size: 24pt;
	}
	
	.navbar .nav-link {
		display: inline;
	}
}

/* Extra small device height (landscape phone) */
@media screen and (min-height: 0) {
	.hero .hero-overlay {
		top: 100px;
		bottom: auto;
	}
}

/* Extra small device height (portrait phone, landscape phablet) */
@media screen and (min-height: 576px) {
	.hero .hero-overlay {
		top: 300px;
		bottom: auto;
	}
}

/* Other device heights */
@media screen and (min-height: 768px) {
	.hero .hero-overlay {
		top: auto;
		bottom: 160px;
	}
}
