 /* Popup container */
 .popup {
    position: relative;
    display: inline-block;
    cursor: pointer;
    padding: 0 0 30px 10px;
}
    
/* The actual popup (appears on top) */
.popup .popuptext {
    visibility: hidden;
    width: 160px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 4px;
    position: absolute;
    z-index: 1;
    left: 210%;
    top: -2px;
    margin-left: -80px;
}

/* Popup arrow */
.popup .popuptext::after {
    content: "";
    position: absolute;
    top: 36%;
    left: -3%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #555 transparent transparent;
}
    
/* Toggle this class when clicking on the popup container (hide and show the popup) */
.popup .show {
    visibility: visible;
    -webkit-animation: fade 3s linear forwards;
    animation: fade 3s linear forwards;
}
    
/* Add animation (fade in the popup) */
@-webkit-keyframes fade {
    0%,100% {opacity: 0;}
    20%,80% {opacity: 1;}
}
    
@keyframes fade {
    0%,100% {opacity: 0;}
    20%,80% {opacity:1 ;}
} 