.story-generator {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.story-generator h1 {
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

.story-input, .next-input {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
}

.story-content {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    min-height: 200px;
    position: relative;
}

.paragraph {
    margin-bottom: 15px;
    line-height: 1.6;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.generate-btn, .start-again-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.generate-btn {
    background-color: #4CAF50;
    color: white;
}

.generate-btn:hover {
    background-color: #45a049;
}

.start-again-btn {
    background-color: #f44336;
    color: white;
}

.start-again-btn:hover {
    background-color: #da190b;
}

.generate-btn:disabled, .start-again-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.one-para-checkbox {
    display: block;
    text-align: center;
    color: #666;
}

/* Loading indicator styles */
.loading-indicator {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: #f5f5f5;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.hidden {
    display: none;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background-color: #666;
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: 0.1s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}