body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 2rem;
    background-color: #f0f0f0;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

h1 {
    color: #007bff;
    margin-bottom: 1.5rem;
}

button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    margin: 0.5rem;
    transition: background-color 0.2s ease;
}

button:hover:not(:disabled) {
    background-color: #218838;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.control {
    margin: 1.5rem 0;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="range"] {
    width: 100%;
    cursor: pointer;
}

output {
    font-weight: bold;
    margin-left: 0.5rem;
    min-width: 40px; /* Ensure space for value */
    display: inline-block;
}

.info {
    font-size: 0.9rem;
    color: #555;
    margin-top: 1.5rem;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.back-link {
    margin-top: 2rem;
    display: inline-block;
    font-size: 0.9rem;
}

.interactive-word {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dashed;
    color: #0056b3;
    font-weight: bold;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.interactive-word:hover {
    color: #fff;
    background-color: #0056b3;
}

.interactive-shape {
    cursor: pointer;
    transition: filter 0.2s ease;
}

.interactive-shape:hover {
    filter: brightness(1.2);
}

.loading-indicator {
    font-style: italic;
    color: #888;
    margin-top: 1rem;
    display: block; /* Make it visible initially */
}

#linking-example-container .control {
    margin-bottom: 1rem; /* Add some space below controls */
}

#linking-example-container p {
    margin-bottom: 1rem; /* Space between paragraphs */
}