<div data-name="card"> 
    <div class="front"><p>Looking for cards...</p></div> 
    <div class="back"></div> 
</div>

<div class="nav">
    <button type="button" data-name="prev" class="btnx">&lt; Prev</button>
    <button type="button" data-name="random" class="btn btn-secondary">0 / 0</button>
    <button type="button" data-name="next" class="btnx">Next &gt;</button>
</div>