* {
	box-sizing: border-box;
}

html {
	height: 100%;
}

body {
	height: 100%;
	margin: 0;
	background-color: #ddd;
	color: white;
	font-family: 'Zilla Slab', sans-serif;
	font-size: 1.1em;
	line-height: 1.5;
	overflow: hidden;
}

button {
	margin: 0;
	padding: 0;
	background-color: transparent;
	border: none;
	color: white;
	font: inherit;
	cursor: pointer;
}

a {
	color: white;
	text-decoration: none;
}

/* === COLORS === */
.home {
	background-color: #84091c;
	fill: #84091c;
}

.about {
	background-color: #f45905;
	fill: #f45905;
}

.work {
	background-color: #512c62;
	fill: #512c62;
}

.students {
	background-color: #5f7b28;
	fill: #5f7b28;
}

.contact {
	background-color: #45969b;
	fill: #45969b;
}

.hidden {
	visibility: hidden;
}

/* === Z-INDICES === */

.z1 { z-index: 1; }
.z2 { z-index: 2; }
.z3 { z-index: 3; }
.z4 { z-index: 4; }
.z5 { z-index: 5; }

/* === CONTAINER === */
.container {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}

/* === BAR OF BARS === */
.barbar {
	display: none;
	position: relative;
}

/* === BARS === */
.bar {
	display: flex;
	flex-direction: row;
	justify-content: center;
	position: relative;
	pointer-events: none;
	transition: top 0.2s;
}

.bar.active, .mobutton.active {
	animation: fadein 0.6s ease-in-out;
}

.bar:not(.active) {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 100%;
}

.bar:not(.active):hover, .mobutton:not(.active):hover {
	top: -8px;
}

.bar a {
	position: relative;
	margin: 30px 20px 0 20px;
	padding: 10px;
	text-align: center;
	cursor: pointer;
}

.bar a:not(.hidden) {
	pointer-events: auto;
}

.bar svg, .mobar svg {
	position: absolute;
	top: 0;
	width: 20px;
	height: 100%;
}

.bar svg:first-child, .mobar svg:first-child {
	left: -19px;
}

.bar svg:last-child, .mobar svg:last-child {
	right: -19px;
}

/* === LINES === */
.line {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	height: 10px;
	pointer-events: auto;
	box-shadow: 0 -2px 5px 0 rgba(0,0,0,0.2);
}

/* === MOBILE BAR === */
.mobar {
	display: flex;
	flex-direction: column-reverse;
	transition: height 0.5s;
}

.mobutton {
	position: relative;
	top: 0;
	transition: top 0.2s;
}

.mobutton a {
	display: inline-block;
	position: relative;
	margin: 10px 20px 0 20px;
	padding: 10px;
	text-align: center;
	cursor: pointer;
	z-index: 1;
}

.mobutton:not(.active) .line {
	height: 150%;
}

/* === BACKGROUND === */
.background {
	flex-grow: 1;
	position: relative;
}

/* === TAB === */
.tab {
	display: flex;
	align-items: stretch;
	position: absolute;
	top: 0;
	left: 0;
	padding: 20px 2vw;
	width: 100%;
	height: 100%;
	animation: fadein 0.6s ease-in-out;
}

/* === SIDEBAR === */
.sidebar {
	display: flex;
	flex-direction: column;
}

.collapser, .icon {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 2.5em;
	height: 2.5em;
	margin-top: 0.5em;
	border-radius: 50%;
	background-color: rgba(0,0,0,0.2);
	transition: background-color 0.2s;
}

.collapser:hover, .icon:hover {
	background-color: rgba(0,0,0,0.5);
}

.bar1, .bar2, .bar3 {
	width: 50%;
	height: 2px;
	margin: 2px 0;
	background-color: white;
	transition: transform 0.2s, opacity 0.2s;
}

.clicked .bar1 {
	transform: translateY(6px) rotate(45deg);
}
.clicked .bar2 {
	opacity: 0;
}
.clicked .bar3 {
	transform: translateY(-6px) rotate(-45deg);
}

.collapser, .icon:first-of-type {
	margin-top: 1.5em;
}

.icon svg {
	width: 50%;
	height: 50%;
	fill: white;
}

/* === CONTENT === */
.content {
	flex-grow: 1;
	padding: 0 20px;
	overflow: auto;
	scrollbar-width: 11px;
	scrollbar-color: rgba(0,0,0,0.2) transparent;
}

.content::-webkit-scrollbar {
	width: 11px;
}
.content::-webkit-scrollbar-track {
	background: transparent;
}
.content::-webkit-scrollbar-thumb {
	border-radius: 5px;
	background-color: rgba(0,0,0,0.2);
}
.content::-webkit-scrollbar-thumb:hover {
	background-color: rgba(0,0,0,0.5);
}

.portrait, .landscape {
	width: 100%;
}

/* === CONTENT: HOME === */
.tab.home .content {
	text-align: center;
}

.tab.home .content img {
	display: block;
	max-width: 100%;
	max-height: 50%;
	margin: 0 auto;
	border-radius: 50%;
	box-shadow: 0 2px 5px 0 rgba(0,0,0,0.2);
}

/* === CONTENT: STUDENTS === */
.recommendation {
	margin: 20px 0;
	border-radius: 10px;
	overflow: hidden;
}

.recommendation .title {
	display: flex;
	border-bottom: 1px solid white;
	background-color: rgba(0,0,0,0.5);
}

.recommendation .title span {
	padding: 10px;
}

.recommendation .title span.name {
	flex-grow: 1;
	border-left: 1px solid white;
	border-right: 1px solid white;
}

.recommendation .body {
	padding: 10px;
	background-color: rgba(0,0,0,0.2);
}

.recommendation .body p:first-child {
	margin-top: 0;
}

.recommendation .body p:last-child {
	margin-bottom: 0;
}

/* === MEDIA QUERIES === */
@media screen and (min-width: 768px) {
	.tab {
		padding: 20px 10vw;
	}
	
	.portrait {
		width: 50%;
	}
	
	.floatleft {
		float: left;
		margin-right: 1em;
	}
	
	.floatright {
		float: right;
		margin-left: 1em;
	}
}

@media screen and (min-width: 1024px) {
	.barbar {
		display: block;
	}
	
	.mobar {
		display: none;
	}
	
	.tab {
		padding: 20px 20vw;
	}
	
	.collapser {
		display: none;
	}
}

/* === ANIMATIONS === */
@keyframes fadein {
	from {
		top: 50px;
	}
	to {
		top: 0;
	}
}