/* Osnovne nastavitve in skupni stili */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: #f0f2f5; 
    color: #333; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding: 40px 20px; 
    margin: 0;
}
h1, h2 { 
    color: #2c3e50; 
    text-align: center; 
    margin-bottom: 30px; 
}

/* --- STILI ZA INDEX.PHP (Vnos) --- */
form { 
    display: flex; 
    gap: 20px; 
    flex-wrap: wrap; 
    justify-content: center; 
    max-width: 1000px; 
}
.uporabnik-vnos { 
    background: #ffffff; 
    border-radius: 12px; 
    padding: 25px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    width: 280px; 
    box-sizing: border-box; 
    transition: transform 0.2s;
}
.uporabnik-vnos:hover { transform: translateY(-5px); }
.uporabnik-vnos h3 { 
    margin-top: 0; 
    color: #34495e; 
    border-bottom: 2px solid #3498db; 
    padding-bottom: 10px; 
    text-align: center;
}
label { 
    display: block; 
    margin: 15px 0 5px; 
    font-weight: 600; 
    font-size: 0.9em; 
    color: #555; 
}
input[type="text"] { 
    width: 100%; 
    padding: 10px; 
    border: 1px solid #ccc; 
    border-radius: 6px; 
    box-sizing: border-box; 
    transition: border-color 0.3s; 
    font-family: inherit;
}
input[type="text"]:focus { 
    border-color: #3498db; 
    outline: none; 
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}
.btn-container { 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    margin-top: 30px; 
}
button { 
    background-color: #3498db; 
    color: white; 
    border: none; 
    padding: 15px 50px; 
    font-size: 1.1em; 
    font-weight: bold;
    border-radius: 30px; 
    cursor: pointer; 
    transition: background 0.3s, transform 0.1s; 
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4); 
}
button:hover { 
    background-color: #2980b9; 
    transform: translateY(-2px); 
}

/* --- STILI ZA REZULTAT.PHP --- */
.rezultati-container { 
    display: flex; 
    gap: 20px; 
    justify-content: center; 
    flex-wrap: wrap; 
    max-width: 1000px; 
    width: 100%;
}
.igralec { 
    background: #ffffff; 
    border-radius: 12px; 
    padding: 25px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    width: 300px; 
    text-align: center; 
    box-sizing: border-box;
}
.igralec h3 { margin-top: 0; color: #34495e; font-size: 1.3em; }
.naslov-info { font-size: 0.9em; color: #7f8c8d; margin-bottom: 15px; }
.kocke-wraper { 
    margin: 20px 0; 
    display: flex;
    justify-content: center;
    gap: 10px;
}
.kocka { 
    width: 60px; 
    height: 60px;
    border-radius: 8px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    object-fit: cover;
}
.vsota {
    font-size: 1.2em;
    font-weight: bold;
    color: #e74c3c;
    background: #fdf2f1;
    padding: 10px;
    border-radius: 8px;
    display: none; 
    animation: fadeIn 1s;
}
.zmagovalec-box { 
    background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%); 
    border-radius: 12px; 
    padding: 30px; 
    margin-top: 50px; 
    text-align: center; 
    box-shadow: 0 10px 20px rgba(150, 230, 161, 0.4); 
    width: 100%; 
    max-width: 600px; 
    display: none; 
    animation: fadeIn 1s;
}
.zmagovalec-box h2 { margin-top: 0; color: #1e5628; font-size: 2em; }
ul { list-style-type: none; padding: 0; font-size: 1.4em; font-weight: bold; color: #143e1d; }
ul li { margin: 10px 0; }
.odstevalnik { 
    margin-top: 40px; 
    font-size: 1.1em; 
    color: #95a5a6; 
    text-align: center; 
    display: none; 
}
.progress-bar {
    width: 100%;
    max-width: 300px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 10px auto;
    overflow: hidden;
}
.progress-fill { height: 100%; background: #3498db; width: 100%; }

/* Animacije */
@keyframes countdown {
    from { width: 100%; }
    to { width: 0%; }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}