﻿
/* CSS for tooltip */
.tooltip-custom {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-custom .tooltiptext {
    visibility: hidden;
    width: auto; /* Adjust width to fit content */
    max-width: 600px; /* Set a max-width for larger screens */
    min-width: 300px; /* Set a min-width for smaller screens */
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position the tooltip above the text */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    white-space: normal; /* Allow text to wrap */
}

    .tooltip-custom .tooltiptext::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: black transparent transparent transparent;
    }

.tooltip-custom.show-tooltip .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.tooltip-custom:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .tooltip-custom .tooltiptext {
        max-width: 100%; /* Full width on smaller screens */
        min-width: 200px; /* Adjust minimum width for smaller screens */
    }
}

