body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: sans-serif;
}

.container {
    width: 95vw;
    height: calc(100vh - 100px);
    /* Leave room for buttons at the bottom */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

/* Ensure the book takes up available space but maintains aspect ratio logic via JS */
#book {
    /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); */
    /* Ensure book fills the container relative to its aspect ratio */
    width: 100%;
    height: 100%;
}

.page {
    background-color: white;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    /* Moving shadow to pages */
}

.page-blank {
    background: transparent;
    box-shadow: none !important;
}

.controls {
    margin-top: 10px;
    z-index: 10;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 5px;
    margin: 0 10px;
    transition: background 0.3s;
}

button:hover {
    background: rgba(255, 255, 255, 1);
}