| 9. Share-Based Compensation (Details Narrative) - USD ($) | 3 Months Ended | |
|---|---|---|
| Mar. 31, 2021 | Mar. 31, 2020 | |
| Share-based compensation expense | $ 76,284 | $ 165,598 | 
| Restricted Stock Units (RSUs) [Member] | ||
| Share-based compensation expense | 100,000 | $ 200,000 | 
| Options granted | 0 | |
| Employee Stock Options [Member] | ||
| Share-based compensation expense | $ 100,000 | $ 200,000 | 
| Options granted | 200,000 | 0 | 
| Weighted average grant date fair value | $ 2.34 | |
| Risk free rate | 1.08% | |
| Expected term | 5 years 10 months 17 days | |
| Volatility rate | 134.47% | |
| Options exercised | 0 | |
| Non Employee Stock Options [Member] | ||
| Share-based compensation expense | $ 0 | $ 4,000 | 
| Options granted | 0 | 0 | 
| Options exercised | 0 | 0 | 
| Options expired | 0 | 0 | 
| X | ||||||||||
| 
- Definition Amount of expense for award under share-based payment arrangement. Excludes amount capitalized. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition For presentations that combine terminations, the number of shares under options that were cancelled during the reporting period as a result of occurrence of a terminating event specified in contractual agreements pertaining to the stock option plan or that expired. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Net number of share options (or share units) granted during the period. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition The weighted average grant-date fair value of options granted during the reporting period as calculated by applying the disclosed option pricing methodology. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Period an equity-based award is expected to be outstanding, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition The estimated measure of the percentage amount by which a share price is expected to fluctuate during the expected term of a nonvested share or option award issued to other than an employee. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition The risk-free interest rate assumption that is used in valuing a nonvested share or option award issued to other than an employee. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Number of share options (or share units) exercised during the current period. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Details 
 | 
| X | ||||||||||
| 
- Details 
 | 
| X | ||||||||||
| 
- Details 
 |