/* --- THE ULTIMATE "BRAIN-ROT" & SUS EXPERIENCE 2026 --- */

:root {
  --glitch-color: lime;
}

html {
  /* Celá stránka se náhodně zvětšuje a zmenšuje */
  animation: heart-beat 10s infinite alternate linear;
  background: #000;
  cursor: help;
}

@keyframes heart-beat {
  0% { transform: scale(1); filter: hue-rotate(0deg); }
  50% { transform: scale(1.05); filter: hue-rotate(180deg) invert(1); }
  100% { transform: scale(0.95); filter: hue-rotate(360deg); }
}

body {
  margin: 0;
  padding: 0;
  font-family: "Impact", sans-serif;
  overflow-x: hidden;
  /* Pozadí, které vypadá jako statika v televizi */
  background-image: url('https://media.giphy.com');
  background-size: cover;
  background-attachment: fixed;
  background-blend-mode: overlay;
}

/* 1. FALEŠNÁ MODRÁ SMRT (BSOD) PŘI HOVERU */
body:active::before {
  content: ":( Your PC ran into a problem and needs to restart. We're just collecting some error info, and then we'll restart for you.";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: #0078d7;
  color: white;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  padding: 10%;
  text-align: left;
}

/* 2. PLOVOUCÍ JPEG-ARTIFAKTY (Pocit, že se web rozpadá) */
section {
  background: rgba(255, 0, 255, 0.3);
  border: 10px dashed yellow;
  position: relative;
  animation: float-random 4s infinite ease-in-out alternate;
  mix-blend-mode: screen;
}

@keyframes float-random {
  from { left: -5%; transform: skewY(2deg); }
  to { left: 5%; transform: skewY(-2deg); }
}

/* 3. TEXTOVÁ INVAZE - Texty se náhodně zvětšují */
h1, h2, p {
  animation: text-seizure 0.1s infinite;
  text-transform: uppercase;
}

@keyframes text-seizure {
  0% { text-shadow: 5px 0 red, -5px 0 blue; transform: translate(1px, 1px); }
  50% { text-shadow: -5px 0 lime, 5px 0 magenta; transform: translate(-1px, -1px); }
  100% { text-shadow: 5px 0 cyan, -5px 0 yellow; transform: translate(0, 0); }
}

/* 4. NEVIDITELNÉ "NÁŠLAPNÉ MINY" */
p:hover {
  transform: scale(5) rotate(180deg);
  background: black;
  color: red;
  z-index: 999;
}

/* 5. AGRESIVNÍ "POP-UPY" (Bez JS, jen čisté CSS) */
section::before {
  content: "💰 YOU WON $1,000,000! 💰";
  position: absolute;
  top: -50px;
  background: yellow;
  color: black;
  padding: 10px;
  border: 5px solid red;
  animation: pop-up-flash 0.5s infinite;
}

@keyframes pop-up-flash {
  0% { opacity: 1; left: 0; }
  50% { opacity: 0; left: 50%; }
  100% { opacity: 1; left: 10%; }
}

/* 6. TABULKA - MATRIX GLITCH */
table {
  width: 100%;
  background: rgba(0, 255, 0, 0.2);
  color: #0f0;
  border-collapse: collapse;
}

tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.1);
  animation: row-slide 2s infinite linear;
}

@keyframes row-slide {
  0% { transform: translateX(0); }
  50% { transform: translateX(50px); }
  100% { transform: translateX(0); }
}

/* 7. KURZOR, KTERÝ JE VŠUDE A NIKDE */
* {
  cursor: none !important;
}

body::after {
  content: "🖱️";
  position: fixed;
  font-size: 50px;
  top: var(--y, 50%);
  left: var(--x, 50%);
  pointer-events: none;
  animation: mouse-chaos 1s infinite alternate;
}

@keyframes mouse-chaos {
  from { transform: translate(-100px, -100px) rotate(0deg); }
  to { transform: translate(100px, 100px) rotate(360deg); }
}

/* 8. ŠÍLENÝ FOOTER */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: white;
  color: black;
  font-size: 5rem;
  white-space: nowrap;
  animation: marquee 2s infinite linear;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* 9. SKRYTÝ JUMPSCARE (Objeví se po 30 sekundách) */
@keyframes jumpscare {
  0%, 99% { opacity: 0; visibility: hidden; }
  100% { opacity: 1; visibility: visible; }
}

body::after {
  content: "🤡";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  font-size: 50vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: black;
  z-index: 999999;
  animation: jumpscare 30s forwards;
}
