.slider {
  position: relative;
  width: 600px;
  height: 400px;
  margin: 0px auto;
}
.slider img {
  position: absolute;
  top:0px;
  left:-17px;
  width: 90%;
  height: 90%;
  display: none;
  background-color: #7b111f;
  border: 3px solid #7b111f;
}
.slider .active {
  display: block;
  z-index: 100;
}
.nav {
  z-index: 1000;
  position: absolute;
  bottom: 0;
  text-align: center;
  width: 90%;
  padding: 3px 0 10px 0;
  }
.nav a {
  margin-right: 15px;
  display: inline-block;
  border-radius: 50%;
  width: 10px;
  background: #000;
  height: 10px;
}
.nav .navActive {
  background: #7b111f;
  border: none;
  }
.buttons {
  width: 100%;
  position:absolute;
 }
.buttons a {
  position:absolute;
  z-index: 1000;
  top: 380px;
  height: 30px;
  width: 30px;
 }
.buttons .prev {
  left:-40px;
  }
.buttons .next {
  right:-40px;
  background-position: 30px 30px;
}
.animated {animation-duration: 2s;animation-fill-mode: both;}

@keyframes flipInX {
  0% {
    transform: perspective(600px) rotateY(-90deg);
    opacity: 0.5;
  }
  40% {
    transform: perspective(600px) rotateY(5deg);
  }
  70% {
    transform: perspective(600px) rotateY(-5deg);
  }
  100% {
    transform: perspective(600px) rotateY(0deg);
    opacity: 1;
  }
}
.animated.flipInX {backface-visibility: visible !important; animation-name: flipInX;}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
