.popup {
  position: relative;
  display: inline-block;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.popup .popuptext {
  visibility: hidden;
  min-width: 20px; /* Change this value as needed */
  white-space: nowrap;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 10px 0;
  padding-left:9px;
  padding-right: 9px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%); /* This will center the tooltip horizontally */
}

.popup .popuptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%); /* This will center the arrow horizontally */
  margin-left: 0; /* Remove the margin-left */
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.popup:hover .popuptext {
  visibility: visible;
  -webkit-animation: fadeIn .5s;
  animation: fadeIn .5s;
}

@-webkit-keyframes fadeIn {
  from {opacity: .7;} 
  to {opacity: 1;}
}

@keyframes fadeIn {
  from {opacity: .7;}
  to {opacity:1 ;}
}