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

.container {
    display: flex;
    width: 90%;
    max-width: 1200px; /* Adjust based on your preference */
}

/* Additional CSS rules for styling */

#userInput {
    display: block;     /* Ensure it's not set to none */
    visibility: visible; /* Make sure it's not hidden */
    opacity: 1;         /* Ensure it's fully opaque */
    position: relative; /* Standard positioning */
    width: 100%;        /* Full-width within its container */
    min-height: 100px;  /* Give it some height if it's collapsing */
}

button {
    background-color: #4a4845;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 10px 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Libre Baskerville', serif;
    transition: transform 0.2s, box-shadow 0.2s; /* Smooth transition for transform and shadow */
}

button:hover {
    transform: scale(1.05); /* Slightly increase the size */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
}

button:active {
    transform: scale(0.95); /* Subtle click effect */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Deeper shadow to simulate being pressed */
}


.start-screen-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.start-screen-icon {
    width: 256px;  /* Adjust size as needed */
    height: auto;  /* Keeps the aspect ratio of the image */
    border: 2px solid #ccc;  /* Adds a light grey border around the image */
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);  /* Adds a shadow to the image */
    display: block;  /* Ensures the image does not have extra space at the bottom */
    margin: 10px auto;  /* Centers the image and adds space around it */
}


button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    width: 200px;
}


button {
    background-color: #4a4845;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 10px 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s; /* Smooth transition for transform and shadow */
}

button:hover {
    background-color: #3a3935;
    transform: scale(1.05); /* Slightly increase the size */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
}

button:disabled {
    background-color: #ccc; /* Light grey to indicate it's disabled */
    color: #666; /* Darker grey for text to show it's not active */
    cursor: not-allowed; /* Shows a 'not allowed' cursor on hover */
    transform: none; /* No transformation on hover */
    box-shadow: none; /* No shadow on hover */
}

h1 {
    margin-bottom: 10px; /* Reduce the bottom margin of the h1 tag */
}

p {
    margin-top: 0; /* Remove the top margin of the p tag to bring it closer to the h1 */
    margin-botton: 20;
}

#storyList, #newStoryTitle {
    width: 180px; /* Match the width of the buttons */
    height: 40px; /* Standard height to align with button sizes */
    padding: 8px 10px; /* Comfortable padding inside the fields */
    font-size: 16px; /* Font size to match buttons and improve readability */
    border: 2px solid #ccc; /* Consistent border to match the buttons' style */
    border-radius: 4px; /* Rounded corners to match the buttons */
    background-color: white; /* Ensure the background color is consistent */
    margin-top: 20px; /* Adequate spacing from previous elements */
    display: block; /* Ensure these elements are block level to fill width */
}

#newStoryTitle {
    margin-top: 30px;
    margin-bottom: 10px; /* Additional bottom margin for spacing */
}

#storyList:disabled, #newStoryTitle:disabled {
    background-color: #eee; /* Slightly darker than disabled buttons for contrast */
    color: #666; /* Text color for disabled state */
}

/* Enhance focus styles for better accessibility */
#storyList:focus, #newStoryTitle:focus {
    border-color: #666; /* Darker border when focused */
    outline: none; /* Removing browser default focus outline */
}

/* Additional hover effects for interactive elements */
#storyList:hover, #newStoryTitle:hover {
    border-color: #aaa; /* Slightly darker border on hover */
}

/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
