html {
	display: flex;
	height: 100%;
	justify-content: center;
	box-sizing: border-box;
}

body {
	display: flex;
	background: #000001;
	width: 100%;
	min-height: 100%;
	/* padding: 2em 1em; */
	flex-direction: column;
	color: #fff;
}
/* @media print { body { color: #000 } }
body.page-error { background: #903030 } */

a { color: #50a0f0 }
a:hover { color: #4080c0 }

hr { border-color: rgba(255, 255, 255, .1) }

*:last-child { margin-bottom: 0 }

@media (min-width: 576px) { .mw-sm { max-width: 540px } }
@media (min-width: 768px) { .mw-md { max-width: 720px } }
@media (min-width: 992px) { .mw-lg { max-width: 960px } }
@media (min-width: 1200px) { .mw-xl { max-width: 1140px } }

#header, #main {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
}

#header {
	height: 100px;
}
@media (min-width: 992px) {
	#header { padding-left: 280px } }
#header .title {
	text-align: center;
	font-variant: small-caps;
}
#header .title > h1 {
	line-height: 100px;
	color: #fff;
	font-size: 40pt;
	font-weight: 300;
}

/** Main wrapper */

#main {
	display: flex;
}

#main .sidebar {
	flex-shrink: 0;
	width: 280px;
	margin-top: -60px;
	padding: 20px 0;
	padding-left: 20px;
}

@media (max-width: 991.98px) {
	#main {
		flex-wrap: wrap;
	}
	#main .sidebar {
		display: flex;
		align-items: center;
		justify-content: space-around;
		width: 100%;
		margin-top: 0;
	}
	#main .sidebar .picture {
		height: 100%;
		margin-top: -120px;
	}
}
@media (max-width: 767.98px) {
	#main .sidebar {
		display: block;
	}
	#main .sidebar .picture {
		height: auto;
		margin-top: 0;
	}
}

@media (min-width: 992px) {
	#main .sidebar > * + * { margin-top: 40px } }
@media (max-width: 767.98px) {
	#main .sidebar > * + * { margin-top: 20px } }

#main .sidebar > * h2 {
	margin-top: -10px;
	margin-bottom: 25px;
	font-size: 20pt;
	font-weight: 300;
	font-variant: small-caps;
}

#main .sidebar > * > ul {
	padding-left: 0;
	list-style: none;
}

#main .sidebar > * > ul > li {
	width: 100%;
	margin-bottom: 5px;
}
#main .sidebar > * > ul > li a {
	color: inherit;
}

#main .sidebar .picture {
	text-align: center;
}
#main .sidebar .picture img {
	display: block;
	width: 100%;
	max-width: 140px; /* = 280px * 50% */
	margin-left: auto;
	margin-right: auto;
	border-top-right-radius: 30px;
	border-bottom-left-radius: 30px;
}

#main .sidebar .contact,
#main .sidebar .skills {
	background: #fff;
	width: 100%;
	max-width: 210px; /* = 280px * 75% */
	margin-left: auto;
	margin-right: auto;
	padding: 20px;
	color: #000;
	border-top-right-radius: 30px;
	border-bottom-left-radius: 30px;
}
@media (min-width: 768px) and (max-width: 991.98px) {
	#main .sidebar .contact,
	#main .sidebar .skills {
		margin-left: 0;
		margin-right: 0;
	}
}

#main .sidebar .contact .mail {
	text-align: center;
	margin-bottom: 15px;
}
#main .sidebar .contact .mail .icon {
	display: block;
	width: 100%;
}

#main .sidebar .skills ul > li {
	display: flex;
	align-items: center;
}
#main .sidebar .skills .icon {
	display: inline-block;
	width: 32px;
	height: 32px;
	margin-right: 10px;
}
#main .sidebar .skills .cells {
	display: flex;
}
#main .sidebar .skills .cells > .cell {
	width: 12px;
	height: 6px;
	margin-right: 4px;
	border-radius: 9999px;
	border: 1px solid #000;
}
#main .sidebar .skills .cells > .cell.cell-filled {
	background: #000;
}

#main .content {
	background: #fff;
	display: flex;
	flex-direction: column;
	padding: 60px 40px 20px;
	color: #000;
	border-top-left-radius: 140px;
}
#main .content > * + * {
	margin-top: 40px;
}
#main .content > * h2 {
	margin-bottom: 15px;
	padding: 0 10px;
	font-size: 20pt;
	font-weight: 300;
	font-variant: small-caps;
}

#main .content .content-group {
	display: flex;
	justify-content: space-around;
}

#main .content > *:not(.content-group),
#main .content .content-group > * {
	background: #000;
	color: #fff;
}
#main .content > *:not(.content-group) {
	padding: 20px 40px;
	border-top-left-radius: 90px;
	border-bottom-right-radius: 90px;
}
#main .content .content-group > * {
	width: 100%;
	flex-grow: 0;
	margin: 0 20px;
	padding: 10px 20px;
	text-align: center;
}
@media (max-width: 575.98px) {
	#main .content .content-group { flex-wrap: wrap }
	#main .content .content-group > * { flex-shrink: 0 }
	#main .content .content-group > * + * { margin-top: 40px } }
#main .content .content-group > *:first-child {
	text-align: right;
	border-top-left-radius: 60px;
}
#main .content .content-group > *:last-child {
	text-align: left;
	border-bottom-right-radius: 60px;
}

#main .content > *:not(.content-group) > ul,
#main .content .content-group > * > ul {
	display: flex;
	flex-wrap: wrap;
	padding-left: 0;
	list-style: none;
}
#main .content > *:not(.content-group) > ul > li,
#main .content .content-group > * > ul > li {
	background: #fff;
	flex-grow: 1;
	margin-right: 10px;
	margin-bottom: 10px;
	padding: 0 8px;
	color: #000;
	text-align: center;
	border-top-left-radius: 15px;
	border-bottom-right-radius: 15px;
}

#main .content .languages > ul > li {
	width: 100%;
}

#main .content .education > .items,
#main .content .experience > .items {
	display: flex;
}
#main .content .education > .items > * .date,
#main .content .experience > .items > * .date {
	background: #fff;
	flex-grow: 1;
	margin-right: 10px;
	margin-bottom: 10px;
	padding: 0 8px;
	color: #000;
	text-align: center;
}
#main .content .education > .items > *:first-child .date,
#main .content .experience > .items > *:first-child .date {
	border-top-left-radius: 15px;
	border-bottom-left-radius: 15px;
}
#main .content .education > .items > *:last-child .date,
#main .content .experience > .items > *:last-child .date {
	border-top-right-radius: 15px;
	border-bottom-right-radius: 15px;
}
#main .content .education > .items > * .description,
#main .content .experience > .items > * .description {
	background: #fff;
	width: 60%;
	margin-top: 20px;
	margin-left: auto;
	margin-right: auto;
	padding: 4px 8px;
	color: #000;
	text-align: center;
	border-top-left-radius: 20px;
	border-bottom-right-radius: 20px;
}
#main .content .education > .items > * .description::before,
#main .content .experience > .items > * .description::before {
	content: "";
	position: absolute;
	display: block;
	background: #fff;
	width: 8px;
	height: 44px; /* = 20px + 4px + 20px */
	margin-top: -24px;
	margin-left: -8px;
}
