* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  background: black;
  color: white;
  font-family: monospace;
  font-weight: 300;
}

body {
  background: black;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

h1, h2 {
  display: flex;
  gap: 0.5rem;
  font-weight: inherit;
  text-transform: uppercase;
  margin-top: 0;
}

h1 strong {
  font-weight: bold;
}

button {
  font: inherit;
  cursor: pointer;
}

a {
  color: lightsalmon;

  &:hover {
    color: darksalmon;
  }
}

a:visited {
  color: salmon;
}

#pano {
  animation: fade-in 5s both;
  height: 100vh;
}

dialog {
  animation: fade-in 1s both;

  margin-left: 0.5rem;
  top: 0.5rem;
  border: solid 1px white;
  background: none;
  backdrop-filter: saturate(1000) blur(5px) invert(1) grayscale(100%);
  color: white;
  text-shadow: 1px 1px 0px black;
  box-shadow: 1px 1px #0009;

  form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1rem;
  }

  label {
    display: flex;
    flex-flow: column nowrap;
  }

  input {
    background: none;
    border: solid 1px white;
    color: white;
    font: inherit;
    padding: 0.25rem 0.5rem;

    &::placeholder {
      color: #fff9;
    }
  }

  output {
    display: inline;
    width: min-content;
  }

  button {
    padding: 0.25rem 0.5rem;
    border-radius: 0;
  }
}

div:has(> .gm-iv-address) {
  left: 0.5rem !important;
  top: 19rem !important;
}

dialog::backdrop {
  backdrop-filter: blur(10px) invert(100%);
}

#about-modal,
#map-modal {
  margin-left: auto;
  top: 0;
  max-width: 80ch;
}

#map-modal {
  max-width: none;

  iframe {
    width: 50vw;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

dt {
  font-weight: bold;
}

dd {
  margin-top: 0.5rem;
}

dd + dt {
  margin-top: 1rem;
}

.modal-control {
  color: white;
  background: none;
  border: solid 1px white;
  aspect-ratio: 1;
  width: auto;
  height: 1em;
  line-height: 1;
  padding: 0.25rem;
  display: inline-block;
  vertical-align: text-top;
  filter: drop-shadow(1px 1px black);
  margin-right: 0;

  &:hover,
  &:focus {
    color: lightsalmon;
    border-color: lightsalmon;
    outline: none;
  }
}

.modal-control:first-of-type {
  margin-left: auto;
}
