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 {
  width: 1920px;
  height: 1080px;
  padding: 0;
  margin: 0;
  background-image: url(../images/background.jpg);
}

#navrat {
  position: absolute;
  padding: 0;
  top: 35px;
  left: 50px;
  z-index: 10;
  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;
  border: none;
  z-index: 99;
  background-image: url('../images/reload.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#napis {
  position: absolute;
  left: 720px;
  top: 25px;
  height: 140px;
  width: 480px;
  border: none;
  z-index: 99;
}

#board {
  position: absolute;
  width: 1800px;
  height: 800px;
  padding: 0;
  top: 230px;
  left: 50px;
  z-index: 12;
}

/* the three parts of the equation (two filled, one empty frame) */
.slot {
  position: absolute;
  width: 400px;
  height: 240px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.45);
  border: 4px solid rgba(59, 42, 107, 0.22);
  box-sizing: border-box;
}

.slot.frame {
  background: rgba(255, 255, 255, 0.7);
  border: 8px dashed #ff7a00;
  transition: background-color 0.15s, border-color 0.15s;
}

.slot.frame:before {
  content: "?";
  position: absolute;
  left: 0;
  right: 0;
  top: 45px;
  text-align: center;
  font: 900 150px/150px Inter, Arial, Helvetica, sans-serif;
  color: rgba(255, 122, 0, 0.22);
}

.slot.frame.bad {
  background: rgba(229, 37, 47, 0.25);
  border-color: #e5252f;
}

.slot.frame.solved {
  opacity: 0;
  transition: opacity 0.8s;
}

.op {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #3b2a6b;
  color: #fff;
  text-align: center;
  font: 900 76px/92px Inter, Arial, Helvetica, sans-serif;
}

.note {
  position: absolute;
  z-index: 20;
  cursor: pointer;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.35));
  -ms-touch-action: none;
  touch-action: none;
}

.note svg {
  display: block;
  pointer-events: none;
}

.note.fixed {
  cursor: default;
  z-index: 15;
}

.note.ok {
  animation: okpop 0.7s ease-out;
}

@keyframes okpop {
  0% { transform: scale(var(--s, 1)); }
  40% { transform: scale(calc(var(--s, 1) * 1.12)); }
  100% { transform: scale(var(--s, 1)); }
}


/* pomocny text: co treba urobit (je v prazdnom mieste pod rovnicou, vlavo od bankoviek) */
#pomoc {
  position: absolute;
  left: 80px;
  top: 840px;
  width: 930px;
  height: 160px;
  padding: 0 34px;
  box-sizing: border-box;
  z-index: 11;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  border: 5px solid #3b2a6b;
  border-radius: 34px;
  color: #3b2a6b;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12);
}

#pomoc .mini {
  flex: none;
  width: 104px;
  height: 76px;
  margin-right: 30px;
  border: 5px dashed #ff7a00;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
  font: 900 52px/64px Inter, Arial, Helvetica, sans-serif;
  color: #ffb36b;
}

#pomoc .txt {
  font: 800 36px/46px Inter, Arial, Helvetica, sans-serif;
}

/* po vyrieseni sa napoveda zmeni na zelenu pochvalu */
#pomoc.ok {
  background: #e3f8e6;
  border-color: #2e9b43;
  color: #1d6b2e;
  animation: pochvala 0.55s ease-out;
}

#pomoc.ok .mini {
  border: 5px solid #2e9b43;
  background: #2e9b43;
  color: #fff;
}

#pomoc.ok .txt {
  font-size: 54px;
  line-height: 60px;
}

@keyframes pochvala {
  0%   { transform: scale(0.9); }
  55%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
