/* Pure-css tooltips */
[tooltip] {
        position: relative;
        display: inline-block;
}
[tooltip]:before, [tooltip]:after {
    position: absolute;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    visibility: hidden;
    opacity: 0;
    z-index: 1000000;
    pointer-events: none;
    -webkit-transition: 0.3s ease;
    -moz-transition: 0.3s ease;
    transition: 0.3s ease;
}
[tooltip]:hover:before, [tooltip]:hover:after, [tooltip]:focus:before, [tooltip]:focus:after {
    visibility: visible;
    opacity: 1;
}
[tooltip]:before {
    content: '';
    position: absolute;
    background: transparent;
    border: 6px solid transparent;
    z-index: 1000001;
}
[tooltip]:after {
    content: attr(tooltip);
    background: #ccc;
    color: #000;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 12px;
    white-space: nowrap;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
}
[tooltip]:before {
  border-left-color: #ccc;
  margin-right: -12px;
  margin-bottom: -6px;
}
[tooltip]:after {
  margin-bottom: -14px;
}
[tooltip]:before, [tooltip]:after {
  right: 100%;
  bottom: 50%;
}
[tooltip]:hover:after, [tooltip]:hover:before, [tooltip]:focus:after, [tooltip]:focus:before {
  -webkit-transform: translateX(-8px);
  -moz-transform: translateX(-8px);
  transform: translateX(-8px);
}
