body {
	font-family: sans-serif;
}

.bookWrapper {
	width: min(1000px, 100%);
	aspect-ratio: 12/11;
	margin: auto;
}

.bookWrapper canvas {
    height: 100%;
}

.bookBg {
	position: relative;
	background-color: #87622c;
	width: 100%;
	height: 100%;
}

.pageBg {
	position: absolute;
	left: 50%;
	top: 50%;
	background-color: #f2e0c8;
	width: calc(100% - 5px);
	height: calc(100% - 5px);
	border-radius: 0px;
}

.pageWrapper {
	position: absolute;
	width: 50%;
	height: 100%;
	float: left;
	-webkit-font-smoothing: antialiased;
}

.page {
	position: absolute;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.pageFace {
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	text-align: center;
}

.front {
	background: linear-gradient(to right, #d9d9d9 0%, #f9f9f9 3%, #ffffff 8%, #ffffff 100%);
}

.back {
	background: linear-gradient(to right, #ffffff 0%, #ffffff 92%, #f9f9f9 97%, #d9d9d9 100%);
}

.pageFoldRight {
	position: absolute;
	width: 0px;
	height: 0px;
	top: 0;
	right: 0;
	border-left-width: 2px;
	border-left-color: #f2e0c8;
	border-left-style: solid;
	/* border-bottom-width: 1px;
	border-bottom-color: #DDDDDD;
	border-bottom-style: solid;
	box-shadow: -5px 5px 10px #dddddd; */
}

.pageFoldLeft {
	position: absolute;
	width: 0px;
	height: 0px;
	top: 0;
	left: 0;
	border-right-width: 3px;
	border-right-color: #f2e0c8;
	border-right-style: solid;
	/* border-bottom-width: 1px;
	border-bottom-color: #DDDDDD;
	border-bottom-style: solid;
	box-shadow: 5px 5px 10px #dddddd; */
}

.pageFoldRight, 
.pageFoldLeft {
	border-bottom-width: 2px;
	border-bottom-color: #f2e0c8;
	border-bottom-style: solid;
	box-shadow: -1px 1px 1px #f2e0c8;
}

/* Rex added here */
.flipbook-wrapper {
	background-image: url('/ResourcePackages/Gleneagles/assets/dist/images/digital-menu/flipbook-bg.jpg');
	background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
	min-height: 600px;
}

.flipbook-list h2 {
	text-align: center;
	font-size: 36px;
	font-weight: bold;
	margin: 30px 0px;
	color: #00a3a8;
}

.flipbook-list .row {
	justify-content: center;
}

.flipbook-list .list-item {
	position: relative;
	isolation: isolate;
	height: 250px;
	border-radius: 15px;
	overflow: hidden;
	margin-bottom: 30px;
}

.flipbook-list .list-item::before {
	content: '';
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0, 0.5);
	z-index: 2;

	transition: all 0.3s linear;
}

.flipbook-list .list-item::after {
	content: '';
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;

	background-image: url('/ResourcePackages/Gleneagles/assets/dist/images/flipbook/gettyimages-1173670237-2048x2048.jpg'); 	
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
	z-index: 1;

	transition: all 0.3s linear;
}

.flipbook-list .list-item a {
	display: grid;
	position: relative;
	place-content: center;
    height: 100%;
	width: 100%;
	font-size: 26px;
	color: white;
	z-index: 3;
	padding: 30px;
	text-align: center;
}

.flipbook-list .list-item:hover::before {
	background-color: rgba(0,0,0, 0.7);
}

.flipbook-list .list-item:hover::after {
	scale: 1.05;
}

/* flipbook detail */
.flipbook-detail {
	padding-bottom: 50px;
	padding-top: 30px;
}

.flipbook-detail .flipbook-title {
	text-align: center;
	font-size: 36px;
	font-weight: bold;
	padding: 30px 0px;
	color: #00a3a8;
}

/* selectric */
.selectric {
	border-color: #00a3a8 !important;
	border-radius: 10px;
}

.selectric .label,
.selectric-items .selectric-scroll li {
	color: #00a3a8;
}

.selectric-items .selectric-scroll li:hover {
	background-color: #00a3a8;
	color: white;
}

.selectric .selectric-button {
	top: calc(50% - 25px);
	text-align: right;
	right: 20px;
}

.selectric .selectric-button:before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-right: 2px solid #5fb4ba;
    border-bottom: 2px solid #5fb4ba;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-transition: -webkit-transform .5s ease;
    transition: -webkit-transform .5s ease;
    transition: transform .5s ease;
    transition: transform .5s ease,-webkit-transform .5s ease;
}

.selectric-open .selectric-button:before {
    -webkit-transform: rotate(225deg) !important;
    -ms-transform: rotate(225deg) !important;
    transform: rotate(225deg) !important;
}

/* misc */
.main-container {
	padding-bottom: 0px !important;
}	

@media only screen and (max-width: 767.98px) {
	.bookWrapper {
		width: 200%;
		aspect-ratio: 7/5;
		margin: auto;
		translate: -50% 0px;
	}
}

/* new flipbook */
#flipbook {
	width: min(1000px, calc(100% - 30px)) !important;
    height: unset !important;
    aspect-ratio: 12/11;
	margin: auto;
}

/* #flipbook .turn-page-wrapper > div {
	height: 100% !important;
	width: 100% !important;
}

#flipbook .turn-page-wrapper canvas {
	height: 100% !important;
	width: 100% !important;
} */

#flipbook .turn-page {
	width: 100%;
	height: 100%;
	background-position: center;
	background-size: cover;
}

.click-swipe-text {
	position: absolute;
    bottom: 0px;
    right: 0px;
	display: flex;
}

.click-swipe-text-left {
	position: absolute;
    bottom: 0px;
    left: 0px;
	display: flex;
}

.click-swipe-text p,
.click-swipe-text-left p {
	color: black;
	margin-bottom: 0px !important;
    align-self: center;
}

.click-swipe-text img,
.click-swipe-text-left img {
	width: 35px;
}

.click-text-top-left {
	position: absolute;
    top: 5px;
	left: 5px;
	color: black;
}

.click-text-top-right {
	position: absolute;
    top: 5px;
	right: 5px;
	color: black;
}

/* new arrow button */
.leftArrowButton,
.rightArrowButton {
	position: absolute;
	top: 48%;
	padding: 30px 15px;
	background: rgba(0,0,0,0.3);
	cursor: pointer;
}

.leftArrowButton {
	left: 0px;
}

.rightArrowButton {
	right: 0px;
}

.leftArrowButton img,
.rightArrowButton img {
	width: 25px;
	height: 100%;
}

@media only screen and (max-width: 767.98px) {
	#flipbook {
		aspect-ratio: 6/11;
	}
}