/* --- Definice fontů --- */
@font-face {
    font-family: 'gauge';
    src: url('font/gauge.ttf') format('truetype');
}

@font-face {
    font-family: 'gauge2';
    src: url('font/gauge2.ttf') format('truetype');
}

@font-face {
    font-family: 'fixsys';
    src: url('font/fixsys.ttf') format('truetype');
}

@font-face {
    font-family: 'repet';
    src: url('font/repet.ttf') format('truetype');
}
/* --- Základní styl pro tělo stránky --- */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 1rem;
    background-color: #f5f5f5;
}

/* --- Hlavička --- */
.header {
    background-color: #2f4468;
    color: white;
    padding: 1rem;
    margin-bottom: 2rem;
}

.header h1 {
    margin: 0;
    font-size: 2rem;
    text-transform: uppercase;
}

.header p {
    margin: 0.5rem 0 0 0;
}

/* --- Formulář --- */
form {
    margin-top: 1rem;
}

form input[type="number"] {
    padding: 0.3rem 0.5rem;
    font-size: 1rem;
    width: 180px;
}

form input[type="submit"] {
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
    margin-left: 0.5rem;
    cursor: pointer;
}

/* --- Layout gauges --- */
.gauges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.gauge-card {
    background-color: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 2px 2px 12px rgba(0,0,0,0.2);
    flex: 1 1 250px;
    min-width: 250px;
    
    /* Nové: flex layout pro zarovnání obsahu */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* nahoře budík, dole statistiky */
    align-items: center;
    height: 450px; /* nastav podle potřeby, aby bylo místo na budík a stats */
}

.gauge-stats {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-weight: bold;
    font-size: 1rem;
}

/* --- Tabulka historických měření --- */
table {
    margin: 2rem auto;
    border-collapse: collapse;
    width: 90%;
    max-width: 1200px;
    background-color: #fff;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

tr:nth-child(even) { background-color: #f2f2f2; }
tr:hover { background-color: #ddd; }

th {
    background-color: #2f4468;
    color: white;
}

/* --- Responsivní design --- */
@media screen and (max-width: 800px) {
    .gauges {
        flex-direction: column;
        align-items: center;
    }

    .gauge-card {
        width: 90%;
        max-width: 350px;
    }
}
