* {
  box-sizing: border-box;
}

html {
  font-family: sans-serif;

  --color-main: hsl(220, 100%, 24%);
  --color-hover: hsl(220, 100%, 40%);
  --color-input: hsla(220, 100%, 95%, .4);
}

body::-webkit-scrollbar {
  inline-size: .625em;
}

body::-webkit-scrollbar-thumb {
  background-color: var(--color-main);
  cursor: grab;
}

body::-webkit-scrollbar-thumb:active {
  cursor: grabbing !important;
}

body::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-hover);
}

body::-webkit-scrollbar-track {
  background-color: lightgrey;
}

body {
  margin: 0;
  /* 
  --color-main: #36007c;
  --color-hover: #55007c;
  --color-input: #efe3ff;
  */
}

header {
  background: var(--color-main);
  inline-size: 100%;
  padding: 0.8em;
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  box-shadow: 0 0.125em 0.375em rgba(0, 0, 0, 0.26);
}

header h1 {
  font-size: 2em;
  color: white;
  margin: 0;
}

button {
  font: inherit;
  font-size: 1.25em;
  background: var(--color-main);
  color: white;
  border: .0625em solid var(--color-main);
  border-radius: 0.375em;
  padding: 0.5em 1.5em;
  margin: 0.5em;
  cursor: pointer;
}

#locate-btn {
  margin-block-start: 0.8em;
}

button:focus {
  outline: none;
}

button:hover,
button:active {
  background: var(--color-hover);
  border-color: var(--color-hover);
}

button:disabled,
button:disabled:hover,
button:disabled:active {
  background: #ccc;
  color: #9b9b9b;
  border-color: #ccc;
  cursor: not-allowed;
}

.backdrop {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 100%;
  block-size: 100vh;
  background: rgba(0, 0, 0, 0.75);
  z-index: 10;
}

.modal {
  position: fixed;
  inset-block-start: 25vh;
  inset-inline-start: 10%;
  text-align: center;
  inline-size: 80%;
  background: white;
  z-index: 20;
  border-radius: .625em;
  box-shadow: 0 0.125em .5em rgba(0, 0, 0, 0.26);
}

.modal__content {
  padding: 1em;
  min-block-size: 10em;
}

.centered {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.lds-dual-ring {
  display: inline-block;
  inline-size: 4em;
  block-size: 4em;
}

.lds-dual-ring:after {
  content: ' ';
  display: block;
  inline-size: 3em;
  block-size: 3em;
  margin: .0625em;
  border-radius: 50%;
  border: 0.3125em solid var(--color-main);
  border-color: var(--color-main) transparent var(--color-main) transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media (min-width: 768px) {
  .modal {
    inset-inline-start: calc(50% - 15em);
    inline-size: 30em;
  }
}

/* 
      700kpx - 1vw = 7px
      1em = 2.2857142857142856vw
*/

@media screen and (max-width: 700px) {
  body {
    font-size: 2.2857142857142856vw
  }
}