/*== start of code for tooltips ==*/

@import url(//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800);
@import url(//fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900);

body {
	font-family: "Open Sans", sans-serif;
	
}
.tool {
    cursor: help;
    position: relative;
}


/*== common styles for both parts of tool tip ==*/
.tool::before,
.tool::after {
    left: 50%;
    opacity: 0;
    position: absolute;
    z-index: -100;
}

.tool:hover::before,
.tool:focus::before,
.tool:hover::after,
.tool:focus::after {
    opacity: 1;
    transform: scale(1) translateY(0);
    z-index: 100; 
}


/*== pointer tip ==*/
.tool::before {
    border-style: solid;
    border-width: 1em 0.75em 0 0.75em;
    border-color: #fff transparent transparent transparent;
    bottom: 100%;
    content: "";
    margin-left: -0.5em;
    transition: all .65s cubic-bezier(.84,-0.18,.31,1.26), opacity .65s .5s;
    /*transform:  scale(.6) translateY(-90%);*/
	
} 

.tool:hover::before,
.tool:focus::before {
    transition: all .65s cubic-bezier(.84,-0.18,.31,1.26) .2s;
}


/*== speech bubble ==*/
.tool::after {
    background: #fff;
    border-radius: .25em;
    bottom: 180%;
    color: #4a4a4a;
    content: attr(data-tip);
    margin-left: -15em;
   padding:.8em;
	font-size:18px;
    transition: all .65s cubic-bezier(.84,-0.18,.31,1.26) .2s;
    /*transform:  scale(.6) translateY(50%);  */
    width: 20em;
}

.tool:hover::after,
.tool:focus::after  {
    transition: all .65s cubic-bezier(.84,-0.18,.31,1.26);
	margin-top:0px;
}

@media (min-width:460px) and (max-width: 767px) {
  .tool::after { 
        font-size:12px;
	  line-height:14px;
        margin-left: -8em;
        width:15em;
	  padding:5px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .tool::after { 
       /* font-size:14px;
	  line-height:14px;*/
        margin-left: -15em;
        width:20em; 
	  padding:5px;
  }
}


