﻿body {
    margin: 0;
    padding: 0;
    background: #2c3e50;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.book {
    position: relative;
    width: 900px;
    height: 600px;
    margin: 40px auto;
    perspective: 1500px;
}

.spread {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    background: white;
    transition: all 0.6s ease;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.left-page,
.right-page {
    width: 50%;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.left-page {
    border-right: 1px solid #ccc;
}

.right-page {
    padding: 40px;
    background: #fafafa;
}

.doll-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cover-page,
.back-cover {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #c0392b;
    color: white;
    font-size: 3rem;
    text-align: center;
}

.flipped {
    transform: translateX(-100%);
    opacity: 0;
}

@media (max-width: 900px) {

    .book {
        width: 95vw;
        height: 80vh;
    }

    .right-page {
        padding: 20px;
    }
}

