@-webkit-keyframes loading {
  0% {
      opacity: 1;
  }
  50% {
      opacity: 0.3;
  }
  100% {
      opacity: 1;
  }
}

@keyframes loading {
  0% {
      opacity: 1;
  }
  50% {
      opacity: 0.3;
  }
  100% {
      opacity: 1;
  }
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
}

#api-frame {
  display: block;
  border: 0;
  width: 100%;
  height: 100%;
}

.controls {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 240px;
  padding: 20px 20px 10px 20px;
  background: #ffffff;
  -webkit-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.15);
          box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.15);
}

.controls__title {
  color: #000000;
  font-size: 35px;
  font-weight: 100;
  margin: 0 0 20px 0;
}

.controls .button {
  display: block;
  margin: 10px 0;
  width: 100%;
}

.hotspot {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  background: #3dcd58;
  border-radius: 50%;
  -webkit-animation-name: pulse;
          animation-name: pulse;
  -webkit-animation-duration: 1s;
          animation-duration: 1s;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
}

.hotspot:after {
  content: '';
  display: block;
  position: absolute;
  top: -2px;
  left: -2px;
  width: 16px;
  height: 16px;
  border: 2px solid #3dcd58;
  border-radius: 50%;
  -webkit-animation-name: ring;
          animation-name: ring;
  -webkit-animation-duration: 1s;
          animation-duration: 1s;
  -webkit-animation-delay: 0.5;
          animation-delay: 0.5;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
}

.button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  padding: 4px 13px;
  border: 0;
  background: #42b4e6;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.button:hover {
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #59bde9), to(#42b4e6));
  background: -webkit-linear-gradient(top, #59bde9 0, #42b4e6 100%);
  background: -o-linear-gradient(top, #59bde9 0, #42b4e6 100%);
  background: linear-gradient(to bottom, #59bde9 0, #42b4e6 100%);
}

.button:active {
  background: #000000;
}

.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fafafa;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.3s;
  -o-transition: opacity 0.3s;
  transition: opacity 0.3s;
}

.loading.--active {
  opacity: 1;
  pointer-events: auto;
}

.loading p {
  color: #3dcd58;
  text-align: center;
  max-width: 500px;
}

.loading__title {
  font-size: 16px;
  font-weight: 700;
}

.loading__text {
  -webkit-animation: loading 1s infinite;
          animation: loading 1s infinite;
}

.--hidden {
  display: none;
}
