.man {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.book-container {
    position: relative;
    width: 300px;
    height: 400px;
    perspective: 1200px;
}

.book {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
}

.book-container:hover .book {
    transform: rotateY(-150deg);
}

.book .cover,
.book .back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Front Cover */
.book .cover {
    background: #10ddcf34;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
}

.book .cover img {
    width: 100%;
    height: 80%;
    object-fit: cover;
}

/* Back Cover */
.book .back {
    background: #f6ff00;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .book-container {
        width: 250px;
        height: 350px;
    }
}

@media (max-width: 480px) {
    .book-container {
        width: 200px;
        height: 300px;
    }

    .book .cover,
    .book .back {
        font-size: 14px;
        padding: 15px;
    }
}