/*// BASE STYLES //*/
html, body{
    height: 100%;
    width: 100%;
    overflow: hidden;
    margin: 0;
  }
  .grass, .sky, .road{
    position: relative;
  }
  .sky{
    height: 40%;
    background-color: skyblue;
    background-image: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.33))
  }
  .grass{
    height: 30%;
    background-color: seagreen;
    background-image: linear-gradient(to top, rgba(255,255,255,0) 75%, rgba(255,255,255,.25))
  }
  .road{
    height: 30%;
    background: dimgrey;
    box-sizing: border-box;
    border-top: 10px solid grey;
    border-bottom: 10px solid grey;
    width: 100%;
  }
  /*// ELEMENTS TO ANIMATE //*/
  .mario{
    position: absolute;
    top: 10px;
    left: 0;
    animation-name: mario-jump;
    animation-duration: 3s;
    animation-direction: normal;
    animation-fill-mode: none;
    animation-delay: 0ms;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    z-index: 5;
  }
  .luigi{
    position: absolute;
    top: 90px;
    left: -50px;
    z-index: 55;
    animation-name: drive ;
    animation-duration: 5s;
    animation-direction: normal;
    animation-fill-mode: none;
    animation-delay: 0ms;
    animation-timing-function:  linear;
    animation-iteration-count: infinite;
  }
  .cloud{
    position: absolute;
    top: 230px;
    left: 0;
  }
  .cloud2{
    position: absolute;
    top: 40px;
    right: 0;
    max-width: 200px;
  }
  .cloud,
  .cloud2{
    animation-name: cloud-move ;
    animation-duration: 100s;
    animation-direction: normal ;
    animation-fill-mode: none;
    animation-delay: 0;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
  }
  .lines{
    box-sizing: border-box;
    border: 5px dashed #fff;
    height: 0px;
    width: 6000px;
    position: absolute;
    top: 45%;
    left: 0;
    animation-name: lines-move;
    animation-duration: 1s;
    animation-direction: normal ;
    animation-fill-mode:  none;
    animation-delay: 0ms;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    
  }
  /*// KEYFRAMES //*/
  @keyframes drive {
    0%{
      transform: translateX(-5vw);
      
    }
    100%{
      transform: translateX(105vw);
    }
  }
  @keyframes mario-jump {
    0%{
      transform: translate(0vw, 0);
      transform: rotate(-95deg);
      
    }
    48% {
      transform: translate(48vw, 0);
      

    }
    50% {
      transform: translate(50vw, -40px);
      
      
      
    }
    52% {
      transform: translate(52vw, 0px);
    }
    100%{
      transform: translate(105vw, 0);
      

      
    }
  }
  @keyframes cloud-move {
    0%{
        transform: translateX(2000px);
    }
    
    100%{
      transform: translateX(-2000px);
    }
  }
  @keyframes lines-move {
    0% {
      transform: translateX(0);
    }
    100%{
      transform: translateX(-150px);
    }
  
  }