html,
body {
  height: 100%;
  margin: 0;
}

#map {
  position: fixed;
  inset: 0;
}

#prompt {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  max-width: calc(100% - 20rem);
}

#progress {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 1000;
}

#mode-selector {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
}

#type-form {
  position: fixed;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(24rem, calc(100% - 2rem));
  z-index: 1000;
}

.shake {
  animation: shake 0.4s;
}

@keyframes shake {
  25%, 75% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
}

@media (max-width: 600px) {
  #prompt {
    top: 4.5rem;
    max-width: calc(100% - 2rem);
  }
}
