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, #a05be0 0, #a05be0 190px, #f6efe3 190px, #f6efe3 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: 560px;
  top: 25px;
  height: 140px;
  width: 800px;
  z-index: 40;
}

#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.85);
  border: 6px solid #3b2a6b;
  border-radius: 45px;
}
#hviezdy::before {
  content: "\2605";
  color: #ff9d00;
  -webkit-text-stroke: 2px #3b2a6b;
  margin-right: 14px;
}

#zadanie {
  position: absolute;
  left: 50px;
  top: 208px;
  width: 1100px;
  font: 900 50px/62px Inter, Arial, Helvetica, sans-serif;
}

/* kolko rozdielov uz je najdenych */
#bodky { position: absolute; left: 1250px; top: 208px; width: 620px; height: 62px; display: flex; justify-content: flex-end; gap: 16px; align-items: center; }
#bodky span {
  width: 46px;
  height: 46px;
  box-sizing: border-box;
  border: 6px solid #3b2a6b;
  border-radius: 50%;
  background: #fff;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
#bodky span.hotovo { background: #3fb54a; transform: scale(1.2); }

/* dva obrazky vedla seba */
.panel {
  position: absolute;
  top: 310px;
  width: 880px;
  height: 620px;
  box-sizing: border-box;
  border: 8px solid #3b2a6b;
  border-radius: 36px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  touch-action: manipulation;
  z-index: 5;
}
#obrL { left: 50px; }
#obrP { left: 990px; }
.panel svg { display: block; width: 100%; height: 100%; pointer-events: none; }
.panel .znacka { position: absolute; width: 90px; height: 90px; pointer-events: none; }
.znacka.dobre { border: 9px solid #1f9d3d; border-radius: 50%; box-sizing: border-box; background: rgba(63, 181, 74, 0.25); animation: znacka 0.4s ease-out; }
.znacka.zle { animation: zle 0.6s ease-out forwards; }
.znacka.zle::before, .znacka.zle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 70px; height: 10px; margin: -5px 0 0 -35px; background: #ff3b3b; border-radius: 5px; }
.znacka.zle::before { transform: rotate(45deg); }
.znacka.zle::after { transform: rotate(-45deg); }
@keyframes znacka { from { transform: scale(0.2); opacity: 0; } }
@keyframes zle { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.4); } }

/* ponuka scien */
.panel .mrak { animation: plava 14s linear infinite; }
@keyframes plava { from { transform: translateX(-10px); } 50% { transform: translateX(14px); } to { transform: translateX(-10px); } }

#hlaska {
  position: absolute;
  left: 260px;
  top: 470px;
  width: 1400px;
  box-sizing: border-box;
  padding: 24px 0;
  text-align: center;
  font: 900 84px/100px Inter, Arial, Helvetica, sans-serif;
  color: #1f9d3d;
  background: #fff;
  border: 8px solid #3b2a6b;
  border-radius: 56px;
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.2);
  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; } }

/* text sa pri dlhsom preklade zmensi (zmesti() v core/jquery2.js) */
#zadanie { white-space: nowrap; overflow: hidden; }
