@font-face {
  font-family: Open Sans;

  src: local('Open Sans'), local('OpenSans'),
  url('/fonts/OpenSans-Regular.woff2') format('woff2'),
  url('/fonts/OpenSans-Regular.woff') format('woff'),
  url('/fonts/OpenSans-Regular.ttf') format('truetype');

  font-weight: 400;
  font-style: normal;
}

* {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

html {
	padding-bottom: 10px;
}

input {
	-webkit-appearance: none;
	-webkit-border-radius:0px;
	-moz-appearance: none;
	appearance: none;
	border-radius: 0;
}

body {
	font-family: 'Open Sans', Helvetica, sans-serif;
	font-weight: 400;
	font-style: normal;
	color: #FFFFFF;
	line-height: 1.6em;
	background-color: #181818;
	font-size: 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 100vh;
}

a {
	text-decoration: none;
	color: #FFFFFF;
}

a:hover{
	color: #AAAAAA;
}

ul {
	list-style: none;
}

h1, h2, h4{
	line-height: 1.2;
	margin: 10px 0;
}

p {
	margin: 10px 0;
}

img {
	width: 100%;
}

#hamburger-icon {
	display: none;
}

#hamburger-icon svg {
	cursor: pointer;
	display: block;
	width: 32px;
    -webkit-transition: stroke .5s ease-in-out;
  	-moz-transition: stroke .5s ease-in-out;
   	-ms-transition: stroke .5s ease-in-out;
   	-o-transition: stroke .55s ease-in-out;
   	transition: stroke .5s ease-in-out;
}

header {
	width: 100%;
}

.navbar {
	background-color: #212121;
}

.navbar ul {
	display: flex;
	align-items: center;
}

.navbar .flex{
	justify-content: space-between;
	flex-direction: row;
}

#navbar a {
	font-size: 18px;
	padding: 5px;
	margin: 0 2.5px;
}

#logo a:hover {
	color: #FFFFFF;
}

.main .flex {
	padding: 0 80px;
}

.name {
	width: 100%;
	margin-top: 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.name img {
	border-radius: 50%;
	width: 96px;
}

.name-heading h1 {
	margin-bottom: 0px;
}

.name-heading h4 {
	margin-top: 0px;
	color: #AAAAAA;
}

.projects .container {
	padding: 0 80px;
}

.projects .flex {
	width: 100%;
	flex-direction: row;
	justify-content: space-evenly;
	flex-wrap: wrap;
	align-items: center;
}

.projects h1 {
	text-align: center;
}

.projects hr {
	width: 100%;
	height: 1px;
	background: #3D3D3D;
	border: 0;
}

.card {
	min-width: 275px;
	min-height: 230px;
	width: 45%;
	background-color: #212121;
	border-radius: 8px;
	margin: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.card-header {
	text-align: center;
	border-bottom: 1px solid #3D3D3D;
}

.card-content {
	padding: 0 10px;
}

.card-footer {
	display: flex;
	justify-content: space-evenly;
	align-items: center;
}

.card-button {
	width: 50%;
	color: #FFFFFF;
	background-color: #212121;
	border: none;
	text-align: center;
	font-size: 16px;
	padding: 10px;
	border-top: 1px solid #3D3D3D;
}

.card-button:hover{
	cursor: pointer;
	background-color: #3d3d3d;
}

.card-button:active{
	cursor: pointer;
	background-color: #181818;
}

.contact .container {
	padding: 0 80px;
}

.contact hr {
	width: 100%;
	height: 1px;
	background: #3D3D3D;
	border: 0;
}

.contact ul {
	margin-top: 10px;
}

.nav-pages {
	margin-top: 30px;
}

.nav-pages .container {
	padding: 0 80px;
}

.nav-pages ul {
	display: flex;
}

.nav-pages li {
	margin-right: 5px;
}

.main-side{
	margin: 0 auto;
}

.main-side .flex {
	padding: 0 80px;
	align-items: start;
}

.main-sidebar {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.main-sidebar ul {
	margin-left: 2em;
	min-width: fit-content;
}

.sidebar {
	min-width: fit-content;
	margin-left: 1em;
}

.sidebar small, #skills {
	margin: 0;
}

.sidebar h3 {
	margin: 5px 0;
}

.ul-bulletpoint {
	margin-left: 2em;
	list-style-type: disc;
	list-style-position: outside;
}

.no-margin {
	margin-left: 0 !important;
}

main {
	min-height: 100vh;
}

.container {
	width: 45%;
	min-width: 768px;
	max-width: 850px;
	margin: 0 auto;
	overflow: auto;
	padding: 0 20px;
}

.flex {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100%;
}

.error-main .flex {
	text-align: center;
}

.footer{
	display: flex;
	bottom: 0;
	width: 100%;
	height: 60px;
	text-align: center;
	justify-content:center;
   	align-items:center;
   	background-color: #181818;
}

/* Tablets and under */
@media only screen and (max-width: 768px) {

	.flex {
		width: 80%;
	}
	
	.main .flex {
		padding: 0 20px;
	}
	
	.projects .container {
		padding: 0 20px;
	}
	
	.contact .container {
		padding: 0 20px;
	}
	
	.container {
		width: 90%;
		min-width: 480px;
		padding: 0 10px;
	}
	
	.projects .flex {
		flex-direction: row;
		justify-content: space-evenly;
		flex-wrap: wrap;
	}
	
	.card {
		width: 45%;
	}
	
	.main-sidebar {
		flex-direction: column;
		align-items: start;
	}
	
	.sidebar {
		margin-left: 0;
		min-width: 0;
	}
	
	.sidebar #skills {
		margin-top: 10px;
	}
	
	.sidebar .ul-bulletpoint{
		margin-left: 2em;
	}
	
	.main-sidebar ul {
		margin-left: 0;
		min-width: 0;
	}
	
	.nav-pages .container {
		padding: 0 20px;
	}
	
	.main-side .flex {
		padding: 0 20px;
	}
	
}

/* Mobile */
@media only screen and (max-width: 500px) {

	.flex {
		width: 95%;
	}

	.main .flex {
		padding: 0 20px;
	}

	.navbar ul {
		flex-direction: column;
		background-color: #212121;
		max-height: 0;
		overflow: hidden;
	    -webkit-transition: max-height .5s ease-in-out;
  	  	-moz-transition: max-height .5s ease-in-out;
    	-ms-transition: max-height .5s ease-in-out;
    	-o-transition: max-height .55s ease-in-out;
    	transition: max-height .5s ease-in-out;
	}

	.navbar li {
		display:block;
    	float:none;
    	width:auto;
		padding-top: 5px;
		padding-bottom: 5px;
	}

	#navbar {
		position: absolute;
		top: 100%;
    	right: 0;
    	left: 0;
	}
	
	.open {
		stroke: #3D3D3D;
	}
	
	.open ul {
		max-height: 200px;
	}
	
	.navbar {
		position: relative;
	}

	#hamburger-icon {
		display: block;
	}
	
	.navbar h1 {
	 	margin: 5px 0;
	}
	
	.card {
		max-width: 275px;
		width: 95%;
	}
	
	.container {
		width: 95%;
		min-width: 320px;
		padding: 0 10px;
	}
}




