body {
    margin: 0;
    padding: 0;
    background-color: #f4ecd8;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

#viewer {
    flex: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    padding: 10px 0 50px 0;
}

#navigation {
    display: flex;
    width: 100%;
    text-align: center;
    position: fixed;
    bottom: 0;
    justify-content: space-between;
    padding: 10px 10px 10px 10px;
    background-color: #e0e0e0;
}

.search-section {
    padding: 10px 20px;
    display: flex;
    gap: 1px;
    
}

#navigation button {
    padding: 10px 20px;
    margin: 0px 5px 0px 0px;
    font-size: 12px;
}

#navigation button i {
    font-size: 1.2em;
}

#toc {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: calc(100% - 120px);
    background: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    padding: 30px 20px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0.9;
    line-height: 1.2;
}

#toc li {
    margin-bottom: 12px;
}

#toc li a {
    text-decoration: none;
    color: #333;
}

#toc h3 {
    margin-top: 0;
}

.menu-toggle {
    font-size: 30px;
    cursor: pointer;
    height: 40px;
    left: 10px;
    z-index: 1001;
    opacity: 0.8;
    color: rgba(77, 68, 68);
    border: none;
    align-self: center;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.button-group {
    padding: 0px 20px;
    display: flex;
    gap: 1px;
}

.button-group button {
    padding: 10px 20px;
    margin: 0px 5px 0px 0px;
    font-size: 12px;
}

#search-query {
    padding: 10px;
    margin: 0 5px;
    font-size: 12px;
}