mc-element {
    position: relative;
    display: inline-block;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.25s ease-in-out;

    &:hover {
        transform: scale(1.4);
    }

    overflow: visible !important;
}

.mc-element-tooltip {
    position: fixed !important;
    z-index: 999999 !important;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out; // Only opacity transition
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    word-wrap: break-word;
}

mc-element[data-shadow] img {
    filter: drop-shadow(4px 4px 0px rgba(0, 0, 0, 0.25));
}

:has(> mc-element) {
    overflow: visible !important;
}

.mc-tooltip-default {
    border: 4px solid transparent;
    border-image: linear-gradient(to bottom, #290560, #1c0538);
    border-image-slice: 1;
    background-color: #120312;
}

.recipe-container {
    border-image: url(../web_resources/recipe_container.png) 2 fill / 8px / 0 stretch;

    width: fit-content;
}

.inventory-container {
    border-image: url(../web_resources/inventory_container.png) 4 fill / 16px / 0 stretch;
    image-rendering: pixelated;
}