.map-header {
  
}
#map {
  width: 100%;
  height: 90vh;
}
#map-modal {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #ddd;
}

#map-modal ul {
  display: flex;
  padding-left: 15px;
  width: 100%;
  list-style: none;
}

#reader {
  position: absolute;
  top: 10%;
  width: 100%;
  height: 90vh;
  display: none; /* Hidden by default */
}

#reader video {
  object-fit: cover;
  width: 100% !important;
  height: 100% !important;
  max-width: 100vw;
  max-height: 100vh;
  transform: none !important;
  z-index: 10;
  display: block;
}

#reader.scan-active {
  display: block; /* Shown only in scan mode */
}

#map-modal li {
  list-style: none;
}

.help-icon {
  position: absolute;
  right: 15px
}
.map-icons {
  position: absolute;
  top: 10%;
}

#open-camera {
  position: absolute;
  top: 75%;
  right: 5%;
  width: 20%;
}
.dot.validated {
  background: none;
  background-image: url('assets/img/shoes.png');
  background-size: contain;
  background-repeat: no-repeat;
}

@keyframes spin-dot {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(720deg); }
}

@keyframes merrell-to-dot {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: rotate(360deg) scale(1.2);
    opacity: 0.6;
  }
  100% {
    transform: rotate(720deg) scale(1);
    opacity: 1;
  }
}

.dot.animate-dot {
  animation: spin-dot 0.8s ease-in-out;
}

.dot.animate-merrell {
  animation: merrell-to-dot 1s ease-in-out;
}

.clue-modal {
  position: fixed;
  top: 11%;
  left: 5%;
  overflow: hidden;
  width: 76%;
  max-width: calc(100vw - 32px);
  background-color: white;
  border-radius: 20px;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  font-family: 'ABC', sans-serif;
  text-align: center;
}

.clue-modal .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #373836;
  color: white;
  border: none;
  font-size: 20px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 100%;
  cursor: pointer;
}

.clue-title {
  font-size: 3em;
  font-weight: bold;
  text-align: left;
  font-family: 'ABC';
  margin-bottom: -5px;
}

.subtitle {
  font-family: 'gira-sans', sans-serif;
  font-size: 1.2em;
  margin: 0;
  text-align: left;
  text-transform: uppercase;
}

.clue-description {
  font-size: 1em;
  font-family: 'gira-sans', sans-serif;
}

.clue-image {
  width: 100%;
  max-width: 300px;
  max-height: 300px;
  margin: 10px 0;
  border-radius: 10px;
}

.clue-action {
  background: black;
  color: white;
  border: none;
  padding: 5px 10px;
  font-size: 2.5em;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  font-family: "ABC";
  padding-top: 4px
}

#help-tooltip {
  position: absolute;
  left: 5px;
  top: -5px;
  right: 20px;
  background: white;
  border-radius: 12px;
  padding: 20px 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  font-family: 'gira-sans', sans-serif;
  font-size: 14px;
  line-height: 1.4em;
  z-index: 10;
  text-align: left;
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: all 0.25s ease;
}
#help-tooltip.open {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

#help-button {
  z-index: 11;
}
.black-bar {
  border-bottom: 4px solid black;
  width: 15%;
  margin: 15px 0px;
}

.user-pin-img {
  transition: transform 0.5s ease;
}

.fallback-text {
  margin: 20px 0;
}

.fallback-title {
  font-size: 2.7em;
  font-weight: bold;
  text-align: center;
  font-family: 'ABC';
  margin:0;
}

#user-pointer {
  position: absolute;
  top: 55%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  margin-top: -15px;
  background-image: url('/assets/img/pin-origin.png');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  transform-origin: center center;
  z-index: 1000;
}