body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 20px;
  color: #333;

  /* --- POZADIE --- */
  /* Najprv definujeme polopriesvitnú farbu (overlay) a pod ňou obrázok */
  /* rgba(226, 213, 199, 0.85) je tvoja farba #E2D5C7 s 85% nepriehľadnosťou */
  background: 
    linear-gradient(rgba(226, 213, 199, 0.85), rgba(226, 213, 199, 0.85)),
    url('grafana-pozadie.webp');
  
  /* Nastavenie obrázka */
  background-size: cover;       /* Roztiahni na celú plochu */
  background-position: center;  /* Vycentruj */
  background-attachment: fixed; /* Pri scrollovaní ostáva pozadie na mieste */
  min-height: 100vh;            /* Aby pozadie siahalo až dolu */
}

h1, h2 {
  text-align: center;
  color: rgb(36, 51, 107);
  text-shadow: 0 1px 1px rgba(255,255,255,0.5); /* Jemný tieň pre lepšiu čitateľnosť */
}

h2 {
  margin-top: 30px;
  font-weight: normal;
  font-size: 1.5rem;
}

ol {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1200px;
  counter-reset: student-counter;

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30ex, 1fr));
  gap: 20px;
}

li {
  background-color: rgba(241, 235, 228, 0.6);
  backdrop-filter: blur(3px); 

  border-radius: 8px;
  border: 1px solid rgba(36, 51, 107, 0.2);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  
  counter-increment: student-counter;
}

li:hover {
  background-color: white;
  border-color: rgb(36, 51, 107);
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(36, 51, 107, 0.3);
  backdrop-filter: none;
}

li a {
  display: block; /* klikateľná celá plocha */
  padding: 20px;
  text-align: center;
  color: rgb(36, 51, 107);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
}

li a::before {
  content: counter(student-counter) ". "; 
  color: rgba(36, 51, 107, 0.6);
  font-weight: normal;
  margin-right: 5px;
}

li a:hover {
  color: #0056b3;
}