body, html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
}

.background {
    /* Replace the URL below with your desired background image */
    background-image: 
       linear-gradient(rgba(5, 71, 42, 0.5), rgba(5, 71, 42, 1)),
       url('background.jpg');
    height: 100vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    color: #e6f0e8; /* light evergreen tint for text readability */
    background-blend-mode: overlay;
}


.overlay {
    position: absolute;
    top: 10%; /* shifted a bit upward */
    left: 50%;
    transform: translate(-50%, -10%);
    background-color: rgba(5, 71, 42, 0.75); /* evergreen with transparency */
    padding: 20px 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 90%;
    box-shadow: 0 0 15px rgba(5, 71, 42, 0.8);

    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 480px) {
    .overlay {
        top: 45%;
        transform: translate(-50%, -45%);
        padding: 15px 25px;
        max-width: 95%;
    }
}

.upload-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 36px;           /* slightly bigger padding */
    font-size: 1.2em;             /* larger font */
    font-weight: 700;             /* bolder text */
    color: #e6f0e8;               /* light evergreen tint */
    background: linear-gradient(145deg, #0a6b3a, #05472a); /* subtle gradient */
    border: 2px solid #0a6b3a;   /* solid evergreen border */
    border-radius: 8px;           /* slightly more rounded */
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(5, 71, 42, 0.7); /* stronger shadow */
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    user-select: none;
}

.upload-btn:hover,
.upload-btn:focus {
    background: linear-gradient(145deg, #0f7f4b, #0a6b3a);
    box-shadow: 0 10px 20px rgba(5, 71, 42, 0.9);
    transform: scale(1.05);
    outline: none;
    text-decoration: none;
}

.map-link {
    color: #a3c9a8; /* lighter evergreen shade */
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.map-link:hover,
.map-link:focus {
    color: #05472A; /* base evergreen on hover */
    border-bottom-color: #05472A;
    outline: none;
    cursor: pointer;
}

#qrcode {
    margin: 20px auto 0 auto;
    width: 160px;
    height: 160px;
    background: rgba(5, 71, 42, 0.6); /* semi-transparent evergreen */
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(5, 71, 42, 0.7);
}

h1, p {
    margin: 0 0 10px 0;
    color: #e6f0e8; /* light evergreen tint */
}

/* >>> Tiskové / WYSIWYG karty <<< */
.print-grid {
  width: 210mm;
  height: 297mm;
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 5mm 0;
  background: #ffffff;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.print-card {
  width: 85mm;
  height: 55mm;
  margin: 2.5mm auto;
  box-sizing: border-box;
  /* jemné zelené pozadí + vodotisk */
  background-image:
    url('background.jpg'),
    linear-gradient(135deg, rgba(230,240,232,0.95), rgba(212,231,220,0.95));
  background-size: cover;
  background-blend-mode: overlay;
  border: 2px solid #0a6b3a;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(5, 71, 42, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3mm 2mm;
  position: relative;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* Zpráva */
.print-card p {
  margin: 6mm 0 2mm;
  font-size: 10pt;
  color: #05472A;
  font-weight: 700;
  /* bílý outline pomocí text-shadow */
  text-shadow:
    -1px -1px 0 #ffffff,
     1px -1px 0 #ffffff,
    -1px  1px 0 #ffffff,
     1px  1px 0 #ffffff;
}

.print-card div {
  font-size: 8pt;
  color: #05472A;
  font-weight: 700;
  /* bílý outline pomocí text-shadow */
  text-shadow:
    -1px -1px 0 #ffffff,
     1px -1px 0 #ffffff,
    -1px  1px 0 #ffffff,
     1px  1px 0 #ffffff;
}

/* QR kód ve středové části s výraznějším zeleným rámečkem a silnějším stínem */
.print-card .qr {
  margin: 1mm 0;
  width: 20mm;
  height: 20mm;
  padding: 2px;
  border: 3px solid #0a6b3a;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(10, 107, 58, 0.7);
  background: #ffffff;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* URL na spodní části */
.print-card .url {
  font-size: 8pt;
  word-break: break-all;
  color: #0a6b3a;
  margin-top: auto;
  padding-bottom: 1mm;
  font-weight: 700;
  /* bílý outline stejné jako p */
  text-shadow:
    -1px -1px 0 #ffffff,
     1px -1px 0 #ffffff,
    -1px  1px 0 #ffffff,
     1px  1px 0 #ffffff;
}

/* Unicode tiskárna v pravém dolním rohu */
.print-icon {
  position: fixed;
  bottom: 16px;
  right: 16px;
  font-size: 2em;            /* velikost ikony */
  line-height: 1;
  text-decoration: none;
  color: #e6f0e8;            /* světle zelená z vašeho theme */
  background: rgba(5,71,42,0.6);
  padding: 4px;
  border-radius: 4px;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1000;
}

.print-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.countdown {
  color: #e6f0e8; /* light evergreen tint */
  line-height: 1.3;        /* aby to hezky dýchalo mezi řádky */
  white-space: pre-line;   /* umožní zalomení přes \n */
  text-align: center;      /* hezké centrování */
  margin-top: 10px;        /* odsazení od QR kódu */
  text-shadow: 0 0 4px rgba(0,0,0,0.6);
}



