.kanji-animator-widget-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kanji-animator-canvas-area {
    display: flex; /* Asegura que el contenedor sea flexbox */
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px; /* Un gap por defecto */
    margin-bottom: 15px;
    line-height: 0;
}

/* El SVG que genera dmak.js */
.kanji-animator-widget-container .dmak-svg {
    flex-shrink: 0;
}

.animator-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.animator-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    font-size: 18px;
    padding: 0.8em;
}

.animator-button:hover {
    background-color: #e0e0e0;
}

.animator-button:active {
    transform: scale(0.95);
}