/*
=========================================================================
| Style by |
| Davi Coscarelli |
=========================================================================
| ████████████████ ██ ██ ████████████ ████████████████ |
| ███ ██ █████ ███████████ ███ ██ ███ |
| ██ ██ ████ ████████████ ███ ██ ███ |
| ██ ██████ ██ ███████ ███████ █████ ██ ███████ ███ |
| ██ ██████ ██ █████ ██ ███ ███████████ ██ ███████ ███ |
| ██ ██████ ██ ██ ███████ █████████ ██ ███████ ███ |
| ██ ██ ██ ██ ███████ ███ ██ ███ |
| ███ ███ ███ ██ ███████ ███ ███ ███ |
| ████████████████ ██ ██ ███ ██ ███ ██ ███ ████████████████ |
| ███ ██ ███ ██ |
| ███████████ ███████████ ███ █████████ ██ ██ ██ ██ |
| ██ █████ ██ ███ ██ ███ █████ ███████ ███ |
| ██ ███████ ██ ████████████████ ████ |
| ██ ███████ ██ ████████████████ ████ |
| ██ ██████ ████ █████ ██ ██ ██ |
| ███████ █████ ██ ██ ████████████ ██ ████ |
| █████ ██ ████ ███ █████ ████ ████ ███ ███ |
| ███████ ███████ ████████ ██ ███ ████ ████ |
| ███████ ███████ ████████ ██ ███ █████ ████ |
| █████ █████ ███ ███ ███████ ███ ███████ ██ |
| ███████ ███████ ███ ████ ██ ██ ████ |
| ██ ████ ███ ██ █████ ███ █████ ███████ ██ ███ |
| ██ ██ ██ ████████████ █████ ███ ██ |
| ██ ██ █ ███████████ █████ ███ ██ |
| ██ ██ ████ ██ █████ ████ █████ ███ |
| ██ ██ ██ ███ ██ █████ █████ ████████████ ███████ |
| ███████ ███ ██ ███ ████████████ |
| ████████████████ ███ ██ ███ ██ █████████ ██ ███████ |
| ██ ██ ██ ███ ██ ███ █████ ███ ██ |
| ██ ██ ██ ███ ██ ███ ████ ███ ███ |
| ██ ██████ ██ ███ ██ ██ █████████ ████████████ ███████ |
| ██ ██████ ██ █████ ██ █████████ ██ █████████ |
| ██ ██████ ██ █████ █████ █████ ████ █████████████ |
| ██ ██ ███ ██ ██ ███ ██████ ███ ██ ██ |
| ███ ███ ███ ███ ██ ███ ████████ ███ ███ ██ |
| ████████████████ █████ ████ █████████ ██ █████████ |
=========================================================================
*/
/* General */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
height: 100%;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
font-family: sans-serif;
overflow: hidden;
background-color: black;
}
.content {
background-color: #EDE1C0;
width: calc(100vh);
height: 100vh;
padding: 50px;
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
}
/* Button */
button {
border: none;
background-color: transparent;
margin: 10px;
cursor: pointer;
transition: transform 0.5s;
}
button:focus {
outline: none;
}
button:hover i {
color: rgb(102, 102, 102);
}
i {
color: gray;
font-size: 4em;
}
/* Book */
.book {
width: calc(45vh);
position: relative;
transition: transform 0.5s;
}
.paper {
height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 0;
perspective: 1500px;
}
.front {
backface-visibility: hidden;
}
.front,
.back {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
display: flex;
justify-content: center;
align-items: center;
transform-origin: left;
transition: transform 1s;
}
.front {
z-index: 1;
}
.back {
z-index: 0;
}
.front-content,
.back-content {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.back-content {
transform: rotateY(180deg)
}
/* Paper Flipped */
.flipped .front,
.flipped .back {
transform: rotateY(-180deg);
}
.book-title {
font-size: 3em;
margin-bottom: 40px;
}
.cover-img {
width: 200px;
height: 270px;
object-fit: cover;
border-radius: 30px;
}
.controls {
margin-top: 50px;
}
#b1 {
padding: 20px;
text-align: center;
font-size: 1.2em;
justify-content: space-around;
}
#b1 h2 {
font-size: 2em;
margin-top: 10px;
margin-bottom: 20px;
}
#b1 p {
margin-bottom: 20px;
}
.canvas {
width: 50%;
height: 100%;
position: absolute;
top: 0;
left: 0;
display: flex;
justify-content: center;
align-items: center;
background-color: white;
transform-origin: left;
transition: transform 0.1s;
}