* {
  margin: 0;
  padding: 0;
  border: 0;
}

html,
body {
  overflow: hidden;
  min-height: 100%;
  height: 100%;
  background: #000;
  font-family: sans-serif;
}

.browsehappy {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 1em 0;
  text-align: center;
}

#wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

/* Scale the 16:9 video to cover the whole screen, cropping the edges.
   pointer-events: none stops YouTube showing its hover controls. */
#wrapper iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 177.78vh);
  height: max(100vh, 56.25vw);
  transform: translate(-50%, -50%);
  border: 0;
  background: #111;
  pointer-events: none;
}

#wrapper .fallback {
  z-index: 1;
}

#map {
  display: block;
  position: absolute;
  z-index: 400;
  right: 20px;
  bottom: 20px;
  width: 320px;
  height: 160px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.6s ease;
  border-radius: 4px;
  /* Water and land colours carried over from the original Google Maps style */
  background: #193341;

  &.ready {
    opacity: 0.9;
  }

  .land {
    fill: #2c5a71;
  }
}

/* Keep the required tile credit, just quieter */
#map .leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.5);
  color: #888;
  font-size: 9px;
  line-height: 1.4;

  a {
    color: inherit;
  }
}

a {
  color: #007bb6;
  text-decoration: underline;

  &:hover {
    text-decoration: none;
  }
}

/* Visually hidden but still read by screen readers and crawlers */
.title {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.footer {
  display: block;
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 200;
  opacity: 0.2;
  transition: all ease 0.3s;

  &:hover {
    opacity: 1;
  }
}

.btn {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 4px 10px;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.85em;
  transition: all ease 0.3s;
  margin-right: 20px;
  opacity: 0.5;

  &:hover {
    background: #000;
    opacity: 1;
  }
}
