body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif; /* Default font */
}

#textContainer {
    line-height: 1.6;
    padding: 20px;
    margin-bottom: 100px; /* Space for the audio player */
    font-size: 16px; /* Default font size */
}

.highlight {
    background-color: yellow;
}


/* Font Settings Panel Styles */
.font-settings {
    position: fixed;
    top: 0;
    right: 0;
    left: 0; /* Added to allow centering */
    padding: 10px;
    background-color: #f1f1f1;
    z-index: 1000;
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center; /* Center-align the content */
}

.font-size-adjuster, .font-selector {
    display: inline-block; /* Makes the divs align in the center */
    margin-bottom: 10px;
}

.font-settings button, #fontFamily, #showSettings {
    padding: 8px 15px;
    margin: 0 5px;
    cursor: pointer;
    background-color: #ffffff;
    border: none;
    border-radius: 0;
    font-weight: bold;
    color: #333333;
    transition: background-color 0.3s;
}

.font-settings button:hover, #fontFamily:hover, #showSettings:hover {
    background-color: #e0e0e0;
}

#toggleSettings {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
}

#showSettings {
    position: fixed;
    top: 0;
    right: 0; /* Keeps the button on the right */
    padding: 0;
    margin: 0;
    /* Other styling remains the same */
}

@media (max-width: 600px) {
    #textContainer {
        margin-bottom: 150px; /* Increased space for the audio player on mobile */
        padding: 0 20px; /* Add some space on the left and right on mobile */
    }
}
/* Modern desing flat title */
h1 {
    font-size: 2.5em;
    color: #333;
    text-align: center;
    margin: 0;
    padding: 20px;
    background-color: #f1f1f1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    /* padding: 10px; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f1f1f1;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

#playPause {
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

#playPause svg {
    width: 30px;
    height: 30px;
    fill: #333;
}

#progress {
    flex-grow: 1;
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    margin: 0 20px;
}

#progress div {
    height: 100%;
    background: #007BFF;
    width: 0;
    transition: width 0.5s ease;
    border-radius: 5px;
}

#volume {
    width: 100px;
}

#speed {
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
    font-size: 16px;
}

@media (max-width: 600px) {
    #volume {
        width: 70px;
    }

    #speed {
        font-size: 14px;
    }
}

.chapter-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.chapter-selector label {
    margin-right: 10px;
    font-size: 16px;
    color: #333;
}

.chapter-selector select {
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: #f2f2f2;
    color: #333;
}