body {
  margin: 0;
  font-family: sans-serif;
  background: #ccc;
}

#vrContainer {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#pano {
  width: 100%;
  height: 100%;
  pointer-events: auto;
  touch-action: none;
}

#menu {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  background-color: rgba(46, 139, 87, 0.4);
  border-radius: 4px 0 0 4px;
  padding: 5px;
  height: 100%;
  width: 100px;
  transition: right 0.3s ease;
}

#menu.hidden {
  right: -100px;
}

#menu button {
  display: block;
  margin-bottom: 4px;
  padding: 8px 16px;
  background-color: transparent;
  color: white;
  border: 2px solid black;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  text-align: center;
}

#menu button.active,
#menu button:hover {
  background-color: white;
  color: black;
  border: 1px solid black;
}

.logo {
  margin-bottom: 2px;
}

.toggle-menu-btn {
  position: absolute;
  top: 50%;
  left: -50px;
  transform: translateY(-50%);
  width: 50px;
  height: 100px;
  background-color: rgba(46, 139, 87, 0.4);
  border-radius: 60px 0 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 11;
  transition: transform 0.3s ease;
}

.toggle-menu-btn span {
  font-size: 24px;
  color: white;
}

.toggle-menu-btn.hidden span {
  transform: translateY(-50%) rotate(180deg);
}

.bottom-menu {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  z-index: 10;
}

.title-bar {
  background-color: #2e8b57;
  color: white;
  padding: 8px 16px;
  display: inline-block;
  border-radius: 6px;
  margin: 10px;
  font-weight: bold;
}

.thumbnail-bar {
  display: flex;
  gap: 8px;
  overflow-x: hidden;
  padding: 10px;
  white-space: nowrap;
  border-radius: 4px;
  cursor: grab;
  user-select: none;
}

.thumbnail-bar.hidden {
  display: none;
}

.thumbnail-bar:active {
  cursor: grabbing;
}

.thumbnail {
  position: relative;
  flex: 0 0 auto;
  width: 100px;
  height: 70px;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.thumbnail.selected {
  border-color: #ffffff;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-label {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 12px;
  text-align: center;
  padding: 2px;
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
}

.nav-buttons .left-buttons,
.nav-buttons .center-buttons,
.nav-buttons .right-buttons {
  display: flex;
  gap: 12px;
}

.nav-buttons button,
.nav-buttons img {
  padding: 6px 10px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-buttons img:hover {
  background-size: 250%;
  padding: 5px;
  box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.3);
}

p#htmlModalDescription {
  text-indent: 25px;
}

.hotspot-arrow {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50px;
  height: 50px;
  cursor: pointer;
  pointer-events: auto;
  transform-origin: center;
}

.hotspot-arrow img {
  width: 100px;
  transition: transform 0.3s ease;
}

.hotspot-arrow.bounce img {
  animation: bounce 0.6s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hotspot-label {
  position: absolute;
  top: -60px;
  background: #2e8b57;
  font-weight: bold;
  text-align: center;
  color: white;
  padding: 10px 40px;
  border-radius: 4px;
  font-size: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  display: inline-block;
  white-space: nowrap;
}

#angleOverlay {
  position: absolute;
  left: 10px;
  background: rgba(0,0,0,0.6);
  color: #0f0;
  font-family: monospace;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  z-index: 9999;
  white-space: pre;
}

#videoModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#videoModal .modal-content {
  position: relative;
  background: #fff;
  border-radius: 6px;
  max-width: 800px;
  width: 90%;
  padding: 20px;
}

#videoModal .close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  cursor: pointer;
}

#videoModal h2 {
  margin-top: 0;
}

#videoModal p {
  margin: 12px 0;
}

#videoModal video {
  width: 100%;
  max-height: 60vh;
}

#videoModal .info-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: #28a745;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}

.hotspot-video {
  width: 50px;
  transform-origin: center;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { width: 90px; }
  50% { width: 150px; }
}