/* turn.js additional*/

.bookViewer{
	margin: 5px auto 0 auto;
}

.bookViewer .page{
	background: #FFF;
}

/* Navigation arrows styles */
#navigationArrows {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1000;
	display: none; /* Hidden by default */
}

/* Show arrows only when viewer is in book mode */
#viewerContainer:has(.bookViewer) #navigationArrows,
.bookViewer ~ #navigationArrows {
	display: block;
}

.navigation-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 80px;
	height: 80px;
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, 0.6);
	font-size: 48px;
	font-weight: 300;
	cursor: pointer;
	pointer-events: auto;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.7;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
	font-family: Arial, sans-serif;
}

.navigation-arrow:hover {
	color: rgba(255, 255, 255, 0.9);
	opacity: 1;
	transform: translateY(-50%) scale(1.2);
	text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.navigation-arrow-left {
	left: 30px;
}

.navigation-arrow-right {
	right: 30px;
}

.navigation-arrow span {
	display: block;
	line-height: 1;
	margin: 0;
	padding: 0;
	letter-spacing: -2px;
}

/* PDF.js additional */

.secondaryToolbarButton.bookFlip::before {
	content: url(secondaryToolbarButton-bookFlip.png);
}

@media screen and (-webkit-min-device-pixel-ratio: 1.1), screen and (min-resolution: 1.1dppx) {
	.secondaryToolbarButton.bookFlip::before {
		content: url(secondaryToolbarButton-bookFlip@2x.png);
	}
}
