html, body {
	font-family: Arial, sans-serif;
	background-color: #f0f0f0;
	color: #333;
	height: 100%;
	margin: 0;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
header {
	background-color: #d32f2f; /* Červená barva odpovídající vozidlu */
	color: #fff;
	padding: 20px;
	text-align: center;
}
header h1 {
	font-family: 'Courier New', Courier, monospace;
	color: #4caf50; /* Zelená barva odpovídající flip displeji */
	background-color: #111;
	display: inline-block;
	padding: 10px 20px;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
header a {
	text-decoration: none;
	color: inherit;
}

@media (max-width: 600px) {
	header {
		padding: 10px;
	}
	header h1 {
		padding: 5px 10px;
		font-size: 1.5em;
	}
}
nav {
	background-color: #000;
	text-align: center;
}
nav a {
	color: #fff;
	text-decoration: none;
	margin: 0 15px;
	display: inline-block;
	padding: 5px;
}
main {
	padding: 20px;
	background-color: #ffffff;
	width: 80%;
	max-width: 800px;
	margin: 20px auto;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	flex: 1;
}
main img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 20px 0;
}
footer {
	background-color: #333;
	color: #fff;
	text-align: center;
	padding: 10px;
}
table.coounter tr, th, td {
	padding: 1px 5px 1px 5px;
}
table.counter 
{
	margin: auto;
	border: 0;
	border-collapse: collapse;
}

* Kontajner počítadla */
.meter {
  display: inline-flex;
  gap: 0.18rem;                 /* medzera medzi okienkami */
  background: #1a1a1a;           /* rámik/casing */
  border: 1px solid #2b2b2b;
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 2px 8px rgba(0,0,0,0.35);
  vertical-align: middle;
}

/* Každá číslica ako samostatné "okienko" */
.meter .digit {
  display: inline-grid;
  place-items: center;

  width: 0.55em;                 /* šírka boxu (viazaná na font-size) */
  height: 1.2em;                /* výška boxu */
  padding: 0.02em 0.12em 0.02em 0.12em;

  background: #050505;          /* čierne pozadie každého okienka */
  border: 1px solid #2a2a2a;
  border-radius: 3px;

  color: #4caf50;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;

  font-family: ui-monospace, monospace;
  letter-spacing: 0.03em;

  /* “sklo” a mierny glow */
  box-shadow:
    inset 0 2px 5px rgba(0,0,0,0.9),
    inset 0 -1px 0 rgba(255,255,255,0.04),
    0 0 6px rgba(120,255,120,0.12);

  text-shadow: 0 0 3px rgba(120,255,120,0.35);
}


/* List layout */
.card-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column; /* vertical stacking */
	gap: 12px;
}

.card-item {
	margin: 0;
}

/* Card link: makes the whole row clickable */
.card-link {
display: flex;
align-items: center;
gap: 14px;

padding: 12px 14px;
border-radius: 10px;
border: 1px solid rgba(0, 0, 0, 0.10);
background: #fff;

text-decoration: none;
color: inherit;

box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
}

.card-link:hover {
transform: translateY(-1px);
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
border-color: rgba(0, 0, 0, 0.18);
}

/* Accessible focus */
.card-link:focus-visible {
outline: 3px solid rgba(59, 130, 246, 0.65); /* blue */
outline-offset: 3px;
}

/* Thumbnail */
.card-thumb {
width: 84px;
height: 84px;
flex: 0 0 84px;
object-fit: cover;
border-radius: 10px;
background: #f3f4f6; /* nice while loading */
}

/* Body / title */
.card-body {
min-width: 0; /* enables text truncation in flex layouts */
}

.card-title {
margin: 0;
font-size: 1.15rem;
line-height: 1.2;
font-weight: 700;
letter-spacing: 0.1px;

/* Optional: keep titles tidy on one line */
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

/* Responsive: slightly smaller thumb on narrow screens */
@media (max-width: 480px) {
.card-thumb {
	width: 68px;
	height: 68px;
	flex-basis: 68px;
}
.card-title {
	font-size: 1.05rem;
}
