body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #e8d3b9 0%, #f5f5f0 100%);
    font-family: 'Georgia', serif;
}

.book-container {
    position: relative;
    width: 90%;
    height: 700px;
    perspective: 1450px;
    /* margin-right: 200px; */
}

.book {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s ease;
}

/* .cover-book-image {

} */
.credit {
    position: fixed;
    bottom: 10px;
    left: 10px;
    font-size: 14px;
    color: #777;
    font-style: italic;
    z-index: 100;
}

.heart {
    color: #ff5252;
    display: inline-block;
    animation: pulse 1.5s infinite;
}
.page {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
    box-sizing: border-box;
    transform-origin: left center;
    backface-visibility: hidden;
    transition: transform 0.7s ease;
}

.page.active {
    z-index: 1;
}

.page.flipped {
    transform: rotateY(-180deg);
}

.page-content {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-number {
    position: absolute;
    bottom: 20px;
    font-style: italic;
    color: #888;
}

.odd-page .page-number {
    right: 40px;
}

.even-page .page-number {
    left: 40px;
}

.book-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 40px;
    color: #333;
}

.nav-buttons {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    top: 50%;
    z-index: 10;
}

.nav-button {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.nav-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.nav-button.prev {
    margin-left: -20px;
}

.nav-button.next {
    margin-right: -20px;
}

.cover {
    /* background-color: #8B4513; */
    background-image: url('/assets/img/template\ design.png');
    background-size: 1450px;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-repeat: no-repeat;
    /* margin-left: 20px;; */
    /* margin-right: 2000px; */
}

.page-1 {
/* background-color: #8B4513; */
    background-image: url('/assets/img/2.png');
    background-size: 1450px;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.page-2 {
/* background-color: #8B4513; */
    background-image: url('/assets/img/3.png');
    background-size: 1450px;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.page-3 {
/* background-color: #8B4513; */
    background-image: url('/assets/img/4.png');
    background-size: 1450px;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.page-4 {
/* background-color: #8B4513; */
    background-image: url('/assets/img/5.png');
    background-size: 1450px;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.page-5 {
/* background-color: #8B4513; */
    background-image: url('/assets/img/6.png');
    background-size: 1450px;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cover h1 {
    font-size: 32px;
    margin-bottom:390px;
    color: rgb(125, 39, 39);
    font-weight: bold;
    font-style: italic;
}

.cover p {
    font-style: italic;
    color: rgb(125, 39, 39);
    font-weight: bold;
}

.chapter-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

/* Book binding effect */
.binding {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.1),
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0.1));
    transform: translateX(-50%);
    z-index: 2;
}