body {
  position:fixed;
  top:0;
  bottom: 0;
  left: 0;
  right: 0;
  display:flex;
  margin:0;
}

@media screen and (orientation:portrait) {
  body {
    flex-direction: column;
  }

  #orientation, #map {
    width:100vw;
    height:50vh;
  }

  #orientation {
    flex-direction: row;
  }

  #compass {
    width:45vh;
    height:45vh;
  }
}

@media screen and (orientation:landscape) {
  body {
    flex-direction: row;
  }

  #orientation, #map {
    width:50vw;
    height:100vh;
  }

  #orientation {
    flex-direction: column;
  }

  #compass {
    width:45vw;
    height:45vw;
  }
}

#orientation, #map {
  display:flex;
  flex-shrink: 0;
  flex-grow: 0;
  overflow: hidden;
}

#data > div {
  margin-bottom:1em;
  border: none;
  font-size:1.5em;
}

#data {
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding:1em;
  text-align: center;
}

#compass {
  position: relative;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  margin: auto;
}

#compass > #arrow {
  position: absolute;
  width: 0;
  height: 0;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  border-style: solid;
  border-width: 30px 20px 0 20px;
  border-color: rgb(255, 0, 212) transparent transparent transparent;
  z-index: 1;
}

#compass > #compass-circle,
#compass > #compass-joe {
  position: absolute;
  width: 80%;
  height: 80%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-size: contain;
}

#compass-circle {
  background: url(compass.png) center no-repeat;
}

#compass-joe {
  background: url(joeCompass.png) center no-repeat;
}
