body {
    font-family: sans-serif;
    background: linear-gradient(to right, #EAD6F6, #D8FAEE);
    margin: 0;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 60vh;
    color: #333;
}

.container {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    text-align: center;
}

h1, h2 {
    color: #555;
    margin-bottom: 10px;
}

.input-section, .output-section {
    margin-bottom: 10px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

textarea {
    width: calc(100% - 20px); /* Adjust for padding */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    resize: vertical; /* Allow vertical resizing */
    max-height: 150px;            /* ✅ Limit height */   
}

button {
    background-color: #8e44ad; /* Purple shade */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 20px;
}

button:hover {
    background-color: #6f348a; /* Darker shade on hover */
}

#slug-output {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
    min-height: 5px; /* Ensure it has some height even if empty */
    text-align: left;
    white-space: pre-wrap; /* Preserve line breaks */
    word-break: break-all; /* Break long words */
    max-height: 250px;            /* ✅ Limit height */
    overflow-y: auto;             /* ✅ Enable scroll */ 
}

#slug-output div {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #ddd;
}

#slug-output div:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

