* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

body {
  position: fixed;
  inset: 0;
}

a-scene {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}

#status {
    position: relative;
    z-index: 10;
    background: white;
    padding: 15px;
    border-radius: 10px;
}

.a-canvas {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

video {
  object-fit: cover !important;
}

#ar-button {
  display: none;
  position: fixed;
  z-index: 99999;
  bottom: calc(25px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 220px;
  max-width: 90%;
  padding: 16px 25px;
  border: none;
  border-radius: 40px;
  background: #fff;
  color: #111;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.35);
}

#ar-error {
  display: none;
}

#ar-button:active {
  transform: translateX(-50%) scale(0.96);
}

#ar-message, #ar-error {
  position: fixed;
  z-index: 99999;
  top: calc(20px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(0,0,0,0.65);
  color: white;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 15px;
  pointer-events: none;
}

#videoContainer {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  width: 100%;
  height: 100%;
  background: black;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

#videoContainer.visible {
  display: flex;
}

#videoPlayer {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

#closeVideo {
    display: none;
    position: absolute;
    z-index: 10002;
    top: 20px;
    right: 20px;

    width: 42px;
    height: 42px;
    padding: 0;

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

    background: #000;
    border: none;
    border-radius: 50%;

    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

#closeVideo svg {
    display: block;
    width: 24px;
    height: 24px;
}

#closeVideo svg path {
    stroke: #fff;
    stroke-width: 4px;
    stroke-opacity: 1;
    fill: none;
}

#audioPlayer {
  display: none;
}

#stopAudio {
  display: none;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;

  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background-color: #d93636;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.download-btn,
.download-btn:hover,
.download-btn:focus,
.download-btn:active {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin: 16px 12px 20px;
    padding: 10px 18px;

    background: #000 !important;
    background-color: #000 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;

    -webkit-appearance: none !important;
    appearance: none !important;

    font-size: 15px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

