body {
  margin: 0;
  padding: 0;
}

img {
  vertical-align: top;
}

h1, h2, h3 {
  text-align: center;
}

.demo {
  /*border: 2px solid orange;*/
  margin : auto 0 0 0;
  justify-self: center;
  align-self: center;
  width: 110%;
  height : 125%;
}

.viewport {
  /*border: 2px solid blue;*/
  display : show;
  width: 340px;
  height : 310px;
  overflow: hidden;
  margin: 0 auto;
  -webkit-transform: translateZ(0); }

.flipsnap {
  /* 230px(item) * 5 + 45px(padding) */
  width: 1020px;
  padding-left: 45px; }

.flipsnap:after {
  content: '';
  display: block;
  clear: both;
  height: 0; }

.item {
  border: 2px solid orange;
  width: 340px;
  margin: 0 10px;
  font-size: 50px;
  text-align: center;
  padding: 50px 0;
  background: #EFEFEF;
  /*border: 5px solid #999;*/
  float: left;
  color: #666; }

.pointer {
  text-align: center; }

.pointer span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 8px;
  border: 1px solid #000; }

.pointer span.current {
  background: #FC0; }

.controls {
  text-align: center;
  margin: 0 0 15px 0; }

.controls .num {
  width: 60px; }

#demo-simple{
  display : none;}

#demo-threshold{
  display : none;}

#demo-img .flipsnap {
  width: 1020px;
  padding: 0; }

#demo-img .item {
  margin: 0;
  padding: 0;
  border: none;
  width: auto;
  height: auto; }

#demo-touchevents pre.detail {
  background: #EFEFEF;
  padding: 5px;
  border: 1px solid #CCC;
  height: 80px;
  font-size: 12px;
}

@media screen and (min-width: 701px) {
  .demo {
    display : none;
  }
}

@media screen and (min-width: 1150px) {
  .demo {
    display : none;
  }
}