<>
.info-container {
position: relative;
display: inline-block;
}
.info-icon {
font-size: 20px;
cursor: pointer;
}
.info-text {
visibility: hidden;
width: 200px;
background-color: #000;
color: #fff;
text-align: center;
border-radius: 5px;
padding: 10px;
position: absolute;
z-index: 1;
bottom: 125%; /* Position the text above the icon */
left: 50%;
margin-left: -100px; /* Center the text */
opacity: 0;
transition: opacity 0.3s;
box-shadow: 0px 4px 8px rgba(0000.1);
}
.info-container:hover .info-text {
visibility: visible;
opacity: 1;
}
@media screen and (max-width: 639px) {
.info-text {
left: -95px;
}
}
>