/* Fonts */
@import url(fonts.css);
@import url(fa-icons.css);
@import url(background-living-animation.css);

/* Styles */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Top-level containers */
html,
body {
	margin: 0px;
	padding: 0px;

	width: 100%;
	height: 100%;
}

body {
	display: flex;
	overflow: hidden;

	background-color: #111;
	color: #FFF;
	font-family: var(--font), Helvetica, sans-serif;
	font-size: 2rem;
	line-height: 1.25em;

	transition: font-size 150ms;
}

body::after {
	content: "";
	background: url(../assets/background-desert.jpg) no-repeat center 60% fixed;
	background-size: cover;

	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	position: absolute;
	z-index: -1;

	animation: background-fadein 5s,
	           background-live 10s 5s infinite;
}

@keyframes background-fadein {
	  0% { visibility: hidden; opacity: 0; }
	 25% { visibility: visible; opacity: 0.01; }
	100% { opacity: 1; }
}

@keyframes background-shake {
	  0% { opacity: 1; }
	 50% { opacity: 0.8; }
	100% { opacity: 1; }
}

section.content {
	position: relative;
	display: flex;
	z-index: 0;

	align-items: center;
	padding-top: 3em;
	padding-bottom: 3em;
	width: 100%;
}

div.container {
	position: relative;
	word-wrap: break-word;

	margin-right: auto;
	margin-left: auto;
	padding-right: 15px;
	padding-left: 15px;
	width: 100%;
}

div.container > div.note {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: center;
	align-content: center;
	align-items: stretch;

	flex: 0 0 66.666667%;
	max-width: 66.666667%;

	position: relative;
	width: 100%;
	min-height: 1px;
	padding-right: 15px;
	padding-left: 15px;

	font-size: 1em;
	color: #FFF;
}

div.container > div.note > div {
	margin-block-end: 0.83em;
}

h1.author {
	margin-block-start: 0em;
	overflow-wrap: normal;
	font-family: var(--font_m);
	font-weight: bold;
	font-size: 2.25em;
	letter-spacing: 0.05em;
	line-height: 1.25em;
	text-shadow: 2px 3px rgba(0, 0, 0, 0.5);

	animation: author-fadein 2s;
}

@keyframes author-fadein {
	  0% { transform: translate(0em, -4em); opacity: 0; }
	100% { transform: translate(0em, 0em); opacity: 1; }
}

span.firstname { text-transform: capitalize; }
span.lastname { text-transform: uppercase; }

div.comment {
	text-shadow: 1px 2px rgba(0, 0, 0, 0.5);
	animation: comment-fadein 4s;
}

@keyframes comment-fadein {
	  0% { transform: translate(-10em, 0em); opacity: 0; }
	 60% { transform: translate(-5em, 0em); opacity: 0; }
	100% { transform: translate(0em, 0em); opacity: 1; }
}

span.position {
	font-family: var(--font_b);
}

a {
	cursor: pointer;

	color: inherit;
	text-decoration: none;
	text-shadow: none;

	font-family: var(--font_m);
	font-weight: bold;

	transition: border-bottom-color 150ms;
	border-bottom: 1.5px solid transparent;
}

a:hover,
a:focus {
	border-bottom-color: #FFF;
}

a.external::after {
	content: "°";
	margin-left: 1px;
	font-weight: bold;
	opacity: 0.4;
	transition: opacity 250ms;
}

a.external:hover::after,
a.external:focus::after {
	opacity: 1;
}

a.button {
	display: inline-block;
	padding: 6px 12px;
	margin-bottom: 0;
	font-size: 14px;
	font-weight: normal;
	line-height: 1.42857143;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	touch-action: manipulation;
	cursor: pointer;
	user-select: none;
	background-image: none;
	background-color: #FFF;
	color: #000;
	
	border: 1px solid transparent;
	border-bottom: 3px solid rgba(0, 0, 0, 0.5);

	border-radius: 5px;
	box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3)!important;
	transition: all 0.1s ease;
}

a.button:hover,
a.button:focus {
	filter: hue-rotate(-20deg) brightness(110%);
}

a.button:active {
	margin-top: 4px;
	border-bottom: none;
	box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3)!important;
}

a.button.icon {
	display: inline-block;
	height: 40px;
	width: 40px;
	margin: 0;
	padding: 0;
	padding-top: 2px;
	font-size: 30px;
	border-radius: 8px;

	font-family: var(--icon_regular);
	font-style: normal;
	font-variant: normal;

	text-rendering: auto;
	line-height: 1;

	color: rgba(0, 0, 0, 0.7);
	transition: all 0.1s ease;
}

a.button.icon:hover,
a.button.icon:focus,
a.button.icon:active  {
	color: rgba(0, 0, 0, 1);
}

a.button.icon:active {
	transform: translateY(4px);
	border-bottom: none;
	box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3)!important;
}

ul.contacts {
	margin-left: auto;
	margin-right: auto;
}

ul.contacts > li {
	display: block;
	margin-bottom: 1em;

	animation: comment-fadein 6s;
}

div.additional-info {
	display: inline-block;
	margin: 0;
	padding: 0;
}

div.additional-info > span.label {
	text-align: right;
	font-weight: bold;
	margin-left: 0.2em;
	margin-right: 0.2em;
}

div.additional-info >  span.label::after {
	content: ":";
}

span.email {
	font-family: var(--mono);
	font-size: 0.8em;
}

span.email::before {
	content: "<";
	margin-right: 2px;
}
span.email::after {
	content: ">";
	margin-left: 2px;
}

span.email > span.local::after {
	content: "@";
	opacity: 0.90;
}

span.username {
	font-family: var(--mono);
	font-size: 0.8em;
}

span.phone {
	font-family: var(--mono);
	font-size: 0.8em;
}

span.phone > span.region::before {
	content: "+";
	opacity: 0.90;
}
span.phone > span.region::after {
	content: " ";
}


a.button.icon.email::before {
	content: "\f0e0";
}
a.button.icon.email-at::before {
	font-weight: 900;
	content: "\f1fa";
}
a.button.icon.phone::before {
	font-weight: 900;
	content: "\f095";
}

a.button.brand.icon {
	font-family: var(--icon_brand);
}
a.button.brand.icon.github::before  {
	content: "\f09b";
}