* {
	margin: 0
}

html, body {
	height: 100%;
} 

body {
	background-image: url(../images/footer_lodyas.png);
	background-color: #ffffff; 
	margin: 0px;
	padding: 0px;
	font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
	font-size: 18px;
	color: #777777;
}

a {
	color: #9999A5;
	text-decoration: none;
}

h1, h2 {
	font-family: 'Georgia', Times, Times New Roman, serif;
	font-weight: bold;
	font-size: 30px;
	color: #4aaaa5;
}

h3 {
	font-family: 'Georgia', Times, Times New Roman, serif;
	font-weight: bold;
	font-size: 22px;
	color: #4aaaa5;
	margin: 5px;
}

header {
	background: #ffffff;
	border-top: 3px solid #cccccc;
	border-bottom: 3px solid #cccccc;
}

#pageTop {
	max-width: 960px;
	height: 80px;
	margin: 20px auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

#pageTopText {
	background: #4aaaa5;
	width: 250px;
	height: 80px;
	display: flex;
	align-items: center;
}

#myName {
	margin: auto;
	color: #ffffff;
	text-decoration: none;
} 

nav {
	height: 20px;
	display: flex;
}

.navLinks {
	background: #ffffff;
	height: 100%;
	padding: 0px 15px;
}

.navLinks:hover {
	background: #8cc0be;
}

#mainBox {
	max-width: 960px;
	margin: 38px auto;
	display: flex;
	justify-content: space-between;
	box-sizing: border-box;
}

section, aside {
	background: #ffffff;
	border: 1px solid #dddddd;
	width: 588px;
	padding: 40px;
}

section p {
	line-height: 190%;
}

#grayLine1 {
	background: #dddddd;
	height: 3px;
	margin: 30px 0 20px 0;
}

aside {
	width: 210px;
	height: 130px;
	padding: 30px 30px 35px 30px;
}

aside img {
	width: 60px;
	height: 60px;
	transition: all 0.5s;
}

aside img:hover {
	opacity: 0.7;
}

#grayLine2 {
	background: #dddddd;
	height: 3px;
	margin: 20px 0 22px 0;
}

#ConnxLinks {
	display:flex;
    justify-content: space-between;
}

footer {
	position: fixed;
	left: 0;
	bottom: 0;
	height: 60px;
	width: 100%;
	background: #666666;
	border-top: 9px solid #4aaaa5;
	color: white;
	text-align: center;
 }

#footerText {
	font-size: 12px;
	margin: 45px;
	color: #cccccc;
}

#myPhoto {
	margin: 10px 35px 10px 0px;
	float: left;
	border-style: solid;
	border-width: 5px;
	border-color: #666666;
}

/* portfolio page */

#portfolioPhotos {
	width: 600px;
	margin-top: 40px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}

.portfolioPhoto {
	height: 200px;
	width: 200px;
	margin-bottom: 65px;
	position: relative;
}

.portfolioPhotoText {
	background: #4aaaa5;
	width: 100%;
	height: 40px;
	margin-top: 200px;
	padding-top: 20px;
	position: absolute;
	font-family: 'Georgia', Times, Times New Roman, serif;
	font-size: 18px;
	font-weight: bold;
	color: #ffffff;
	text-align: center;
	transition: all 0.5s;
}

.portfolioPhotoText:hover {
	background: #275956;
}

/* contact page */
form {
	margin-top: 25px;
}

input, textarea {
	border: 1px solid #4aaaa5;
	width: 96%;
	margin-top: 10px;
	padding: 10px;
	font-size: 16px;
	color: #a9a9a9;
	resize: vertical;
}

input[type=submit] {
	background: #4aaaa5;
	outline: none;
	width: auto;
	margin-top: 15px;
	padding: 10px 30px;
	font-family: 'Georgia', Times, Times New Roman, serif;
	font-size: 16px;
	color: white;
	transition: all 0.5s;
}

input[type=submit]:hover {
	background: #275956;
}

textarea {
	height: 175px;
}

/* media queries */

@media screen and (max-width: 980px) {
	.container {
	 	max-width: 940px;
	}
  
  }
  @media screen and (max-width: 768px) {
	.container {
	  	max-width: 750px;
	}
	aside {
		height: 260px;
	}
	section {
		width: 600px;
	}
	#portfolioPhotos {
		width: 400px;
  	}
  }

  @media screen and (max-width: 640px) {
	.container {
		max-width: 600px;
	}
	aside {
		height: 274px;
	}
	.navLinks {
		margin-top: -15px;
		padding: 0px 15px 15px;
	}
	nav {
		flex-direction: column;
	}
	footer {
		height: 30px;
	}
	#footerText {
		margin: 15px;
	}
	section {
		width: 240px;
	}
	#portfolioPhotos {
		width: 50px;
		margin-left: -21px;
		margin-top: 20px;
	}
  }