* {
  box-sizing: border-box;
}

p {
  font-family: "Oxygen", sans-serif;
  line-height: 1.4;
}

h2 {
  font-family: "Oxygen", sans-serif;
  font-weight: normal;
  font-size: 1.5em;
}

strong {
  font-weight: 700;
}

body,
html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.constrained {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.spaced {
  padding: 0 1rem;
  position: relative;
}
.spaced img {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.centerTxt {
  display: flex;
  align-items: center;
}

.p0 {
  background: #023859;
  color: white;
}
.p0 a, .p0 a:visited {
  background: white;
  color: black;
  display: inline-block;
  padding: 0 0.3em;
  text-decoration: none;
  margin: 0 0.2em;
  box-shadow: 4px 4px 0 black;
}
.p0 a:hover, .p0 a:visited:hover {
  background-color: yellow;
}

.p1 {
  background-color: #023859;
  overflow: hidden;
  color: white;
}

.p3 {
  background-color: #fccf05;
}

.arrow-down {
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-top: 30px solid white;
  filter: drop-shadow(0 5px 0 red);
  position: absolute;
  bottom: 0;
  z-index: 5;
  left: calc(50% - 30px);
  animation-name: arrow;
  animation-duration: 0.4s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: linear;
}

@keyframes arrow {
  from {
    bottom: 10px;
  }
  to {
    bottom: 20px;
  }
}
.foldcontainer {
  width: 100%;
  height: 100%;
  background: #7ECEFD;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.layer, #city, #cityBack, #cloud2, #cloud1 {
  transform: translateZ(0);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: repeat-x;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  background-size: 600px;
}

#cloud1 {
  background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/96252/clouds2.png);
  z-index: 0;
  animation-duration: 70s;
}

#cloud2 {
  background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/96252/clouds1.png);
  z-index: 1;
  animation-duration: 50s;
}

#cityBack {
  background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/96252/skyline-back.png);
  z-index: 2;
  animation-name: scrollBottom;
  animation-duration: 32s;
}

#city {
  background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/96252/skyline.png);
  z-index: 4;
  animation-name: scrollBottom;
  animation-duration: 25s;
}

.homeContent {
  flex: 0 0 auto;
  z-index: 4;
  max-width: 45rem;
  width: 90%;
}
.homeContent h1 {
  text-align: center;
  margin-bottom: 0;
  text-shadow: 0px 2px 0 #011826, 0px 5px 8px #011826;
}

.logo {
  filter: drop-shadow(0 5px 0 white) drop-shadow(0 0 20px white);
  width: 100%;
}

@keyframes scrollTop {
  from {
    background-position: 0 top;
  }
  to {
    background-position: -1200px top;
  }
}
@keyframes scrollBottom {
  from {
    background-position: 0 bottom;
  }
  to {
    background-position: -1200px bottom;
  }
}
.cardsAnim {
  position: relative;
  height: 100vw;
  background: #f9a447;
  overflow: hidden;
}

.playingCardContainer {
  position: absolute;
  left: calc(50% - 22vw);
  top: calc(50% - 26vw);
}

.playingCard {
  max-width: 240px;
  max-height: 360px;
  border-radius: 2vw;
  width: 40vw;
  height: 60vw;
  position: absolute;
  animation-duration: 2s;
  animation-fill-mode: forwards;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.c1 {
  background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/96252/card-serpent.png");
}
.c1.anim {
  animation-name: cardAnimation_c1;
}

.c2 {
  background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/96252/card-managerr.png");
}
.c2.anim {
  animation-name: cardAnimation_c2;
}

.c3 {
  background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/96252/card-bot.png");
}
.c3.anim {
  animation-name: cardAnimation_c3;
}

.c4 {
  background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/96252/card-conjurer.png");
}
.c4.anim {
  animation-name: cardAnimation_c4;
}

.c5 {
  background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/96252/card-psycho.png");
}
.c5.anim {
  animation-name: cardAnimation_c5;
}

@keyframes cardAnimation_c1 {
  50%, 55% {
    transform: translate(-30vw, 0) rotate(-30deg);
  }
  65% {
    transform: translate(-30vw, -30px) rotate(-30deg);
  }
  75%, 100% {
    transform: translate(-30vw, 0) rotate(-30deg);
  }
}
@keyframes cardAnimation_c2 {
  50%, 60% {
    transform: translate(-15vw, 0) rotate(-15deg);
  }
  70% {
    transform: translate(-15vw, -30px) rotate(-15deg);
  }
  80%, 100% {
    transform: translate(-15vw, 0) rotate(-15deg);
  }
}
@keyframes cardAnimation_c3 {
  65% {
    transform: translate(0, 0);
  }
  75% {
    transform: translate(0, -30px);
  }
  85% {
    transform: translate(0, 0);
  }
}
@keyframes cardAnimation_c4 {
  50%, 70% {
    transform: translate(15vw, 0) rotate(15deg);
  }
  80% {
    transform: translate(15vw, -30px) rotate(15deg);
  }
  90%, 100% {
    transform: translate(15vw, 0) rotate(15deg);
  }
}
@keyframes cardAnimation_c5 {
  50%, 75% {
    transform: translate(30vw, 0) rotate(30deg);
  }
  85% {
    transform: translate(30vw, -30px) rotate(30deg);
  }
  95%, 100% {
    transform: translate(30vw, 0) rotate(30deg);
  }
}
h1 {
  font-family: "Titillium Web", sans-serif;
  color: white;
  line-height: 1.1;
}

@media (min-width: 31.25em) {
  .playingCardContainer {
    left: calc(50% - 120px);
    top: calc(50% - 180px);
  }

  .playingCard {
    border-radius: 15px;
  }

  .cardsAnim {
    height: 36rem;
  }
}
@media (min-width: 43.75em) {
  .homeContent h1 {
    font-size: 3rem;
  }

  .layer, #cloud1, #cloud2, #cityBack, #city {
    background-size: auto;
  }

  #cloud1,
#cloud2 {
    animation-name: scrollTop;
  }
}
@media (min-width: 56.25em) {
  p {
    font-size: 1.5em;
  }

  h2 {
    font-size: 2.5em;
  }

  .spaced img {
    max-width: 100%;
  }

  @keyframes cardAnimation_c1 {
    50%, 55% {
      transform: translate(-300px, 0) rotate(-30deg);
    }
    65% {
      transform: translate(-300px, -30px) rotate(-30deg);
    }
    75%, 100% {
      transform: translate(-300px, 0) rotate(-30deg);
    }
  }
  @keyframes cardAnimation_c2 {
    50%, 60% {
      transform: translate(-150px, 0) rotate(-15deg);
    }
    70% {
      transform: translate(-150px, -30px) rotate(-15deg);
    }
    80%, 100% {
      transform: translate(-150px, 0) rotate(-15deg);
    }
  }
  @keyframes cardAnimation_c3 {
    65% {
      transform: translate(0, 0);
    }
    75% {
      transform: translate(0, -30px);
    }
    85% {
      transform: translate(0, 0);
    }
  }
  @keyframes cardAnimation_c4 {
    50%, 70% {
      transform: translate(150px, 0) rotate(15deg);
    }
    80% {
      transform: translate(150px, -30px) rotate(15deg);
    }
    90%, 100% {
      transform: translate(150px, 0) rotate(15deg);
    }
  }
  @keyframes cardAnimation_c5 {
    50%, 75% {
      transform: translate(300px, 0) rotate(30deg);
    }
    85% {
      transform: translate(300px, -30px) rotate(30deg);
    }
    95%, 100% {
      transform: translate(300px, 0) rotate(30deg);
    }
  }
}