body { background-color: #333; margin: 0; overflow: hidden; font-family: sans-serif; }
#canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}
#flipbook {
    width: 90vw;
    height: 90vh;
}
#controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    gap: 15px;
    z-index: 100;
}
#controls button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
}
#back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    background: #e11d48;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
}

/* Container untuk loading */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(51, 51, 51, 0.9); /* Warna background gelap transparan */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Pastikan paling atas */
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-content i {
    font-size: 50px;
    color: #e11d48;
    margin-bottom: 10px;
}

.loader-content p {
    font-family: sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pastikan class .page memiliki posisi relatif agar spinner tetap di tengah */
.page {
    position: relative;
    background-color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}