* {
  font-family: 'Nunito Sans', Arial, sans-serif;
}

body {
  margin: 0;
  text-rendering: optimizeLegibility;
}

a {
  position: relative;
  background: #032334;
  text-decoration: none;
  display: block;
  overflow: hidden;
  width: 320px;
  height: 50px;
  box-sizing: border-box;
}

#preload {
  position: absolute;
  top: 1px;
  left: 1px;
  z-index: 30;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 8;
  pointer-events: none;
  border: 1px solid #000;
  box-sizing: border-box;
}

#intro, #erase, #hoverPrompt {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#erase {
  overflow: hidden;
  opacity: 1;
  transform: scale(1);
  transition: all 0.5s ease-in;
}

#erase.out {
  transform: scale(1.5);
  opacity: 0 !important;
}

@keyframes mascotIn {
  0% {
    margin: -320px;
  }
  100% {
    margin: 0;
  }
}

#intro {
  z-index: 5;
  background: url(../assets/background.jpg) center no-repeat;
}

#intro img {
  position: absolute;
}

#intro .mascot {
  margin: -320px;
  animation: mascotIn 0.75s ease-out forwards;
}

#intro #introText {
  opacity: 0;
  transition: all 0.5s 1.25s ease-out;
}

#intro.in #introText {
  opacity: 1;
}

#pirate {
  bottom: 120px;
  margin-bottom: 0 !important;
  right: 0;
  animation-delay: 0.4s !important;
}

#shark {
  bottom: 64px;
  margin-bottom: 0 !important;
  left: 0;
  animation-delay: 0.2s !important;
}

#giraffe {
  top: 33px;
  left: 0;
  margin-top: 0 !important;
}

@keyframes ctaIn {
  0% {
    top: 50px;
  }
  100% {
    top: 0;
  }
}

@keyframes ctaOut {
  0% {
    top: 0;
  }
  100% {
    top: 50px;
  }
}

#hoverPrompt {
  z-index: 7;
  pointer-events: none;
  top: 50px;
  transition: top 0.75s ease-in;
  animation: ctaIn 0.75s 1s ease-out forwards;
}

#hoverPrompt.out {
  animation: ctaOut 0.785s ease-in forwards;
}

@media (hover: none) {
  #hoverPrompt {
    display: none;
  }
}

#erase {
  z-index: 6;
}

#noJingles, #award, #frames {
  position: absolute;
}

#noJingles {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0px;
  right: 0;
  margin: auto;
  width: 215px;
  height: auto;
  z-index: 2;
  transition: all 0.4s ease-in;
}

#noJingles.out {
  opacity: 0;
}

#award {
  z-index: 4;
  top: 3px;
  left: 320px;
  transition: left 0.5s 0.4s ease-out;
}

#award.in {
  left: 110px;
}

#frames {
  top: 4px;
  left: 160px;
  width: 100%;
  height: 100%;
  z-index: 3;
  opacity: 1;
  clip: rect(0px, 160px, 50px, 160px);
  transition: opacity 0.4s ease-out, clip 0.45s 0.4s ease-out;
}

#frames.in {
  opacity: 1;
  clip: rect(0px, 160px, 50px, 0px);
}

#frames .frame {
  position: absolute;
  width: 100%;
  text-align: left;
}

#frames h2 {
  font-size: 13.5px;
  line-height: 1;
  color: #0078c1;
  font-weight: 400;
  margin: 0 0 1px;
}

#frames p {
  font-size: 7px;
  color: #FFF;
  margin: 0;
}

#logo {
  position: absolute;
  top: 13px;
  left: 11px;
  width: 100px;
  height: auto;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.4s 0.2s ease-out;
}

#logo.in {
  opacity: 1;
}

#cta {
  display: block;
  position: absolute;
  right: 17px;
  top: 19px;
  margin: 0;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.5s 1.1s ease-out;
}

#cta.in {
  opacity: 1;
}

#cta img {
  display: block;
}
