.book-container {
    perspective: 1500px;
    position: relative;
    font-family: 'Georgia', serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

.book {
    width: 500px;
    height: 620px;
    margin-bottom: 30px;
    margin-top: 30px;
    position: relative;
    transform-style: preserve-3d;
    border-radius: 8px;
    box-shadow:
        0 0 20px rgba(0,0,0,0.3),
        inset 0 0 10px rgba(0,0,0,0.2);
}

.book-spine {
    position: absolute;
    left: -20px;
    top: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to right, #654321, #8B4513);
    border-radius: 8px 0 0 8px;
    transform-origin: right center;
    transform: rotateY(-90deg);
}



.page {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #FFF8DC;
    border-radius: 0 8px 8px 0;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #DDD;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.page.flipped {
    transform: rotateY(-180deg);
}

.page-content {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    backface-visibility: hidden;
}

.page-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    background: #FFF8DC;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    border-radius: 0 8px 8px 0;
}

.page-title {
    font-size: 24px;
    color: #8B4513;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #CD853F;
    padding-bottom: 10px;
    font-weight: bold;
}

.story-entry {
    margin-bottom: 15px;
    padding: 8px 12px;
    border-left: 3px solid #CD853F;
    background: linear-gradient(to right, rgba(205, 133, 63, 0.1), transparent);
    border-radius: 0 4px 4px 0;
    transition: all 0.3s ease;
    font-weight: normal;
    color: black;
}

.story-entry:hover {
    background: linear-gradient(to right, rgba(205, 133, 63, 0.2), rgba(205, 133, 63, 0.05));
    transform: translateX(5px);
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

.story-link {
    text-decoration: none;
    color: #654321;
    font-size: 16px;
    line-height: 1.4;
    display: block;
}

.story-link:hover {
    color: #8B4513;
}

.story-chapter {
    font-size: 12px;
    color: #A0522D;
    font-style: italic;
    margin-top: 2px;
}

.navigation {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-button {
    background: #8B4513;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Georgia', serif;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.nav-button:hover:not(:disabled) {
    background: #A0522D;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-indicator {
    color: #8B4513;
    font-weight: bold;
    font-size: 16px;
    background: rgba(255, 248, 220, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cover-page {
    /* background: linear-gradient(135deg, #CD853F, #DEB887); */
    color: #654321;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    height: 100%;
}

.part-title {
    font-size: 28px;
    color: #8B4513;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px solid #CD853F;
    padding-bottom: 15px;
    font-weight: bold;
}

.chapter-break {
    font-size: 18px;
    color: #A0522D;
    margin: 20px 0 15px 0;
    text-align: center;
    font-style: italic;
    border-top: 1px solid #CD853F;
    padding-top: 10px;
}

.cover-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.cover-subtitle {
    font-size: 18px;
    font-style: italic;
    opacity: 0.8;
}