/* Imports  */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* body{
    min-height: 100vh;
    background-color: var(--black-color);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
} */

.interactive-book{
    min-height: 100vh;
    background-color: var(--black-color);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.card{
    position: relative;
    background: url(/img/paper-background.jpg);
    width: 400px;
    height: 600px;
    border-top-right-radius: 10px;  
    border-bottom-right-radius: 10px;  
    cursor: pointer;
    box-shadow: 10px 0 20px rgba(0, 0, 0, 0.4), 
    inset 300px 0 50px rgba(0, 0, 0, 0.4);
    transform: perspective(2000px) rotateZ(0);
    transform-style: preserve-3d;
    transition: all 1s ease;
}

.cover{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: red;
    border-top-right-radius: 10px;  
    border-bottom-right-radius: 10px;  
    transform-origin: left;
    transform-style: preserve-3d;
    transition: all 1s ease;
}

.cover img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    backface-visibility: hidden;
    border-radius: 10px;
    
}

.cover img:nth-child(1){
    border-top-right-radius: 10px;  
    border-bottom-right-radius: 10px;  
}

.cover img:nth-child(2){
    transform: rotateY(-180deg);  
    border-top-left-radius: 10px;  
    border-bottom-left-radius: 10px;    
}

.card:hover{
    transform: perspective(2000px) rotateZ(-10deg);
    box-shadow: 10px 0 20px rgba(0, 0, 0, 0.4), 
    inset 30px 0 50px rgba(0, 0, 0, 0.4);
}

.card:hover .cover{
    transform: rotateY(-135deg);
    box-shadow: 10px 0 20px rgba(0, 0, 0, 0.4);
}

.content{
    color: var(--black-color);
    width: 100%;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.content h2{
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: #641B2E;
}

.content p{
    margin-bottom: 1rem;
}
.content em{
    font-weight: 600;
    color: #641B2E;
}

.book-buttons{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.book-buttons a{
  text-decoration: none;
}