@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400');

html {
  margin: 0;
}

body {
  margin: 0;
}

.preload-screen {
  height: 100vh;
  width: 100%;
  background-color: #fff;
}

.preload-spinner {
  border: 6px solid #7589f2;
  border-top: 6px solid #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  position: absolute;
  top: calc(50% - 25px);
  left: calc(50% - 25px);
}

.preload-spinner-page {
  border-top: 6px solid #7589f2;
  border-right: 6px solid #7589f2;
  border-bottom: 6px solid #7589f2;
  border-left: 6px solid #ffffff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  position: absolute;
  top: calc(50% - 25px);
  left: calc(50% - 25px + 125px); /* 125px equals half left-navbar width */
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.preload-text {
  position: absolute;
  top: calc(50% + 40px);
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
  font-size: 1em;
  color: #282828;
}

.preload-text-page {
  position: absolute;
  top: calc(50% + 40px);
  width: 300px;
  left: calc(50% + 125px - 150px); /* 125px equals half left-navbar width */
  right: 0;
  text-align: center;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
  font-size: 1em;
  color: #282828;
}

@media (max-width: 768px) {
  .preload-spinner-page {
    left: calc(50% - 25px);
  }
  .preload-text-page {
    left: calc(50% - 150px);
  }
}
