.tooltip:after {
  position:absolute;
  content: attr(data-text); /* here's the magic */

  top:100%;
  transform:translateY(-50%);
  margin-top:0px;
  left:100%;
  margin-left:10px;
  
  /* basic styles */
  width:200px;
  padding:10px;
  border-radius:10px;
  background:#000;
  color: #fff;
  text-align:left;

  display:none; /* hide by default */
  z-index:2;
}
@media screen and (max-width: 768px){
  .tooltip:after {
     /* vertically center */
    top:100%;
    transform:translateY(-50%);
    margin-top:0px; /* and add a small left margin */
    left:100%;
    margin-left:10px; /* and add a small left margin */  
  }
}

.tooltip:hover:after {
  display:block;
}
.tooltip {
    position: relative;
    cursor: pointer;
    font-weight: bold;
    padding: 5px;
    color: white;
    z-index: 1;
    text-align: center;
    line-height: 20px;
    padding-left: 6px;
}
.tooltip:before{
    top: 3px;
    position: absolute;
    background-color: black;
    content: '';
    z-index: -1;
    border-radius: 100%;
    width: 20px;
    height: 20px;
    min-width: 20px;
    text-align: center;
    left: 0;
}