* {
  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: 728px;
  height: 90px;
  box-sizing: border-box;
}

a:hover #cta {
  background: #FFF;
}

a:hover #cta img {
  filter: sepia(1) brightness(0.45) hue-rotate(146deg) saturate(20);
}

#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: -728px;
  }
  100% {
    margin: 0;
  }
}

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

#intro img {
  position: absolute;
}

#intro .mascot {
  margin: -728px;
  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: 0;
  margin-right: 0 !important;
  right: 110px;
  animation-delay: 0.4s !important;
}

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

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

@keyframes ctaIn {
  0% {
    right: -200px;
  }
  100% {
    right: 0;
  }
}

@keyframes ctaOut {
  0% {
    right: 0;
  }
  100% {
    right: -200px;
  }
}

#hoverPrompt {
  z-index: 7;
  pointer-events: none;
  right: -200px;
  left: unset;
  transition: right 0.35s ease-in;
  animation: ctaIn 0.35s 1s ease-out forwards;
}

#hoverPrompt.out {
  animation: ctaOut 0.35s 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: 2px;
  right: 0;
  margin: auto;
  width: 343px;
  height: auto;
  z-index: 2;
  clip: rect(0, 500px, 90px, 0);
  transition: opacity 0.4s ease-out, clip 0.5s 0.4s ease-out;
}

#noJingles.out {
  opacity: 0;
}

#award {
  z-index: 4;
  top: 4px;
  width: 85px;
  left: 728px;
  transition: left 0.5s 0.4s ease-out;
}

#award.in {
  left: 209px;
}

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

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

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

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

#frames p {
  font-size: 13px;
  color: #FFF;
  margin: 0;
  line-height: 1.2;
}

#logo {
  position: absolute;
  top: 22px;
  left: 20px;
  width: 130px;
  height: auto;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

#logo.in {
  opacity: 1;
}

#cta {
  display: block;
  background: #0078c1;
  position: absolute;
  right: 37px;
  top: 30px;
  margin: 0;
  z-index: 3;
  padding: 7px 8px;
  opacity: 0;
  transition: opacity 0.4s 1.1s ease-out, background 0.1s ease-out;
}

#cta.in {
  opacity: 1;
}

#cta img {
  display: block;
  width: 97px;
  height: auto;
  margin: 0 auto;
  transition: all 0.1s ease-out;
}
