body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

header {
    background-color: rgba(114, 152, 233, 0.8);
    color: gray;
    text-align: center;
    padding: 0px 0;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
	color: white;
    padding: 0 20px;
}

header button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
}

header button:focus {
    outline: none;
}

header h2 {
    margin: 0;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

iframe {
    width: 100%;
    height: calc(100% - 30px);
    border: none;
    position: relative;
    z-index: 1;
}

.slide-left {
    transform: translateX(-100%);
}

.slide-right {
    transform: translateX(100%);
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(114, 152, 233, 0.4);
    height: 30px;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 10;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

button {
    margin: 0 10px;
    padding: 5px;
    border: none;
    background-color: rgba(128, 128, 128, 0.0);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

button:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}

button i {
    font-size: 20px;
}

.page-input-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-input-container input {
    padding: 5px;
    width: 35px;
    text-align: center;
}

#menuToggle {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
}

#tableOfContents {
    position: fixed;
    top: 80px;
    right: 0;
    width: 300px;
    height: calc(100% - 80px);
    background-color: white;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
    z-index: 1000;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
}

#tableOfContents.visible {
    transform: translateX(0);
}

.container {
    padding: 20px;
}

.toc {
    list-style-type: none;
    padding: 0;
}

.toc li {
    margin-bottom: 10px;
}

.toc a {
    text-decoration: none;
    color: #333;
}

.chapter-number {
    font-weight: bold;
    margin-right: 5px;
}

.chapter-description {
    font-size: 0.9em;
    color: #666;
    display: block;
}