So i have developed a website and created a feature where when you hover over a box it reveals text however when i tested my website on mobile you cant hover do there being no cursor and it doesn't recognise clicks if i was to click the box so how can i make it compatible so that if on a mobile it works the same just with a click etc
.container .box .content{
position: absolute;
top: 100%;
height: calc(100% - 100px);
text-align: center;
padding: 20px;
box-sizing: border-box;
transition: 1s;
opacity: 0;
}
.container .box:hover .content{
top: 100px;
opacity: 1;
}
.container .box .content h3{
margin: 0 0 10px;
padding: 0;
color: #fff;
font-size: 24px;
}
.container .box .content p{
justify-content: center;
margin: 0;
padding: 0;
text-align: center;
color: #fff;
}
This is how it looks on website when i hover over a box
any help is much appreciated