label,
input {
  display: block;
  width: 100%;
}

label {
  font-weight: bold;
  margin: 0.5rem 0;
}

input {
  font: inherit;
  padding: 0.15rem 0.25rem;
  border: 1px solid #ccc;
  font-size: 3rem;
  text-align: center;
  color: #696969;
}

input:focus {
  outline: none;
  background: #efe3ff;
  border-color: var(--primary, #36007c);
}

#selected-place {
  width: 40rem;
  height: 25rem;
  max-width: 90%;
  margin: 2rem auto;
  border: 1px solid #ccc;
}

#map {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#map p {
  padding-inline: 15px;
  text-align: center;
}

#share-controls {
  width: 40rem;
  max-width: 90%;
  margin: 2rem auto;
  border: 1px solid #ccc;
  padding: 1rem;
  text-align: center;
}

#share-controls input {
  font-size: 1.15rem;
}

#place-data {
  width: 40rem;
  max-width: 90%;
  margin: 2rem auto;
  border: 1px solid #ccc;
  padding: 1rem;
  text-align: center;
}

#share-btn {
  position: relative;
}

#share-btn::before {
  content: 'Copied';
  display: block;
  padding: 7px 10px;
  outline: 1px solid white;
  color: white;
  background-color: rgba(0,0,0,.75);
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, 75%);
  line-height: 1;
  box-shadow: 1px 1px 1px #000;
  opacity: 0;
  transition: opacity .25s ease-in-out;
  pointer-events: none;
}

#share-btn.animated::before {
  animation-name: popup;
  animation-duration: 0.2s;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  opacity: 1;
}

@keyframes popup {
  0% {
    transform: translate(-50%, 0);
  }
  
  100% {
    transform: translate(-50%, 75%);
  }
}