body {
  padding: 0;
  margin: 0;
  background: black;
  font-family: sans-serif;
  line-height: 1.5em;
  overflow-x: hidden;
  overflow-y: auto;
  font-size: 16px;
}

/* Responsive typography */
@media (max-width: 767px) {
  body {
    font-size: 14px;
  }
  
  #content div {
    padding: 0 15px;
  }
  
  h2 {
    font-size: 1.5em;
  }
}

#content {
  background-color: transparent;
  color: #ecf0f1;
}

a {
  color: #95a5a6;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

#bg {
  position:absolute;
  top:0;
  right:0;
  bottom: 0;
  left: 0;
  background: #2c3e50;
  z-index: -1;
  opacity: 0.5;
}

#globe, #wrapper {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  overflow-x: hidden;
  overflow-y: auto;
  height: 100vh;
  width: 100vw;
}

.no-webgl #globe {
  display: none;
}

.no-webgl #wrapper {
  position: relative;
  height: auto;
  min-height: 100vh;
}

#content div {
  padding: 0 20px;
  max-width: 450px;
  width: 100%;
  box-sizing: border-box;
}

/* Mobile-first responsive design */
@media (max-width: 1199px) {
  #content div {
    margin: 0 auto;
    max-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }
  
  #content {
    display: block;
    padding-top: 20px;
    padding-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
  }
  
  #bg {
    position: fixed;
  }
  
  img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
  }
}

/* Desktop layout */
@media (min-width: 1200px) {
  #content div {
    margin: 0;
    max-width: 450px;
    box-sizing: border-box;
  }
  
  .webgl #content {
    position: relative;
    float: left;
  }
  
  .no-webgl #content {
    display: block;
    padding-top: 50px;
    padding-bottom: 50px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .no-webgl #content div {
    margin: 0 auto;
  }
  
  img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
  }
}


#spinWrapper {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#spinner {
  align-self: center;
}

/*
  props to:

  http://tobiasahlin.com/spinkit/
*/

.spinner {
  width: 40px;
  height: 40px;

  position: relative;
  margin: 100px auto;
}

.double-bounce1, .double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: yellow;
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  
  -webkit-animation: sk-bounce 2.0s infinite ease-in-out;
  animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
  -webkit-animation-delay: -1.0s;
  animation-delay: -1.0s;
}

@-webkit-keyframes sk-bounce {
  0%, 100% { -webkit-transform: scale(0.0) }
  50% { -webkit-transform: scale(1.0) }
}

@keyframes sk-bounce {
  0%, 100% { 
    transform: scale(0.0);
    -webkit-transform: scale(0.0);
  } 50% { 
    transform: scale(1.0);
    -webkit-transform: scale(1.0);
  }
}
