.resource-listing-wrapper {
	overflow-x: clip;
	display: flex;
	flex-flow: row nowrap;
	margin-left: max(calc((100% - 1136px) / 2), 20px);
}

.resource-listing-wrapper .information-carousel {
	flex: 0 0 290px;
	width: 290px;
}

.resource-listing-wrapper .information-overlay {
	flex: 0 0 290px;
	display: flex;
	flex-flow: column nowrap;
	align-items: flex-start;
	top: 0;
	left: 0;
	width: 290px;
	z-index: 1;
	background-color: var(--grey-5);
	padding: 20px 20px 20px 0;
}

.resource-listing-wrapper .mobile-image {
	display: none;
}

.resource-listing {
	flex: 1 1 auto;
}

.resource-listing .book-carousel {
	width: 100%;
	margin-top: 40px;
}

.resource-listing .flickity-viewport {
	overflow-x: clip !important;
}

.resource-listing-wrapper .information-carousel .flickity-viewport {
	overflow: visible;
}

.resource-listing .flickity-slider {
	margin-left: 140px;
}

.resource-listing .navigation-actions {
	display: flex;
	flex-flow: row nowrap;
	margin-top: 80px;
	gap: 20px;
}

.resource-listing .navigate {
	display: flex;
	background-color: var(--grey-5);
}

.resource-listing .navigate.inactive {
	cursor: default;
	opacity: 0.2;
}

.resource-listing .navigate:focus, .resource-listing .navigate:hover {
	background-color: var(--grey-3);
}

.resource-listing ::before,
.resource-listing ::after {
	content: "";
}

.resource-listing .flickity-viewport {
/* 	padding: 40px; */
	overflow: visible;
}

.resource-listing ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.resource-listing a {
	color: #2c3e50;
	text-decoration: none;
}

.resource-listing .btn {
	display: inline-block;
	margin-top: 100px; 
	font-size: 1.2em;
	font-weight: 700;
	padding: 0.1em 0.8em;
	text-align: center;
	-webkit-transform: rotate(20deg);
	-moz-transform: rotate(20deg);
	transform: rotate(20deg);
	font-family: "Indie Flower", serif;
	-webkit-transition: color 0.3s;
	-moz-transition: color 0.3s;
	transition: color 0.3s;
}

.resource-listing .btn:hover {
	color: #16a085;
}

/* basic grid, only for this demo */

/* ///////////////////////////////////////////////////

PAPERBACK
Table of Contents

1. container
2. background & color
3. opening cover, back cover and pages
4. position, transform y transition
5. events
6. Bonus
	- Figcaption
7. mini-reset

/////////////////////////////////////////////////////*/

/*
	1. container
*/

.resource-listing .book-wrapper {
	opacity: 0;
	transition: opacity 0.3s ease;
	cursor: pointer;
}

.resource-listing .book-wrapper.is-selected {
	z-index: 1;
	opacity: 1;
}

.resource-listing .book-wrapper.is-selected ~ .book-wrapper {
	opacity: 1;
}

.resource-listing .book {
	padding: 20px;
	position: relative;
	width: 160px; 
	height: 220px;
	-webkit-perspective: 1000px;
	-moz-perspective: 1000px;
	perspective: 1000px;
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	transform-style: preserve-3d;
	margin-right: 40px;
	box-shadow:
		0 2.8px 2.2px rgba(0, 0, 0, 0.034),
		0 6.7px 5.3px rgba(0, 0, 0, 0.048),
		0 12.5px 10px rgba(0, 0, 0, 0.06),
		0 22.3px 17.9px rgba(0, 0, 0, 0.072),
		0 41.8px 33.4px rgba(0, 0, 0, 0.086),
		0 100px 80px rgba(0, 0, 0, 0.12)
}

/*
	2. background & color
*/

/* HARDCOVER FRONT */

.resource-listing .paperback_front {
	background-color: var(--grey-3);
}

.resource-listing .paperback_front::after {
	background-image: -webkit-linear-gradient( -135deg, rgba(255, 255, 255, 0.45) 0%, transparent 100%);
	background-image: -moz-linear-gradient( -135deg, rgba(255, 255, 255, 0.45) 0%, transparent 100%);
	background-image: linear-gradient( -135deg, rgba(255, 255, 255, 0.45) 0%, transparent 100%);
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
}

.resource-listing .paperback_back {
	background-color: var(--grey-3);
}

/* page */

.resource-listing .ruled_paper > li {
	background-color: #fff;
	background-image: linear-gradient(rgba(200, 200, 200, 0.1) 0.1em, transparent 0.1em), linear-gradient(left, #e1ddd8 0%, #fffbf6 100%);
	background-size: 100% 0.6em;
	box-shadow: inset 0px -1px 2px rgba(50, 50, 50, 0.1), inset -1px 0px 1px rgba(150, 150, 150, 0.2);
	border-radius: 0px 10px 10px 0px;
	backface-visibility: hidden;
}

.resource-listing .ruled_paper > li.backfaced {
	transform-origin: right center;
	left: -100%;
}

/*
	3. opening cover, back cover and pages
*/

.resource-listing .paperback_front {
	transform: rotateY(-38deg) translateZ(0px);
	z-index: 100;
}

.resource-listing .paperback_back {
	transform: rotateY(-25deg);
}

.resource-listing .ruled_paper li:nth-child(1) {
	transform: rotateY(-27deg);
}

.resource-listing .ruled_paper li:nth-child(2) {
	transform: rotateY(-27deg);
}

.resource-listing .ruled_paper li:nth-child(3) {
	transform: rotateY(149deg);
}

.resource-listing .ruled_paper li:nth-child(4) {
	transform: rotateY(-31deg);
}

.resource-listing .ruled_paper li:nth-child(5) {
	transform: rotateY(145deg);
}

.resource-listing .ruled_paper li:nth-child(6) {
	transform: rotateY(-35deg);
}

/*
	4. position, transform y transition
*/

.resource-listing .paperback_front,
.resource-listing .paperback_back,
.resource-listing .paperback_front li,
.resource-listing .paperback_back li {
	border-radius: 2px 8px 8px 2px;
	position: absolute;
	top: 0;
	left: 0px;
	width: 100%;
	height: 100%;
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	transform-style: preserve-3d;
	outline: 1px solid transparent;
}

.resource-listing .paperback_front,
.resource-listing .paperback_back {
	-webkit-transform-origin: 0% 100%;
	-moz-transform-origin: 0% 100%;
	transform-origin: 0% 100%;
}

.resource-listing .paperback_front{
	-webkit-transition: all 0.5s ease, z-index 0.6s;
	-moz-transition: all 0.5s ease, z-index 0.6s;
	transition: all 0.5s ease, z-index 0.6s;
}

.resource-listing .paperback_front li img,
.resource-listing .paperback_back li img {
	border-radius: 2px 8px 8px 2px;
	position: absolute;
	top: 0;
	left: 0;
}

/* Ruled paper */

.resource-listing .ruled_paper,
.resource-listing .ruled_paper > li {
	position: absolute;
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	transform-style: preserve-3d;
}

.resource-listing .ruled_paper {
	width: 98%;
	height: 98%;
	top: 1%;
	left: 1%;
	z-index: 10;
}

.resource-listing .ruled_paper > li {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
}

.resource-listing .ruled_paper > li {
	transform-origin: left center;
	transition-property: transform;
	transition-timing-function: ease;
}

.resource-listing .ruled_paper li:nth-child(1) {
	transition-duration: 0.6s;
}

.resource-listing .ruled_paper li:nth-child(2) {
	transition-duration: 0.6s;
}

.resource-listing .ruled_paper li:nth-child(3) {
	transition-duration: 0.4s;
}

.resource-listing .ruled_paper li:nth-child(4) {
	transition-duration: 0.4s;
}

.resource-listing .ruled_paper li:nth-child(5) {
	transition-duration: 0.5s;
}

.resource-listing .ruled_paper li:nth-child(6) {
	transition-duration: 0.5s;
}

/*
	5. events
*/

.resource-listing .book-wrapper.is-selected .book > .paperback_front {
	transform: rotateY(-125deg) translateZ(0px);
	z-index: 0;
}

.resource-listing .book-wrapper.is-selected .book > .ruled_paper li:nth-child(1) {
	transform: rotateY(-30deg);
	transition-duration: 1.5s;
}

.resource-listing .book-wrapper.is-selected .book > .ruled_paper li:nth-child(2) {
	transform: rotateY(-30deg);
	transition-duration: 1.5s;
}

.resource-listing .book-wrapper.is-selected .book > .ruled_paper li:nth-child(3) {
	transform: rotateY(70deg);
	transition-duration: 2.2s;
}

.resource-listing .book-wrapper.is-selected .book > .ruled_paper li:nth-child(4) {
	transform: rotateY(-110deg);
	transition-duration: 2.2s;
}

.resource-listing .book-wrapper.is-selected .book > .ruled_paper li:nth-child(5) {
	transform: rotateY(60deg);
	transition-duration: 1.2s;
}

.resource-listing .book-wrapper.is-selected .book > .ruled_paper li:nth-child(6) {
	transform: rotateY(-120deg);
	transition-duration: 1.2s;
}

/* Cover colors */
.resource-listing .green {
	background: #2ecc71;
}

.resource-listing .red {
	background: #cb0000;
}

/*
	6. Bonus
*/

/* Media Queries */
@media screen and (max-width: 37.8125em) {
	.resource-listing .align > li {
		width: 100%;
		min-height: 440px;
		height: auto;
		padding: 0;
		margin: 0 0 30px 0;
	}

	.resource-listing .book {
		margin: 0 auto;
	}

	.resource-listing figcaption {
		text-align: center;
		width: 320px;
		top: 250px;
		padding-left: 0;
		left: -80px;
		font-size: 90%;
	}
}

@media (max-width: 500px) {
	.resource-listing-wrapper {
		flex-flow: column nowrap;
	}
	
	.resource-listing-wrapper .information-carousel {
		flex: unset;
		width: 100%;
	}
	
	.resource-listing-wrapper .information-overlay {
		width: 100%;
	}
	
	.resource-listing-wrapper .book-carousel {
		display: none;
	}
	
	.resource-listing-wrapper .navigation-actions {
		margin-top: 40px;
		gap: 0;
	}
	
	.resource-listing-wrapper .mobile-image {
		display: block;
	}

	.resource-listing-wrapper .resource-listing .book-carousel {
		display: none;
	}
}

/* #SafariIsTheNewInternetExplorer */
@supports not (overflow-x: clip) {
	.resource-listing-wrapper {
		overflow-x: hidden;
	}

	.resource-listing .book {
		box-shadow: unset;
	}

	.resource-listing .ruled_paper > li {
		box-shadow: unset;
	}
}
