.hint-wrapper {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.hint-button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--bg-color-secondary);
    color: var(--text-color-primary);
    border: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: sans-serif;
    font-weight: bold;
    font-size: 14px;
    padding: 0;

    transition: background-color 0.2s;
}

.hint-button:hover {
    background-color: var(--bg-color-tertiary);
}

.hint-content {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);

    width: max-content;
    max-width: 300px;
    padding: .5rem;
    border-radius: .5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    background-color: var(--bg-color-secondary);
    z-index: 10;
    animation: fadeIn 0.2s ease-in-out;
}

.hint-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;

    border-width: 5px;
    border-style: solid;
    border-color: var(--bg-color-secondary) transparent transparent transparent;
}

.hint-content > :not(:last-child) {
    margin-bottom: .5rem;
}

.hint-heading {
    display: block;
    font-weight: 600;
}

.hint-text {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}
