html, body {
  height: 100%;
}

* { 
  box-sizing: border-box
} 

body {
  background-repeat: repeat-y; 
  background-position: center; 
}

pre {
  max-width: 100%;
  overflow: auto;
}

div#movement-display {
  background: #ccc;
  color: #fff;
  position:fixed;
  bottom:0;
  right: 0;
  height: auto;
  text-align: right;
}

.touch-box {
  width: 100%;
  height: 300px;
  border: 1px solid #ccc;
  touch-action: none;
}
.instruction {
  padding: 10px;
}

/* tap/hold related */

/* drag related */
#drag-test .box {
  height: 60px;
  margin: 10px 0;
}
.draggable {
  width: 50%;
  height: 60px;
  background: #ccc;
  color: #fff; 
  margin: 10px;
}

/* drop related */
#drop-test .draggable {
  width: auto;
  min-width: 33%;
}
.droppable {
  margin: 10px;
  border: 1px dashed #333;
  width: calc(50% - 20px);
  height: calc(100% - 20px);
  float: left;
}

/* swipe related */
#swipe-test.touch-box {
  background-position-y: 75px;
  padding: 10px;
}
.swipable {
  margin: 10px;
  height: 45%;
  background: #ccc;
  color: #fff; 
}

/* zoom` related */
#zoom-test img {
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  display: block;
}

/* resize related */
div[resize-position]:before{
    position:absolute;
    content:'';
    top:-10px;
    right:-10px;
    left:-10px;
    bottom:-10px;
    border: 1px dashed rgba(255,0,0,0.5);
    border-radius: 15px;
}