/* chaos.css – the CSS monster! (don’t actually use this 😆) */
body {
  position: relative;
  background: none;
  overflow-x: hidden; /* prevent scroll jitter on rotation */
  cursor: "⛏️", auto;
}

body::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 200vw;   /* make it larger than viewport so rotation doesn’t reveal corners */
  height: 200vh;
  left: -50vw;    /* center it visually */
  top: -50vh;
  background: repeating-conic-gradient(
    #2600ff,
    #ff0088,
    #641044,
    #ff00ff,
    #ff9d009e,
    #ff005d32
  );
  animation: spinBg 8s linear infinite;
  z-index: -1;          /* behind everything */
  transform-origin: center center;
}

@keyframes spinBg {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ===== Bláznivá verze – zářící barvy a animace ===== */
@keyframes crazyBg {
  0% { background: #ad4478; }
  25% { background: #796f64; }
  50% { background: #000000; }
  75% { background: #0d262d; }
  100% { background: #dfc8d4; }
}

#horni-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  animation: crazyBg 5s linear infinite;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 9999;
}

#horni-menu ul {
  list-style: none;
  margin: 0;
  padding: 12px 20px;
  display: flex;
  justify-content: center;
  gap: 24px;
}

#horni-menu a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
  transition: transform 0.2s ease, background 0.3s ease;
}

#horni-menu a:hover {
  transform: rotate(-5deg) scale(1.2);
  background: rgba(255,255,255,0.4);
}

#horni-menu .sub {
  background: rgba(0,0,0,0.8);
  border-radius: 10px;
  animation: crazyBg 3s linear infinite;
}

#horni-menu .sub li a:hover {
  transform: scale0.1);
}

h1, h2 {
  text-shadow: 2px 2px 5px black, -2px -2px 5px white;
  animation: wobble 1s infinite alternate;
}

@keyframes wobble {
  from { transform: rotate(-0deg) scale(1.1); }
  to { transform: rotate(5deg) scale(0.9); }
}

p, li {
  background: rgba(255,255,255,0.3);
  transform: skew(10deg);
  transition: all 0.3s ease;
}
p:hover, li:hover {
  transform: scale(1.5) rotate(15deg);
  background: rgba(255,0,255,0.7);
}

.galerie img {
  width: 100px;
  border-radius: 50%;
  border: 5px dotted orange;
  filter: blur(1px);
  animation: dance 2s infinite;
}

@keyframes dance {
  0% { transform: rotate(0) scale(1); }
  25% { transform: rotate(10deg) scale(1.3); }
  50% { transform: rotate(-10deg) scale(0.7); }
  75% { transform: rotate(15deg) scale(1.1); }
  100% { transform: rotate(0) scale(1); }
}

.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: repeating-linear-gradient(45deg, red, yellow 10px, blue 20px);
  text-align: center;
  padding: 30px;
  font-size: 1.5em;
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

