/* CSS Reset */
body, header, nav, main, footer, img, h1, ul, section, aside, figure, figcaption {
	margin: 0;
	padding: 0;
	border: 0;
}

h1, h2, h3 {
	text-align: center;
}

/* Style rule for images */
img {
	max-width: 100%;
	display: block;
}

/* Style rule for box sizing applies to all elements */
* {
	box-sizing: border-box;
}

/* Style rules for mobile viewport */
.mobile {
	display: block;
}

.tab-desk {
	display: none;
}

aside {
	text-align: center;
	font-size: 1.5em;
	font-weight: bold;
	color: #364f84;
	text-shadow: 3px 3px 10px #809fcb;
}

main aside p {
	text-align: center;
}

figure {
	position: relative;
	max-width: 275px;
	margin: 2% auto;
	border: 8px solid #365384;
}

figure:hover {
		opacity: 0.5;
		box-shadow: 8px 8px 10px #808080;
	}

figcaption {
	position: absolute;
	bottom: 0;
	background: rgba(51, 91, 251, 0.7);
	color: #fff;
	width: 100%;
	padding: 5% 0;
	text-align: center;
	font-family: Verdana, Arial, sans-serif;
	font-size: 1.5em;
	font-weight: bold;
}

/* header */
header {
	background-color: #4d80ed;
	height: 50px;
	color: #fff;
	width: 100%;
	text-align: center;
	font-family: 'Caveat', cursive;
	font-family: 'Courgette', cursive;
	font-size: 1.25em;
	font-weight: bold;
}

header img {
	margin: 0 auto;
}

/* Nav Bar */
nav {
	background-color: #1d1ad3;
	text-align: center;
	font-size: 1.5em;
	color: #2522d1;
}

nav ul {
	font-family: 'Roboto', sans-serif;
}

nav ul {
	list-style-type: none;
	text-align: center;
}

nav li {
	display: block;
	border-top: 1px solid #e5e9fc;
}

nav li a {
	display: block;
	color: #fff;
	text-align: center;
	padding: 0.5em 1em;
	text-decoration: none;
	font-size: 1em;
}

/* Style rules for main content */
#home h2 {
	font-weight: bold;
	font-style: italic;
	text-align: center;
}

#home h3 {
    font-weight: 500;
    text-align: center;
}

#home h4 {
    font-size: 25px;
    font-weight: 400;
    text-align: left;
}

#home p {
    margin-left: 10px;
    font-size: 20px;
}

main {
	padding: 2%;
	background-color: #e5ecfc;
	overflow: auto;
	font-family: 'Roboto', sans-serif;
}

main p {
	font-size: 1.25em;
	text-align: justify;
}

.main {
    margin-left: 11%;
    margin-right: 11%;
}

.main img {
    margin-top: 10px;
    margin-right: 5%;
}

.main h4 {
    
    font-size: 25px;
    font-weight: 400;
}

.main p {
    margin-left: 3%;   
    font-size: 20px;
}

.action {
	font-size: 1.25em;
	color: #364d84;
	font-weight: bold;
}

#features h2 {
	text-align: justify;
}

/* CTA */

.cta {
    padding: 0.25em;
    background: rgba(51, 91, 251, 0.7);
    text-align: center;
	line-height: 50px;
	height: 30px;
}

.cta a {
    padding: 0 .5em;
    font-size: 1m;
    font-weight: 900;
    color: #FFFCED;
    text-decoration: none;
    border: 5px solid #FFFCED;
}

@media screen and (min-width: 40em) {
    .cta a {
        font-size: 1.5em;
        border-width: 5px;
    }
}

.cta a:focus,
.cta a:hover {
    background: #FFFCED;
    color: rgba(51, 91, 251, 0.7);
}

#info{
	clear: left;
	background-color: #c0dcf7;
	padding: 1% 2%;
}

#info ul {
	margin-left: 10%;
}

#features h3 {
	text-align: left;
	font-weight: 200;
}

#features p {
	margin-left: 3%; 
}

.round {
	border-radius: 8px;
}

#contact h2 {
	text-align: center;
}

#contact .email-link {
	color: #455ea8;
	text-decoration: none;
	font-weight: bold;
}

.tel-link {
	background-color: #365184;
	padding: 2%;
	margin: 0 auto;
	width: 80%;
	text-align: center;
	border-radius: 5px;
}

.tel-link a {
	color: #fff;
	text-decoration: none;
	font-size: 1.5em;
	display: block;
}

/* Style rules for form elements */
fieldset, input {
	margin-bottom: 2%;
}

fieldset {
	font-weight: bold;
	font-size: 1.25em;
}

label {
	display: block;
	padding-top: 3%;
}

#submit {
	margin: 0 auto;
	display: block;
	padding: 3%;
	background-color: #b7c6e1;
	font-size: 1em;
}

/* Style rules for footer content */
footer {
	color: #2522d1;
	background-color: #1d1ad3;
	font-size: .9em;
	text-align: center;
	color: #fff;
	padding: .125em;
}

footer a {
	color: #9cb9ef;
	font-size: 1em;
	text-decoration: none;
}

/* Media Query for Tablet Viewport */
@media screen and (min-width: 550px), print {
	
	/* Tablet Viewport: Show tab-desk class, hide mobile class */
	.tab-desk {
		display: block;
	}
	
	.mobile {
		display: none;
	}
	
	/* Tablet Viewport: Style rule for header content */
	span.tab-desk {
		display: inline;
	}
	
	/* Tablet Viewport: Style rules for nav area */
	nav li {
		border-top: none;
		display: inline-block;
		font-size: 1.5em;
		border-right: 1px solid #e5e9fc;
	}
	
	nav li:last-child {
		border-right: none;
	}
	
	nav li a {
		padding: 0.25em 0.5em;
	}
	
	.grid {
		display: grid;
		grid-template-columns: auto auto;
		grid-gap: 20px;
	} 
	
	aside {
		grid-column: 1 / span 2;
	}

	/* Tablet Viewport for Header */
	header {
		height: 120px;
		font-size: 3em;
	}
	
	
	/* Table Viewport: Style rule for form element */
	form {
		width: 70%; 
		margin: 0 auto;
	}

	/* CTA */
	.cta {
		padding: 0em;
		line-height: 0px;
		height: 40px;
	}
	
}

/* Media Query for Desktop Viewport */
@media screen and (min-width: 769px), print {

	/* Desktop Viewport for Header */
	header {
		height: 200px;
		font-size: 4.5em;
	}
	
	/* Desktop Viewport: Style rules for main content */
	#info ul {
		margin-left: 5%;
	}
	
	main h3 {
		font-size: 1.5em;
	}
	
	
	.grid {
		grid-template-columns: auto auto auto auto;
	}

	
	figcaption {
		font-size: 1em;
	}
	
	aside {
		grid-column: 1 / span 4;
	}
	
	/* Desktop Viewport: Style rules for table */
	table {
		width: 70%
	}
	
	/* Desktop Viewport: Style rules for form elements */
	.form-grid {
		display: grid;
		grid-template-columns: auto auto;
		grid-gap: 20px;
		grid-column: 1 / span 2;
	}
	
	.btn {
		grid-column: 1/ span 2;
	}
		
}

/* Media Query for Print */
@media print {
	
	body {
		background-color: #fff;
		color: #000;
	}
	
}

