body {
    font-family: 'Comic Sans MS', 'Segoe UI', sans-serif;
    background-color: #f0f8ff;
}

select, input[type="checkbox"] {
    font-size: 1rem;
    margin-bottom: 10px;
}

.tarjeta {
    padding: 1rem;
    border-radius: 20px;
    margin-top: 1rem;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    animation: fadein 0.6s ease;
    background: linear-gradient(to bottom, #f0faff, #ffffff);
    border: 3px solid #00aaff;
}

    .tarjeta.animal {
        background: linear-gradient(to bottom, #d0f4ff, #eafaff);
    }

    .tarjeta.ropa {
        background: linear-gradient(to bottom, #ffe4f0, #fff0f8);
    }

    .tarjeta.colores {
        background: linear-gradient(to bottom, #fffde7, #fef9c3);
    }

.imagen-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    padding: 10px;
    background-color: #ffffffcc;
    border: 4px dashed #00aaff;
    border-radius: 20px;
    overflow: hidden;
}

.imagen-palabra {
    max-width: 100%;
    max-height: 250px;
    border-radius: 15px;
}

.animate-bounce {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0% {
        transform: scale(0.85);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1.0);
    }
}

@keyframes fadein {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tts-buttons {
    margin-top: 1rem;
    display: flex;
    gap: 10px;
    justify-content: center;
}

    .tts-buttons button {
        background-color: #2196f3;
        color: white;
        font-size: 1rem;
        border: none;
        border-radius: 12px;
        padding: 10px 20px;
        cursor: pointer;
        transition: background-color 0.3s;
    }

        .tts-buttons button:hover {
            background-color: #1976d2;
        }

.navegacion {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 20px;
}

    .navegacion button {
        font-size: 1rem;
        padding: 8px 16px;
        border-radius: 10px;
        border: none;
        background-color: #1976d2;
        color: white;
        cursor: pointer;
        transition: background 0.3s;
    }

        .navegacion button:disabled {
            background-color: #cfd8dc;
            color: #777;
        }

