<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Zákaznická karta {$card}</title>
    <style>
        @page {
            size: 500px 300px;
            margin: 0;
            padding: 0;
        }

        body {
            width: 500px;
            height: 400px;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            font-family: Arial, sans-serif;
        }

        .card {
            text-align: center;
        }

        .barcode {
            margin-bottom: 10px;
        }

        .header-content {
           width: 500px;
           border: 1px solid black;
           height: 202px;
           padding: 0;
           margin-bottom: 15px;
        }
    </style>
</head>
<body>
   <div class="header-content">
      {if $cfg.Addr.full_original}
         <img src="{$cfg.Addr.full_original}templates/images/zone-card-bg.jpg" alt=""/>
      {else}
         <img src="{$cfg.Addr.full}templates/images/zone-card-bg.jpg" alt=""/>
      {/if}
   </div>
    <div class="card">
        <div class="barcode">
            <pdf:barcode value="{$card}" type="code128" humanreadable="0" barheight="35" />
        </div>
        <div class="card-number">
            {$card}
        </div>
    </div>
</body>
</html>
