@charset "UTF-8";

/* GLOBAL */

@font-face {
	font-family: 'B-Myriad';
	font-style: normal;
	font-weight: 100;
	src: url('../fonts/bMyriad/bMyriad-ultralight.woff') format('woff');
}

@font-face {
	font-family: 'B-Myriad';
	font-style: normal;
	font-weight: 200;
	src: url('../fonts/bMyriad/bMyriad-thin.woff') format('woff');
}

@font-face {
	font-family: 'B-Myriad';
	font-style: normal;
	font-weight: 600;
	src: url('../fonts/bMyriad/bMyriad-semibold.woff') format('woff');
}

@font-face {
	font-family: 'B-Icons';
	font-style: normal;
	font-weight: 200;
	src: url('../fonts/bIcons/bIcons.woff') format('woff');
}

html.overlaid {
	overflow: hidden;
}

body {
	margin: 0;
	min-width: 400px;
	background-color: #F3F2EE;
	font: 200 19px/1.6 'B-Myriad', sans-serif;
	color: #333;
	-moz-osx-font-smoothing: grayscale;
}

p {
	margin: 0;
	text-align: justify;
}

a {
	color: #08C;
	text-decoration: none;
	transition: color 0.5s;
}

a:hover, a:active {
	color: #BDB099;
}

.fa {
	display: inline-block;
	position: relative;
	font: normal normal normal 14px/1 'B-Icons';
	font-size: inherit;
	text-rendering: auto;
	-moz-osx-font-smoothing: grayscale;
	pointer-events: none;
}


/* HEADER */

body > header {
	position: fixed;
	top: 0px;
	z-index: 10;
	width: 100%;
	background-color: rgba(255,255,255,0.95);
	font-size: 0;
}

body > header::after {
	display: block;
	position: relative;
	top:1px;
	width: 100%;
	height: 1px;
	content: "";
	background-color: rgba(0,0,0,0.1);
}

#header-container {
	padding: 0 20px;
}

#title {
	display: inline-block;
	margin: 0;
	font: 600 24px/54px 'B-Myriad', sans-serif;
	letter-spacing: 0.022em;
}

#title a, #menu-link {
	color: #000;
	opacity: 0.7;
}

#title a:hover, #menu-link:hover {
	opacity: 1;
}

#subtitle {
	display: inline-block;
	margin: 0 0 0 12px;
	font: 200 22px 'B-Myriad', sans-serif;
	color: #555;
}

@media (max-width:840px) {
	#subtitle {
		display: none;
	}
}

#menu-link {
	float: right;
	position: relative;
	width: 55px;
	padding-right: 30px;
	font: 200 22px/54px 'B-Myriad', sans-serif;
	text-align: right;
}

.menu-icon, .close-icon {
	position: absolute;
	top: 17px;
	right: 0px;
	width: 20px;
	height: 20px;
	background-size: 20px 20px;
	transition: transform 0.3s;
}

.menu-icon {
	background-image: url("../images/nav-menu.svg");
	opacity: 1;
}

.menu-icon.menu-open {
	opacity: 0;
	transform: rotate(45deg) scale(1.5);
}

.close-icon {
	background-image: url("../images/nav-close.svg");
	opacity: 0;
	transform: rotate(-45deg) scale(1.5);
}

.close-icon.menu-open {
	opacity: 1;
	transform: rotate(0deg) scale(1);
}

#menu {
	overflow: hidden;
	width: 100%;
	height: auto;
	max-height: 211px;
	transition: max-height 0.25s;
}

#menu.hidden {
	max-height: 0px;
}

#menu ul {
	padding: 20px 0;
	text-align: center;
}

#menu li {
	display: inline-block;
	margin: 0 22px;
	width: 200px;
	font: 200 22px 'B-Myriad', sans-serif;
}

#menu li img {
	width: 200px;
	transition: opacity 0.5s;
}

#menu li:hover img {
	opacity: 0.5;
}

@media (max-width:1032px) {
	#menu {
		max-height: 190px;
	}
	#menu li {
		margin: 0 20px;
		width: 170px;
	}
	#menu li img {
		width: 170px;
	}
}

@media (max-width:896px) {
	#menu {
		max-height: 190px;
	}
	#menu li {
		margin: 0 18px;
		width: 140px;
	}
	#menu li img {
		width: 140px;
	}
}

@media (max-width:760px) {
	#menu {
		max-height: 169px;
	}
	#menu li {
		margin: 0 16px;
		width: 110px;
		font-size: 20px;
	}
	#menu li img {
		width: 110px;
	}
}

@media (max-width:624px) {
	#menu {
		max-height: 376px;
	}
	#menu li {
		margin: 0 22px;
		width: 200px;
	}
	#menu li img {
		width: 200px;
	}
}

@media (max-width:544px) {
	#menu {
		max-height: 334px;
	}
	#menu li {
		margin: 0 20px;
		width: 170px;
	}
	#menu li img {
		width: 170px;
	}
}

@media (max-width:476px) {
	#menu {
		max-height: 290px;
	}
	#menu li {
		margin: 0 18px;
		width: 140px;
	}
	#menu li img {
		width: 140px;
	}
}

/* CONTENT */

/* Home page */

#home-container {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-size: cover;
	perspective: 1000px;
}

#home-container::before {
	content: '';
	display: block;
	height:100%;
	background-size: cover;
	background-image: -moz-linear-gradient(55deg, rgba(255, 165, 150, .5), rgba(0, 228, 255, .35));
	background-image: linear-gradient(55deg, rgba(255, 165, 150, .5), rgba(0, 228, 255, .35));
	transition: background-color 1.25s ease-out;
}

#home-container.is-loading::before {
	background-color: rgba(255, 255, 255, 1);
}

#business-card {
	position: fixed;
	min-width: 404px;
	top: 50%;
	left: 50%;
	padding: 50px;
	background-color: rgba(255,255,255,.95);
	border-radius: 4px;
	box-shadow: 0px 0px 2px 0px #8f8f8f;
	transform-origin: 50% 53%;
	transform: translate(-50%, -53%) rotateX(0deg);
	transition: opacity 0.75s ease, transform 0.75s ease;
}

#home-container.is-loading #business-card  {
	opacity: 0;
	transform: translate(-50%, -50%) rotateX(15deg);
}

.avatar  {
	display: block;
	position: relative;
	margin-bottom:40px;
}

.avatar img {
	display: block;
	width: 360px;
	height: 360px;
	margin: 0 auto;
	border-radius: 100%;
	box-shadow: 0 0 2px 1px rgba(180,180,180,0.4);
}

.avatar::before {
	content: '';
	display: block;
	position: absolute;
	top: 50%;
	left: -50px;
	width: calc(100% + 100px);
	height: 1px;
	z-index: -1;
	background: rgba(180,180,180,0.4);
}

.title {
	font: 600 24px 'B-Myriad', sans-serif;
	letter-spacing: 0.022em;
	text-align: center;
}

.subtitle {
	font: 200 22px 'B-Myriad', sans-serif;
	color: #555;
	text-align: center;
}

.title a {
	color: #000;
	opacity: 0.7;
}

#business-card ul a {
	display: block;
	color: #555 !important;
	width: 65px;
	height: 65px;
	margin: 15px;
	font-size: 28px;
	line-height: 65px;
	border-radius: 100%;
	border: 1px solid rgba(170,170,170,1);
	transition: color 0.5s;
}

#business-card li a:hover {
	border: 1px solid rgba(85,174,219,1);
	color: #08C !important;
}

.title a:hover {
	opacity: 1;
}

#business-card ul {
	padding: 0;
	margin: 0;
	text-align: center;

}

#business-card li {
	display: inline-block;
}

#business-card ul span {
	display: none;
}

#description {
	display: none;
}

.fa-mypath::before {
	content: "\f001";
	top: 20px;
}

.fa-gallery::before {
	content: "\f002";
}

.fa-map::before {
	content: "\f003";
}

.fa-contactme::before {
	content: "\f004";
}

@media (max-width:550px) {
	.avatar img {
		width: 300px;
		height: 300px;
	}

	.title {
		font: 600 20px 'B-Myriad', sans-serif;
}

	.subtitle {
		font: 200 16px 'B-Myriad', sans-serif;
	}

	#business-card ul a {
		width: 52px;
		height: 52px;
		margin: 10px;
		font-size: 23px;
		line-height: 52px;
	}

	#business-card {
		min-width: 334px;
	}
}

@media (max-height:650px) {
	.avatar img {
		width: 200px;
		height: 200px;
	}
}

@media (max-height:560px) {
	.avatar img {
		display: none;
	}

	.avatar::before {
		display: none;
	}

	#business-card {
		padding-top: 15px;
	}
}

/* My path page */

#mypath-container {
	margin: 96px auto;
	max-width: 1000px;
	padding: 0 40px;
}

.block {
	padding: 500px 0 30px;
	margin-bottom: 40px;
}

.block > div:first-of-type {
	background-color: #FFF;
	padding: 40px 40px 25px;
	margin: -89px 30px 0px;
}

.education-block {
	background: url(../images/covers/education.jpg) #FBFBFB no-repeat center top;
}

.work-block {
	background: url(../images/covers/work.jpg) #FBFBFB no-repeat center top;
}

.skills-block {
	background: url(../images/covers/skills.jpg) #FBFBFB no-repeat center top;
}

.hobbies-block {
	background: url(../images/covers/hobbies.jpg) #FBFBFB no-repeat center top;
}

.block-title {
	margin: 0 0 25px;
	font: 100 60px/1 'B-Myriad', sans-serif;
	text-align: center;
}

.entry-date, .entry-title {
	display: inline-block;
	width: 18%;
	padding-right: 1.5%;
	color: #BDB099;
	vertical-align: top;
	text-align: right;
}

.entry-date::after, .entry-title::after {
	font-family: "B-Icons";
	content: "\f005";
	padding-left: 6px;
	line-height: 12px;
}

.entry-desc, .entry-sublist {
	display: inline-block;
	width: 78%;
	padding: 0  0 15px 1.5%;
}

.entry-sublist, .entry-details {
	color: #9C9A97;
}

.entry-sublist {
	padding: 0 0 0 25% !important;
	margin: -15px 0 15px;
	list-style: none;
}

@media (max-width:760px) {
	.block-title {
		font: 100 35px/1 'B-Myriad', sans-serif;
	}

	.block {
		font: 200 14px/1.6 'B-Myriad', sans-serif;
	}
}

@media (min-width:760px) and (max-width:835px) {
	.block-title {
		font: 100 40px/1 'B-Myriad', sans-serif;
	}

	.block {
		font: 200 16px/1.6 'B-Myriad', sans-serif;
	}
}

@media (min-width:835px) and (max-width:940px) {
	.block-title {
		font: 100 50px/1 'B-Myriad', sans-serif;
	}

	.block {
		font: 200 18px/1.6 'B-Myriad', sans-serif;
	}
}

/* Gallery page */

#gallery-container {
	position: relative;
	margin: 57px 1px 57px;
	font-size: 0;
}

#page-overlay {
	display: block;
	position: fixed;
	top: 0px;
	right: 0px;
	bottom: 0px;
	left: 0px;
	z-index: 20;
	background-color: rgba(0,0,0,0.85);
	transition: background-color 0.25s;
}

#page-overlay.hidden {
	z-index: 0;
	background-color: rgba(0,0,0,0.0);
}

.photo-container::before, #closing-tiles div::before {
	content: "";
	float: left;
	padding-top: 100%;
}

.photo-container, #closing-tiles div {
	display: inline-block;
	position: relative;
	margin: 1px;
	overflow: hidden;
}

#closing-tiles {
	position: absolute;
	bottom: 0px;
	z-index: -1;
	width: 100%;
	white-space: nowrap;
	overflow: hidden;
}

#closing-tiles div {
	background-color: #DBD9D2; 
}

.photo-overlay {
	position: absolute;
	width: 100%;
	height: 100%;
	background: url(../images/enlarge.svg) rgba(0,0,0,0.55) center no-repeat;
	background-size: 50px 50px;
	opacity: 0;
	z-index: 1;
	cursor: pointer;
	transition: opacity 0.4s;
}

.photo-overlay:hover {
	opacity: 1;
}

.photo-thumbnail {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%,-50%);
	transition: width 0.25s, height 0.25s;
}

.photo-thumbnail.landscape {
	height: 101%;
	width: auto;
}

.photo-thumbnail.portrait {
	height: auto;
	width: 101%;
}

.photo-caption, .photo-infos {
	position: absolute;
	width: 88%;
	height: 88%;
	padding: 6%;
	color: #fff;
	text-align: center;

}

.photo-infos {
	height: auto !important;
	bottom: 0px;
}

.photo-caption span, .photo-infos span {
	display:block;
	font: 200 14px/1.2 'B-Myriad', sans-serif;
}

.photo-title {
	font: 300 21px/1.8 'B-Myriad', sans-serif !important;
}

.fullscreen {
	position: fixed;
	z-index: 30;
	left: 50%;
	top: 50%;
	transform: translate(-50%,-50%);
	border: 5px solid #FFF;
	cursor: pointer;
}

@media (min-aspect-ratio: 16/11) {
	.fullscreen.landscape {
		height: 95% !important;
		width: auto !important;
	}
}

@media (max-aspect-ratio: 16/11) {
	.fullscreen.landscape {
		height: auto !important;
		width: 95% !important;
	}
}

@media (min-aspect-ratio: 11/16) {
	.fullscreen.portrait {
		height: 95% !important;
		width: auto !important;
	}
}

@media (max-aspect-ratio: 11/16) {
	.fullscreen.portrait {
		height: auto !important;
		width: 95% !important;
	}
}

@media (max-width:570px) {
	.photo-container, #closing-tiles div {
		width: calc(50% - 2px);
	}

	.photo-caption span, .photo-infos span {
		font-size: 9px;
	}

	.photo-title {
		font-size: 12px !important;
	}
}

@media (min-width:400px) and (max-width:800px) {
	.photo-container, #closing-tiles div {
			width: calc(33.33% - 2px);
	}

	.photo-caption span, .photo-infos span {
		font-size: 11px;
	}

	.photo-title {
		font-size: 16px !important;
	}
}

@media (min-width:800px) and (max-width:1200px) {
	.photo-container, #closing-tiles div {
			width: calc(25% - 2px);
	}
}

@media (min-width:1200px) and (max-width:1600px) {
	.photo-container, #closing-tiles div {
			width: calc(20% - 2px);
	}
}

@media (min-width:1600px) and (max-width:2000px) {
	.photo-container, #closing-tiles div {
			width: calc(16.66% - 2px);
	}
}

@media (min-width:2000px) and (max-width:2400px) {
	.photo-container, #closing-tiles div {
			width: calc(14.28% - 2px);
	}
}

@media (min-width:2400px) and (max-width:2800px) {
	.photo-container, #closing-tiles div {
			width: calc(12.5% - 2px);
	}
}

@media (min-width:2800px) {
	.photo-container, #closing-tiles div {
			width: calc(11.11% - 2px);
	}
}

/* Map page */

#map-container {
	position: absolute;
	top: 0px;
	right: 0px;
	bottom: -25px;
	left: 0;
	overflow: hidden;
}

.gm-style-iw {
	font-size: 14px !important;
	border-radius: 3px !important;
	padding: 5px !important;
	height: 35px !important;
	opacity: 0.95;
}

.gm-style-iw-t::after {
	background: linear-gradient(45deg,rgba(255,255,255,0.95) 50%,rgba(255,255,255,0) 51%,rgba(255,255,255,0) 100%) !important;
	box-shadow: -2px 2px 2px 0 rgba(0,0,0,.3)!important;
}

.gm-style-iw-d {
	display: inline-block !important;
	line-height: 24px !important;
	padding: 0 5px;
}

.gm-ui-hover-effect {
	position: relative !important;
	display: inline-block !important;
	top: 0 !important;
	right: 0 !important;
	width: 24px !important;
	height: 24px !important;
}

.gm-ui-hover-effect img {
	margin: 0 !important;
	width: 24px !important;
	height: 24px !important;
}

/* Contact me page */

#contactme-container {
	margin: 96px auto;
	max-width: 1000px;
	padding: 0 25px;
}

input[type=text], textarea {
	padding: 10px;
	margin: 0 0 25px;
	background-color: #F8F8F8;
	font: 200 19px/1.6 'B-Myriad', sans-serif;
	color: #7E7A6A;
	border: 1px solid #E7E5DE;
	border-radius: 3px;
	box-sizing: border-box;
	transition: border 0.4s, background-color 0.4s, box-shadow 0.4s;
}

input[type=text]:hover, textarea:hover {
	border: 1px solid #55AEDB;
}

input[type=text]:focus, textarea:focus {
	background-color: #FFFFFF;
	border: 1px solid #55AEDB;
	box-shadow: inset 0 0px 4px rgba(0,184,212,0.2);
}

input[type="submit"] {
	float: right;
	padding: 10px 15px;
	height: 52px;
	background: #55AEDB;
	font: 200 19px 'B-Myriad', sans-serif;
	text-transform: uppercase;
	color: #FFF;
	cursor: pointer;
	border: 1px solid #55AEDB;
	border-radius: 3px;
	transition: all 0.4s;
}

input[type="submit"]:hover {
	background: #BDB099;
	border: 1px solid #BDB099;
}

#authorname {
	width: calc(50% - 12.5px);
	float: left;
}

#authoremail {
	width: calc(50% - 12.5px);
	float: right;
}

@media (max-width:550px) {
	#authorname {
		width: 100%;
	}

	#authoremail {
		display: block;
		width: 100%;
	}

	#message {
		height: calc(100vh - 502px) !important;
	}
}

#subject {
	width: 100%;
}

#message {
	width: 100%;
	min-height: 52px;
	height: calc(100vh - 425px);
	vertical-align: top;
}

#verification {
	width: 77px;
	margin: 0 !important;
}

#success-box {
	background: #F2F9EF;
	border: 1px solid #CCEEBE;
	color: #5CC535;
}

#failure-box {
	background: #FFF4F4;
	border: 1px solid #F9DFDF;
	color: #DA2A2D;
}

#success-box, #failure-box {
	margin-bottom: 25px;
	padding: 10px;
	border-radius: 3px;
}


/* FOOTER */

footer {
	position: fixed;
	bottom: 0;
	z-index: 10;
	width: 100%;
	background-color: rgba(255,255,255,.95);
}

footer::before {
	display: block;
	height: 1px;
	position: relative;
	bottom:1px;
	content: "";
	background-color: rgba(0,0,0,0.1);
}

footer.light, footer.light::before {
	background-color: transparent !important;
}

#footer-container {
	padding: 0 20px;
	font: 200 16px/54px 'B-Myriad', sans-serif;
}

#copyright {
	float: left;
	height: 54px;
	overflow: hidden;
}

@media (max-width:680px) {
	#copyright {
		width: 225px;
	}
}

@media (max-width:550px) {
	#copyright {
		width: 160px;
	}
	#copyright span {
		display: none;
	}
}

#footer-menu {
	float: right;
}

#footer-menu  span {
	padding: 0 8px;
}

#legal-mentions {
	overflow: hidden;
	clear: both;
	max-height: 62px;
	padding-bottom: 20px;
	font: 200 14px/1.20 'B-Myriad', sans-serif;
	color: #74726F;
	transition: all 0.25s;
}

footer.light #legal-mentions, footer.light p, footer.light a {
	color: #fff;
}

footer.light a:hover, footer.light a:active  {
	color: #BDB099;
}

footer.light #copyright {
	height: 54px;
	overflow: hidden;
}

#legal-mentions.hidden {
	max-height: 0px;
	padding-bottom: 0px;
}

@media (max-width:650px) {
	#legal-mentions {
		max-height: 100px;
	}
}

@media (max-width:490px) {
	#legal-mentions {
		max-height: 120px;
	}
}
