body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
}

#panorama {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#info-box {
  pointer-events: none;
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
}
#info-box img {
  width: 200px;
  height: auto;
  margin-top: 5px;
  border-radius: 5px;
}

.custom-hotspot img {
  position: relative;
  z-index: 2;
  width: 30px;
  height: 30px;
  cursor: pointer;
  border-radius: 30px;
  border: 5px solid red; 
}

.custom-hotspot:hover img {
  animation: shake 0.3s ease-in-out infinite;
}

.custom-hotspot::after {
  z-index: 1;
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid yellow;
}

.hotspot-title {
  position: absolute;
  top: -30px; /* Đưa lên trên ảnh */
  left: 50%;
  transform: translateX(-50%); /* Căn giữa */
  background-color: rgba(0, 0, 0, 0.8); /* Nền đen có độ trong suốt */
  color: white; /* Chữ trắng */
  font-weight: bold; /* Chữ đậm */
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap; /* Tránh xuống dòng */
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px) rotate(-1deg); }
  50% { transform: translateX(3px) rotate(1deg); }
  75% { transform: translateX(-2px) rotate(-1deg); }
  100% { transform: translateX(0); }
}