@font-face {
    font-family: "Magnets";
    src: url("magnets.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
#ma1 {
    position: absolute;
    top: 40%;
    left: 10%;
    width: 30%;
    height: 25%;
}

#ma2 {
    position: absolute;
    top: 25%;
    left: 52%;
    width: 20%;
    height: 55%;
}
#ma3 {
    position: absolute;
    top: 60%;
    left: 70%;
    width: 20%;
    height: 25%;
}

.magnet-areas {
    /* background-color: rgba(255, 255, 255, 1); */
    z-index: 995;
}

.magnets {
    position: absolute;
    cursor: grab;
    filter: drop-shadow(-3px 2px 2px rgba(0, 0, 0, 0.2));
}

.dragging {
    filter: drop-shadow(-5px 5px 3px rgba(0, 0, 0, 0.2));
    transition: filter 0.2s ease-in-out;
    cursor: grabbing;
    img {
        transition: transform 0.2s ease-in-out;
        transform: scale(1.1);
        pointer-events: none;
    }
}
#magnets-area {
    z-index: 10;
    position: absolute;
    top: 15%;
    left: 50%;
    width: 40vw;
    height: 75vh;
    /* pointer-events: none; */
}

.magnets::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--overlay-color);
    mix-blend-mode: darken;
    pointer-events: none;

    -webkit-mask-image: var(--mask-url, none);
    mask-image: var(--mask-url, none);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.magnets.dragging::after {
    transition: transform 0.2s ease-in-out;
    transform: scale(1.1);
}
