body {
    font-family: 'Libre Baskerville', serif;
    color: #3a394f;
    background-color: #f4f4f2;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    /* Center the container */
}

textarea {
    font-size: 18px;
    /* Example size, adjust as needed */
    font-family: 'Libre Baskerville', serif;
    /* Ensures font family consistency */
    line-height: 1.5;
    /* Improves readability by increasing line spacing */
}

.container {
    width: 90%;
    max-width: 1200px;
    flex-direction: column;
}

.menu-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.chapter-content {
    width: 100%;
    height: 300px;
    /* Adjust based on your preference */
    border: 2px solid #ccc;
    padding: 8px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin: 5px;
}

.danger {
    background-color: #d9534f;
    color: white;
}

.generate {
    background-color: #5cb85c;
    color: white;
}

.hidden-controls {
    display: none;
    background-color: #f8f8f8;
    padding: 10px;
    border: 1px solid #ccc;
    margin-top: 10px;
}

.close-menu {
    background-color: #f0ad4e;
    color: white;
}

.ai-controls {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.ai-controls select,
.ai-controls button {
    margin-left: 5px;
}

/* Removed styles for .new-chapter, #independentChapters, .image-controls-container, .widescreen-image, and .button-container */

/* Plot input textarea styling */
#plotInput {
    margin-top: 10px;
    width: 100%;
    /* Full container width */
    height: 100px;
    /* Height set to 100px or about 4 lines of text */
    padding: 8px;
    /* Padding inside the textarea */
    box-sizing: border-box;
    /* Includes padding and border in the width and height */
}

#chapterSelect {
    width: 400px;
    /* Set a fixed width, adjust as necessary */
    height: 40px;
    /* Set a fixed height for consistency */
    padding: 8px 10px;
    /* Padding for better text alignment */
    font-size: 16px;
    /* Clear, readable text size */
    border: 2px solid #ccc;
    /* Subtle border styling */
    border-radius: 4px;
    /* Rounded corners for a modern look */
    background-color: white;
    /* Ensures the dropdown is clearly visible */
    cursor: pointer;
    /* Indicates this is an interactive element */
    box-sizing: border-box;
    /* Includes padding and border in the width/height calculations */
}

#chapterSelect:hover {
    border-color: #aaa;
    /* Slightly darker border on hover for visual feedback */
}

#chapterSelect:focus {
    border-color: #666;
    /* Darker border when focused for better accessibility */
    outline: none;
    /* Removes the default focus outline */
}

.control-button {
    background-color: #4a4845;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    /* Adds space above the button */
    width: 200px;
    /* Optional: Makes button full width */
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.3s;
}

.control-button:hover {
    background-color: #3a3935;
    transform: scale(1.05);
}

/* Settings modal and other existing styles remain unchanged */

.settingsmodal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.settingsmodal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 30%;
    /* Adjust width to suit your design */
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.model-details-container {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.setting-item {
    margin-bottom: 20px;
}

.setting-select,
.slider {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    box-sizing: border-box;
    /* Ensures the padding does not affect the width */
    border: 1px solid #ccc;
    border-radius: 4px;
}

.model-details-table {
    width: 100%;
    /* Full-width to fill the container */
    border-collapse: collapse;
    /* Ensures borders are neat */
    margin-top: 10px;
    /* Space above the table */
}

.model-details-table th,
.model-details-table td {
    border: 1px solid #ddd;
    /* Light grey border */
    padding: 8px;
    /* Padding inside cells */
    text-align: left;
    /* Align text to the left */
}

.model-details-table th {
    background-color: #f4f4f2;
    /* Light background for headers */
    color: #333;
    /* Dark text for contrast */
}

.model-details-table td {
    background-color: #fff;
    /* White background for cells */
    color: #666;
    /* Medium-dark text */
}

.slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.slider-with-labels {
    width: 100%;
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.slider-label-left,
.slider-label-right {
    flex: 1;
    text-align: center;
}

#aiCreativity {
    flex: 3;
    margin: 0 10px;
}