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, #ff7043 0, #ff7043 190px, #ffe9a8 190px, #fff6d6 100%);
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: #3b2a6b;
  transition: background 0.8s ease;
}
#container.dazd { background: linear-gradient(180deg, #ff7043 0, #ff7043 190px, #b9c8d6 190px, #dfe8f0 100%); }
#container.sneh { background: linear-gradient(180deg, #ff7043 0, #ff7043 190px, #cfe6fa 190px, #f1f8ff 100%); }

#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 a pocasie */
#zadanie {
  position: absolute;
  left: 60px;
  top: 212px;
  width: 1800px;
  font: 900 50px/62px Inter, Arial, Helvetica, sans-serif;
  white-space: nowrap;
}
#pocasie { position: absolute; left: 50px; top: 310px; width: 400px; text-align: center; z-index: 6; }
#pocasieIkona { width: 300px; height: 300px; margin: 0 auto; }
#pocasieIkona svg { width: 100%; height: 100%; overflow: visible; }
#pocasieText { margin-top: 10px; font: 900 56px/66px Inter, Arial, Helvetica, sans-serif; }

/* padajuci dazd / sneh */
#padanie { position: absolute; left: 0; top: 190px; width: 1920px; height: 890px; overflow: hidden; z-index: 3; pointer-events: none; }
.kvapka { position: absolute; top: -40px; width: 5px; height: 34px; border-radius: 3px; background: rgba(60, 130, 210, 0.7); animation: dazd linear infinite; }
.vlocka { position: absolute; top: -40px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(120, 170, 220, 0.8); animation: sneh linear infinite; }
@keyframes dazd { to { transform: translate(-60px, 960px); } }
@keyframes sneh { 0% { transform: translate(0, 0); } 50% { transform: translate(40px, 480px); } 100% { transform: translate(-30px, 960px); } }

/* psik s oblecenim */
#pes { position: absolute; left: 520px; bottom: 24px; width: 475px; height: 700px; z-index: 8; }
#pesTelo { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }   /* psik stoji pokojne, aby oblecenie sedelo */
#psik { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
#pes.radost { animation: skok 0.55s ease 2; }
@keyframes dycha { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, 1.025); } }
@keyframes skok { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-50px) rotate(-2deg); } }
.nosi { position: absolute; pointer-events: none; }
.nosi svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.25)); }
.nosi { animation: nasadni 0.35s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes nasadni { from { transform: scale(0.4); opacity: 0; } }
#pes.cakaj::after { content: ""; position: absolute; inset: -20px; border: 6px dashed rgba(59, 42, 107, 0.45); border-radius: 60px; pointer-events: none; }

/* vyber oblecenia vpravo */
#vybery { position: absolute; left: 0; top: 0; z-index: 20; }
.vec {
  position: absolute;
  width: 210px;
  height: 250px;
  box-sizing: border-box;
  background: #fff;
  border: 7px solid #3b2a6b;
  border-radius: 36px;
  touch-action: none;
  cursor: grab;
  will-change: transform;
}
.vec .obr { position: absolute; left: 15px; top: 12px; width: 170px; height: 150px; pointer-events: none; }
.vec .obr svg { width: 100%; height: 100%; overflow: visible; }
.vec .nazov { position: absolute; left: 0; top: 172px; width: 100%; text-align: center; font: 900 28px/60px Inter, Arial, Helvetica, sans-serif; pointer-events: none; white-space: nowrap; }
.vec.tahana { z-index: 50; cursor: grabbing; box-shadow: 0 16px 24px rgba(0, 0, 0, 0.25); }
.vec.zle { animation: trasie 0.4s; }
.vec .obr { animation: dych 2.8s ease-in-out infinite alternate; }
.vec.tahana .obr { animation: none; }
@keyframes dych { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-6px) rotate(2deg); } }
@keyframes trasie { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-14px); } 75% { transform: translateX(14px); } }

#tip {
  position: absolute;
  left: 400px;
  top: 300px;
  width: 1100px;
  box-sizing: border-box;
  padding: 14px 0;
  text-align: center;
  font: 900 52px/64px Inter, Arial, Helvetica, sans-serif;
  color: #d9372b;
  background: #fff;
  border: 7px solid #3b2a6b;
  border-radius: 44px;
  z-index: 50;
  display: none;
  pointer-events: none;
  animation: hIn 0.3s ease;
}
#hlaska {
  position: absolute;
  left: 40px;
  top: 204px;
  width: 1100px;
  box-sizing: border-box;
  padding: 4px 0;
  text-align: center;
  font: 900 52px/60px Inter, Arial, Helvetica, sans-serif;
  color: #1f9d3d;
  background: #fff;
  border: 6px solid #3b2a6b;
  border-radius: 44px;
  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; } }

.otacaj { transform-box: view-box; transform-origin: 100px 100px; animation: otacaj 12s linear infinite; }
@keyframes otacaj { to { transform: rotate(360deg); } }
.kv { animation: kv 0.8s linear infinite; }
.kv:nth-child(2) { animation-delay: -0.3s; }
.kv:nth-child(3) { animation-delay: -0.55s; }
@keyframes kv { from { transform: translateY(-8px); opacity: 1; } to { transform: translateY(22px); opacity: 0; } }
.vlocky path { animation: kv 1.6s linear infinite; }

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

/* obrazky oblecenia zo suborov (images/<id>.png) */
.nosi img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.25)); }
.vec .obr img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* hotove obrazky psika s oblecenim ako jeden celok (images/pes/pes_<pocasie>_<vec|oboje>.webp alebo .png);
   obrazok je o okraje vacsi nez psik, aby sa zmestil dazdnik a klobuk: vlavo 40, vpravo 100, hore 160, dole 30 px */
#pesZlozeny { position: absolute; left: -40px; top: -160px; width: 615px; height: 890px; pointer-events: none; }
