

#book {
    width: 46vw;
    height: 46vh;
    perspective: 1500px;
    position: relative;
    margin-top: 2vh;
    align-items: center;
}

.page {
    width: 100%;
    height: 100%;
    padding: 40px;
    box-sizing: border-box;
    position: absolute;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transform-origin: left center;
    transform: rotateY(0deg);
    transition: transform 0.5s ease, opacity 0.5s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page:not(.active) {
    display: none;
    opacity: 0;
}

.page.active {
    display: block;
    opacity: 1;
}

.page h1 {
    margin-top: 0;
    color: #333;
}

#tableofContents {
    initial-letter-align: auto;
    text-align: center;
}

#tableOfContents ul {
    list-style-type: none;
    padding: 0;
}

#tableOfContents ul li {
    margin: 10px 0;
}

#tableOfContents a {
    text-decoration: none;
    color: #BA122B;
    transition: color 0.3s ease;
    position: relative;
}

#tableOfContents a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    left: 0;
    background: black;
    transition: width 0.3s ease;
}

#tableOfContents a:hover::after {
    width: 100%;
}

#pageNumbers {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pageNumber {
    font-size: 18px;
    color: #BA122B;
    cursor: pointer;
    margin: 0 10px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.pageNumber:hover {
    color: #fff;
    background-color: #BA122B;
}





.disclaimer {
    text-align: center;
}

.links a {
    text-decoration: none;
    color: #BA122B;
    transition: color 0.3s ease;
    position: relative;
    font-weight: bold;
}

.links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    left: 0;
    background: black;
    transition: width 0.3s ease;
}

.links a:hover::after {
    width: 100%;
}


#tableOfContents {
    color: #BA122B;
    text-decoration: none;
    transition: text-decoration-color 0.3s;
    font-weight: bold;
}

.toc-links {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page h2 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 24px;
    color: black;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 20px 0;
    border-bottom: 2px solid #BA122B;
    padding-bottom: 10px;
    text-align: center;
}