/* latin-ext */
@font-face {
  font-family: "Pangolin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("pangolin1.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: "Pangolin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("pangolin2.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: "Pangolin", "Inter", sans-serif;
}

#map {
  height: 100%;
  width: 100%;
  background-color: #00071d;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
}

.leaflet-popup-content {
  margin: 15px;
  font-size: 14px;
}

.transition-all {
  transition: all 0.3s ease-in-out;
}

#start-overlay {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  inset: 0;
  position: fixed;
  box-sizing: border-box;
  background-color: #000;
  transition: opacity 1s;
}

#start-overlay[open] {
  display: flex;
}

#start-overlay:not([open]) {
  display: none;
}

#start-overlay::backdrop {
  background-color: #000;
}

#start-overlay:not(.is-modal) .start-dialog-brand {
  display: none;
}

#countdown {
  animation: pulse 0.305s infinite linear;
}

button {
  display: flex;
  text-align: left;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(0.5);
    opacity: 0;
  }
}

#guess-dialog {
  z-index: 1001;
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translate(-50%, 0);
  background: none;
  transform-origin: 0 500%;
  opacity: 0.9;
  transition:
    display 0.2s allow-discrete,
    overlay 1s allow-discrete;
  animation: close 0.2s cubic-bezier(0.075, 0.82, 0.165, 1);

  &[open] {
    animation: open 0.6s cubic-bezier(0.075, 0.82, 0.165, 1);
  }
}

@keyframes open {
  from {
    opacity: 0;
    scale: 0.9;
  }

  to {
    opacity: 0.9;
    scale: 1;
  }
}

@keyframes close {
  from {
    opacity: 0.9;
    scale: 1;
  }

  to {
    opacity: 0;
    scale: 0.9;
  }
}

#guess-input {
  font-size: 2em;
  width: 90vw;
  text-align: center;
  background-color: black;
  color: white;
  z-index: 1001;
}

button:hover {
  color: rgb(132, 158, 255);
  text-decoration: underline;
}

.fixed-logo {
  z-index: 5002;
  width: fit-content;
  position: fixed;
  left: 0;
  top: 0;
}

.fixed-logo:hover {
  scale: 1.05;
}

@media (prefers-reduced-motion: reduce) {
  #start-overlay,
  #guess-dialog,
  .transition-all {
    animation-duration: 0.01ms;
    transition-duration: 0.01ms;
  }

  #countdown {
    animation: none;
  }
}
