@charset "UTF-8";

@import "reset.css";

@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700,700i');

/* @group TYPO */

html, body {
	font-family: 'Open Sans', Arial, sans-serif;
	font-size: 17px;
	line-height: 1.5em;
}

.text h1, .page-title {
	font-size: 2.5rem;
	line-height: 1.25em;
	hyphens: auto;
}

.text h2, .text h3, .text h4 {
	font-weight: bold;
}

.branding, .languages, .chapter-number {
	text-transform: uppercase;
}

.branding, .page-title, .chapter-title {
	font-weight: bold;
}

/* MARGINS */

.content {
	padding-top: 2rem;
}

.navigation, .branding, .page-title {
	margin-top: 1rem;
}

p, .text h2, .text h3, .text h4, .text li, .text figure, .text video,
.branding, .header, .page-title {
	margin-bottom: 1rem;
}

.content {
	padding-bottom: 1rem;
}

.intro, .content, .pagination {
	margin-bottom: 2rem;
}

/* DECORATIONS */

.text ul, .text ol {
	padding-left: 1.5em;
}

.text ul > li:before {
	content: "•";
  	display: inline-block;
  	position: relative;
  	width: 1.25em;
  	margin-right: -1.25em;
  	left: -1.25em;
  	padding-left: .25em;
}

.text a {
	text-decoration: underline;
}

/* @end */

/* @group COLORS */

html, body,
.language-item:last-child:before {
	color: #000;
}

.content {
	color: #333;
}

.content, .chapter-caption {
	background-color: white;
}

body {
	background: #e5e5e5;
}

a:hover, .active,
.pagination-item:hover, .pagination-item:focus, .pagination-item:active {
	color: #cb0000;
}

.pagination-item.is-inactive {
	color: #999;
}

/* @end */

/* @group LAYOUT */

.header {
	display: flex;
	width: 100%;
}

.branding {
	flex: 1 1 40%;
}

.navigation {
	flex: 1 2 60%;
}

.chapters, .content {
	margin-right: auto;
	margin-left: auto;
}

.chapters {
	max-width: 80rem;
}

.content {
	max-width: 40rem;
}

.header, .intro {
	padding-right: 1rem;
	padding-left: 1rem;
}

.content {
	padding-right: 2rem;
	padding-left: 2rem;
}

img, video {
	max-width: 100%;
}

.clearfix:after {
	content: "";
	display: block;
	height: 0;
	overflow: hidden;
	clear: both;
}

/* @end */

/* @group header */

.menu, .languages {
	float: right;
	text-align: right;
}

.menu-item, .language-item {
	display: inline-block;
}

.menu-item {
	margin-left: .75rem;
}

.languages {
	margin-left: 1.5rem;
}

.language-item:last-child {
	margin-left: .25rem;
}

.language-item:last-child:before {
	content: "/";
	display: inline-block;
	margin-right: .25rem;
}

/* @end */

/* @group coverimage */

.header {
	position: absolute; z-index: 2;
	width: 100%;
}

.coverimage {
	opacity: 0.2;
	background-size: cover;
	background-position: center;
}

.coverimage, .intro {
	height: 20rem;
}

.intro {
	position: absolute;
	width: 100%;
	top: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}

.intro > * {
	max-width: 42em;
	margin-top: 5rem;
	text-align: center;
}

/* @end */

/* @group pagination */

.pagination {
	padding-right: 1rem; padding-left: 1rem;
}

.pagination-item {
	position: relative;
	width: 5rem;
	height: 5rem;
	border-radius: 50%;
	background: #fff;
}

.pagination-item.left {
	float: left;
}

.pagination-item.right {
	float: right;
}

.pagination-item svg {
	position: relative;
	top: 50%;
	display: block;
	margin: -1rem auto 0;
	width: 4rem;
	height: 2rem;
}

.pagination-item path {
	fill: currentColor;
}

.pagination-item.is-inactive {
	border: 2px solid currentColor;
	background: transparent;
}

@media all and (min-width: 75em) {

	.pagination-item {
		position: fixed;
		top: 50%;
	}
	
	.pagination-item.left {
		float: none;
		left: 2rem;
	}
	
	.pagination-item.right {
		float: none;
		right: 2rem;
	}

}

/* @end */

/* @group chapter */

.chapters {
	display: flex;
	flex-wrap: wrap;
	padding-top: 2rem;
	padding-bottom: 2rem;
	padding-right: 1rem;
	padding-left: 1rem;
}

.chapter-item {
	padding: 1rem;
}

.chapter-item img {
	width: 100%;
}

.chapter-caption {
	padding: 1rem;
}

@media (min-width: 40rem) {

.chapter-item {
	width: 50%;
}

}

@media (min-width: 60rem) {

.chapter-item {
	width: 33.333333333%;
}

}

@media (min-width: 80rem) {

.chapter-item {
	width: 25%;
}

}

/* @end */