:root {
  --textColor: #black;
  --white: #ffffff;
  --regMargin: 1em;
  --smallPadding: .5em;
}


*{box-sizing: border-box;}

html {
	font-size: 1em;
	background-color:  #e94c50;
}

body {
	background-color: white;
	width: 100%;
    max-width: 1000px;
    margin: auto;
    padding: 0 1em;
}

footer p:first-of-type {
	margin-top: 0;
}

main p {
	font-size: 1.1em;
    line-height: 1.3em;
}

img {
	max-width: 100%;
}

h2 {
	font-size: 1.25;
	text-transform: uppercase;
}

#copyright {
	text-align: center;
}

#menuButton {
	display: none;
}

nav ul {
	text-decoration: none;
    text-transform: uppercase;
    display: flex;
    list-style-type: none;
    margin: 0.5em -0.5em;
	padding: 0;
	flex-wrap: wrap;
	line-height: 1.5em;
}

nav li {
	margin: 0 .5em;
}

nav a {
	text-decoration: none;
	color: var(--textColor);
}


#modalWrapper {
	position: absolute;
	display: none;
	justify-content: center;
	align-items: center;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	-webkit-backdrop-filter: blur(4px);
 	backdrop-filter: blur(4px);
	z-index: 20;
}

h1, h2, h3, h4, nav {
	font-family: 'Baloo 2';
	font-weight: 600;
}

#logo {
	flex: 1;
	margin-right: 1em;
	display: flex;
}

#logo > * {
	flex: 1;
}

#logoIcon {
	width: 5em;
	flex: none;
	height: auto;
}

#logoText {
    line-height: 1.7em;
    text-transform: uppercase;
	margin-left: .75rem;
}

#logoText span {
	display: block;
}

#companyNameLine1 {
	font-size: 1.2em;
	color: #1f648c;
}

#companyNameLine2 {
	color: #e94c50;
}




.heroImage {
	margin: 0 -1em;
	height: 300px;
	position: relative;
}

.heroImage h2 {
	position: absolute;
	bottom: 1rem;
	width: calc(100% - 2em);
	text-align: center;
	color: white;
	margin: 0 1em;
	padding: 0;
	font-size: 3em;
	text-shadow: 5px 3px 5px black;
}

.heroImage img {
	object-fit: cover;
    height: 100%;
    width: 100%;
}

#modal {
	position: relative;
	display: flex;
	background-color: aliceblue;
	padding: 1rem;
	padding-bottom: 0;
	margin: 1rem;
	color: black;
	max-width: calc(100% - 2em);
	max-height: calc(100% - 2rem);
}

#modalData {
	position: relative;
	background-color: aliceblue;
	color: black;
	width: 100%;
	overflow: auto;
	padding-bottom: 1rem;
}

#modalClose {
    position: absolute;
    right: -.5rem;
    top: -.5rem;
    padding: .25rem .5rem;
    background-color: darkred;
    color: white;
    border-radius: .5rem;
    user-select: none;
    cursor: pointer;
	z-index: 2;
}

input:not([type=checkbox]), select, textarea {
	width: 100%;
	font-size: 1em;
    border: none;
    margin-bottom: var(--regMargin);
    padding: var(--smallPadding);
	background: white;
}

#modal select {
	background: white!important;
}

input.inline {
	width: inherit;
}

header {
	display: flex;
	align-items: center;
	padding-top: 0.75em;
	}

footer {
	background-color: #1f648c;
    margin: 1em -1em 0;
    padding: 0 1em 1em;
	color: white;
}

footer a {
	color: white;
}

footer h2, footer h3 {
	font-size: 1.2rem;
    margin: 1em 0 0.25rem;
}

footer h3 {
	font-size: 1rem;
}

#footerMenu {
	display: flex;
	flex-wrap: wrap;
}

#footerMenu > * {
	flex: 1;
	min-width: 250px;
}


.flexBox {
	display: flex;
}

.flexBox > * {
	flex: 1;
}

.noFlex {
	flex: none;
}

.headshot {
	margin-right: 1em;
}

.headshot img {
	border-radius: 30px;
}

.bioText h3 {
	margin: 0;
	font-size: 1.5em;
}

/* For Ipads */
@media only screen and (max-width: 768px) {
  
	html {
	font-size: 1.2em;
	}
	
	.heroImage h2 {
	font-size: 2em;
	}
	
}


/* For Phones */
@media only screen and (max-width: 480px) {
 
	header {
		align-items: start;
	}

	header > * {
		flex: 1;
	}
	
	header nav {
	display: none;
    position: absolute;
    margin-top: 3.6em;
    background-color: #e94c50;
    color: white;
    padding: 0.25em 0.75em;
    left: 0;
	width: 100%;
	z-index: 2000;
	box-shadow: 0px 10px 20px black;
	}
	
	header nav ul {
		font-size: 1.2em;
		display: inherit;
		text-align: center;
	}
		
	header nav ul li {
		margin: .5em;
	}
	
	header #menuButton {
		cursor: pointer;
		font-size: 2.5em;
		display: inline-block;
	}
	
	h1 {
		font-size: 1.4em;
	}
	#logoText {
		line-height: 1.3em;
	}
	
	#logoIcon {
		width: 4em;
		margin: -0.5em;
	}
	
	.heroImage {
		border-top: solid .5em #e94c50;
		border-bottom: solid .5em #e94c50;
	}
	
	.heroImage h2 {
	font-size: 1.5em;
	}
		
	.flexBox {
		display: block;
	}
	
	.headshot {
	margin-right: 0;
	text-align: center;
	}
	
	.bioText h3 {
	margin-top: 1em;
	font-size: 1.25em;
	}
	
}

