@font-face {
    font-family: "Open Sans";
    src: url(../fonts/OpenSans-Regular.ttf) format("truetype");
}
@font-face {
    font-family: "Junction";
    src: url(../fonts/Junction-regular.otf) format("opentype");
}
@font-face {
    font-family: "Josefin Slab";
    src: url(../fonts/JosefinSlab-Regular.ttf) format("truetype");
}

/*/////////////////// MOBILE FIRST /////////////////
/////////////////// max-width 480px //////////////*/
body {
	margin: 0;
	background-color: #E6E6E6;
	font-family: "Open Sans";
}

#hamburgerIcon, #crossIcon {
	position: fixed;
	left: 0;
	top: 0;
	color: white;
	padding: 2px 5px;
}

#hamburgerIcon i {
	display: block;
}

#hamburgerIcon {
	background-color: #1ABC9C;
}

#crossIcon {
	display: none;
	background-color: #2F2F2F;
	transition: all 1s ease;
}

#hamburgerMenu {
	display: none;
	position: fixed;
	left: 0;
	top: 48px;
	background-color: #2F2F2F;
}

#hamburgerMenu, #crossIcon {
	width: 40%;
	padding: 2px;
}

#hamburgerMenu ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

#hamburgerMenu a {
	text-decoration: none;
	text-transform: uppercase;
	color: #E6E6E6;
	display: block;
	margin: 0 auto;
	padding: 4%;
	border-bottom: 1px dashed #E6E6E6;
	font-size: 0.8em;
}

#heading p {
	font-size: 0.8em;
	font-style: italic;
}

header {
	background: url("../img/devices.jpeg");
	-webkit-background-size: cover;
	background-size: cover;
	-webkit-background-attachment: fixed;
	background-attachment: fixed;
	width: 100%;
	height: 75vh;
}

h2, h1 {
	font-family: "Junction", sans-serif;
	font-weight: bolder;
}

h2 {
	margin-top: 0;
	padding-top: 15%;
	font-style: italic;
}

h1 {
	text-transform: uppercase;
}

img[src*=nicolas] {
	position: relative;
	top: -110px;
	border: 8px double white;
	border-radius: 50%;
	display: block;
	margin: 0 auto;
}

h3, i, h4, article p, footer p {
	text-align: center;
}

h3 {
	width: 90%;
	margin: 5% auto;
	border-bottom: 1px dashed;
	font-family: "Josefin Slab";
	font-size: 1.5em;
	font-weight: bold;
	text-transform: uppercase;
}

section {
	margin-bottom: 15%;
}

article i { /* in order not to select hamburger menu's <i> */
	width: 75px;
	height: 75px;
	line-height: 75px!important;
	color: #1ABC9C;
	border: 2px solid;
	border-radius: 50%;
}


#about h4 {
	font-family: "Josefin Slab";
	font-size: 1.5em;
	margin: 0;
}

#about p, #contact p {
	padding: 4%;
}

#heading {
	height: inherit;
	text-align: center;
	font-family: "Junction";
	color: white;
}

#skills li {
	width: 70%;
	margin: 0 auto;
}

#career h4 {
	font-size: 1.5em;
	width: 50%;
	margin: 2% auto;
	color: #1ABC9C;
	border: 1px solid #1ABC9C;
}

#career div p:first-child {
	font-weight: bold;
	width: 50%;
	margin: 0 auto;
	border-bottom: 1px solid gray;
}

#career h5 {
	text-align: center;
	color: #1ABC9C;
	font-style: italic;
}

#career p {
	padding: 1% 4%;
}

#career article div p:last-child, #career article:first-child ul {
	margin-bottom: 15%;
}

#career article:first-child {
	margin-bottom: 20%;
}

#career article:first-child ul {
	font-style: italic;
}

#download a {
	text-align: center;
	display: block;
	width: 50%;
	margin: 0 auto;
	padding: 2%;
	border: 3px groove black;
	background-color: #1ABC9C;
	color: white;
	text-decoration: none;
	font-family: "Junction", sans-serif;
}

.dev {
	background-color: rgba(255,255,255,0.4);
	border-radius: 10px;
}

footer p {
	background-color: gray;
	color: white;
	margin-bottom: 0;
	padding: 2%;
}

/*/////////////////// DESKTOP / LARGE VERSION /////////////////
/////////////////////////////////////////////////////////////*/
@media screen and (min-width: 900px) {
	#hamburgerIcon {
		width: 50px;
	}

	#hamburgerIcon:hover {
		background-color: #2F2F2F;
		transition: all 0.5s ease;
	}

	#hamburgerIcon, #crossIcon {
		height: 50px;
		left: 50px;
	}

	#hamburgerMenu, #crossIcon {
		width: 13%;
		padding: 2px 5px;
	}

	#hamburgerMenu {
		left: 50px;
		top: 52px;
	}

	#hamburgerMenu a {
		font-size: 1.2em;
	}

	#hamburgerMenu a:hover {
		color: #1ABC9C;
	}

	h2, h1 {
		font-size: 4em;
	}

	h2 {
		padding: 5%;
	}

	main {
		width: 70%;
		margin: 0 auto;
	}

	section {
		margin-bottom: 10%;
	}

	#about, #skills {
		display: flex;
		justify-content: space-around;
	}

	#about article {
		width: 33%;
	}

	#skills article {
		width: 48%;
		display: inline-block;
	}

	#skills article div {
		margin-bottom: 15%;
	}
	
	#skills li {
		width: 50%;
	}

	#career {
		display: flex;
		justify-content: space-around;
	}

	#career h4 {
		margin-bottom: 10%;
	}

	#career article:first-child {
		margin-bottom: 0;
	}

	#career div p:first-child {
		width: 85%;
	}

	#career article:first-child {
		border-right: 1px solid gray;
	}

	#download a {
		width: 30%;
		font-size: 1.4em;
	}

	#download a:hover {
		color: #1ABC9C;
		background-color: white;
		transition: all 1s ease;
	}
}

/* ////////////////////////// TABLET VERSION ////////////////////////// */
/* //////////////////////////////////////////////////////////////////// */
@media screen and (min-width: 481px) and (max-width: 899px) {
	#hamburgerMenu, #crossIcon {
		width: 140px;
	}

	main {
		width: 85%;
		margin: 0 auto;
	}

	#skills li {
		width: 50%;
		margin: 0 auto;
	}
}