body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centriranje po horizontali */
    padding: 50px;
    margin: 0;
}

/* Stil za naslov */
.naslov {
    margin-bottom: 40px;
    color: #333;
    text-align: center;
}

/* Gumb Natrag */
.povratak {
    text-decoration: none;
    color: #555;
    border: 1px solid #ccc;
    padding: 8px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.povratak:hover {
    background: #333;
    color: white;
}

/* Glavni kontejner za lekcije - GRID */
.popis-lekcija {
    list-style: none;
    padding: 0;
    display: grid;
    /* Ovo stvara točno 5 stupaca jednake širine */
    grid-template-columns: repeat(5, 120px); 
    gap: 20px; /* Razmak između kontejnera */
    justify-content: center; /* Centriranje mreže */
}

/* Svaki mali kontejner (li) */
.popis-lekcija li {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Stil samog linka - "mali kontejner" */
.popis-lekcija a {
    text-decoration: none;
    color: #2c3e50;
    background: white;
    width: 100%;
    height: 80px; /* Možeš podesiti visinu po želji */
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    
    /* Border radius i obrub */
    border: 2px solid #3498db;
    border-radius: 12px;
    
    /* Sjena i tranzicija */
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* Hover efekt na kontejner */
.popis-lekcija a:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.3);
}

/* Responzivnost: ako je ekran malen, smanji broj stupaca */
@media (max-width: 700px) {
    .popis-lekcija {
        grid-template-columns: repeat(2, 1fr);
    }
}