@keyframes logoAnimation_date {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes logoAnimation_circleText {
  0% {
    opacity: 0;
    transform: rotate(-270deg);
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: rotate(0deg);
    opacity: 1;
  }
}

@keyframes photoAnimation {
  0% {
    opacity: 0;
    transform: rotate(-20deg) scale(2, 2) translateX(-20%);
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: rotate(-9deg) scale(1, 1) translateX(0);
  }
}

@keyframes textAnimation {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body {
  font-family: Lato;
  font-size: 16px;
}

#csp-header {
  height: 400px;
  overflow: hidden;
  background-image: url('../img/woodgrain_background.jpg');
}

@media (max-width: 1000px) {
  #csp-header {
    height: calc((100vw - 800px) * 40/200 + 360px);
  }
}

@media (max-width: 800px) {
  #csp-header {
    height: 360px;
  }
}

@media (max-width: 475px) {
  #csp-header {
    height: 400px;
  }
}

#csp-header .content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 98px 2em 0;
  position: relative;
  height: 100%;
  box-sizing: border-box;
}

@media (max-width: 1000px) {
  #csp-header .content {
    padding-top: calc((100vw - 700px) * 72/300 + 26px);
  }
}

@media (max-width: 700px) {
  #csp-header .content {
    padding-top: 26px;
  }
}

@media (max-width: 500px) {
  #csp-header .content {
    padding: calc((100vw - 475px) * 8/25 + 18px) calc((100vw - 475px) * 8/25 + 24px) 0;
  }
}

@media (max-width: 475px) {
  #csp-header .content {
    padding: 18px 24px 0;
  }
}

#csp-header .content h1,
#csp-header .content p {
  animation-name: textAnimation;
  animation-duration: 1s;
  animation-delay: 1.5s;
  animation-fill-mode: forwards;
  opacity: 0;
  max-width: 385px;
}

@media (max-width: 850px) {
  #csp-header .content h1,
  #csp-header .content p {
    max-width: calc((100vw - 650px) * 175/200 + 225px);
  }
}

@media (max-width: 650px) {
  #csp-header .content h1,
  #csp-header .content p {
    max-width: 225px;
  }
}

#csp-header .content h1 {
  color: #ffe674;
  font-size: 36px;
  font-weight: 300;
  line-height: 1.1em;
  margin: 0;
}

@media (max-width: 600px) {
  #csp-header .content h1 {
    max-width: none;
    text-align: center;
  }
}

@media (max-width: 474px) {
  #csp-header .content h1 {
    font-size: calc((100vw - 320px) * 9/154 + 27px);
  }
}

@media (max-width: 320px) {
  #csp-header .content h1 {
    font-size: 27px;
  }
}

#csp-header .content p {
  font-size: 17px;
  line-height: 1.5em;
  color: #fff;
}

@media (max-width: 600px) {
  #csp-header .content p {
    max-width: 450px;
    text-align: center;
    margin-top: 10px;
    padding-left: 35px;
  }
}

/* @media (max-width: 500px) {
  #csp-header .content p {
    max-width: calc((100vw - 475px) * 10/25 + 210px);
    margin-top: calc((100vw - 475px) * 12/25 + 12px);
  }
} */

@media (max-width: 475px) {
  #csp-header .content p {
    max-width: none;
    margin-top: 12px;
    text-align: center;
    font-size: 16px;
  }
}

#csp-header .content p span {
  font-size: 0.75em;
  position: relative;
  top: -4px;
}

#csp-header .content .logo {
  position: absolute;
  bottom: 40px;
  left: 32px;
  width: 100px;
  height: 84px;
  overflow: hidden;
}

@media (max-width: 1000px) {
  #csp-header .content .logo {
    bottom: calc((100vw - 800px) * 26/200 + 14px);
  }
}

@media (max-width: 800px) {
  #csp-header .content .logo {
    bottom: 14px;
  }
}

@media (max-width: 600px) {
  #csp-header .content .logo {
    bottom: 36px;
  }
}

@media (max-width: 475px) {
  #csp-header .content .logo {
    bottom: calc((320px - 100vw) * 33/155 + 129px);
    left: calc((100vw - 320px) * 42/155 + 18px);
  }
}

@media (max-width: 320px) {
  #csp-header .content .logo {
    bottom: 129px;
    left: 18px;
  }
}

#csp-header .content .logo span {
  display: block;
  position: absolute;
  background-repeat: no-repeat;
  background-size: 100%;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

#csp-header .content .logo span.date {
  width: 80%;
  height: 50%;
  background-image: url(../img/5-29.png);
  left: 0;
  top: 30%;
  transform: translateX(-100%);
  animation-name: logoAnimation_date;
  animation-duration: 1s;
  animation-delay: 1.3s;
}

#csp-header .content .logo span.circleText {
  width: 80%;
  height: 100%;
  background-image: url(../img/529_savings_day_circle.png);
  right: 0;
  top: 0;
  opacity: 0;
  transform-origin: 50% 50%;
  animation-name: logoAnimation_circleText;
  animation-duration: 2s;
  animation-timing-function: ease-out;
}

#csp-header .content .photo {
  position: absolute;
  right: 10px;
  top: -8px;
  width: 560px;
  height: 113%;
  background-image: url(../img/3girls_kitchentable.jpg);
  background-repeat: no-repeat;
  background-size: 100%;
  animation-name: photoAnimation;
  animation-iteration-count: 1;
  animation-duration: 1.5s;
  animation-fill-mode: forwards;
}

@media (max-width: 1000px) {
  #csp-header .content .photo {
    right: calc((100vw - 800px) * 100/200);
    width: calc((100vw - 600px) * 100/400 + 300px);
  }
}

@media (max-width: 800px) {
  #csp-header .content .photo {
    right: 0;
    top: calc((600px - 100vw) * 15/200 + 7px);
  }
}

@media (max-width: 600px) {
  #csp-header .content .photo {
    width: calc((100vw - 500px) * 35/100 + 180px);
    top: calc((100vw - 500px) * 10/100 + 220px);
    right: calc((100vw - 500px) * 35/100 + 125px);
  }
}

/* @media (max-width: 500px) {
  #csp-header .content .photo {
    width: 216px;
    top: 88px;
    right: 23px;
  }
} */

@media (max-width: 475px) {
  #csp-header .content .photo {
    width: calc((100vw - 320px) * 16/155 + 200px);
    top: calc((410px - 100vw) * 12/65 + 220px);
    right: calc((100vw - 320px) * 52/154);
  }
}

@media (max-width: 410px) {
  #csp-header .content .photo {
    top: 220px;
  }
}

@media (max-width: 320px) {
  #csp-header .content .photo {
    width: 200px;
    right: 0px;
  }
}
