*,
*::before,
*::after {
  box-sizing: border-box;
}
#login-bg {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#b5dcff+0,cde7ff+35,edffff+100 */
background: #b5dcff; /* Old browsers */
background: -moz-linear-gradient(top, #b5dcff 0%, #cde7ff 35%, #edffff 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, #b5dcff 0%,#cde7ff 35%,#edffff 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, #b5dcff 0%,#cde7ff 35%,#edffff 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b5dcff', endColorstr='#edffff',GradientType=0 ); /* IE6-9 */
}

* {
  position: relative;
}

.plane-frame {
  position: absolute;
  top: -17.5%;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 100%;
  height: 15%;
  z-index: 1;
}

svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/**
 * Plane
 */
/*Plane: Container*/
.plane-container {
  width: 60%;
  margin: 0 auto;
  position: absolute;  
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
 /*Paper Plane: Image*/
.plane {
  position: relative;
  margin: 0 auto;
  height: 90%;
  max-width: 140px;
  width: 20%;
}

/*Plane: Animation*/
.plane-container {
  -webkit-animation: plane-flying 15s linear infinite;
  -moz-animation: plane-flying 15s linear infinite;
  animation: plane-flying 15s linear infinite;
}

@media (max-width: 768px) {

  /*Plane: Animation*/
  .plane-container {
    width: 70%;
    -webkit-animation: plane-flying 7.5s linear infinite;
    -moz-animation: plane-flying 7.5s linear infinite;
    animation: plane-flying 7.5s linear infinite;
  }
  
  .plane {
    width: 15%;
    min-width: 100px;
  }
  
}

@-webkit-keyframes plane-flying {
  0% {
    -webkit-transform: translateX(-100%);
  }
  100% {
    -webkit-transform: translateX(100%);
  }
}

@keyframes plane-flying {
  0% {
    -moz-transform: translateX(-100%);
    transform: translateX(-100%);
  }
  100% {
    -moz-transform: translateX(100%);
    transform: translateX(100%);
  }
}

/**
 * Clouds
 */
.clouds {
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  height: 60%;
  overflow: hidden;
  transform: translateZ(0);
  animation: FadeIn 3s ease-out;
}
.clouds.background { z-index: 1; }
.clouds.foreground { z-index: 4; }

.cloud {
  position: absolute;
  top: 10%;
  right: 0;
  opacity: 0;
}
.clouds.background-2 .cloud,
.clouds.foreground-2 .cloud {
    right: 50%;
}

.clouds.background-1 .cloud,
.clouds.foreground-1 .cloud {
  -webkit-animation-delay: 1s;
  -moz-animation-delay: 1s;
  animation-delay: 1s;
}

/*Cloud Sizing*/
.cloud.sm {
  margin-right: 150px;
  max-width: 100px;
  height: 10%;
  margin-top: 60px;
}

.cloud.md {
  margin-top: 20px;
  margin-right: 250px;
  height: 12.5%;
  max-width: 80px;
}

.cloud.lg {
  margin-top: 50px;
  margin-right: 150px;
  height: 17.5%;
  max-width: 120px;
}

.cloud.xl {
  margin-top: 100px;
  margin-right: 0px;
  height: 22.5%;
  max-width: 160px;
}


/*Cloud: Animation*/
.cloud {
  -webkit-animation-name: cloud-movement;
  -webkit-animation-timing-function: linear;
  -webkit-animation-direction: forwards;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-duration: 8s;

  -moz-animation-name: cloud-movement;
  -moz-animation-timing-function: linear;
  -moz-animation-direction: forwards;
  -moz-animation-iteration-count: infinite;
  -moz-animation-duration: 8s;

  animation-name: cloud-movement;
  animation-timing-function: linear;
  animation-direction: forwards;
  animation-iteration-count: infinite;
  animation-duration: 8s;
}

.fast, .xl {
  -webkit-animation-duration: 9.5s;
  -moz-animation-duration: 9.5s;
  animation-duration: 9.5s;
}

.slower, .lg {
  -webkit-animation-duration: 11.5s;
  -moz-animation-duration: 11.5s;
  animation-duration: 11.5s;
}

.slowest, .md {
  -webkit-animation-duration: 14s;
  -moz-animation-duration: 14s;
  animation-duration: 14s;
}

.super-slow, .sm {
  -webkit-animation-duration: 21s;
  -moz-animation-duration: 21s;
  animation-duration: 21s;
}

@-webkit-keyframes cloud-movement {
  0% {
    opacity: 0;
    -webkit-transform: translateX(300px);
  }
  10% {

    opacity: 0.1;
  }
  40% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.1;
  }
  100% {
    opacity: 0;
    -webkit-transform: translateX(-1000px);
  }
}

@keyframes cloud-movement {
  0% {
    opacity: 0;
    -moz-transform: translateX(300px);
    transform: translateX(300px);
  }
  10% {

    opacity: 0.1;
  }
  40% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.1;
  }
  100% {
    opacity: 0;
    -moz-transform: translateX(-1000px);
    transform: translateX(-1000px);
  }
}

@media (min-width: 769px) {


@-webkit-keyframes cloud-movement {
  0% {
    opacity: 0;
    -webkit-transform: translateX(300px);
  }
  10% {

    opacity: 0.1;
  }
  40% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.1;
  }
  100% {
    opacity: 0;
    -webkit-transform: translateX(-1000px);
  }
}

@keyframes cloud-movement {
  0% {
    opacity: 0;
    -moz-transform: translateX(300px);
    transform: translateX(300px);
  }
  10% {

    opacity: 0.1;
  }
  40% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.1;
  }
  100% {
    opacity: 0;
    -moz-transform: translateX(-1000px);
    transform: translateX(-1000px);
  }
}
  
}

/**
 * Ground
 */
.ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center 0;
  background-size: cover;
  transform: translateZ(0);
}
.ground.background { 
    height: 60%;
    z-index: 0; 
    /*background-image: url('http://tsquaredesign.ca/images/oab/background.svg');*/
}
.ground.foreground { 
    height: 60%;
    z-index: 3; 
    /*background-image: url('http://tsquaredesign.ca/images/oab/foreground.svg');*/
}

/*.ground .image {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  //max-height: 100%;
  //margin: auto;
}*/

/**
 * Description (text content)
 */
.description {
  margin: 0 auto;
  padding: 8% 2rem 0;
  max-width: 75%;
  height: auto;
  z-index: 10;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.8;
  text-align: center;
  //border: 1px solid red;
}

.text-pad {
  padding: 0.45rem 1rem;
  color: #00205b;
  background: rgba(255,255,255,0.8);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media (max-width: 768px) {
  .description {
    padding: 2rem 2rem 0;
    max-width: none;
  }  
}

