body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  padding-top: 70px; /* odsazení, aby se obsah neschoval pod header */
}

header {
  background-color: #007bff;
  color: white;
  padding: 15px 20px;
  position: fixed;      /* ukotví hlavičku */
  top: 0;               /* nahoře stránky */
  left: 0;
  width: 100%;          /* přes celou šířku */
  z-index: 1000;        /* nad ostatním obsahem */
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* decentní stín */
}
.dlogo{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
}
.logo {
  font-size: 1.5em;
  font-weight: bold;
  
}

.hlava {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-left:30px;
  padding-right: 30px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li {
  position: relative;
}

nav ul li a {
  display: block;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
  font-weight: 500;
}

nav ul li a:hover {
  background-color: #0056b3;
}

/* Podmenu */
nav ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #007bff;
  padding: 0;
  min-width: 160px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);

  display: flex;
  flex-direction: column;
  gap: 0;

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
}

nav ul ul li a {
  padding: 10px;
  color: white;
  white-space: nowrap;
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.3s ease;
}

nav ul li:hover > ul {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Animace jednotlivých položek s delay */
nav ul li:hover > ul li a {
  opacity: 1;
  transform: translateY(0);
}

nav ul li:hover > ul li:nth-child(1) a { transition-delay: 0s; }
nav ul li:hover > ul li:nth-child(2) a { transition-delay: 0.1s; }
nav ul li:hover > ul li:nth-child(3) a { transition-delay: 0.2s; }
nav ul li:hover > ul li:nth-child(4) a { transition-delay: 0.3s; }

main {
  padding: 30px;
  text-align: center;
}
