html.gst-animated-background-html,
body.gst-animated-background-page {
  min-height: 100%;
  background: #07111f;
}

.gst-animated-background-page {
  position: relative;
}

.gst-animated-background {
  --gst-bg-top-offset: 25vh;
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #07111f;
  pointer-events: none;
}

.gst-animated-background__video,
.gst-animated-background__fallback {
  position: absolute;
  top: var(--gst-bg-top-offset);
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(100vh - var(--gst-bg-top-offset));
}

.gst-animated-background__video {
  object-fit: contain;
  object-position: center bottom;
}

.gst-animated-background__fallback {
  background-image: url("../img/background/animation.gif");
  background-position: center bottom;
  background-size: contain;
  background-repeat: no-repeat;
}

.gst-animated-background__video + .gst-animated-background__fallback {
  opacity: 0;
}

.gst-animated-background__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(4, 13, 27, 0.84), rgba(6, 32, 54, 0.68)),
    radial-gradient(circle at top left, rgba(31, 126, 180, 0.22), transparent 36%);
}

.gst-animated-background-content {
  position: relative;
  z-index: 1;
}

.gst-animated-background-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(4px);
}

.gst-animated-news-page #header,
.gst-animated-pro-required-page #header {
  position: relative;
  z-index: 1;
}

.gst-animated-news-page #header > .container,
.gst-animated-pro-required-page #header > .container {
  background: rgba(255, 255, 255, 0.90);
  border-radius: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.20);
}

.gst-animated-news-page h1,
.gst-animated-news-page h3 {
  color: #f8f9fa;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.gst-animated-news-page .stream,
.gst-animated-news-page .stream-update,
.gst-animated-news-page .load {
  position: relative;
  z-index: 1;
}

.gst-animated-news-page .stream > li,
.gst-animated-news-page .stream-update,
.gst-animated-news-page .infinite-container > p {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 0.75rem;
  padding: 0.75rem;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.12);
}

.gst-animated-home-page header.masthead {
  position: relative;
  z-index: 1;
  background-image: none !important;
  min-height: 100vh;
}

.gst-animated-home-page header.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35));
}

.gst-animated-home-page h1,
.gst-animated-home-page p {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .gst-animated-background__video {
    display: none;
  }

  .gst-animated-background__fallback {
    opacity: 1;
  }
}
