.loader {
  width: 500px;
  margin: 0 auto;
  border-radius: 10px;
  border: 4px solid transparent;
  position: relative;
  padding: 1px;
}

.loader:before {
  content: '';
  /* border:1px solid #0095DA;  */
  border-radius: 10px;
  position: absolute;
  top: -4px;
  right: -4px;
  bottom: -4px;
  left: -4px;
}

.loader .loaderBar {
  position: absolute;
  border-radius: 10px;
  top: 0;
  right: 100%;
  bottom: 0;
  left: 0;
  background: #0095DA;
  width: 0;
  animation: borealisBar 2s linear infinite;
}

@keyframes borealisBar {
  0% {
    left: 0%;
    right: 100%;
    width: 0%;
    opacity: 0;
  }
  10% {
    left: 0%;
    right: 75%;
    width: 25%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  90% {
    right: 0%;
    left: 75%;
    width: 25%;
    opacity: 0;
  }
  100% {
    left: 100%;
    right: 0%;
    width: 0%;
    opacity: 0;
  }
}

.waveloading-div {
  position: fixed;
  height: 100%;
  width: 100%;
  z-index: 1000;
  opacity: 1;
  padding-right: 250px;
  -webkit-animation: slide-rotate-hor-top 0.1s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
  animation: slide-rotate-hor-top 0.1s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@-webkit-keyframes slide-rotate-hor-top {
  0% {
    -webkit-transform: translateY(100vh);
    transform: translateY(100vh);
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@keyframes slide-rotate-hor-top {
  0% {
    -webkit-transform: translateY(100vh);
    transform: translateY(100vh);
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

.waveloading-div.active {
  -webkit-animation: slide-rotate-hor-bottom 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
  animation: slide-rotate-hor-bottom 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.waveloading-div .header {
  position: relative;
  text-align: center;
  /* background-color: whitesmoke; */
  background: linear-gradient(0deg, #f5f5f5 0%, rgba(0, 0, 0, 0) 100%);
  color: white;
}

.waveloading-div.active .header {
  -webkit-animation: activeHeader 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
  animation: activeHeader 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@-webkit-keyframes activeHeader {
  0% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    background: linear-gradient(0deg, #f5f5f5 0%, rgba(0, 0, 0, 0) 100%);
  }
  100% {
    -webkit-transform: translateY(100vh);
    transform: translateY(100vh);
    background-color: transparent;
  }
}

@keyframes activeHeader {
  0% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    background: linear-gradient(0deg, #f5f5f5 0%, rgba(0, 0, 0, 0) 100%);
  }
  100% {
    -webkit-transform: translateY(100vh);
    transform: translateY(100vh);
    background-color: transparent;
  }
}

@-webkit-keyframes slide-rotate-hor-bottom {
  0% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  100% {
    -webkit-transform: translateY(100vh);
    transform: translateY(100vh);
  }
}

@keyframes slide-rotate-hor-bottom {
  0% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  100% {
    -webkit-transform: translateY(100vh);
    transform: translateY(100vh);
  }
}

.logo {
  width: 50px;
  fill: white;
  padding-right: 15px;
  display: inline-block;
  vertical-align: middle;
}

.inner-header {
  height: 65vh;
  width: 100%;
  margin: 0;
  padding: 0;
}

.flex {
  /*Flexbox for containers*/
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.waves {
  position: relative;
  width: 100%;
  height: 15vh;
  margin-bottom: -7px;
  /*Fix for safari gap*/
  min-height: 100px;
  max-height: 150px;
}

.content {
  position: relative;
  height: 20vh;
  text-align: center;
  background-color: white;
}

/* Animation */

.parallax>use {
  animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.parallax>use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.parallax>use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.parallax>use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}

/*Shrinking for mobile*/

@media (max-width: 768px) {
  .waves {
    height: 40px;
    min-height: 40px;
  }
  .content {
    height: 30vh;
  }
  h1 {
    font-size: 24px;
  }
}

/* Loading */

.load-text {
  -webkit-animation: loadingText 1s infinite;
  -moz-animation: loadingText 1s infinite;
  animation: loadingText 1s infinite;
}

@-webkit-keyframes loadingText {
  0% {
    opacity: 0.6;
    -webkit-transform: scale(0.98)
  }
  50% {
    opacity: 1;
    -webkit-transform: scale(1)
  }
  100% {
    opacity: 0.6;
    -webkit-transform: scale(0.98)
  }
}

@-moz-keyframes loadingText {
  0% {
    opacity: 0.6;
    -moz-transform: scale(0.98)
  }
  50% {
    opacity: 1;
    -moz-transform: scale(1)
  }
  100% {
    opacity: 0.6;
    -moz-transform: scale(0.98)
  }
}

@keyframes loadingText {
  0% {
    opacity: 0.6;
    transform: scale(0.98)
  }
  50% {
    opacity: 1;
    transform: scale(1)
  }
  100% {
    opacity: 0.6;
    transform: scale(0.98)
  }
}

.load {
  /* position: fixed; */
  /* top: 90%;
        left: 50%; */
  padding: 10px;
}

.loading-dot {
  float: left;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  background: #444c66;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  opacity: 0;
  -webkit-box-shadow: 0 0 2px black;
  -moz-box-shadow: 0 0 2px black;
  -ms-box-shadow: 0 0 2px black;
  -o-box-shadow: 0 0 2px black;
  box-shadow: 0 0 2px black;
  -webkit-animation: loadingFade 1s infinite;
  -moz-animation: loadingFade 1s infinite;
  animation: loadingFade 1s infinite;
}

.loading-dot:nth-child(1) {
  -webkit-animation-delay: 0s;
  -moz-animation-delay: 0s;
  animation-delay: 0s;
}

.loading-dot:nth-child(2) {
  -webkit-animation-delay: 0.1s;
  -moz-animation-delay: 0.1s;
  animation-delay: 0.1s;
}

.loading-dot:nth-child(3) {
  -webkit-animation-delay: 0.2s;
  -moz-animation-delay: 0.2s;
  animation-delay: 0.2s;
}

.loading-dot:nth-child(4) {
  -webkit-animation-delay: 0.3s;
  -moz-animation-delay: 0.3s;
  animation-delay: 0.3s;
}

@-webkit-keyframes loadingFade {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
  }
}

@-moz-keyframes loadingFade {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
  }
}

@keyframes loadingFade {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
  }
}

@media only screen and (max-width: 992px) {
  .waveloading-div {
    padding-right: 70px;
  }
}

@media only screen and (max-width: 576px) {
  .waveloading-div {
    padding-right: 0;
    padding-top: 40px;
  }
}