body {
    font-family: 'Lato', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #222;
    color: #fff;
}

#book {
    width: 80%;
    height: 80%;
    background-color: #333;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 50px auto;
    animation: book-fade-in 1s ease;
}

#cover {
    flex: 1;
    background-color: #444;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: cover-fade-in 1s ease;
}

#pages {
    flex: 4;
    background-color: #333;
    padding: 20px;
    overflow: auto;
    animation: pages-fade-in 1s ease;
}

h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
    animation: heading-fade-in 1s ease;
}

.chapter-page {
    background-color: #333;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: justify;
    color: #fff;
    animation: chapter-fade-in 1s ease;
}

.chapter-title {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #fff;
}

.chapter-content {
    font-size: 16px;
    line-height: 1.5;
    max-width: 800px;
}

.chapter-content p {
    margin-bottom: 10px;
}

.chapter-content ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.chapter-content li {
    margin-bottom: 10px;
    animation: list-item-fade-in 1s ease;
}

.tooltip {
    position: relative;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    padding: 10px;
    background-color: #333;
    color: #fff;
    font-size: 14px;
    text-align: center;
    transition: opacity 0.3s ease;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

@keyframes list-item-fade-in {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

footer {
    background-color: #333;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-item {
    display: inline-block;
    margin-right: 10px;
}

.footer-item a {
    font-size: 18px;
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-item a:hover {
    text-decoration: underline;
    color: #fff;
}

/* Rest of the CSS styles... */

.tooltip {
    position: relative;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    padding: 10px;
    background-color: #333;
    color: #fff;
    font-size: 14px;
    text-align: center;
    transition: opacity 0.3s ease;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.blue-link {
    color: rgb(97, 97, 255);
}

.blue-link:hover {
    text-decoration: underline;
}
