/* General Body Styling */
body {
    margin: 0;
    padding: 0;
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: #333; /* Darker ambient background */
    background-image: radial-gradient(circle, #555 0%, #333 100%); /* Spotlight effect */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

/* Container for the flip book - this now holds the main shadow */
.flip-book-container {
    width: 90vw;
    height: 90vh;
    max-width: 1200px;
    max-height: 800px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5); /* Deeper, softer shadow for the whole book */
}

/* Basic page styling */
.page {
    background-color: #fffec8; /* Temporary yellow for testing */
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAD1BMVEX////29vby8vLz8/P09PTMA/B5AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAMklEQVQ4y2NgGAWjgP6ASwYmaGr+wMB/v4G5+f8whQY7A0M/gop/gA4g1g/g0oIAALsUD4VfA/kFAAAAAElFTkSuQmCC');
    border: 1px solid #ccc; /* Keep a subtle border for page definition */
}

/* This pseudo-element adds a subtle shadow gradient to the inner edge of each page */
.page::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
}

/* Gradient for the right edge of LEFT pages (to simulate shadow from the spine) */
.page:nth-child(odd)::after {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0) 100%);
}

/* Gradient for the left edge of RIGHT pages */
.page:nth-child(even)::after {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0) 100%);
}


.page .page-content {
    padding: 20px;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Trajan Pro', 'Palatino Linotype', serif;
    color: #333;
    margin-bottom: 15px;
}

h1 { font-size: 2.5em; }
h2 { font-size: 1.8em; }
h3 { font-size: 1.5em; }
p, li {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
}
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
li {
    margin-bottom: 10px;
}
strong {
    color: #333;
}

/* Specific Page Styles */

/* Cover and Back Cover */
.cover, .back-cover {
    background-color: #1a1a1a;
    color: #fff;
}
/* Remove the inner shadow for the cover pages as it doesn't make sense there */
.cover::after, .back-cover::after {
    background: none;
}

.cover h1, .cover h2, .cover p, .back-cover h2, .back-cover p {
    color: #fff;
}
.logo {
    max-width: 150px;
    margin-bottom: 20px;
}

/* Menu pages */
.page-content ul {
    text-align: left;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .flip-book-container {
        width: 100%;
        height: 100%;
    }

    h1 { font-size: 2em; }
    h2 { font-size: 1.5em; }
    h3 { font-size: 1.2em; }
    p, li { font-size: 0.9em; }

    .page .page-content {
        padding: 15px;
    }
}