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

a {
  position: relative;
  background: url(../assets/background.jpg) center no-repeat;
  text-decoration: none;
  display: block;
  overflow: hidden;
  width: 300px;
  height: 50px;
  box-sizing: border-box;
  border: 1px solid #000;
}

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

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

@keyframes mascotOut {
  0% {
    margin: 0;
  }
  100% {
    margin: -300px;
  }
}

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

#intro {
  z-index: 5;
  opacity: 1;
}

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

#intro.in #introText {
  opacity: 1;
  transform: translateY(0);
}

#intro.out #introText {
  opacity: 0;
  transition-delay: 0s;
}

#intro img {
  position: absolute;
}

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

#intro.out .mascot {
  margin: 0;
  animation: mascotOut 0.5s ease-in forwards;
}

#intro.out #pirate, #intro.out #shark, #intro.out #giraffe {
  animation-delay: 0.2s !important;
}

#shark {
  bottom: 0;
  right: 0;
  animation-delay: 0.2s !important;
}

#giraffe {
  top: 0;
  left: 0;
}

#noJingles, #end {
  display: flex;
  align-items: center;
  top: -100%;
  transition: top 0.5s ease-out;
  text-align: center;
}

#noJingles .content, #end .content {
  width: 100%;
}

#noJingles.in, #end.in {
  top: 0;
}

#noJingles.out, #end.out {
  top: 100%;
}

#noJingles .content {
  width: calc(300px - 78px);
  right: 0;
  position: absolute;
}

#noJingles .content #lockup {
  width: 172px;
  height: auto;
  margin-left: 5px;
  transition: opacity 0.5s ease-out;
}

#noJingles .content #lockup.out {
  opacity: 0;
}

#noJingles .content #lockup, #noJingles .content #arrow {
  display: inline-block;
  vertical-align: middle;
}

#noJingles .content #arrow {
  margin-left: 5px;
  margin-top: -2px;
}

#ohio {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -14px;
  right: 0;
  margin: auto;
  opacity: 0;
  width: 112px;
  height: auto;
  transition: opacity 0.5s ease-out;
}

#ohio.in {
  opacity: 1;
}

#logo {
  position: absolute;
  display: block;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 71px;
  height: auto;
}

.logoWrap {
  width: 78px;
  height: 100%;
  background: #0078c1;
  position: absolute;
  top: 0;
  left: 0;
}

#cta {
  display: table;
  margin: 30px auto 0;
  background: #0078c1;
  padding: 7px 12px;
  opacity: 0;
  transition: background 0.1s ease-out, opacity 0.3s 1s ease-in-out;
}

#cta img {
  display: block;
  width: 93px;
  height: auto;
}

#end.in #cta {
  opacity: 1;
}
