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: 760px;
  top: 25px;
  height: 140px;
  width: 400px;
  border: none;
  z-index: 99;
}

#uroven {
  position: absolute;
  right: 300px;
  top: 55px;
  z-index: 99;
  color: #fff;
  font: 900 64px/80px Inter, Arial, Helvetica, sans-serif;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}

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

#svg {
  display: block;
  touch-action: none;
  -ms-touch-action: none;
}

.gedge {
  stroke: #d8cdbd;
  stroke-width: 16;
  stroke-linecap: round;
  fill: none;
}

.uedge {
  stroke-width: 20;
  stroke-linecap: round;
  fill: none;
}

.uedge.bad {
  stroke: #e5252f !important;
}

#live {
  fill: none;
  stroke-width: 20;
  stroke-linecap: round;
  opacity: 0.75;
}

.vert {
  fill: #fff;
  stroke: #3b2a6b;
  stroke-width: 8;
}

.vert.cur {
  fill: #ffc400;
}

.vert.bad {
  stroke: #e5252f;
}

.ring {
  fill: none;
  stroke: #ff7a00;
  stroke-width: 7;
  stroke-dasharray: 14 10;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%   { opacity: 0.25; }
  50%  { opacity: 1; }
  100% { opacity: 0.25; }
}

.win .uedge {
  animation: glow 0.6s ease-in-out 3;
}

@keyframes glow {
  0%   { stroke-width: 20; }
  50%  { stroke-width: 30; }
  100% { stroke-width: 20; }
}

.star {
  fill: #ffc400;
  stroke: #3b2a6b;
  stroke-width: 5;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: center;
  animation: popfade 2.4s ease-out forwards;
}

@keyframes popfade {
  0%   { transform: scale(0) rotate(0deg); opacity: 0; }
  25%  { transform: scale(1.3) rotate(40deg); opacity: 1; }
  100% { transform: scale(0.9) rotate(120deg); opacity: 0; }
}
