* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Arial', sans-serif;
            background: #f0f0f0;
            overflow: hidden;
            height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            touch-action: pan-y;
        }

        #toolbar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 50px;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            backdrop-filter: blur(5px);
            padding: 0 10px;
        }

        .toolbar-btn {
            background: transparent;
            border: none;
            color: white;
            margin: 0 5px;
            cursor: pointer;
            font-size: 14px;
            padding: 5px 8px;
            border-radius: 3px;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            white-space: nowrap;
        }

        .toolbar-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .toolbar-btn i {
            margin-right: 5px;
        }

        #page-info {
            color: white;
            margin: 0 10px;
            font-size: 14px;
            min-width: 80px;
            text-align: center;
        }

        #flipbook-container {
            width: 90vw;
            height: calc(90vw * 1.777);
            /* 16:9 aspect ratio */
            max-width: 1080px;
            max-height: calc(1080px * 1.777);
            perspective: 3000px;
            margin-top: 60px;
        }

        #flipbook {
            width: 100%;
            height: 100%;
            position: relative;
            transform-style: preserve-3d;
            transition: transform 0.5s;
        }

        .page {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            background-image:url("../img/background.jpg");
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 2px;
            backface-visibility: hidden;
            transform-origin: left center;
            transform-style: preserve-3d;
            overflow: hidden;
        }

        .page-content {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 15px;
        }

        .page h1 {
            font-size: 2.5rem;
            margin-bottom: 20px;
            color: #333;
        }

        .page p {
            font-size: 1.2rem;
            line-height: 1.6;
            color: #555;
            max-width: 90%;
        }

        .page img {
            max-width: 100%;
            max-height: 100%;
            margin: 15px 0;
            object-fit: contain;
            box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
            border-radius: 20px;
        }

        .nav-btn {
            position: fixed;
            top: 50%;
            transform: translateY(-50%);
            width: 50px;
            height: 50px;
            background: rgba(0, 0, 0, 0.3);
            border: none;
            border-radius: 50%;
            color: white;
            font-size: 20px;
            cursor: pointer;
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }

        .nav-btn:hover {
            background: rgba(0, 0, 0, 0.6);
        }

        #prev-btn {
            left: 10px;
        }

        #next-btn {
            right: 10px;
        }

        #thumbnail-container {
            position: fixed;
            bottom: 20px;
            left: 0;
            width: 100%;
            height: 100px;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            overflow-x: auto;
            padding: 0 10px;
            display: none;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(5px);
        }

        .thumbnail {
            width: 60px;
            height: 80px;
            margin: 0 5px;
            background: white;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            background-size: cover;
            background-position: center;
            flex-shrink: 0;
        }

        .thumbnail:hover {
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
        }

        .flag-effect {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 60%);
            z-index: 10;
            pointer-events: none;
            opacity: 0;
            transform-origin: left center;
        }

        .page-turning .flag-effect {
            animation: flagWave 1s ease-in-out;
        }

        @keyframes flagWave {
            0% {
                opacity: 0;
                transform: rotateY(0deg);
            }

            50% {
                opacity: 1;
            }

            100% {
                opacity: 0;
                transform: rotateY(90deg);
            }
        }

        body.fullscreen {
            overflow: hidden;
        }

        body.fullscreen #flipbook-container {
            width: 100vw;
            height: 100vh;
            margin-top: 0;
        }

        /* Zoom styles */
        .zoomed {
            transform: scale(1.5);
            transform-origin: center center;
            transition: transform 0.3s;
        }

        /* Mobile specific styles */
        @media (max-width: 768px) {
            #flipbook-container {
                width: 95vw;
                height: calc(95vw * 1.777);
            }

            .toolbar-btn span {
                display: none;
            }

            .toolbar-btn i {
                margin-right: 0;
            }

            #page-info {
                min-width: 60px;
                font-size: 12px;
            }

            .nav-btn {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }

            .page h1 {
                font-size: 2rem;
                margin-bottom: 15px;
            }

            .page p {
                font-size: 1rem;
            }

            #thumbnail-container {
                height: 80px;
            }

            .thumbnail {
                width: 50px;
                height: 70px;
            }
        }

        @media (max-width: 480px) {
            #toolbar {
                height: 40px;
                padding: 0 5px;
            }

            .toolbar-btn {
                padding: 5px;
                margin: 0 3px;
            }

            #flipbook-container {
                margin-top: 50px;
            }

            .page-content {
                padding: 10px;
            }

            .page h1 {
                font-size: 1.8rem;
                margin-bottom: 10px;
            }
        }

    
    /* Tambahkan ini di bagian style yang sudah ada */
    

    .page-rolling::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.1);
        z-index: 5;
        transform-origin: left center;
        transform: rotateY(0deg);
    }

    .page-rolling-left {
        animation: rollLeft 1s ease-in-out forwards;
    }

    .page-rolling-right {
        animation: rollRight 1s ease-in-out forwards;
    }

    @keyframes rollLeft {
        0% {
            transform: rotateY(0deg);
            box-shadow: none;
        }
        50% {
            box-shadow: -15px 0 30px rgba(0, 0, 0, 0.3);
        }
        100% {
            transform: rotateY(-180deg);
            box-shadow: none;
        }
    }

    @keyframes rollRight {
        0% {
            transform: rotateY(-180deg);
            box-shadow: none;
        }
        50% {
            box-shadow: 15px 0 30px rgba(0, 0, 0, 0.3);
        }
        100% {
            transform: rotateY(0deg);
            box-shadow: none;
        }
    }

    .page-content {
        backface-visibility: hidden;
    }