html, body, div, span, h1, h2, h3, h4, h5, h6 {
  border: 0;
  outline: 0;
}

body, div, p {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  background-color: black;
  font-size: 11px;
  overflow: hidden;
  padding: 0;
  width: 1920px;
  height: 1080px;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

#container {
  position: relative;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: linear-gradient(180deg, #ff4f8b 0, #ff4f8b 190px, #7fd0ff 190px, #d6f1ff 100%);
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: #3b2a6b;
}

#navrat {
  position: absolute;
  top: 35px;
  left: 50px;
  z-index: 40;
  width: 120px;
  height: 120px;
  background-image: url('../images/navrat.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#btn_reset {
  position: absolute;
  left: 220px;
  top: 35px;
  height: 120px;
  width: 120px;
  z-index: 40;
  background-image: url('../images/reload.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#napis {
  position: absolute;
  left: 710px;
  top: 25px;
  height: 140px;
  width: 500px;
  z-index: 40;
}

/* zadanie (ktora farba) */
#otazka {
  position: absolute;
  left: 380px;
  top: 265px;
  width: 1160px;
  text-align: center;
  font: 900 60px/72px Inter, Arial, Helvetica, sans-serif;
  z-index: 30;
  background: rgba(255, 255, 255, 0.85);
  border: 6px solid #3b2a6b;
  border-radius: 44px;
  padding: 6px 0;
  pointer-events: none;
}
#otazka b { padding: 0 16px; border-radius: 20px; color: #fff; -webkit-text-stroke: 2px #3b2a6b; paint-order: stroke fill; }

#hviezdy {
  position: absolute;
  right: 60px;
  top: 50px;
  z-index: 40;
  padding: 0 34px;
  height: 90px;
  font: 900 64px/90px Inter, Arial, Helvetica, sans-serif;
  color: #3b2a6b;
  background: rgba(255, 255, 255, 0.8);
  border: 6px solid #3b2a6b;
  border-radius: 45px;
}
#hviezdy::before {
  content: "\2605";
  color: #ff9d00;
  -webkit-text-stroke: 2px #3b2a6b;
  margin-right: 14px;
}

/* ihrisko s balonmi */
#plocha { position: absolute; left: 0; top: 190px; width: 1920px; height: 890px; overflow: hidden; touch-action: none; }
.balon {
  position: absolute;
  left: 0;
  top: 0;
  width: 150px;
  height: 210px;
  cursor: pointer;
  will-change: transform;
  touch-action: none;
}
.balon svg { display: block; width: 100%; height: 100%; overflow: visible; }
.balon.zle svg { animation: balonZle 0.4s ease; }
@keyframes balonZle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg) scaleX(0.92); } 75% { transform: rotate(12deg) scaleX(0.92); } }
.balon.praskol { pointer-events: none; }
.balon.praskol svg { animation: praskni 0.18s ease-out forwards; }
@keyframes praskni { to { transform: scale(1.6); opacity: 0; } }

.konfety {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  pointer-events: none;
  animation: konfety 0.8s ease-out forwards;
}
@keyframes konfety {
  from { transform: translate(0, 0) rotate(0); opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

#hlaska {
  position: absolute;
  left: 260px;
  top: 480px;
  width: 1400px;
  text-align: center;
  font: 900 120px/140px Inter, Arial, Helvetica, sans-serif;
  color: #fff;
  -webkit-text-stroke: 4px #3b2a6b;
  paint-order: stroke fill;
  z-index: 60;
  display: none;
  pointer-events: none;
  animation: hIn 0.5s ease;
}
@keyframes hIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* narodeninove ozdoby v pozadi */
#ozdoby { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; z-index: 1; pointer-events: none; }
#konfety { position: absolute; left: 0; top: 190px; width: 1920px; height: 890px; z-index: 2; pointer-events: none; overflow: hidden; }
.padak { position: absolute; top: -40px; border-radius: 3px; opacity: 0.85; animation: padak linear infinite; }
@keyframes padak {
  from { transform: translateY(-40px) rotate(0deg) rotateY(0deg); }
  to { transform: translateY(940px) rotate(540deg) rotateY(360deg); }
}
.plamienok { transform-box: fill-box; transform-origin: 50% 100%; animation: plamienok 0.5s ease-in-out infinite alternate; }
@keyframes plamienok { from { transform: scale(1, 0.85) rotate(-4deg); } to { transform: scale(0.9, 1.1) rotate(4deg); } }
#plocha { z-index: 3; }
