
body {
  background: #fefefe;
  font-family: monospace !important;
}

span {
  position: absolute;
  background: #333;
  padding: 5px;
  border-radius: 3px;
  top: 50%;
  left: 50%;
  color: #eee;
}

.centre {
  background: transparent;
  color: #333;
  transform: translate(-50%, -50%);
}

.top {
  left: 40%;
  top: 4%
}

.bottom {
  left: 40%;
  top: 90%
}

.left {
  left: 4%;
  top: 49%
}

.right {
  top: 49%;
  left: 90%;
}

/* remove above styles */

#tooltip {
  text-align: center;
  color: #fff;
  background: #333;
  position: absolute;
  z-index: 10000;
  padding: 10px;
  border-radius: 5px;
  -webkit-transition: 100ms ease;
  -moz-transition: 100ms ease;
  -o-transition: 100ms ease;
  -ms-transition: 100ms ease;
  transition: 100ms ease;
}

#tooltip:after /* triangle decoration */ {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #333;
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  margin-left: -10px;
}

#tooltip.top:after {
  border-top-color: transparent;
  border-bottom: 10px solid #111;
  top: -20px;
  bottom: auto;
}

#tooltip.left:after {
  left: 10px;
  margin: 0;
}

#tooltip.right:after {
  right: 10px;
  left: auto;
  margin: 0;
}
