@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500&family=Petemoss&display=swap");

* {
	box-sizing: border-box;
	font-family: "Cinzel", serif;
}

body {
	margin: 0;
	padding: 0;
}

h1,
h2,
h3,
h4,
h5,
p {
	margin: 0;
}

main {
	display: flex;
	justify-content: center;
	background-color: #d9d9d9;
}

.book {
	--book-height: 100vh;
	--book-ratio: 1.4;
}

.book > div {
	height: 884px;
	width: 584px;
	overflow: auto;
	background-color: #0a0a0a;
	transform: scale(0.9);
	border-radius: 6px;
	transform-origin: left;
}

.book-cover {
	display: flex;
	justify-content: center;
	align-items: center;
	position: absolute;
	z-index: 5;
	text-align: center;
 background-image: url("02.jpg");
 height: 760px;
   background-attachment: fixed;
  background-position: center; 
	  background-repeat: no-repeat;
	  background-size: cover;
	transition: transform 2s;
}

.book-cover::before {
	content: "";
	position: absolute;
	width: 0px;
	right: 0px;
	top: 0;
	bottom: 0;
	background-color: #b11509;
}

h1 {
	font-family: "Petemoss", cursive;
	font-size: 55px;
	font-weight: 300;
	color: #dbd75d;
}



.separator {
	--separator-size: 0px;
	width: var(--separator-size);
	height: var(--separator-size);
	background-color: #dbd75d;
	margin: 50px auto 60px auto;
	border-radius: 50%;
	position: relative;
}

.separator::after,
.separator::before {
	content: "";
	position: absolute;
	width: 0px;
	background-color: white;
	height: 0px;
	top: calc(50% - 1px);
}

.separator::after {
	left: 15px;
}

.separator::before {
	right: 15px;
}

.book-content {
	transform: scale(0.9) translateY(30px);
	background-color: white !important;
	transition: all 0.3s 1s;
}

.book-content h3,
.book-content p {
	opacity: 0;
	transition: all 0.3s 0.3s;
}

h2 {
	font-size: 16px;
	padding: 30px;
}

h3 {
  font-size: 10px;
	padding: 30px;
}

p {
	padding: 0px 30px 10px 30px;
	text-align: justify;
	font-size: 14px;
}

.book-cover > div {
	transition: opacity 0s 0.6s;
}

.book:hover > .book-cover {
	transform: rotateY(180deg) scale(0.9);
}

.book:hover > .book-cover > div {
	opacity: 0;
}

.book:hover > .book-content {
	transform: scale(0.9) translateY(0px);
}

.book:hover > .book-content h3,
.book:hover > .book-content p {
	opacity: 1;
}
