* {
  outline: none;
  box-sizing: border-box;
}

:root {
  --body-color: #eee;
  --night-color: #1f1c1f;
}

html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

@font-face {
  font-family: "Bubble";
  src: url("../fonts/ElFontBubble.woff2") format("woff2"), url("../fonts/ElFontBubble.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tag";
  src: url("../fonts/OldschoolTag.woff2") format("woff2"), url("../fonts/OldschoolTag.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
body {
  background-color: #000;
  background: linear-gradient(-45deg, #000, #2a2626, #403d3d, #000);
  display: flex;
  align-items: center;
  height: 100vh;
  justify-content: center;
  color: #fff;
  font-size: 40px;
  font-family: "Tag";
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
h1 {
  margin-bottom: 50px;
}

h1 span {
  background-image: url(../spectrum.svg);
  background-repeat: repeat-x;
  background-size: 100% 0.2em;
  background-position: right bottom -6px;
  padding-bottom: 5px;
}

#stream {
  position: absolute;
  top: 10%;
  left: 10%;
  animation: fadein 4s forwards;
  animation-delay: 4s;
  opacity: 0;
}
#stream ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#stream ul li {
  margin-bottom: 40px;
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
a {
  text-decoration: none;
  color: #fff;
}

.track {
  height: 200px;
  min-width: 2600px;
  position: absolute;
  overflow-x: hidden;
  border-bottom: 2px solid #eee;
  bottom: 0;
}

.trains {
  position: absolute;
  animation: intro 4s linear forwards;
  left: 0;
}

@keyframes intro {
  0% {
    left: -100%;
  }
  100% {
    left: 0%;
  }
}
.train {
  position: relative;
  width: 520px;
  height: 200px;
  z-index: 4;
  flex-shrink: 0;
  display: inline-flex;
}

.train-link {
  position: absolute;
  width: 20px;
  height: 141px;
  border: 2px solid var(--night-color);
  right: 0;
  bottom: 38px;
  background-color: var(--body-color);
}
.train-link:before {
  content: "";
  position: absolute;
  border: 1px solid var(--night-color);
  height: 141px;
  right: calc(50% - 1px);
}

.train-kiste {
  position: absolute;
  z-index: 1000;
  color: red;
  text-shadow: 3px 3px rgba(0, 0, 0, 0.75);
}

.kiste-1 {
  top: 20%;
  left: 50%;
  margin-left: -140px;
  font-family: "Bubble";
  font-size: 72px;
  transform: rotate(24deg);
  z-index: 400;
}
.kiste-1 span:nth-of-type(1) {
  color: #5f6cd3;
}
.kiste-1 span:nth-of-type(2) {
  color: #cf24bd;
}
.kiste-1 span:nth-of-type(3) {
  color: #ff7300;
}
.kiste-1 span:nth-of-type(4) {
  color: #f8c500;
}
.kiste-1 span:nth-of-type(5) {
  color: #a0dc00;
}

.kiste-2 {
  bottom: 20%;
  left: 30%;
  margin-left: -150px;
  font-family: "Bubble";
  font-size: 40px;
  transform: rotate(0);
  letter-spacing: 12px;
  text-shadow: none;
  color: #000;
}

.train-coach {
  position: absolute;
  background-color: var(--body-color);
  width: 500px;
  height: 175px;
  border-radius: 30px 30px 0 0;
  border-bottom: 2px solid var(--night-color);
}
.train-coach:before {
  content: "";
  position: absolute;
  width: 460px;
  height: 2px;
  background-color: var(--night-color);
  top: 10px;
  right: 20px;
}
.train-coach:after {
  content: "";
  position: absolute;
  height: 2px;
  width: 100%;
  background-color: var(--night-color);
  bottom: 7px;
  left: 0;
}

.train-mid {
  border: 1px solid var(--night-color);
  width: 500px;
  position: absolute;
  top: 20px;
}

.window {
  position: absolute;
  background-color: var(--night-color);
  width: 72px;
  height: 54px;
  border-radius: 10px;
  z-index: 500;
}
.window:nth-child(1) {
  left: 25px;
  top: 25px;
}
.window:nth-child(2) {
  left: 112px;
  top: 25px;
}
.window:nth-child(3) {
  left: 308px;
  top: 25px;
}
.window:nth-child(4) {
  left: 395px;
  top: 25px;
}

.window-line {
  position: absolute;
  border: 0.2px solid var(--body-color);
  width: 80px;
  top: 20px;
}

.door {
  border: 2px solid var(--night-color);
  position: absolute;
  bottom: -2px;
  height: 125px;
  width: 72px;
  left: calc(50% + 2px);
  transform: translatex(-50%);
  border-radius: 10px 10px 0 0;
}
.door:before {
  content: "";
  position: absolute;
  border: 1px solid var(--night-color);
  height: 92%;
  left: calc(50% - 1px);
}

.roller {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--body-color);
  bottom: -30px;
  z-index: -1;
}
.roller:before {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2px solid var(--night-color);
  border-radius: 50%;
  right: 8px;
  bottom: 8px;
}
.roller:nth-child(1) {
  left: 20px;
}
.roller:nth-child(1):after {
  content: "";
  position: absolute;
  background-color: var(--body-color);
  width: 61px;
  height: 15px;
  bottom: 20px;
  left: calc(100% + 3px);
  border-radius: 0 0 10px 10px;
}
.roller:nth-child(2) {
  left: 140px;
}
.roller:nth-child(3) {
  right: 140px;
}
.roller:nth-child(3):after {
  content: "";
  position: absolute;
  background-color: var(--body-color);
  width: 61px;
  height: 15px;
  bottom: 20px;
  left: calc(100% + 3px);
  border-radius: 0 0 10px 10px;
}
.roller:nth-child(4) {
  right: 20px;
}

@media (max-width: 768px) {
  h1 {
    font-size: 40px;
  }

  .track {
    transform: scale(0.75);
    transform-origin: 50% 100%;
  }
}
@media (max-width: 320px) {
  .track {
    transform: scale(0.5);
  }

  #stream {
    top: 8%;
    left: 5%;
  }
}
