/* CSS RESET */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {margin: 0; padding: 0; border: 0; font-size: 100%; vertical-align: baseline}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display: block}
body {line-height: 1}
ol, ul {list-style: none}
blockquote, q {quotes: none}
blockquote:before, blockquote:after, q:before, q:after {content: ''; content: none}
table {border-collapse: collapse; border-spacing: 0}
sup, sub {vertical-align: baseline; position: relative; top: -0.4em}
sub {top: 0.4em}

/* CLEARFIX */
.clearfix:after {visibility:hidden; display:block; font-size:0; content:" "; clear:both; height:0}
* html .clearfix { zoom: 1; }
*:first-child+html .clearfix { zoom: 1; }

* {-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;}

/* TEMPLATE */
body {font-size:14px; line-height:18px; color:#222; font-family: 'Lora', Georgia, serif; background: url("../images/background.jpg") top center no-repeat; background-size: cover; background-attachment: fixed;}
a, .highlight {text-decoration:none; font-weight:bold}
a:hover {text-decoration:none}

.no-js .js-hide {display: none;}

.overlaybg {
	background: #222;
	background: rgba(0,0,0,0.8);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 8;
	display: none;
}

.overlay {
	position: absolute;
	left: 0;
	top: 100px;
	z-index: 9;
	display: none;
	width: 100%;
	opacity: 0;
	margin: 0;
}

p, h1, h2, h3, h4, ol, ul, table {margin:0 0 15px 0}
.wrap {max-width:1200px; margin:0 auto; clear:both; padding: 0 20px;}

ul {list-style:disc; padding:0 0 0 30px}
ol {list-style:decimal; padding:0 0 0 30px}
ul li, ol li {margin:0 0 5px 0}

img {
	max-width: 100%;
	height: auto;
}

header {
	background: #fff;
	background: rgba(255,255,255,0.85);
	padding: 15px 0;
}

.logo {
	float: left;
}

header nav {
	float: right;
}

header nav ul {
	margin: 45px 0 0;
	padding: 0;
	list-style: none;
}

header nav ul li {
	padding: 0;
	margin: 0;
	display: inline;
}

header nav ul li a {
	display: block;
	float: left;
	padding: 0 20px;
	font-family: 'Bubblegum Sans', cursive;
	font-size: 32px;
	line-height: 40px;
	color: #6da5ba;
	transition: color 0.3s ease-in-out;
}

header nav ul li a:hover, header nav ul li.current a {
	color: #7fb665;
}

section {
	margin: 40px 0;
}

section .wrap{
	display: block;
	background: #fff;
	background: rgba(255,255,255,0.7);
	padding: 40px;
}

.hero .wrap, .info .wrap {
	display: block;
	background: #fff;
	background: rgba(255,255,255,0.7);
	padding: 0;
	position: relative;
}

.hero .image, .info .image {
	width: 30%;
	height: auto;
	position: absolute;
	bottom: 0;
	right: 0;
}

.hero .text, .info .text {
	width: 70%;
	float: left;
	padding: 40px;
}

h2 {
	font-size: 24px;
	line-height: 28px;
	color: #333;
	font-weight: 700;
	font-style: italic;
}

h3 {
	font-family: 'Bubblegum Sans', cursive;
	font-size: 40px;
	line-height: 44px;
	color: #6da5ba;
	font-weight: 400;
}

h4, p {
	font-size: 18px;
	line-height: 22px;
	color: #333;
	font-weight: 400;
}

.reduced {
	font-size: 16px;
	line-height: 20px;
	color: #333;
	font-weight: 400;
}

h1 {
	font-family: 'Bubblegum Sans', cursive;
	font-size: 64px;
	line-height: 70px;
	color: #6da5ba;
	font-weight: 400;
}

.button {
	display: inline-block;
	margin: 20px 10px 0 0;
	border-radius: 32px;
	background: #6da5ba;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 10px 16px;
	text-decoration: none;
	font-weight: 700;
	transition: background 0.3s ease-in-out;
	font-size: 16px;
	cursor: pointer;
	font-family: 'Lora', Georgia, serif;
	border: none;
}

.button:hover, .button:focus {
	background: #4c7d90;
	color: #fff;
	text-decoration: none;
	outline: none;
}

.button-primary {
	background: #7fb665;
	font-size: 24px;
	padding: 15px 20px;
}

.button-primary:hover, .button-primary:focus {
	background: #5d8c46;
}

.secondarybutton {
	display: inline-block;
	margin: 20px 10px 0 0;
	color: #222;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 12px 0 2px;
	text-decoration: none;
	font-weight: 700;
	transition: all 0.3s ease-in-out;
	font-size: 12px;
	border-bottom: 1px solid #222;
	float: right;
	cursor: pointer;
}

.secondarybutton:hover, .secondarybutton:focus {
	border-bottom: 1px solid #7fb665;
	color: #7fb665;
}

.buy .wrap {
	background: none;
	padding: 0;
	display: -ms-flex;
	display: -webkit-flex;
	display: flex;
}

.buy form {
	display: inline-block;
	float: left;
}

textarea {
	width: 600px;
	max-width: 100%;
	height: 200px;
	padding: 10px;
	border-radius: 8px;
	color: #222;
	font-size:18px;
	line-height:22px;
	font-family: 'Lora', Georgia, serif;
	display: block;
	border: 3px solid #ddd;
}

textarea:focus {
	border-color: #bbb;
	outline: none;
}

.item {
	float: left;
	width: 31%;
	margin: 0 1.75%;
	background: #fff;
	background: rgba(255,255,255,0.7);
	padding: 40px;
}

.item img {
	transition: opacity 0.3s ease-in-out;
	margin: -15px -5% 15px;
	max-width: 110%;
}

.item img:hover {
	opacity: 0.85;
}

.item:first-child {
	margin-left: 0;
}

.item:last-child {
	margin-right: 0;
}

.rrp {
	text-decoration: line-through;
}

.lower .wrap {
	background: none;
	padding: 0;
}

.lower .item {
	background: none;
	padding: 10px 40px;
}

.lower .item .secondarybutton {
	float: none;
	padding-top: 0;
	margin: 10px 0 0;
}

.lower .item:first-child {
	margin-left: 0;
}

.lower .item:last-child {
	margin-right: 0;
}

.lower h3 {
	width: 100%;
	text-align: center;
}

.author__image {
	float: left;
	margin: 0 20px 15px 0;
	max-width: 40%;
	height: auto;
}

.book__image {
	float: left;
	margin: 0 30px 15px 0;
	max-width: 45%;
	height: auto;
}

footer {
	background: #fff;
	background: rgba(255,255,255,0.85);
	padding: 15px 0;
}

footer .wrap {
	padding: 0 40px;
}



/* FLIPBOOK */
.flipbook .wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px;
	background: #eee;
	position: relative;
}

.flipbook img {
	max-width: 50%;
	height: auto;
}

.flipbook-mobile img {
	max-width: 100%;
	height: auto;
}

.bb-bookblock {
	width: 100%;
	height: 0;
	margin: 0 auto;
	position: relative;
	z-index: 100;
	-webkit-perspective: 1300px;
	perspective: 1300px;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	padding-bottom: 50%;
}

.flipbook-mobile .bb-bookblock {
	padding-bottom: 100%;
}

.flipbook .secondarybutton {
	margin: 0 0 0 20px;
	float: none;
}

.overlay__buttons {
	z-index: 9;
	position: absolute;
	bottom: 40px;
	right: 40px;
	margin: 0;
}

.blankpage {
	display: inline-block;
	width: 50%;
}

.bb-page {
	position: absolute;
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-transition-property: -webkit-transform;
	transition-property: transform;
}

.bb-vertical .bb-page {
	width: 50%;
	height: 100%;
	left: 50%;
	-webkit-transform-origin: left center;
	transform-origin: left center;
}

.bb-horizontal .bb-page {
	width: 100%;
	height: 50%;
	top: 50%;
	-webkit-transform-origin: center top;
	transform-origin: center top;
}

.bb-page > div,
.bb-outer,
.bb-content,
.bb-inner {
	position: absolute;
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.bb-vertical .bb-content {
	width: 200%;
}

.bb-horizontal .bb-content {
	height: 200%;
}

.bb-page > div {
	width: 100%;
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
}

.bb-vertical .bb-back {
	-webkit-transform: rotateY(-180deg);
	transform: rotateY(-180deg);
}

.bb-horizontal .bb-back {
	-webkit-transform: rotateX(-180deg);
	transform: rotateX(-180deg);
}

.bb-outer {
	width: 100%;
	overflow: hidden;
	z-index: 999;
}

.bb-overlay,
.bb-flipoverlay {
	background-color: rgba(0, 0, 0, 0.7);
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	opacity: 0;
}

.bb-flipoverlay {
	background-color: rgba(0, 0, 0, 0.2);
}

.bb-bookblock.bb-vertical > div.bb-page:first-child,
.bb-bookblock.bb-vertical > div.bb-page:first-child .bb-back {
	-webkit-transform: rotateY(180deg);
	transform: rotateY(180deg);
}

.bb-bookblock.bb-horizontal > div.bb-page:first-child,
.bb-bookblock.bb-horizontal > div.bb-page:first-child .bb-back {
	-webkit-transform: rotateX(180deg);
	transform: rotateX(180deg);
}

/* Content display */
.bb-content {
	/*background: #fff;*/
}

.bb-vertical .bb-front .bb-content {
	left: -100%;
}

.bb-horizontal .bb-front .bb-content {
	top: -100%;
}

/* Flipping classes */
.bb-vertical .bb-flip-next,
.bb-vertical .bb-flip-initial {
	-webkit-transform: rotateY(-180deg);
	transform: rotateY(-180deg);
}

.bb-vertical .bb-flip-prev {
	-webkit-transform: rotateY(0deg);
	transform: rotateY(0deg);
}

.bb-horizontal .bb-flip-next,
.bb-horizontal .bb-flip-initial {
	-webkit-transform: rotateX(180deg);
	transform: rotateX(180deg);
}

.bb-horizontal .bb-flip-prev {
	-webkit-transform: rotateX(0deg);
	transform: rotateX(0deg);
}

.bb-vertical .bb-flip-next-end {
	-webkit-transform: rotateY(-15deg);
	transform: rotateY(-15deg);
}

.bb-vertical .bb-flip-prev-end {
	-webkit-transform: rotateY(-165deg);
	transform: rotateY(-165deg);
}

.bb-horizontal .bb-flip-next-end {
	-webkit-transform: rotateX(15deg);
	transform: rotateX(15deg);
}

.bb-horizontal .bb-flip-prev-end {
	-webkit-transform: rotateX(165deg);
	transform: rotateX(165deg);
}

.bb-item {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	display: none;
	/*background: #fff;*/
}

@font-face {
	font-family: 'arrows';
	src:url('../fonts/arrows/arrows.eot');
	src:url('../fonts/arrows/arrows.eot?#iefix') format('embedded-opentype'),
		url('../fonts/arrows/arrows.woff') format('woff'),
		url('../fonts/arrows/arrows.ttf') format('truetype'),
		url('../fonts/arrows/arrows.svg#arrows') format('svg');
	font-weight: normal;
	font-style: normal;
}

.bb-custom-wrapper {
	width: 100%;
	position: relative;
	margin: 0 auto;
	text-align: center;
}

.bb-custom-wrapper .bb-bookblock {
	/*box-shadow: 0 12px 20px -10px rgba(81,64,49,0.6);*/
}

.bb-custom-wrapper nav {
	width: 100%;
	height: 40px;
	margin: 40px auto 0;
	position: relative;
	z-index: 0;
	text-align: center;
}

.bb-custom-wrapper nav a {
	display: inline-block;
	width: 40px;
	height: 40px;
	text-align: center;
	border-radius: 20px;
	background: #7fb665;
	color: #fff;
	font-size: 0;
	margin: 2px;
}

.bb-custom-wrapper nav a:hover {
	background: #5d8c46;
}

.bb-custom-icon:before {
	font-family: 'arrows';
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	font-size: 26px;
	line-height: 40px;
	display: block;
	-webkit-font-smoothing: antialiased;
}

.bb-custom-icon-first:before,
.bb-custom-icon-last:before {
	content: "\e002";
}

.bb-custom-icon-arrow-left:before,
.bb-custom-icon-arrow-right:before {
	content: "\e003";
}

.bb-custom-icon-arrow-left:before,
.bb-custom-icon-first:before {
	-webkit-transform: rotate(180deg);
	transform: rotate(180deg);
}

.flipbook-mobile {
	display: none;
}

/* RESPONSIVE STYLES */
@media only screen and (max-width:1200px) {
	.info .image {
		display: none;
	}

	.info .text {
		width: 100%;
		float: none;
		padding: 20px;
	}
}

@media only screen and (max-width:900px) {
	h2 {
		font-size: 20px;
		line-height: 24px;
	}

	h4, p {
		font-size: 16px;
		line-height: 20px;
	}

	h1 {
		font-size: 40px;
		line-height: 44px;
	}

	header nav ul li a {
		font-size: 24px;
		line-height: 28px;
	}
}

@media only screen and (max-width:740px) {
	header nav ul li a {
		font-size: 20px;
		line-height: 24px;
	}

	.item {
		float: left;
		width: 100%;
		margin: 0 0 40px 0;
		padding: 20px;
	}

	.lower h3 {
		text-align: left;
		padding: 0 20px;
	}

	.flipbook-mobile {
		display: block;
	}

	.flipbook-desktop {
		display: none;
	}

	.buy .wrap, .lower .wrap {
		display: block;
	}
}

@media only screen and (max-width:700px) {

	.hero .image {
		display: none;
	}

	section {
		margin: 20px 0;
	}

	.hero .text {
		width: 100%;
		float: none;
		padding: 20px;
	}

	section .wrap {
		padding: 20px;
	}

	header {
		background: #fff;
	}

	h2 {
		font-size: 18px;
		line-height: 22px;
	}

	h4, p, .reduced {
		font-size: 14px;
		line-height: 18px;
	}

	h1 {
		font-size: 32px;
		line-height: 36px;
	}

	.logo {
		margin: 0 auto;
		display: block;
		float: none;
		width: 100%;
	}

	header nav {
		float: left;
		width: 100%;
		clear: left;
	}

	header nav ul {
		margin: 15px 0 0 0;
	}

	header nav ul li a {
		padding: 0 15px 0 0;
		font-size: 20px;
		line-height: 24px;
	}

	.hero {
		margin: 0;
	}

	.item {
		margin: 0 0 20px 0;
	}

	.lower .item {
		padding: 0 20px;
	}

	.item img {
		margin: 0 0 15px;
		max-width: 100%;
	}

	footer .wrap {
		padding: 0 20px;
	}

	.flipbook .wrap {
		padding: 20px;
	}

	.bb-custom-wrapper nav {
		margin: 20px auto 0;
		text-align: center;
	}
}


@media only screen and (max-width:400px) {
	.author__image {
		margin: 0 0 15px 0;
		max-width: 100%;
		width: 100%;
		height: auto;
	}

	.book__image {
		margin: 0 0 15px 0;
		max-width: 100%;
		width: 100%;
		height: auto;
	}
}