.bridge {
/*  border-bottom: 0.3rem solid white;
  border-top: 0.3rem solid white;*/
  background: #2f358b;
 /* background: -webkit-linear-gradient(55deg, transparent 46%, white 46%, white 54%, transparent 54%) left/1.6rem 2.2rem, -webkit-linear-gradient(-55deg, transparent 46%, white 46%, white 54%, transparent 54%) left/1.6rem 2.2rem;
  background: -moz-linear-gradient(55deg, transparent 46%, white 46%, white 54%, transparent 54%) left/1.6rem 2.2rem, -moz-linear-gradient(-55deg, transparent 46%, white 46%, white 54%, transparent 54%) left/1.6rem 2.2rem;
  background: -o-linear-gradient(55deg, transparent 46%, white 46%, white 54%, transparent 54%) left/1.6rem 2.2rem, -o-linear-gradient(-55deg, transparent 46%, white 46%, white 54%, transparent 54%) left/1.6rem 2.2rem;
  background: -ms-linear-gradient(55deg, transparent 46%, white 46%, white 54%, transparent 54%) left/1.6rem 2.2rem, -ms-linear-gradient(-55deg, transparent 46%, white 46%, white 54%, transparent 54%) left/1.6rem 2.2rem;
  background: linear-gradient(55deg, transparent 46%, white 46%, white 54%, transparent 54%) left/1.6rem 2.2rem, linear-gradient(-55deg, transparent 46%, white 46%, white 54%, transparent 54%) left/1.6rem 2.2rem;
 */ bottom: 0;
  height: 4px;
  position: absolute;
  width: 100%;
  z-index: 55;
  left: 0;
}

.adventbecssign {
	height: 180px;
	width: 100px;
	left: 5%;
	position: absolute;
	bottom: 0;z-index: 50;
}
.adventbecssign:after {
	width: 10px;
	height: 180px;
	left: 45px;
	background: #eee;
	border-radius: 2px 2px 0 0;
	bottom: 0;
	position: absolute;
	content: '';
	transform: perspective(300px) rotateY(35deg);
}
.adventbecstext {
	padding: 5px 10px;
	background: #0099ff;
	color: #fff;
	font-size: 24px;
	font-family: 'Bold';
	letter-spacing: 2px;
	border-radius: 4px;
	border: 2px solid #fff;
	position: absolute;
	top: 10px;	
	width: 100px;z-index: 52;
	left: 0;transform: perspective(300px) rotateY(35deg);
}



.train-scene {
	margin-top: -50px;
	display: inline-block;
	float: left;
	width: 100%;
	height: 250px;
	position: relative;
	overflow: hidden;
	/*display: none;*/
	background: #add9eb;
}
.train-scene * {box-sizing: border-box; float: left; display: inline-block;}
.train-scene .frame {float: left; width: 100%; height: 250px; position: relative;}
.mtrain {
  animation: move-train 26s linear infinite;
  will-change: transform;
  bottom: 4px;
  height: 10rem;
  position: absolute;
 /* left: calc(100% + 1.3rem);*/
  left: 0;
  /*width: 44rem;*/
  width: 100%;
  z-index: 54;
}

@media screen and (max-width: 1920px) {
.mtrain {
  animation: move-train 14s linear infinite;
}
}


@media screen and (max-width: 1400px) {
.mtrain {
  animation: move-train 12s linear infinite;
}
}



@media screen and (max-width: 768px) {
.mtrain {
  animation: move-train 10s linear infinite;
}
}
@media screen and (max-width: 600px) {
.train-scene {
  display: none;
}
}


.engine-front::before, .engine-front::after, .engine-front {
  background: #0f0f0f;
  background: linear-gradient(0deg, #0c0c38, #2f358b, #0c0c38);
  border: 0.1rem solid rgba(255, 255, 255, 0.15);
  border-radius: 50% 0 0 50%;
  border-right: none;
}

.engine-front {
  animation: body-upDown 0.3s infinite;
  will-change: transform;
  border-radius: 0.5rem 0 0 0.5rem;
  bottom: 1.4rem;
  height: 4.6rem;
  left: 0;
  position: absolute;
  width: 8rem;
}
.engine-front::before, .engine-front::after {
  content: "";
  position: absolute;
  height: 70%;
  left: -0.9rem;
  top: 50%;
  transform: translate(0, -50%);
  width: 0.8rem;
}
.engine-front::after {
  height: 40%;
  left: -1.4rem;
  width: 0.5rem;
}

.chimney {
  background: crimson;
  height: 2.2rem;
  left: 2.5rem;
  position: absolute;
  top: -2.2rem;
  width: 1.7rem;
}
.chimney::before, .chimney::after {
  content: "";
  position: absolute;
}
.chimney::before {
  animation: up-down 0.3s infinite;
  will-change: transform;
  border-bottom: none;
  border-left: 0.5rem solid transparent;
  border-right: 0.5rem solid transparent;
  border-top: 0.8rem solid #0c0c38;
  left: 50%;
  top: -0.9rem;
  transform: translate(-50%, 0);
  width: 160%;
}

.smoke {
  animation: move-smoke 0.4s linear infinite;
  will-change: transform;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  height: 1.4rem;
  left: 0.2rem;
  position: absolute;
  top: -1.5rem;
  width: 0.8rem;
  z-index: -1;
}
.smoke-2 {
  animation-delay: 0.1s;
  left: 0.4rem;
}
.smoke-3 {
  animation-delay: 0.2s;
  left: 0.6rem;
}
.smoke-4 {
  left: 0.8rem;
}

.engine-body {
  animation: body-upDown 0.3s 0.1s infinite;
  will-change: transform;
  background: #b30000;
  background: linear-gradient(0deg, #330000, crimson, #990000);
  border-radius: 0 0 0.4rem 0;
  bottom: 1.4rem;
  height: 7rem;
  left: 8rem;
  position: absolute;
  width: 5rem;
}
.engine-body::before, .engine-body::after {
  content: "";
  left: 50%;
  position: absolute;
  transform: translate(-50%, 0);
}
.engine-body::before {
  animation: up-down 0.3s 0.2s infinite;
  will-change: transform;
  background: #660000;
  background: linear-gradient(0deg, #990000, crimson, #cc0000);
  border-radius: 50% 50% 0 0;
  height: 1.2rem;
  top: -1.2rem;
  width: 130%;
}
.engine-body::after {
  background: skyblue;
  border-radius: 0.2rem;
  height: 40%;
  top: 1rem;
  width: 45%;
}


.adventexpress {
	font-family: 'Bold';
	color:  #fff;
	margin-top: 10px;
	letter-spacing: 4px;
	font-style: italic;
}

.wheel::after, .wheel::before {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.wheel-holder {
  height: 2.8rem;
  bottom: 0;
  position: absolute;
  width: 100%;
  left: 0;
}

.wheel {
  animation: rotate 0.8s linear infinite;
  will-change: transform;
  background: #7f8adf;
  border: 0.3rem solid rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  height: 2.8rem;
  left: 1rem;
  position: absolute;
  width: 2.8rem;
}
.wheel-2 {
  left: 4.5rem;
  z-index: 1;
}
.wheel-3 {
  border-width: 0.5rem;
  height: 3.8rem;
  left: 8.7rem;
  bottom: 0;
  width: 3.8rem;
}
.wheel-4 {
  left: 15.7rem;
}
.wheel-5 {
  left: 19.5rem;
}
.wheel-6 {
  left: 25.7rem;
}
.wheel-7 {
  left: 29.5rem;
}
.wheel-8 {
  left: 35.7rem;
}
.wheel-9 {
  left: 39.5rem;
}

.wheel-10 {
  left: 45.7rem;
}
.wheel-11 {
  left: 49.5rem;
}

.wheel::before, .wheel::after {
  content: "";
  position: absolute;
}
.wheel::before {
  background: rgba(0, 0, 0, 0.3);
  height: 86%;
  width: 0.2rem;
}
.wheel::after {
  background: #777;
  background: -webkit-radial-gradient(circle at center, #fff 30%, #424ab9 30%);
  background: -moz-radial-gradient(circle at center, #fff 30%, #424ab9 30%);
  background: -o-radial-gradient(circle at center, #fff 30%, #424ab9 30%);
  background: -ms-radial-gradient(circle at center, #fff 30%, #424ab9 30%);
  background: radial-gradient(circle at center, #fff 30%, #424ab9 30%);/**/
  border-radius: 50%;
  height: 40%;
  width: 40%;
}

.compartment {
  animation: body-upDown 0.3s infinite;
  
  background: -webkit-linear-gradient(#2f358b 50%, #424ab9);
  background: -moz-linear-gradient(#2f358b 50%, #424ab9);
  background: -o-linear-gradient(#2f358b 50%, #424ab9);
  background: -ms-linear-gradient(#2f358b 50%, #424ab9);
  background: linear-gradient(#2f358b 50%, #424ab9);
  background-color: #2f358b;
    background-image: url(../img/girland.png);
    background-repeat: repeat-x;
    background-position: center 35px;
    background-size: 45px auto;
  
  
  border-radius: 0 0 0.3rem 0.3rem;
  bottom: 1.4rem;
  height: 5rem;
  left: 15rem;
  position: absolute;
  width: 8rem;
}
.compartment-two {
  animation: body-upDown 0.3s 0.1s infinite;
  will-change: transform;
  left: 25rem;
}
.compartment-two .compartment-window::before {
  animation: up-down 0.3s 0.3s infinite;
}
.compartment-three {
  animation: body-upDown 0.3s 0.2s infinite;
  left: 35rem;
}
.compartment-three .compartment-window::before {
  animation: up-down 0.35s infinite;
}

.compartment-four {
  animation: body-upDown 0.3s 0.1s infinite;
  will-change: transform;
  left: 45rem;
}
.compartment-four .compartment-window::before {
  animation: up-down 0.3s 0.3s infinite;
}


.compartment::before, .compartment::after {
  background: black;
  border: 0.2rem solid transparent;
  bottom: 0.2rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
  content: "";
  height: 0.4rem;
  position: absolute;
  width: 0.9rem;
}
.compartment::before {
  border-left: 0.4rem solid rgba(255, 255, 255, 0.3);
  left: -1.4rem;
}
.compartment::after {
  border-right: 0.4rem solid rgba(255, 255, 255, 0.3);
  left: -2rem;
}

.compartment-window {
  background: #1f8dba;
  background: -moz-linear-gradient(90deg, transparent 0.8rem, skyblue 0.8rem) left/2.4rem 100%;
  background: -webkit-linear-gradient(90deg, transparent 0.8rem, skyblue 0.8rem) left/2.4rem 100%;
  background: -o-linear-gradient(90deg, transparent 0.8rem, skyblue 0.8rem) left/2.4rem 100%;
  background: -ms-linear-gradient(90deg, transparent 0.8rem, skyblue 0.8rem) left/2.4rem 100%;
  background: linear-gradient(90deg, transparent 0.8rem, skyblue 0.8rem) left/2.4rem 100%;
  height: 40%;
  position: absolute;
  top: 0.7rem;
  width: 100%;
  left: 0;
}
.compartment-window::before, .compartment-window::after {
  content: "";
  position: absolute;
}
.compartment-window::before {
  animation: up-down 0.3s 0.1s infinite;
  will-change: transform;
  background: #2f358b;
  border-radius: 50% 50% 0 0;
  height: 0.6rem;
  left: 50%;
  top: -1.4rem;
  transform: translate(-50%, 0);
  width: 110%;
}

@keyframes up-down {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -0.3rem);
  }
}
@keyframes rotate {
  100% {
    transform: rotate(-360deg);
  }
}
@keyframes move-train {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-150%);
  }
}
@keyframes body-upDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}
@keyframes move-smoke {
  0% {
    -webkit-filter: blur(0);
    -moz-filter: blur(0);
    -o-filter: blur(0);
    -ms-filter: blur(0);
    filter: blur(0);
    opacity: 1;
  }
  50% {
    -webkit-filter: blur(0.2rem);
    -moz-filter: blur(0.2rem);
    -o-filter: blur(0.2rem);
    -ms-filter: blur(0.2rem);
    filter: blur(0.2rem);
    opacity: 0.6;
    transform: translate(0, -3rem) scale(2);
  }
  100% {
    -webkit-filter: blur(0.3rem);
    -moz-filter: blur(0.3rem);
    -o-filter: blur(0.3rem);
    -ms-filter: blur(0.3rem);
    filter: blur(0.3rem);
    opacity: 0;
    transform: translate(2.5rem, -6rem) scale(3);
  }
}
.wheel-joint {
  animation: wheel-joint 0.8s linear infinite;
  background: white;
  border-radius: 0.6rem;
  height: 0.4rem;
  position: absolute;
  right: 0.4rem;
  top: calc(50% - 0.2rem);
  transform-origin: 100% 50%;
  width: 3.6rem;
  z-index: 1;
}
.wheel-joint::before, .wheel-joint::after {
  background: #0c0c38;
  /*border: 0.1rem solid white;*/
  border-radius: 50%;
  content: "";
  height: 0.8rem;
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  width: 0.8rem;
}
.wheel-joint::before {
  left: -0.4rem;
}
.wheel-joint::after {
  right: -0.4rem;
}
.wheel-joint-2 {
  left: 1.8rem;
  right: auto;
  transform: rotate(-10deg);
  transform-origin: 0 50%;
  width: 4.4rem;
   animation: wheel-joint-2 0.8s linear infinite;
}
.wheel-joint-2::before {
  height: 1.1rem;
  width: 1.1rem;
}

@keyframes wheel-joint {
  100% {
    transform: rotate(360deg);
  }
}
@keyframes wheel-joint-2 {
  100% {
    transform: rotate(350deg);
  }	
 
}

.train-background {
  background-image: url("../img/trainbg.jpg");
background-repeat: repeat-x;
background-size: auto 250px;
  height: 250px;
  width: 300%;
  animation: bgslide 30s linear infinite;
  will-change: transform;
  filter: blur(4px);
  opacity: 0.3;
  z-index: 5;
}


@keyframes bgslide{
  0% {
    transform: translate3d(-33.333%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}