@charset "utf-8";
/* CSS Document */
  /* =========================================================
     HUMORNÁ KARTA ZVÍŘETE – TYGR V DŽUNGLI
     ========================================================= */

  * {
    box-sizing: border-box;
  }

  body {
    margin: 0;
    min-height: 100vh;
    font-family: "Comic Sans MS", "Trebuchet MS", Arial, sans-serif;
    background:
      radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.35) 0 6px, transparent 7px),
      radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.25) 0 10px, transparent 11px),
      linear-gradient(135deg, #7ed957, #f8e16c, #ff914d);
    padding: 30px;
    overflow-x: hidden;
    animation: jungleBackground 8s infinite alternate ease-in-out;
  }

  /* Jemné měnění pozadí */
  @keyframes jungleBackground {
    from {
      background-position: 0 0;
    }
    to {
      background-position: 60px 40px;
    }
  }

  /* Poletující listy */
  body::before,
  body::after {
    content: "🍃 🐾 🍌 🐯 🍃";
    position: fixed;
    left: -200px;
    font-size: 36px;
    opacity: 0.35;
    z-index: 0;
    animation: flyingStuff 18s linear infinite;
    pointer-events: none;
  }

  body::before {
    top: 15%;
  }

  body::after {
    top: 70%;
    animation-duration: 24s;
    animation-delay: 3s;
  }

  @keyframes flyingStuff {
    from {
      transform: translateX(-200px) rotate(0deg);
    }
    to {
      transform: translateX(140vw) rotate(360deg);
    }
  }

  /* Hlavní karta */
  .wrap {
    position: relative;
    z-index: 1;
    max-width: 950px;
    margin: 0 auto;
    background: #fff8dc;
    border: 6px dashed #ff6b35;
    border-radius: 30px;
    box-shadow:
      0 18px 0 #8b4513,
      0 28px 45px rgba(0, 0, 0, 0.35);
    padding: 28px;
    animation: cardJump 3s infinite ease-in-out;
  }

  @keyframes cardJump {
    0%, 100% {
      transform: translateY(0) rotate(-1deg);
    }
    50% {
      transform: translateY(-8px) rotate(1deg);
    }
  }

  .wrap:hover {
    animation-play-state: paused;
    transform: rotate(0deg) scale(1.01);
  }

  /* Nadpis */
  h1 {
    margin: 0 0 24px;
    text-align: center;
    font-size: 58px;
    color: #ff3d00;
    text-shadow:
      3px 3px 0 #ffe600,
      6px 6px 0 #111;
    letter-spacing: 3px;
    animation: tigerTitle 1.5s infinite alternate;
  }

  h1::before {
    content: "🐯 ";
  }

  h1::after {
    content: " Grrr!";
    font-size: 26px;
    color: #111;
    text-shadow: 2px 2px 0 #fff;
  }

  @keyframes tigerTitle {
    from {
      transform: scale(1);
    }
    to {
      transform: scale(1.06) rotate(-2deg);
    }
  }

  /* Řádek s obrázkem a tabulkou */
  .row {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  /* Obrázek tygra */
  .row img {
    width: 330px;
    max-width: 100%;
    border-radius: 28px;
    border: 8px solid #111;
    box-shadow:
      0 0 0 8px #ffb703,
      0 18px 25px rgba(0, 0, 0, 0.35);
    transform: rotate(-4deg);
    transition: 0.35s ease;
    animation: tigerPhoto 2.2s infinite alternate ease-in-out;
  }

  .row img:hover {
    transform: rotate(5deg) scale(1.08);
    filter: saturate(1.5) contrast(1.1);
  }

  @keyframes tigerPhoto {
    from {
      transform: rotate(-4deg) translateY(0);
    }
    to {
      transform: rotate(4deg) translateY(-6px);
    }
  }

  /* Tabulka */
  table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  th,
  td {
    padding: 14px 16px;
    border: none;
    font-size: 18px;
  }

  th {
    width: 38%;
    background: #111;
    color: #ffe600;
    text-align: left;
    border-radius: 14px 0 0 14px;
  }

  td {
    background: #fff;
    color: #222;
    border-radius: 0 14px 14px 0;
    box-shadow: inset 0 0 0 3px #ffb703;
  }

  tr {
    transition: 0.25s ease;
  }

  tr:hover {
    transform: scale(1.04) rotate(-1deg);
  }

  tr:hover td {
    background: #ffef9f;
  }

  tr:nth-child(1) th::before { content: "📛 "; }
  tr:nth-child(2) th::before { content: "🌴 "; }
  tr:nth-child(3) th::before { content: "🍖 "; }
  tr:nth-child(4) th::before { content: "🏋️ "; }
  tr:nth-child(5) th::before { content: "🤯 "; }

  /* Sekce */
  section {
    margin-top: 34px;
    background: #ffffff;
    border: 5px dotted #111;
    border-radius: 24px;
    padding: 22px;
    position: relative;
    box-shadow: 10px 10px 0 #ffb703;
  }

  section::before {
    content: "Pozor, tygr čte také!";
    position: absolute;
    top: -18px;
    left: 24px;
    background: #ff3d00;
    color: #fff;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: bold;
    transform: rotate(-3deg);
  }

  h2 {
    margin-top: 10px;
    font-size: 32px;
    color: #111;
  }

  h2::before {
    content: "📚 ";
  }

  p {
    font-size: 18px;
    line-height: 1.7;
    color: #222;
    text-align: justify;
  }

  /* Tlačítko */
  a {
    text-decoration: none;
  }

  button {
    display: block;
    margin: 30px auto 0;
    padding: 16px 34px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff3d00, #ffb703);
    color: #111;
    font-family: "Comic Sans MS", "Trebuchet MS", Arial, sans-serif;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    box-shadow:
      0 8px 0 #8b2500,
      0 14px 22px rgba(0, 0, 0, 0.3);
    transition: 0.2s ease;
    animation: buttonWiggle 1.4s infinite;
  }

  button::before {
    content: "🐾 ";
  }

  button::after {
    content: " 🐾";
  }

  button:hover {
    transform: translateY(5px) scale(1.08) rotate(-3deg);
    box-shadow:
      0 3px 0 #8b2500,
      0 8px 15px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #ffe600, #ff6b35);
  }

  button:active {
    transform: translateY(9px);
    box-shadow: 0 0 0 #8b2500;
  }

  @keyframes buttonWiggle {
    0%, 100% {
      transform: rotate(0deg);
    }
    25% {
      transform: rotate(2deg);
    }
    50% {
      transform: rotate(0deg);
    }
    75% {
      transform: rotate(-2deg);
    }
  }

  /* Vtipná značka v rohu karty */
  .wrap::after {
    content: "NEKRMIT! Už měl svačinu.";
    position: absolute;
    right: -18px;
    top: -18px;
    background: #111;
    color: #ffe600;
    padding: 12px 18px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: bold;
    transform: rotate(8deg);
    box-shadow: 0 8px 0 #ff3d00;
  }

  /* Přizpůsobení mobilům */
  @media (max-width: 700px) {
    body {
      padding: 15px;
    }

    .wrap {
      padding: 18px;
      border-radius: 22px;
    }

    h1 {
      font-size: 42px;
    }

    h1::after {
      display: block;
      margin-top: 8px;
    }

    .row {
      gap: 18px;
    }

    th,
    td {
      display: block;
      width: 100%;
      border-radius: 14px;
    }

    th {
      margin-top: 8px;
    }

    td {
      margin-bottom: 8px;
    }

    .wrap::after {
      position: static;
      display: block;
      margin-bottom: 18px;
      text-align: center;
      transform: rotate(0deg);
    }
  }

