@keyframes bgScroll {
  from {
    background-position: 0px 0px;
  }

  to {
    background-position: 0px 1200px;
  }
}

#wrapper {
  animation: bgScroll 60s linear infinite;
  border-top: 2px solid #5f46bf;
}

#header {
  padding: 16px 0 0;
}
#header img {
  border-radius: 4px;
  box-shadow: 0 16px 16px rgba(0, 0, 0, 0.5);
}

/* restore game title */
#header.has_image {
  font-size: initial;
}
#header.has_image h1 {
  display: block;
}

/* style game title */
h1.game_title {
  margin: -9px 0 0;
  mix-blend-mode: screen;
  text-transform: uppercase;
  color: #ccf;
  font-weight: normal;
  font-style: italic;
  letter-spacing: 8px;
  font-size: 2.5rem;
  text-shadow: 0 0 8px rgba(120, 80, 250, 0.8);
}

.view_game_page .header_buy_row .bundle_row {
  display: none;
}

/* center top CTA */
.view_game_page .header_buy_row {
  display: block;
  text-align: center;
  margin: 1em 0 3em;
}

/* hide "A downloadable game" hint */
.view_game_page .header_buy_row > p {
  display: none;
}

@media (max-width: 600px) {
  #wrapper {
    border-top: 0;
  }
  #header {
    padding: 0;
  }
  #header img {
    border-radius: 0;
  }
  h1.game_title {
    font-size: 2rem;
    letter-spacing: normal;
  }
  .view_game_page .header_buy_row {
    margin: 1em 0 2em;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0px 8px rgba(120, 80, 250, 0.4);
  }
  50% {
    box-shadow: 0 0px 16px rgba(120, 80, 250, 0.8);
  }
  100% {
    box-shadow: 0 0px 8px rgba(120, 80, 250, 0.4);
  }
}

@keyframes pulseText {
  0% {
    color: inherit;
    text-shadow: 0 0px 12px rgba(200, 200, 250, 0.5);
  }
  50% {
    color: #fff;
    text-shadow: 0 0px 24px rgba(200, 200, 250, 1);
  }
  100% {
    color: inherit;
    text-shadow: 0 0px 12px rgba(200, 200, 250, 0.5);
  }
}

@keyframes countdownPulse {
  0% {
    color: inherit;
    text-shadow: 0 0px 8px rgba(200, 200, 250, 0.2);
  }
  10% {
    color: #a793f4;
    text-shadow: 0 0px 24px rgba(220, 200, 250, 1);
  }
  20% {
    color: inherit;
    text-shadow: 0 0px 12px rgba(200, 200, 250, 0.2);
  }
  100% {
    color: inherit;
    text-shadow: 0 0px 8px rgba(200, 200, 250, 0.2);
  }
}

/* buy button on top and bottom */
.buy_row a.buy_btn {
  padding: 0 12px;
  text-shadow: 0 1px 0px #4a359c;
  transform: rotate(-4deg);
  animation: pulse 2s ease-in-out infinite;
}

.buy_row a.buy_btn:hover {
  text-shadow: 0 1px 0px #4a359c;
}

/* hide right column with screenshots */
.view_game_page .right_col {
  display: none !important;
}

/* global styles */
.main h1,
.main h2,
.main h3 {
  text-transform: uppercase;
  font-weight: normal !important;
  line-height: 1.2;
  font-style: italic;
  text-shadow: 0 0 8px #812bf6;
}

a:hover {
  color: #dfd4f7;
  text-decoration: none;
}

div.user_formatted img {
  /* display: block; */
  /* margin: 2em auto; */
  border-radius: 4px;
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.4);
  mix-blend-mode: luminosity;
}

div.user_formatted a:hover img {
  mix-blend-mode: normal;
}

div.user_formatted img.custom-ost-retina {
  max-width: 300px;
  height: auto;
}

.custom-section {
  margin: 80px 0;
  clear: both;
}
.custom-section-sm {
  margin: 32px 0;
}
.custom-section-lg {
  margin: 128px 0;
}

/* utility classes */
.custom-pulse,
#purchase {
  animation: pulseText 3s ease-in-out infinite;
}

.custom-pulse-slow-1,
.custom-pulse-slow-2,
.custom-pulse-slow-3 {
  animation: countdownPulse 4800ms ease-in-out infinite;
}

.custom-pulse-slow-1 {
  animation-delay: 1200ms;
}

.custom-pulse-slow-2 {
  animation-delay: 2400ms;
}

.custom-pulse-slow-3 {
  animation-delay: 3600ms;
}

.custom-narrow {
  max-width: 480px;
}

.custom-narrow-center {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.custom-nobr {
  white-space: nowrap;
}

.custom-align-center {
  text-align: center;
}

.custom-align-right {
  text-align: right;
}

img.custom-float-left {
  float: left;
  margin: 0 32px 64px 0;
}

img.custom-float-right {
  float: right;
  margin: 0 0 64px 32px;
}

@media (max-width: 1000px) {
  img.custom-float-left,
  img.custom-float-right {
    float: none;
    margin: 0 0 16px;
  }
  img.custom-hide-mobile {
    display: none;
  }
}

img.custom-pixels {
  image-rendering: pixelated;
}

/* meet the crew */
div.custom-crew {
  display: flex;
  margin: 32px 0;
}

div.custom-crew:nth-of-type(1) {
  justify-content: left;
}

div.custom-crew:nth-of-type(2) {
  justify-content: right;
}

div.custom-crew:nth-of-type(3) {
  justify-content: center;
}

div.custom-crew img {
  margin: 0 24px 0 0;
  box-shadow: 0 0 16px #5f46bf;
}

div.custom-crew-txt {
  flex: 1;
  max-width: 400px;
}

div.custom-crew:nth-of-type(3) div.custom-crew-txt {
  max-width: 500px;
}

div.custom-crew-txt strong {
  color: #e7e7fd;
  text-transform: uppercase;
  font-family: Sixtyfour;
  font-weight: normal;
}

div.custom-crew-txt small {
  font-size: 12px;
  opacity: 0.5;
}

div.custom-awards {
  max-width: 420px;
  margin: auto;
  color: #ffffff;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
}

div.custom-awards strong {
  color: #55faff;
}

div.custom-awards img {
  width: 64px;
  float: left;
  margin-top: 8px;
}
@media (max-width: 1000px) {
  div.custom-awards img {
    float: none;
  }
}
