The flexibility of the flipped classroom for the design of mediated and self-regulated learning scenarios