/* modern.css – polished, animated style */

body {
  font-family: "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(180deg, #eef3f8, #dce9f5);
  margin: 0;
  padding: 0;
  color: #222;
}

header {
  background: #004080;
  color: white;
  text-align: center;
  padding: 1.5em 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ===== Moderní, minimalistická verze ===== */
#horni-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: linear-gradient(90deg, #0d47a1, #1976d2);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  backdrop-filter: blur(8px); /* jemné rozmazání pozadí */
  z-index: 9999;
}

#horni-menu ul {
  list-style: none;
  margin: 0;
  padding: 12px 32px;
  display: flex;
  justify-content: center;
  gap: 28px;
}

#horni-menu a {
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.3s ease, color 0.3s ease;
}

#horni-menu a:hover {
  background: rgba(255,255,255,0.15);
  color: #ffeb3b;
}

#horni-menu .sub {
  background: rgba(13, 71, 161, 0.95);
  border-radius: 8px;
  backdrop-filter: blur(6px);
}

#horni-menu .sub li a:hover {
  background: rgba(255,255,255,0.1);
}

h1 {
  color: #ffffff;
}

h2 {
  color: #004080;
}

main {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

section {
  margin-bottom: 2em;
}

.uvodni-obrazek {
  float: right;
  margin-left: 20px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.uvodni-obrazek:hover {
  transform: scale(1.05);
}

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.galerie img {
  width: 100%;
  height: 100px;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s, box-shadow 0.3s;
}
.galerie img:hover {
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(0,64,128,0.6);
}
.overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.overlay.hidden { display: none; }

.overlay img {
  max-width: 90%;
  max-height: 80%;
}

.nav {
  position: absolute;
  top: 50%;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
  padding: 10px;
}

#prev { left: 20px; }
#next { right: 20px; }

footer {
  background: #004080;
  color: white;
  text-align: center;
  padding: 15px 0;
  border-top: 4px solid #66ccff;
}

