/* reset */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
li{
    list-style: none;
}
a{
    text-decoration: none;
    color: #000;
}

body {
    margin: 0;
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* 뷰어 컨테이너 영역 */
.book-container {
    width: 100%;
    max-width: 800px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 16px 16px 40px;
    border-radius: 8px;
    position: relative;
}

/* 닫기 버튼 스타일 */
.close-button {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 22px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    background: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    z-index: 999; /* 항상 위에 있도록 설정 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.close-button:hover {
    color: #000;
}

/* PDF 페이지 캔버스 스타일 */
canvas {
    width: 100% !important;
    height: auto !important;
    transition: transform 0.6s ease;
    display: block;
    margin: 0 auto;
}

/* 페이지 넘김 버튼 영역 */
.controls {
    margin-top: 16px;
    text-align: center;
}

.controls button {
    padding: 10px 16px;
    margin: 0 12px;
    font-size: 16px;
    background-color: #555;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.controls button:hover {
    background-color: #333;
}

#page-info {
    font-weight: bold;
    font-size: 16px;
}

/* 반응형 */
@media (max-width: 480px) {
    .controls button {
        padding: 8px 12px;
        font-size: 14px;
        margin: 0 6px;
    }

    #page-info {
        display: block;
        margin-top: 8px;
    }
}
