* { box-sizing: border-box; margin:0; padding:0; }
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f6f5;
    color: #222;
    line-height: 1.5;
}

header {
    background: #1a3c5e;
    color: white;
    padding: 1rem;
    text-align: center;
}

header h1 { margin-bottom: 0.5rem; }

nav a {
    color: white;
    margin: 0 1.2rem;
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
}

nav a:hover,
nav a.active {
    background: rgba(255,255,255,0.2);
}

main {
    max-width: 720px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

h2 { margin-bottom: 1.2rem; color: #1a3c5e; }

form { text-align: center; }

label {
    font-size: 1.5rem;
    margin: 0 1.2rem;
    cursor: pointer;
}

button {
    margin-top: 1.5rem;
    padding: 0.9rem 2.2rem;
    font-size: 1.1rem;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

button:hover { background: #218838; }

button.reset {
    background: #dc3545;
}

button.reset:hover { background: #c82333; }

.rezultat {
    margin: 2rem 0;
    padding: 1.2rem;
    font-size: 1.3rem;
    border-radius: 6px;
}

.uspeh    { background: #d4edda; color: #155724; }
.neuspeh  { background: #f8d7da; color: #721c24; }

.stat {
    font-size: 1.4rem;
    text-align: center;
    margin: 2rem 0;
    font-weight: bold;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

th, td {
    padding: 0.8rem;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

th { background: #e9ecef; }

.zadetek { background: #e8f5e9; font-weight: 500; }
.izguba  { background: #fdecea; }

footer {
    text-align: center;
    padding: 1.5rem;
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 2rem;
}