﻿  
.mytooltip {
    position: relative;
    display: inline-block;
   
}

    .mytooltip .mytooltiptexttop {
        opacity: 0;
        transition: opacity 0.5s;
        width: 160px;
        background-color: dimgrey;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 5px 0;
        position: absolute;
        z-index: 1;
        bottom: 150%;
        left: 50%;
        margin-left: -60px;
        display: none;
    }

        .mytooltip .mytooltiptexttop::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color:  dimgrey  transparent transparent transparent;
        }

           .myhover:hover + .mytooltiptexttop {
              opacity: 0.8;
             display: block;
                }
    .mytooltip .mytooltiptextleft {
        opacity: 0;
        transition: opacity 0.5s;
        width: 160px;
        background-color: dimgrey;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 5px 0;
        position: absolute;
        z-index: 1;
        bottom: -20%;
        right: 110%;
        margin-left: -60px;
        display: none;
    }

        .mytooltip .mytooltiptextleft::after {
            content: " ";
            position: absolute;
            top: 50%;
            left: 100%; /* To the right of the tooltip */
            margin-top: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: transparent transparent transparent dimgrey ;
        }

        .myhover:hover + .mytooltiptextleft {
          opacity: 0.8;
             display: block;
            }

    .mytooltip .mytooltiptextright {
        opacity: 0;
        transition: opacity 0.5s; /* does not work for option with display:none */
        width: 280px;
        background-color: dimgrey;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 5px 0;
        position: absolute;
        z-index: 1;
        bottom: -20%;
        left: 320%;
        margin-left: -60px;
        display: none;
    }

        .mytooltip .mytooltiptextright::after {
            content: " ";
            position: absolute;
            top: 50%;
            right: 100%; /* To the left of the tooltip */
            margin-top: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: transparent dimgrey  transparent transparent;
        }

  /*  .myhover:hover + .mytooltiptextright {
           opacity: 0.8;
            display:block;
        }*/
.mytooltip:hover .mytooltiptextright {
    display: block;
    opacity: 0.8;
}
