body {
  margin: 0;
  padding: 0;
}

p {
  margin: 1em;
}

#anim-buffer {
  height: 35px;
  width: 100%;
  background-color: #58286f;
  z-index: 5000;
  position: relative;
}

#anim-placeholder {
  display: block;
  background: url(/images/factory/bg-repeat.gif);
  background-repeat: repeat-x;
}

.csstransforms.csstransitions #anim-placeholder {
  display: none;
}

#anim-wrapper {
  display: none;
}

.csstransforms.csstransitions #anim-wrapper {
  display: block;
  width: 100%;
  text-align: center;
  overflow: hidden;
}

#anim-container-background {
  background: url(/images/factory/bg-repeat.gif);
  background-repeat: repeat-x;
}

#anim-container {
  position: relative;
  height: 300px;
  background: url(/images/factory/bg.gif) 50px 0;
  background-repeat: no-repeat;
  overflow: hidden;
  margin: auto;
  width: 1149px;
}

#anim-fake-wall {
  width: 1000px;
  height: 100px;
  background: url(/images/factory/fake-wall.png);
  position: absolute;
  z-index: 7;
  top: 0;
  left: 50px;
}

#anim-pipe {
  width: 91px;
  height: 130px;
  background-image: url(/images/factory/pipe.png);
  top: 0px;
  left: 70px;
  position: absolute;
  z-index: 7;
}

#anim-machine {
  width: 147px;
  height: 200px;
  top: 100px;
  left: 527px;
  background-image: url(/images/factory/machine.png);
  background-repeat: no-repeat;
  background-position: 0 24px;
  position: absolute;
  z-index: 3000;
}

#anim-crusher-machine-upper {
  width: 52px;
  height: 126px;
  top: 40px;
  left: 288px;
  background-image: url(/images/factory/crusher-machine-upper.png);
  background-repeat: no-repeat;
  position: absolute;
  z-index: 8;
}

#anim-crusher-machine-lower {
  width: 138px;
  height: 102px;
  bottom: 44px;
  left: 243px;
  background-image: url(/images/factory/crusher-machine-lower.png);
  background-repeat: no-repeat;
  position: absolute;
  z-index: 6;
}

.csstransforms #anim-crusher-upper-arm {
  width: 120px;
  height: 52px;
  top: 37px;
  left: 313px;
  background-image: url(/images/factory/crusher-upper-arm.png);
  background-repeat: no-repeat;
  position: absolute;
  z-index: 8;
  -webkit-transition: all 0.2s ease-out;  /* Safari 3.2+, Chrome */
     -moz-transition: all 0.2s ease-out;  /* Firefox 4-15 */
       -o-transition: all 0.2s ease-out;  /* Opera 10.5–12.00 */
          transition: all 0.2s ease-out;  /* Firefox 16+, Opera 12.50+ */
    -webkit-transform-origin: 16px 50%;
       -moz-transform-origin: 16px 50%;
        -ms-transform-origin: 16px 50%;
         -o-transform-origin: 16px 50%;
            transform-origin: 16px 50%;
    -webkit-transform: rotate(-20deg);  /* Safari 3.1+, Chrome  */
       -moz-transform: rotate(-20deg);  /* Firefox 3.5-15  */
        -ms-transform: rotate(-20deg);  /* IE9+  */
         -o-transform: rotate(-20deg);  /* Opera 10.5-12.00  */
            transform: rotate(-20deg);  /* Firefox 16+, Opera 12.50+  */
}

#anim-crusher-upper-arm.anim-crusher-upper-arm-extended {
    -webkit-transform: rotate(30deg);  /* Safari 3.1+, Chrome  */
       -moz-transform: rotate(30deg);  /* Firefox 3.5-15  */
        -ms-transform: rotate(30deg);  /* IE9+  */
         -o-transform: rotate(30deg);  /* Opera 10.5-12.00  */
            transform: rotate(30deg);  /* Firefox 16+, Opera 12.50+  */
}

#anim-crusher-lower-arm {
  width: 77px;
  height: 184px;
  top: 10px;
  left: 395px;
  background-image: url(/images/factory/crusher-lower-arm.png);
  background-repeat: no-repeat;
  position: absolute;
  z-index: 9;
  -webkit-transition: all 0.2s ease-out;  /* Safari 3.2+, Chrome */
     -moz-transition: all 0.2s ease-out;  /* Firefox 4-15 */
       -o-transition: all 0.2s ease-out;  /* Opera 10.5–12.00 */
          transition: all 0.2s ease-out;  /* Firefox 16+, Opera 12.50+ */
}

#anim-paint {
  width: 76px;
  height: 114px;
  top: 128px;
  left: 738px;
  background-image: url(/images/factory/paint.png);
  position: absolute;
  z-index: 10;
    -webkit-transition: all 0.1s ease-out;  /* Safari 3.2+, Chrome */
     -moz-transition: all 0.1s ease-out;  /* Firefox 4-15 */
       -o-transition: all 0.1s ease-out;  /* Opera 10.5–12.00 */
          transition: all 0.1s ease-out;  /* Firefox 16+, Opera 12.50+ */
}

#anim-belt {
  width: 1149px;
  height: 45px;
  bottom: 0px;
  background-image: url(/images/factory/belt.png);
  position: absolute;
  z-index: 2;
}

#anim-belt-2 {
  width: 1149px;
  height: 45px;
  bottom: 0px;
  background-image: url(/images/factory/belt2.png);
  position: absolute;
}

.anim-ship {
  z-index: 6;
  top: 0;
  position: absolute;
  display: none;
  -webkit-transition: all 0.3s ease-out;  /* Safari 3.2+, Chrome */
     -moz-transition: all 0.3s ease-out;  /* Firefox 4-15 */
       -o-transition: all 0.3s ease-out;  /* Opera 10.5–12.00 */
          transition: all 0.3s ease-out;  /* Firefox 16+, Opera 12.50+ */
}

@-webkit-keyframes blinker {
  0% {
    background-color: rgba(255, 195, 28, 0);
  }
  50% {
    background-color: rgba(255, 195, 28, 1);
    -webkit-transform: rotate(40deg);
  }
  100% {
    background-color: rgba(255, 195, 28, 0);
  }
}

#anim-blinker {
  width: 14px;
  height: 14px;
  border-radius: 7px;
  z-index: 10000;
  top: 163px;
  left: 554px;

  position: relative;
  -webkit-animation: blinker 1s infinite;
}

@media only screen and (max-width: 960px) {

  #anim-container-background {
    transform: scale(.9);
    -ms-transform: scale(.9); /* IE 9 */
    -webkit-transform: scale(.9); /* Safari and Chrome */
    -o-transform: scale(.9); /* Opera */
    -moz-transform: scale(.9); /* Firefox */
    left: -5em;
    top: -1em;
    position: relative;
  }

  #anim-wrapper {
    height: 19em;
  }

}

@media only screen and (max-width: 874px) { 

    #anim-container-background {
    transform: scale(.8);
    -ms-transform: scale(.8); /* IE 9 */
    -webkit-transform: scale(.8); /* Safari and Chrome */
    -o-transform: scale(.8); /* Opera */
    -moz-transform: scale(.8); /* Firefox */
    left: -7.5em;
    top: -2.1em;
  }

  #anim-wrapper {
    height: 19.1em;
  }

}

@media only screen and (max-width: 730px) {  

    #anim-container-background {
    transform: scale(.7);
    -ms-transform: scale(.7); /* IE 9 */
    -webkit-transform: scale(.7); /* Safari and Chrome */
    -o-transform: scale(.7); /* Opera */
    -moz-transform: scale(.7); /* Firefox */
    left: -8em;
    top: -3.2em;
  }

  #anim-wrapper {
    height: 16.9em;
  }

}

@media only screen and (max-width: 640px) { 
  #anim-wrapper {
    display: none;
  }
}

