.pgs a {
  text-decoration: none;
  outline: none;
  display: block;
  padding: 20px 0;
  width: 40px;
  text-align: center;
  color: white;
  float: left;
}
.pgs div {
  position: absolute;
  top: 0;
  opacity: 0;
  width: 40px;
  overflow: hidden;
  transition: .5s linear;
}
.pgs .left {
  left: 0;
}
.pgs .right {
  right: 0;
}
.pgs .line {
  width: 30px;
  height: 2px;
  position: absolute;
  bottom: 10px;
  left: -35px;
  background: white;
  transition: .5s linear .2s;  
}
.pgs .left a:nth-child(2):hover ~ .pgs .line,
.pgs .right a:nth-child(2):hover ~ .pgs .line {
  left: 5px; 
}
.pgs .left a:nth-child(3):hover ~ .pgs .line,
.pgs .right a:nth-child(3):hover ~ .pgs .line {
  left: 45px; 
}
.pgs .left a:nth-child(4):hover ~ .pgs .line, 
.pgs .right a:nth-child(4):hover ~ .pgs .line {
  left: 85px; 
}
.pgs{margin-left:-300px;}
.pgs nav {
  background: #FCFCFC;
  color: #4D4644;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  width: 600px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,.2);
  transition: .3s linear;
}
.pgs .text {
  display: inline-block;
  letter-spacing: 2px;
  padding: 20px 10px;
  cursor: pointer;
}
.pgs nav:hover div {
  background: #D8CDC9;
  opacity: 1;
}
.pgs div:hover .prev {
  opacity: 0;
  display: none;
}
.pgs div:hover .next {
  display: none;
}
.pgs div:hover {
  width: auto;
}
.pgs .prev:before {
  content: "<";
  font-family: tahoma;
}
.pgs .next:before {
  content: ">";
  font-family: tahoma;
}





@media only screen and (max-width:680px){  
	.pgs nav{width:300px;}
	.pgs{margin-left:-150px;}	
}