/* Animated hero scenery
   Moving train, hills and track scenery used in the hero.
   Edit this file to change these styles on every page that uses it. */

.uh.rrb {
  padding: 48px 0 215px;
  background: linear-gradient(180deg,#061425 0%,#0a2038 62%,#0f2c4a 100%);
}

.lc:nth-of-type(2) {
  margin-left: 22px;
}

.lc:nth-of-type(3) {
  margin-left: 44px;
}

.lc:nth-of-type(4) {
  margin-left: 66px;
  animation-delay: 2.4s;
}

.rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 230px;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.rail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 76% 100%,rgba(255,187,46,.32),transparent 58%);
}

.sun {
  position: absolute;
  right: 15%;
  bottom: 58px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle,#ffd978 0,rgba(255,187,46,.55) 38%,rgba(240,165,0,.12) 62%,transparent 70%);
  animation: glow 4s ease-in-out infinite alternate;
}

.sun::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px dashed rgba(255,187,46,.55);
  animation: spin 60s linear infinite;
}

.sun::after {
  content: "";
  position: absolute;
  inset: -34px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.22);
  animation: spin 90s linear infinite reverse;
}

.hl1,
.hl2,
.pls,
.trk {
  position: absolute;
  left: 0;
  right: 0;
  background-repeat: repeat-x;
}

.hl1 {
  bottom: 34px;
  height: 120px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc5MDAnIGhlaWdodD0nMTIwJyB2aWV3Qm94PScwIDAgOTAwIDEyMCc+PHBhdGggZD0nTTAgMTAwTDcwIDYwTDEzMCA4NUwyMjAgMjVMMzAwIDgwTDM4MCA1MEw0NjAgOTVMNTYwIDQwTDY1MCA4OEw3NDAgNTVMODIwIDg1TDkwMCAxMDBWMTIwSDBaJyBmaWxsPScjMGQyNTQwJyBzdHJva2U9JyNmZmZmZmYnIHN0cm9rZS1vcGFjaXR5PScuMjgnIHN0cm9rZS13aWR0aD0nMS41JyBzdHJva2UtbGluZWpvaW49J3JvdW5kJy8+PC9zdmc+");
  background-size: 900px 120px;
  animation: scrx 110s linear infinite;
  --w: 900px;
}

.hl2 {
  bottom: 34px;
  height: 80px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc2MDAnIGhlaWdodD0nODAnIHZpZXdCb3g9JzAgMCA2MDAgODAnPjxwYXRoIGQ9J00wIDcwUTc1IDE4IDE1MCA1OFQzMDAgNTJUNDUwIDYwVDYwMCA3MFY4MEgwWicgZmlsbD0nIzA5MWQzMycgc3Ryb2tlPScjZmZiYjJlJyBzdHJva2Utb3BhY2l0eT0nLjMyJyBzdHJva2Utd2lkdGg9JzEuNScvPjwvc3ZnPg==");
  background-size: 600px 80px;
  animation: scrx 48s linear infinite;
  --w: 600px;
}

.pls {
  bottom: 34px;
  height: 90px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScyNjAnIGhlaWdodD0nOTAnIHZpZXdCb3g9JzAgMCAyNjAgOTAnPjxnIGZpbGw9J25vbmUnIHN0cm9rZT0nI2ZmZmZmZicgc3Ryb2tlLW9wYWNpdHk9Jy40Micgc3Ryb2tlLXdpZHRoPScyJyBzdHJva2UtbGluZWNhcD0ncm91bmQnPjxwYXRoIGQ9J00xMzAgMTRWOTBNMTE0IDIySDE0Nk0xMTggMzBMMTMwIDIyTDE0MiAzMCcvPjxwYXRoIGQ9J00wIDM4UTY1IDM4IDEzMCAyMk0xMzAgMjJRMTk1IDM4IDI2MCAzOCcgc3Ryb2tlLXdpZHRoPScxLjMnLz48cGF0aCBkPSdNMCA0NlE2NSA0NiAxMzAgMjhNMTMwIDI4UTE5NSA0NiAyNjAgNDYnIHN0cm9rZS13aWR0aD0nMS4zJy8+PC9nPjxjaXJjbGUgY3g9JzExNicgY3k9JzIxJyByPScyJyBmaWxsPScjZmZiYjJlJy8+PGNpcmNsZSBjeD0nMTQ0JyBjeT0nMjEnIHI9JzInIGZpbGw9JyNmZmJiMmUnLz48L3N2Zz4=");
  background-size: 260px 90px;
  animation: scrx 3.2s linear infinite;
  --w: 260px;
}

.trk {
  bottom: 0;
  height: 36px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc0OCcgaGVpZ2h0PSczNicgdmlld0JveD0nMCAwIDQ4IDM2Jz48cmVjdCB3aWR0aD0nNDgnIGhlaWdodD0nMzYnIGZpbGw9JyMwNjEyMWYnLz48cmVjdCB3aWR0aD0nNDgnIGhlaWdodD0nMycgZmlsbD0nI2ZmYmIyZScvPjxyZWN0IHk9JzMnIHdpZHRoPSc0OCcgaGVpZ2h0PScxLjUnIGZpbGw9JyNmZmJiMmUnIGZpbGwtb3BhY2l0eT0nLjQ1Jy8+PHJlY3QgeD0nNicgeT0nOScgd2lkdGg9JzMwJyBoZWlnaHQ9JzUnIHJ4PScxLjUnIGZpbGw9JyNmZmJiMmUnIGZpbGwtb3BhY2l0eT0nLjM4Jy8+PHBhdGggZD0nTTIgMjRoNk0xNiAyOGg4TTMwIDIzaDdNNDAgMjloNScgc3Ryb2tlPScjZmZmZmZmJyBzdHJva2Utb3BhY2l0eT0nLjE4JyBzdHJva2Utd2lkdGg9JzEuNScgc3Ryb2tlLWxpbmVjYXA9J3JvdW5kJy8+PC9zdmc+");
  background-size: 48px 36px;
  animation: scrx .6s linear infinite;
  --w: 48px;
}

@keyframes scrx {
  to {
    background-position-x: calc(-1*var(--w));
  }
}

.train {
  position: absolute;
  left: 0;
  bottom: 34px;
  width: 900px;
  animation: ride 24s linear infinite;
  will-change: transform;
}

@keyframes ride {
  from {
    transform: translateX(-102%);
  }
  to {
    transform: translateX(100vw);
  }
}

.train svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: jit .24s linear infinite alternate;
}

@keyframes jit {
  to {
    transform: translateY(-1.4px);
  }
}

.train .tl {
  stroke: var(--sf2);
}

.train .tc {
  stroke: #cfe0f0;
}

.train .bd {
  fill: #0a2038;
}

.train .wn {
  fill: rgba(255,205,90,.22);
  stroke-width: 1.6;
  animation: wnk 3s ease-in-out infinite alternate;
}

@keyframes wnk {
  to {
    fill: rgba(255,205,90,.42);
  }
}

.train .tt {
  fill: var(--sf2);
  stroke: none;
  font: 800 8.5px Mulish,sans-serif;
  letter-spacing: .22em;
}

.train .pin {
  fill: var(--sf2);
  stroke: none;
}

.train .rod {
  stroke-width: 3.4;
}

.wh {
  transform-box: fill-box;
  transform-origin: center;
  animation: whl 1.6s linear infinite;
}

.wh.s {
  animation-duration: .9s;
}

@keyframes whl {
  to {
    transform: rotate(360deg);
  }
}

.rx {
  animation: rodx .8s ease-in-out infinite alternate;
}

.ry {
  animation: rody .8s ease-in-out -1.2s infinite alternate;
}

@keyframes rodx {
  from {
    transform: translateX(8px);
  }
  to {
    transform: translateX(-8px);
  }
}

@keyframes rody {
  from {
    transform: translateY(8px);
  }
  to {
    transform: translateY(-8px);
  }
}

.pf {
  stroke: #dbe7f3;
  stroke-width: 1.6;
  fill: rgba(255,255,255,.07);
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: puff 3.2s ease-out infinite;
}

@keyframes puff {
  0% {
    opacity: 0;
    transform: translate(0,0) scale(.4);
  }
  15% {
    opacity: .9;
  }
  100% {
    opacity: 0;
    transform: translate(-100px,-72px) scale(2.5);
  }
}

.train .beam {
  fill: rgba(255,223,138,.12);
  stroke: none;
  animation: bm 1.6s ease-in-out infinite alternate;
}

@keyframes bm {
  from {
    opacity: .45;
  }
  to {
    opacity: 1;
  }
}

.train .lamp {
  fill: #ffe6a0;
  stroke: #ffbb2e;
  animation: bm 1.6s ease-in-out infinite alternate;
}

.jump a .ic {
  width: 1em;
  height: 1em;
}

@media(max-width:700px) {
  .uh.rrb {
    padding-bottom: 190px;
  }
  .rail {
    height: 200px;
  }
  .train {
    width: 640px;
  }
  .sun {
    width: 130px;
    height: 130px;
    right: 8%;
  }
  .lc:nth-of-type(n) {
    margin-left: 0;
  }
}

@media(prefers-reduced-motion:reduce) {
  .train {
    animation: none!important;
    transform: translateX(calc(100vw - 100% - 24px));
  }
  .train svg {
    animation: none!important;
  }
}
