.bodovnik-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.bodovnik-wrap h1 {
    font-size: 30px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: #222;
}

.bodovnik-wrap h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

.poeni {
    font-size: 100px;
    font-weight: 900;
    color: #0EB396;
    margin-bottom: 40px;
}

.dugmad {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 30px;
}

.dugmad button {
    min-width: 80px;
    padding: 16px 24px;
    font-size: 22px;
    border-radius: 12px;
    color: #fff !important;
    border: none;
    transition: background-color .2s, opacity .2s;
    cursor: pointer;
}

/* Dugmici za dodavanje poena - zelena boja kao broj poena */
.dugmad button:not(.oduzmi-btn) {
    background-color: #0EB396 !important;
}

.dugmad button:not(.oduzmi-btn):hover {
    opacity: 0.5 !important;
}

/* Dugmici za oduzimanje poena - crvena */
.dugmad button.oduzmi-btn {
    background-color: #EC1556 !important;
}

.dugmad button.oduzmi-btn:hover {
    background-color: #b6103f !important;
}

.linkovi {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
}

.linkovi a {
    display: inline-block;
    white-space: nowrap;
}

.reset-btn {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 16px 30px;
    background-color: #ef7778;
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.reset-btn:hover {
    background-color: #d26263;
    transform: scale(1.05);
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

.dugmad button.shake {
  animation: shake 0.4s ease;
  will-change: transform;
}


@keyframes pulse {
  0% {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(14, 179, 150, 0.5);
  }
  100% {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
}

.dugmad button.pulse {
  animation: pulse 0.4s ease;
  will-change: transform;
}

/* Omogući animaciji da se vidi i kada je hover aktivan */
.dugmad button.pulse:hover,
.dugmad button.shake:hover {
  animation-play-state: running !important;
  transform: none !important;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 rgba(0,0,0,0); }
  50%  { transform: scale(1.1); box-shadow: 0 0 8px rgba(14,179,150,.5); }
  100% { box-shadow: 0 0 0 rgba(0,0,0,0); }
}


.firework {
  position: absolute;
  width: 52px; /* bila 6px */
  height: 52px; /* bila 6px */
  background: yellow;
  border-radius: 50%;
  animation: explode 0.6s ease-out forwards;
}

/* Animacija brojčanika pri + (kratko povećanje pa nazad) */
@keyframes bump-up {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Animacija brojčanika pri - (kratko smanjenje pa nazad) */
@keyframes bump-down {
  0%   { transform: scale(1); }
  30%  { transform: scale(0.90); }
  100% { transform: scale(1); }
}

/* Klase koje se dodaju na #poeni iz JS-a */
.poeni.bump-up   { animation: bump-up   0.35s ease-out; will-change: transform; }
.poeni.bump-down { animation: bump-down 0.35s ease-out; will-change: transform; }


/* Global flash overlay za reset */
#page-flash {
  position: fixed;
  inset: 0;
  background: #d4f7d4;         /* nijansa zelene – menjaj po želji */
  opacity: 0;
  pointer-events: none;
  z-index: 99999;
}

#page-flash.flash-run {
  animation: pageFlash 0.8s ease;
}

@keyframes pageFlash {
  0%   { opacity: 0; }
  30%  { opacity: 1; }
  100% { opacity: 0; }
}