/* Slider */
#slider{
  width:100%;

  height:280px;
  position:relative;
  overflow:hidden;
}
@keyframes load{
  from{left:-150%;}
  to{left:0;}
}
.slides{
  width:400%;
  height:100%;
  position:relative;
  -webkit-animation:slide 30s infinite;
  -moz-animation:slide 30s infinite;
  animation:slide 30s infinite;
}
.slider{
  width:25%;
  height:100%;
  float:left;
  position:relative;
  z-index:1;
  overflow:hidden;
}

/* Legend */
.legend{
  border:500px solid transparent;
  /* border-left:800px solid rgba(40, 51, 59, .7); */
  border-left:800px solid rgba(0, 0, 0, .5);
  border-bottom:0;
  position:absolute;
  bottom:0;

}

/* Contents */
.content-sl{
  width:100%;
  height:100%;
  position:absolute;
  overflow:hidden;
}
.content-txt{
  width:400px;
  height:200px;
  float:left;
  position:relative;
  top:20px;
  -webkit-animation:content-s 7.5s infinite;
  -moz-animation:content-s 7.5s infinite;
  animation:content-s 7.5s infinite;

}
.content-txt h1{
  color:#eca404;
  text-align:left;
  margin-left:30px;
  padding-bottom:10px;
}

@media screen and (max-width: 767px) {
  #slider{
    width:100%;

    height:100px;
    position:relative;
    overflow:hidden;
  }

  .content-sl{
    width:100%;
    height:100%;
    position:absolute;
    overflow:hidden;
  }
  .content-txt{
    width:80%;
    height:auto;
    float:left;
    position:relative;
    top:10px;
    -webkit-animation:content-s 7.5s infinite;
    -moz-animation:content-s 7.5s infinite;
    animation:content-s 7.5s infinite;
    line-height: 1.2;
  }
  .content-txt h1{

    color:#fff;
    text-align:center;
    /* margin-left:10px;
    padding-bottom:10px; */
  }
  .image-sl{
    height:150px;
  }
  .legend{
    display: none;
    border:200px solid transparent;
    border-left:600px solid rgba(7, 52, 87, .4);
  }

  span.is-size-7-touch{
    display: none;
    font-size:.8rem;
    display: block;
    color:#fff !inherit;
  }
  p.txt-title  span.is-size-7-touch{
    display: none;
    padding-top:1rem;
    line-height: 1.6;
    font-size:1.3rem;
    color:#fff;


  }
  section.section.box.box-new {
    margin:0;
    padding:0;
    box-shadow: none !important;

    /* border:1px solid #f00; */
  }


}
@media only screen and (min-width: 768px) and (max-width: 991px)  {
  #slider{
    width:100%;

    height:160px;
    position:relative;
    overflow:hidden;
  }
  .slider{
    width:25%;
    height:100%;
    float:left;
    position:relative;
    z-index:1;
    overflow:hidden;
    line-height: 1.2;
  }

  .legend{
    border:300px solid transparent;
    border-left:500px solid rgba(89, 85, 79, .7);
    border-bottom:0;
    position:absolute;
    bottom:0;
    height:100%;
  }
  .content-sl{
    width:100%;
    height:100%;
    position:absolute;
    overflow:hidden;
  }

  image-sl img{
    height:100%;
  }

}

/* Animation */
@-webkit-keyframes slide{
  0%,100%{
    margin-left:0%;
  }
  21%{
    margin-left:0%;
  }
  25%{
    margin-left:-100%;
  }
  46%{
    margin-left:-100%;
  }
  50%{
    margin-left:-200%;
  }
  71%{
    margin-left:-200%;
  }
  75%{
    margin-left:-300%;
  }
  96%{
    margin-left:-300%;
  }
}
@-moz-keyframes slide{
  0%,100%{
    margin-left:0%;
  }
  21%{
    margin-left:0%;
  }
  25%{
    margin-left:-100%;
  }
  46%{
    margin-left:-100%;
  }
  50%{
    margin-left:-200%;
  }
  71%{
    margin-left:-200%;
  }
  75%{
    margin-left:-300%;
  }
  96%{
    margin-left:-300%;
  }
}
@keyframes slide{
  0%,100%{
    margin-left:0%;
  }
  21%{
    margin-left:0%;
  }
  25%{
    margin-left:-100%;
  }
  46%{
    margin-left:-100%;
  }
  50%{
    margin-left:-200%;
  }
  71%{
    margin-left:-200%;
  }
  75%{
    margin-left:-300%;
  }
  96%{
    margin-left:-300%;
  }
}

@-webkit-keyframes content-s{
  0%{left:-420px;}
  10%{left:0px;}
  30%{left:0px;}
  40%{left:0px;}
  50%{left:0px;}
  60%{left:0px;}
  70%{left:0;}
  80%{left:-420px;}
  90%{left:-420px;}
  100%{left:-420px;}
}
@-moz-keyframes content-s{
  0%{left:-420px;}
  10%{left:0px;}
  30%{left:0px;}
  40%{left:0px;}
  50%{left:0px;}
  60%{left:0px;}
  70%{left:0;}
  80%{left:-420px;}
  90%{left:-420px;}
  100%{left:-420px;}
}
@keyframes content-s{
  0%{left:-420px;}
  10%{left:20px;}
  15%{left:0px;}
  30%{left:0px;}
  40%{left:0px;}
  50%{left:0px;}
  60%{left:0px;}
  70%{left:0;}
  80%{left:-420px;}
  90%{left:-420px;}
  100%{left:-420px;}
}

@-webkit-keyframes on{
  0%,100%{
    margin-left:0%;
  }
  21%{
    margin-left:0%;
  }
  25%{
    margin-left:15px;
  }
  46%{
    margin-left:15px;
  }
  50%{
    margin-left:30px;
  }
  71%{
    margin-left:30px;
  }
  75%{
    margin-left:45px;
  }
  96%{
    margin-left:45px;
  }
}

@-moz-keyframes on{
  0%,100%{
    margin-left:0%;
  }
  21%{
    margin-left:0%;
  }
  25%{
    margin-left:15px;
  }
  46%{
    margin-left:15px;
  }
  50%{
    margin-left:30px;
  }
  71%{
    margin-left:30px;
  }
  75%{
    margin-left:45px;
  }
  96%{
    margin-left:45px;
  }
}

@keyframes on{
  0%,100%{
    margin-left:0%;
  }
  21%{
    margin-left:0%;
  }
  25%{
    margin-left:15px;
  }
  46%{
    margin-left:15px;
  }
  50%{
    margin-left:30px;
  }
  71%{
    margin-left:30px;
  }
  75%{
    margin-left:45px;
  }
  96%{
    margin-left:45px;
  }
}
