/* Font imports */
@import url('https://fonts.googleapis.com/css?family=Merienda|Catamaran:900|Acme');

/* Styles for the body */
body{
	width: 100%;
	height: auto;
	padding-left: 15px;
	padding-right: 15px;
	z-index: 0;
	text-align: center;
	overflow-x: hidden;
	background-color: #3A789A;
	font-family: Merienda, sans-serif;
	font-size: 18px;
}

/* Styles for all 'h1' tags on the page */
h1{
	font-size: 45px;
}

/* This makes assigned elements aligned vertically */
.vertical-align{
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

/* This creates space between the rows in 'container2' */
.spacer{
	margin: 15px 0 0 0;
}

/* This makes the required asterisk sign red */
.asterisk{
	color: red;
}

/* Styles for the 'topcontainer' div */
.topcontainer{
	background-color: #86DEAF;
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 2px solid #0337FF;
	border-right: 2px solid #0337FF;
	border-left: 2px solid #0337FF;
	border-radius: 0 0 25px 25px;
	font-family: Shackleton, sans-serif;
}

/* Styles for the 'logo' div */
.logo{
	text-align: left;
	font-size: 65px;
}

/* Styles for the images within the 'logo' div */
.logo img{
	width: 250px;
}

/* Styles for the 'toptextm' div - this is for 'Admiral Pest Control' in 'topcontainer' */
.toptextm{
	justify-content: center;
	font-size: 65px;
	color: #1E5A3B;
}

/* Styles for the 'toptextr' div - this is for 'Call Us Free...' in 'topcontainer' */
.toptextr{
	text-align: right;	
	font-size: 65px;
	color: #1E5A3B;
}

/* Styles for the navigation bar below 'topcontainer' */
.navbar{
	background-color: white;
	border-radius: 25px;
	font-size: 24px;
	margin: 0 0 15px;
	font-family: Acme, sans-serif;
}

.navbar a{
	text-align: center;
}

#navbar a{	
	color: #86BAD6;
}

#navbar a:hover{
	color: #3A789A;
	text-shadow: 0 0 0 transparent;
}

#navbar .active a{
	color: #244C61;
}

#navbar .active a:hover{
	color: #244C61;
}

/* This makes the navigation button centered on mobile devices */
button{	
	margin: 0 auto !important;
}

/* Sets the background image for 'container1' */
.bg{
	background: url(Ant_Infestation.jpg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;	
	border-radius: 50px;
}

/* Styles for 'container1' which affects the text in fornt of 'bg' */
.container1{
	margin: 15px 0 0;
	padding: 50px 15px;
	color: white;
	text-shadow: 0px 0px 10px black;
}

.container1 h1{
	color: white;
}

.container1 li{
	border-left: 1px solid #0337FF;
	border-right: 1px solid #0337FF;
	background-color: rgba(0,0,0,0.25);
}

/* Styles for 'container2' which holds the main content on the page */
.container2{
	margin: 15px 0 0;
	padding: 15px 15px; 
	border-radius: 50px;
	border: 2px solid #0337FF;
	background-color: #AEE8C8;
}

/* This adds spacing between the images and the paragraphs within 'container2' */
#imgmargin{
	margin: 15px 0;
}

/* This sets styling for the left, right and bottom paragraphs within 'container2' */
#leftp, #rightp, #bottomp{
	margin: 0 50px;
	text-align: justify;
	text-align-last: center;
}

/* Styles for 'container3' which holds the town links */
.container3{
	margin: 15px 0 0;
	padding: 15px 50px; 
	border-radius: 50px;
	border: 2px solid #0337FF;
	background-color: #AEE8C8;
}

.container3 > div > div > div{
	text-align: center;
}

.container3 a{
	margin: 15px 0;
	text-decoration: none;
	text-shadow: 0 0 0 black;
	color: #3A789A;
}

.container3 a:hover{
	color: #3BAB6F;
	text-decoration: none;
}

/* Styles for 'formcontainer' which holds the contact form */
.formcontainer{
	margin: 15px 0 0;
	padding: 15px 15px; 
	border-radius: 50px;
	border: 2px solid #0337FF;
	background-color: #AEE8C8;
}

.formcontainer textarea{
	resize: none;
}

/* Styles for 'footer' which is located at the bottom of the page */
.footer{
	margin: 15px 0 0;
	padding: 15px 15px;
	border-radius: 50px;
	border: 2px solid #0337FF;
	background-color: #AEE8C8;
	font-size: 14px;
}

/* This makes all text within 'footer' centered */
.footer > div > div{
	margin: 0 auto;
}

/* Styles for device displays that are more than 575px wide, AND less than 630px tall (to stop 'topcontainer' scrolling when it gets too big) */
@media only screen and (min-width: 575px) and (max-height: 630px){
	.topcontainer{
		position: relative; 
	}
	
	.logo, .toptextm, .toptextr{
		font-size: 35px;
	}
	
	.logo img{
		width: 150px;
	}
}

/* Styles for device displays that are less than 767px ('small') wide */
@media only screen and (max-width: 767px){
	body{
		padding-left: 5px;
		padding-right: 5px;
	}
	
	.vertical-align{
		display: inline;
		align-items: stretch;
		flex-wrap: nowrap;
	}
	
	.spacer{
		margin: -54px 0 0 0;
	}
	
	.topcontainer{
		position: relative;
	}
	
	.logo{
		text-align: center;
		font-size: 25px;
	}
	
	.toptextm{
		text-align: center;
		font-size: 25px;
	}

	.toptextr{
		text-align: center;
		font-size: 25px;
	}
	
	.navbar li{
		margin: 10px 0 0 0;
	}
	
	.container1{
		padding: 15px 0;
	}
	
	.container1 li{
		padding: 15px 0 0 0;
	}
	
	.container2 p{
		text-align: center;
	}
	
	#leftp, #rightp, #bottomp{
		margin: 0 0;
	}
	
	#leftp{
		padding: 0 0 15px 0;
	}
	
	#rightp{
		padding: 15px 0 0 0;
	}
	
	.container3 h1{		
		text-align: center;
	}
	
	.footer{
		font-size: 10px;
	}	
}
