/* CSS Document */
*, *:before, *:after {margin: 0; padding: 0; box-sizing: border-box; position: relative;}

body {
  font-family: sans-serif;
  font-size: 12px;
  color: #fff;  
   }

.wrapper {
    width: 50%;
    height: 400px;
  margin: 0 auto;
  box-shadow: 0 0 25px #222;
  margin-top: 2%;
  overflow: hidden;
    }

    .btn {
      width: 12.5%;
      float: left;
      line-height: 60px;
      text-decoration: none;
      color: inherit;
      text-align: center;
        }
        .active {
            font-weight: bold;
             background: #ccc;
            }

hr {
    display: block;
  height: 0;
  clear: both;
  border: none;
    }

.slides {
    width: auto;
  height: 100%;
  overflow: hidden;
    }
  .sld {
    width: 100%;
    height: 100%;
    text-align: center;
    transition: margin .3s;
     }
img { margin-top: 4%; 
      max-width: 91%;
}

    .sld:first-of-type {
    background: #fff;
    }
    .slides .sld:nth-of-type(2) {
    background: #fff;
    }
    .slides .sld:nth-of-type(3) {
    background: #fff;
    }
    .slides .sld:nth-of-type(4) {
    background: #fff;
    }
    .slides .sld:nth-of-type(5) {
    background: #fff;
    }
    .slides .sld:nth-of-type(6) {
    background: #fff;
    }
    .slides .sld:nth-of-type(7) {
    background: #fff;
    }
    .slides .sld:nth-of-type(8) {
    background: #fff;
    }

.btn.active ~ .slides .sld:first-of-type {
  margin-top: 0;
    }
.btn:nth-of-type(2).active ~ .slides .sld:first-of-type {
  margin-top: -400px;    
    }
.btn:nth-of-type(3).active ~ .slides .sld:first-of-type {
  margin-top: -800px;
    }
.btn:nth-of-type(4).active ~ .slides .sld:first-of-type {
  margin-top: -1200px;
    }
.btn:nth-of-type(5).active ~ .slides .sld:first-of-type {
  margin-top: -1600px;
    }
.btn:nth-of-type(6).active ~ .slides .sld:first-of-type {
  margin-top: -2000px;
    }
.btn:nth-of-type(7).active ~ .slides .sld:first-of-type {
  margin-top: -2400px;
    }
.btn:nth-of-type(8).active ~ .slides .sld:first-of-type {
  margin-top: -2800px;
    }?