/* Reset default margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


p {
    margin: 10px 0;
}
.story-generator-container {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 20px;
}

.button-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.story-type-btn, .story-setting-btn {
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    width: 140px;
    height: 160px;
}

.story-type-btn img, .story-setting-btn img {
    width: 80px;
    height: 80px;
    display: block;
    margin: 0 auto 10px;
}

.story-type-btn.selected, .story-setting-btn.selected {
    border-color: #ff9800;
    box-shadow: 0 0 10px #ff9800;
}



.story-header {
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #ff9200;
}

.story-input-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 15px; /* Adds spacing between input fields */
}


#storyCharacters, #storySetting, #storyType {
    width: 100%;
    padding: 12px;
    border: 1px solid #444; /* Subtle dark border */
    border-radius: 6px; /* Rounded corners for a softer look */
    font-size: 1rem;
    color: #0000; /* Light text for contrast */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5); /* Subtle inner shadow for depth */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#storyCharacters:focus, #storySetting:focus, #storyType:focus {
    border-color: #0078d7; /* Highlight color on focus */
    box-shadow: 0 0 5px rgba(0, 120, 215, 0.5); /* Glow effect on focus */
    outline: none; /* Remove default browser outline */
}

#storyCharacters::placeholder, #storySetting::placeholder, #storyType::placeholder {
    color: #aaaaaa; /* Subtle placeholder color */
    font-style: italic; /* Makes the placeholder distinguishable */
}

#generateStoryBtn {
    padding: 12px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

#generateStoryBtn:hover {
    background: #005bb5; /* Darker blue on hover */
    transform: translateY(-2px); /* Slight upward motion on hover */
}

.spinner {
    display: none;
    margin: 20px auto;
    border: 4px solid #1e1e1e; /* Matches container background */
    border-top: 4px solid #00c853; /* Bright spinner for contrast */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.story-response-section {
    display: none;
    padding: 20px;
    background-color: #e5e5e5;
    text-align: left;
    max-height: 800px; /* Set a max height */
    overflow-y: auto; /* Enable vertical scrolling when content overflows */
    border-top: 1px solid #444; /* Separator line */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2); /* Shadow for depth */
    margin-top: 20px;
    border-radius: 5px;
}

.ai-response {
    margin-top: 10px;
    font-size: 1rem;
    color: #000; /* Light text for readability */
    line-height: 1.5;
}

/* Custom Scrollbar Style */
.story-response-section::-webkit-scrollbar {
    width: 8px;
}

.story-response-section::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 4px;
}

.story-response-section::-webkit-scrollbar-thumb:hover {
    background-color: #0078ff;
}
