body {
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#flipbook-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 600px;
}

#flipbook {
    width: 100%;
    height: 100%;
}

#flipbook .page {
    background-color: white;
    border: 1px solid #c0c0c0;
    overflow: hidden;
}

#flipbook .page canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    #flipbook-container {
        max-width: 450px;
    }
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    border-radius: 50%;
    font-size: 24px;
}

#prev-button {
    left: 10px;
}

#next-button {
    right: 10px;
}

@media (max-width: 768px) {
    .nav-button {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}

#loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 2000;
}

#page-navigation {
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#page-navigation.desktop {
    position: absolute;
    top: 20px;
    right: 20px;
}

#page-navigation.mobile {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 300px;
}

#page-input,
#page-input-mobile {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 14px;
}

#go-to-page,
#go-to-page-mobile {
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

#go-to-page:hover,
#go-to-page-mobile:hover {
    background-color: #45a049;
}

@media (max-width: 768px) {
    #page-navigation.desktop {
        display: none;
    }

    #page-navigation.mobile {
        display: block;
    }
}

#current-page-display {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
