/*@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,700&subset=latin-ext);*/

@import url("Tungsten.css");
html { height: 100%; }

*,
*:after,
*:before {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

body {
	font-family: 'Tungsten', 'Open Sans', Calibri, Arial, sans-serif;
	background: #e0e0e0;
	font-weight: 400;
	font-size: 100%;
	color: #333;
	height: 100%;
	font-variant-numeric:lining-nums;
	font-size:22px;
	letter-spacing:0.05em;
}

.js body {
	/*overflow: hidden;*/
	overflow-y:auto;
	overflow-x:hidden;
}

a {
	color: #555;
	text-decoration: none;
	outline: none;
}

a:hover {
	color: #000;
}

.container,
.bb-custom-wrapper,
.bb-bookblock {
	width: 100%;
	height: 100%;
	top:0px;
	bottom:0px;
}

.bb-bookblock {
	top:65px;
	bottom:30px;
}

.bb-custom-wrapper {
	padding-left:410px;
	padding-left:calc(100vw + 20px - 138vh);
	padding-left:calc(50vw + 210px - 69vh);
	padding-right:calc(50vw - 190px - 69vh);
	position:fixed;
	top:0px;
	bottom:0px;
	z-index:999;
	
	width:80%;
	
	left:400px;
	left:20%;
	padding-left:calc(50vw - 170px - 69vh);
	padding-right:calc(50vw - 170px - 69vh);
	padding-left:calc(40vw - 69vh);
	padding-right:calc(40vw - 69vh);
}

.container {
	position: relative;
	left: 0px;
	top:0px;
	-webkit-transition: left 0.3s ease-in-out;
	-o-transition: left 0.3s ease-in-out;
	transition: left 0.3s ease-in-out;
}

.slideRight {
	left: 800px;
}

.no-js .container {
	padding-left: 800px;
}

.menu-panel {
	background: #8a133b;
	width: 20%;
	height: 100%;
	position: absolute;
	z-index: 1000;
	top: 0;
	left: 0;
	text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.js .menu-panel {
	/*position: absolute;*/
	/*left: -800px;*/
}

.menu-panel h3 {
	font-size: 40px;
	line-height:40px;
	padding: 15px 20px 10px 20px;
	font-weight: 300;
	color: #fff;
	box-shadow: inset 0 -1px 0 rgba(0,0,0,0.05);
	position:fixed;
	top:0px;
	left:0px;
	z-index:2;
	width:20%;
	height:65px;
	background:#8a133b;
	font-weight:bold;
	
	color: #8a133b;
	background-color:#E0E0E0;
	
	height:70px;
	border-bottom:5px solid #8a133b;
	box-sizing:border-box;
} 

.menu-panel h3 a {
	color: #8a133b;
	text-decoration:none;
}

.menu-panel h3 a:hover {
	color: #8a133b;
	text-decoration:none;
}

.menu-toc {
	list-style: none;
	padding-top:70px;
	letter-spacing:0.03em;
}

.menu-toc li:last-child {
	border-bottom:20px solid #8a133b;
}
.menu-toc li a {
	position:relative;
	display: block;
	color: #fff;
	font-size: 1em;
	line-height: 1.2em;
	padding: 0 20px;
	padding-top:0.6em;
	padding-bottom:0.6em;
	cursor: pointer;
	background: #8a133b;
	border-bottom: 1px solid #ad5975;
	padding-left:60px;
}


.menu-toc li a span.year 	{
	width:50px; 
	display:inline-block;
	position:absolute;
	display:block;
	top:0.6em;
	left:20px;
}

.menu-toc li a span.year.double 	{height:30px; float:left; }

.menu-toc li a:hover,
.menu-toc li.menu-toc-current a{
	background: #e0e0e0;
	color: #8a133b;
}

.menu-panel div {
	margin-top: 20px;
}

.menu-panel div a {
	text-transform: uppercase;
	font-size: 0.7em;
	line-height: 1;
	padding: 5px 20px;
	display: block;
	border: none;
	color: #bc0b0b;
	letter-spacing: 1px;
	font-weight: 800;
	text-shadow: 0 1px rgba(255,255,255,0.2);
} 

.menu-panel div a:hover {
	background: inherit;
	color: #fff;
	text-shadow: none;
}

.bb-custom-wrapper nav {
	top: 17px;
	right: 30px;
	position: absolute;
	z-index: 1001;
	width:192px;
	height:32px;
}

#tblcontents {
	display:none;
}

.bb-custom-wrapper nav span,
.menu-button, .lang-button {
	position: absolute;
	width: 32px;
	height: 32px;
	top: 0;
	left: 0;
	background: #8a133b;
	border-radius: 50%;
	color: #FFFFFF;
	line-height: 32px;
	text-align: center;
	speak: none;
	font-weight: bold;
	cursor: pointer;
}

#bb-nav-next 	{left:40px;}
.show 	{filter:alpha(opacity=100); -moz-opacity:1; -khtml-opacity: 1; opacity: 1;}
.hide 	{filter:alpha(opacity=30); -moz-opacity:0.3; -khtml-opacity: 0.3; opacity: 0.3; cursor:default !important;}

.hide:hover 	{background:#8a133b !important;}
.bb-custom-wrapper nav span:hover,
.menu-button:hover {
	background: #000;
}

.bb-custom-wrapper nav span:last-child {
	left: 40px;
}

.menu-button {
	z-index: 1000;
	left: 20px;
	top: 15px;
	text-indent: -9000px;
}

.lang-button {
	z-index:1000;
	left: 120px;
	top:0px;
	font-weight:normal;
}

.lang-button.active 	{filter:alpha(opacity=30); -moz-opacity:0.3; -khtml-opacity: 0.3; opacity: 0.3; cursor:default !important; background:#8a133b !important;}

.lang-button.second 	{left:160px;}
.lang-button:hover {
	color:#FFF;
	background: #000;
}
.menu-button:after {
	position: absolute;
	content: '';
	width: 50%;
	height: 2px;
	background: #fff;
	top: 50%;
	margin-top: -1px;
	left: 25%;
	box-shadow: 0 -4px #fff, 0 4px #fff;
}

.no-js .bb-custom-wrapper nav span,
.no-js .menu-button {
	display: none;
}

.js .content {
	position: absolute;
	left: 0;
	width: 100%;
	padding-left:20px;
	padding-right:20px;
	overflow: hidden;
	-webkit-font-smoothing: subpixel-antialiased;
}

.scroller {
	padding: 10px 5% 10px 5%;
}

.js .content:before,
.js .content:after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 20px;
	z-index: 100;
	pointer-events: none;
	/*
	background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
	background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
	background: -o-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
	background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
	*/
}

.js .content:after {
	top: auto;
	bottom: 0;
	/*
	background: -webkit-linear-gradient(bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
	background: -moz-linear-gradient(bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
	background: -o-linear-gradient(bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
	background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
	*/
}

.content h2 {
	font-weight: 300;
	font-size: 4em;
	padding: 0 0 10px;
	color: #333;
	margin: 0 1% 40px;
	text-align: left;
	box-shadow: 0 10px 0 rgba(0,0,0,0.02);
	text-shadow: 0 0 2px #fff;
}

.no-js .content h2 {
	padding: 40px 1% 20px;
}

.content p {
	font-size: 1.2em;
	line-height: 1.6;
	font-weight: 300;
	padding: 5px 8%;
	text-align: justify;
}

@media screen and (max-width: 800px){
	.no-js .menu-panel {
		display: none;
	}

	.no-js .container {
		padding: 0;
	}
}

@media screen and (max-width: 400px){
	.menu-panel,
	.content {
		font-size: 75%;
	}
}

.content img 	{width:100%; position:relative; float:left;}

.content.single img 	{margin-left:25%; width:50%;}


@media (max-width:990px){
	.menu-panel {
		width:100%;
		left:-100%;
	}
	
	.menu-panel h3 {
		border-bottom:5px solid transparent;
		height:60px;
		box-shadow:none;
		width:150px;
		padding-right:0px;
		background-color:transparent;
	}
	
	.bb-custom-wrapper {
		left:0px;
		padding-left:0px;
		padding-right:0px;
		width:100%;
	}
	
	.bb-custom-wrapper nav span {
		display:none;
	}
	
	#tblcontents {
		display:block;
		left:auto;
		right:20px;
		top:17px;
	}
	
	.bb-custom-wrapper nav {
		right:60px;
	}
	
	.slideRight {
		left:100%;
	}
	.slideRight .menu-panel h3 {
		width:100%;
		background-color:#E0E0E0;
	}
	
	.slideRight .bb-custom-wrapper {
		z-index:10000000;
		height:60px;
	}
	
	.slideRight #bb-bookblock {
		display:none;
	}
	
	.js .content {
		top:calc(50% - 30px);
		transform:translateY(-50%);
	}
	
	.js body {
		overflow-y:hidden;
	}
	.js body.slideRight {
		overflow-y:auto;
	}
}