* {
  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: 160px;
  height: 600px;
  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: -160px;
  }
  100% {
    margin: 0;
  }
}

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

#intro img {
  position: absolute;
}

#intro .mascot {
  margin: -160px;
  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: 600px;
  }
  100% {
    top: 0;
  }
}

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

#hoverPrompt {
  z-index: 7;
  pointer-events: none;
  top: 600px;
  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: 2px;
  right: 0;
  margin: auto;
  width: 136px;
  height: auto;
  z-index: 2;
  transition: all 0.5s 0.25s ease-out;
}

#noJingles.out {
  opacity: 0;
}

#award {
  z-index: 4;
  left: 5px;
  width: 136px;
  top: 600px;
  transition: top 0.5s ease-out;
}

#award.in {
  top: 197px;
}

#frames {
  top: 340px;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.4s 0.25s ease-out;
}

#frames.in {
  opacity: 1;
}

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

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

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

#logo {
  position: absolute;
  top: 33px;
  left: 17px;
  width: 133px;
  height: auto;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

#logo.in {
  opacity: 1;
}

#cta {
  display: block;
  position: absolute;
  bottom: -100px;
  width: 100%;
  margin: 0;
  z-index: 3;
  background: #0078c1;
  padding: 30px 0px;
  transition: background 0.1s ease-out, bottom 0.5s 0.5s ease-out;
}

#cta.in {
  bottom: 0;
}

#cta img {
  display: block;
  width: 95px;
  height: auto;
  margin: 0 auto;
}
