/* Reset & body */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}

/* Container for links */
.links {
    max-width: 800px;
    margin: auto;
    padding: 20px;
}

/* Section headings */
h2 {
    margin-top: 30px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
    color: #333;
}

/* Links styling */
.links a {
    display: block;
    margin: 8px 0;
    text-decoration: none;
    color: #007BFF;
    font-size: 18px;
    transition: 0.2s;
}

.links a:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Flipbook container */
#flipbook {
    width: 800px;
    height: 600px;
    margin: 20px auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    display: none; /* hidden initially */
}

/* Flipbook pages */
#flipbook .page {
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Canvas inside pages */
#flipbook .page canvas {
    max-width: 100%;
    max-height: 100%;
}

/* Page number */
.page-number {
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 14px;
    color: #555;
    font-family: sans-serif;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Flip buttons */
.flip-buttons {
    text-align: center;
    margin-top: 20px;
}

.flip-buttons button {
    margin: 0 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: 0.2s;
}

.flip-buttons button:hover {
    background-color: #0056b3;
}

/* Cover page styling */
.cover-page {
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: Arial, sans-serif;
    flex-direction: column;
}

.cover-page h1 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: bold;
}

.cover-page h2,
.cover-page h3 {
    font-size: 24px;
    margin: 5px 0;
}