
#floatingSelectors {
  position: fixed;
  top: 60px; 
  left: 10px; 
  z-index: 1000;
  padding: 12px;
  border-radius: 8px;
  display: none;
}

#floatingSelectors select {
  display: none;
  margin-bottom: 10px;
  width: 160px;
  font-size: 14px;
}

@media (max-width: 850px) {
  #exit-button, #previewClock {
    display: none !important;
  }
}

body {
/*  background: url('https://bojanke.com/onlajn/pozadina_2025.png') center/cover no-repeat;*/
  margin: 0 !important;
  overflow: hidden !important;
}

canvas {
  background-color: transparent !important;
}

    #tooltipContainer {
      position: fixed;
      top: 80px;
      right: 20px;
      width: 230px;
      font-family: Arial, sans-serif;
      line-height: 1.9;
      background-color: rgba(51, 51, 51, 0.85);
      color: #fff;
      padding: 15px 18px;
      border-radius: 10px;
      font-size: 14px;
      z-index: 9999;
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
      opacity: 0;
      transition: opacity 0.5s ease;
    }

    #tooltipContainer.show {
      opacity: 1;
    }

    #tooltipCountdown {
      font-size: 12px;
      text-align: right;
      margin-top: 8px;
      color: #ccc;
    }

    #tooltipCloseBtn {
      position: absolute;
      top: 8px;
      right: 10px;
      background: none;
      border: none;
      color: #fff;
      font-size: 16px;
      cursor: pointer;
    }

.tooltip {
  position: absolute;
  background-color: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 9999;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tooltip.show {
  opacity: 1;
}

#previewIcon {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.child-input {
  background-color: #fff8dc;
  border: 2px solid #ff69b4;
  padding: 10px;
  font-size: 11px;
  font-weight: bold;
  color: #444;
  width: 90px;
  text-align: center;
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.child-input::placeholder {
  font-size: 11px;
  color: #888;
}

.child-input:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255,105,180,0.4);
}


.child-select {
  background-color: #fff8dc;
  border: 2px solid #ff69b4;
  border-radius: 12px;
  padding: 10px;
  font-size: 11px;
  font-weight: bold;
  color: #444;
  width: 90px;
  text-align: center;
  text-align-last: center;
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.child-select:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255,105,180,0.4);
}

.child-select option {
  font-size: 11px;
  padding: 6px;
}

.sidepanel-row {
  display: flex;
  align-items: center;
  gap: 8px; /* razmak između selecta i gumice */
}
.eraserBtn {
  background-color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
  z-index: 10;
}

.eraserBtn:hover {
  transform: scale(1.1);
}

.paletteBtn {
  border-radius: 6px;
  background-color: none;
  text-align: center;
  white-space: nowrap;
  min-width: 35px;
  max-width: 160px;
  border: none !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.paletteBtn:hover {
  transform: scale(1.2);
}


.fullscreen-btn {
  border-radius: 6px;
  background-color: none;
  text-align: center;
  white-space: nowrap;
  min-width: 35px;
  max-width: 160px;
  border: none !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fullscreen-btn:hover {
  transform: scale(1.2);
}

.sidepanel-btn {
  border-radius: 6px;
  background-color: none;
  text-align: center;
  white-space: nowrap;

  border: none !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidepanel-btn:hover {
  transform: scale(1.2);
}


.custom-cursor {
  cursor: url('https://www.bojanke.com/images/ruka_ikona.png'), auto;
}
.stopwatch-frozen {
  color: red;
  transition: color 0.3s ease;
}

#upozorenjeuspravno, #sadrzaj {
  transition: opacity 0.4s ease;
}

.hidden {
  display: none;
  opacity: 0;
}

.visible {
  display: block;
  opacity: 1;
}

#previewIcon, #previewHint, #previewContainer {
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.fade-in {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.fade-out {
  opacity: 0 !important;
  pointer-events: none !important;
}

#previewIcon {
  cursor: pointer;
}

#ghostCircle {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  background-color: rgba(255, 0, 0, 0.3); /* inicijalna boja */
  right: calc(50% - 512px + 20px);
  width: 20px;
  height: 20px;
  border: none;
  z-index: 9998;
  display: block;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3); 
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

@keyframes ghostResize {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

#ghostCircle.animate-resize {
  animation: ghostResize 0.3s ease-out;
}

.slider {
  -webkit-appearance: none;
  width: 80px;
  height: 15px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;
  --thumb-color: #ff0000;
}

.slider:hover {
  opacity: 1;
}


/* WebKit */
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  cursor: pointer;
  background: var(--thumb-color);
  border-radius: 5;
  transition: background 0.3s ease;
}

/* Firefox */
.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  cursor: pointer;
  background: var(--thumb-color);
  border-radius: 5;
  transition: background 0.3s ease;
}

.slider::-moz-range-track {
  background: #ddd;
  height: 5px;
  border-radius: 5px;
}
.custom-cursor {
  cursor: url('https://www.bojanke.com/images/ruka_ikona.png'), auto;
}
.eraserBtn {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eraserBtn:hover {
  transform: scale(1.2);
}

.custom-select {
  background-image: url('https://bojanke.com/onlajn/slicice/srce.png');
  background-repeat: no-repeat;
  background-position: right center; 
  width: 20px;
  height: 20px;
  padding-right: 90px;
}

.sidepanel-btn.active {
  box-shadow: inset 0 0 5px #555;
  transform: scale(1.2);
  background-color: #e0e0e0;
}
#fullscreenBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px #fff;
}

/* Pasivno dugme — statična pozadina */
.colorBtn.rainbow {
  background: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet);
  background-size: auto;
  animation: none;
}

/* Aktivno dugme — animacija se pokreće */
.colorBtn.rainbow.selected {
  background: linear-gradient(270deg, red, orange, yellow, green, blue, indigo, violet);
  background-size: 400% 400%;
  animation: rainbowShift 6s linear infinite;
}

@keyframes rainbowShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


.colorBtn {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}
.colorBtn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #666;
  cursor: pointer;
  flex: 0 0 auto;
  display: inline-block;
  margin: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
  .colorBtn {
    width: 24px !important;
    height: 24px !important;
    font-size: 14px;
  }
}
@media (max-width: 1024px) {
  #bottomToolbar {
    gap: 3px;
  }
}
@media (max-width: 600px) {
  #bottomToolbar {
    gap: 2px;
  }
}


/* Pasivno dugme — statična pozadina */
.colorBtn.rainbow {
  background: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet);
  background-size: auto;
  animation: none;
}

/* Aktivno dugme — animacija se pokreće */
.colorBtn.rainbow.selected {
  background: linear-gradient(270deg, red, orange, yellow, green, blue, indigo, violet);
  background-size: 400% 400%;
  animation: rainbowShift 6s linear infinite;
}

@keyframes rainbowShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
