.arjs-loader {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.arjs-loader div {
  text-align: center;
  font-size: 1.25em;
  color: white;
}

.image-scanner {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.scanner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    color: white;
    font-size: 1.25em;
    
    pointer-events: none;
}

.image-scanner img {
  display: flex;
  opacity: 0.1;
}

.error-overlay {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.199);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

html, body {
  width: 100%;
  height: 100%;
}

button[type="switch"] {
  top: 10px;
  left: 10px;
  position: fixed;
  z-index: 10000;
  pointer-events: auto;
}

button[type="rotate"] {
  top: 10px;
  left: 100px;
  position: fixed;
  z-index: 10000;
  pointer-events: auto;
}

.controls {
    pointer-events: none;
}

.controls button {
  pointer-events: none;
}

/* ─── Touch Ripple ─── */
.ripple {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    width: 52px;
    height: 52px;
    margin-left: -26px;
    margin-top: -26px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    animation: ripple-out 0.5s ease-out forwards;
}

/* Treffer → farbiger Ring */
.ripple--hit {
    border-color: #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

@keyframes ripple-out {
    0%   { transform: scale(0.2); opacity: 1; }
    100% { transform: scale(2);   opacity: 0; }
}

.topicSelector {
  position: absolute;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}

/* Buttons selbst */
.topicSelector button {
  position: absolute;
  width: 120px;
  height: 120px;

  border: none;
  background: white;
  border-radius: 14px;

  padding: 8px; /* kleiner als vorher */

  display: flex;
  justify-content: center;
  align-items: center;

  pointer-events: auto;

  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  animation: popIn 0.6s ease forwards;

  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.topicSelector button img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

/* Bilder sauber füllen */
.topicSelector button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ───────── Pop Animation ───────── */
@keyframes popIn {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  70% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.topicSelector button:active {
  transform: translate(-50%, -50%) scale(0.9);
}

.hidden {
  display: none !important;
}

.bottom-btn {
  position: fixed;
  bottom: 20px;
  left: 10px;

  height: 70px;

  z-index: 10000;

  border: none;
  background-color: transparent;
  color: transparent;
  pointer-events: auto;
}

.bottom-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* ganzes Bild sichtbar, mit Leerraum */
  object-fit: cover;     /* füllt den Button, schneidet ab */
  object-fit: fill;      /* streckt/verzerrt das Bild */
}

#learnMoreRobotics {
  left: 160px !important;
}

#closeRobotics {
  left: 40% !important;
}