/* 기본 배경 설정 */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: radial-gradient(circle, #e8daff 0%, #f3e5f5 40%, #ffffff 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: 'Apple SD Gothic Neo', sans-serif;

}

/* 2. 플립북과 번호를 세로로 나열하고 중앙 정렬 */
#flipbook-wrapper {
    position: relative;
    display: inline-flex;
    flex-direction: column;  /* 위아래로 배치 */
    align-items: center;     /* 가로축 기준 중앙 정렬 */
    justify-content: center;
}

/* 플립북 컨테이너 */
#flipbook {
    background-color: transparent;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2));
}

/* 개별 페이지 스타일 */
.page {
    background-color: #fff;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset 0px 0 20px rgba(0,0,0,0.1);
}

/* 북마크 컨테이너: 플립북 오른쪽 끝에 고정 */
#bookmark-container {
    position: absolute;
    left: 100px /* 플립북이 끝나는 지점부터 시작 */
    top: 50px;
    display: flex;
    flex-direction: column;
    transform: translateY(-50%);
    height: auto;
    height: 100%;
    z-index: 1000; /* 페이지보다 위에 표시 */ 
}

/* 북마크 개별 스타일 */
.bookmark-fixed {
    width: 50px;
    padding: 15px 8px;
    margin-bottom: 5px;
    background: #b39ddb;
    color: white;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border-radius: 0 10px 10px 0;
    box-shadow: 3px 2px 8px rgba(0,0,0,0.1);
    writing-mode: vertical-rl; /* 세로 쓰기 */
    transition: all 0.2s ease;
    white-space: nowrap;
    display: block;
}

.bookmark-fixed:hover {
    background: #9575cd;
    width: 60px; 
}


/* 페이지 번호 디자인 */
#page-number {
    margin-top: 30px;
    font-size: 16px;
    color: #555;
    background: rgba(255, 255, 255, 0.6); /* 반투명 흰색 */
    padding: 8px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-weight: 500;
    letter-spacing: 1px;
    display: block;
    transition: all 0.3s ease;
}


/* 컨테이너 중앙 정렬 보정 */
#flipbook-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 800px) {
    #bookmark-container {
        left: auto;
        right: -60px;
    }
}
