/* **** Page Turner **** */

#pageturn
{
	box-sizing: border-box;
}

.ctrls
{
	display: flex;
	align-items: center;
	justify-content: center;
}

.ctrls .ptpagetxt
{
	display: inline-block;
	margin-right: 10px;
}

.ctrls .rangeshow
{
	margin-left: 10px;
	width: 70px;
}

#bookouter
{
	margin: 20px 0;
	padding-left: 50%;
	transform-style: preserve-3d;
}

#textouter
{
	display: flex;
	margin: 20px 0;
}

.book, .book > div, .textbook, .textbook > div
{
	transform-style: preserve-3d;
	position: absolute;
	_cursor: pointer;
}

.book > div, .textbook > div
{
	transition: 1s ease-in-out;
}

/* Front and back of a page */

.book > div > div:first-child,
.book > div > div:last-child,
.textbook > div > div:first-child,
.textbook > div > div:last-child
{
	position: absolute;
	overflow: hidden;
	_cursor: pointer;
}

.book > div > div:first-child,
.book > div > div:last-child
{
	user-select: none;
}

.book > div > div:first-child,
.textbook > div > div:first-child
{
	transform: translate3d(0, 0, 0.02px);
	text-align: left;
}

.book > div > div:last-child,
.textbook > div > div:last-child
{
	transform: rotateY(180deg);
	text-align: right;
}

.bookpagetext, .bookpagetext p
{
	text-align: left;
}

.bookpagetext
{
	overflow: hidden;
	box-sizing: border-box;
	display: inline-block;
	background-color: white;
	width: calc(50% - 10px);
	margin: 0 5px;
}

.booktextinner
{
	overflow: auto;
	box-sizing: border-box;
	margin: 10px;
}

