* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
  font-family: sans-serif;
  background-color: #f0f0f0;
}
#viewer {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
  touch-action: none;
}
#zoomImage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  transition: none;
  cursor: grab;
  user-select: none;
  z-index: 2;
}

#backgroundImage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  transition: none;
  cursor: grab;
  user-select: none;
  z-index: 1;
  opacity: 1;
}

/* Portal indicator - Made more visible */
#viewer::after {
  content: 'PORTAL ZONE - DRAG GAMBAR KE KIRI BAWAH UNTUK MASUK PORTAL';
  position: absolute;
  left: calc(50% + 200px);
  top: calc(50% - 100px);
  width: 400px;
  height: 400px;
  border: 4px dashed rgba(255, 0, 0, 0.8);
  border-radius: 50%;
  pointer-events: none;
  opacity: 1;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: red;
  font-weight: bold;
  font-size: 14px;
  text-align: center;
  background-color: rgba(255, 0, 0, 0.1);
  transform: translate(-50%, -50%);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

#viewer:hover::after {
  opacity: 1;
  border-color: rgba(255, 0, 0, 1);
  background-color: rgba(255, 0, 0, 0.2);
}
.controls {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  background-color: rgba(255,255,255,0.9);
  padding: 8px 16px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
button {
  padding: 10px 16px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
}
button:hover {
  background-color: #0056b3;
}
