body {
    font-family: 'Georgia', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #2b2b2b;
    color: #f5f5dc;
}

.book {
    position: relative;
    width: 600px;
    height: 800px;
    perspective: 1500px;
    background: #3e3e3e;
    border: 2px solid #8b4513;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

.page {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #f5f5dc;
    border: 1px solid #d2b48c;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    backface-visibility: hidden;
    transform-origin: left;
    transform: rotateY(0deg);
    transition: transform 0.6s;
    font-size: 20px;
    line-height: 1.6;
}

.page:nth-child(2),
.page:nth-child(3) {
    transform: rotateY(-180deg);
}

.page .content {
    padding: 40px;
    text-align: justify;
    font-family: 'Courier New', monospace;
    color: #3e3e3e;
}

button {
    position: absolute;
    bottom: 20px;
    padding: 15px 30px;
    background-color: #8b4513;
    color: #f5f5dc;
    border: none;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #a0522d;
}

button.prev {
    left: 20px;
}

button.next {
    right: 20px;
}

button:disabled {
    background-color: #5c4033;
    cursor: not-allowed;
}