.flash {
    --r: 255;
    --g: 0;
    --b: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: rgba(var(--r), var(--g), var(--b), 0.25);
    display: block;
    position: relative;

    &::after {
        position: absolute;
        content: '';
        width: 50%;
        height: 50%;
        left: 50%;
        top: 50%;
        border-radius: 50%;
        transform: translateX(-50%) translateY(-50%);
        background-color: rgba(var(--r), var(--g), var(--b), 1);
        z-index: 1;
    }

    &.animate {
        animation: flash 1s ease-in-out 0.5s infinite alternate-reverse;

        &::after {
            animation: flash 1s ease-in-out 0s infinite alternate-reverse;
        }
    }
}

.box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #3c3c3c;
    padding: 1rem;
    border-radius: 1rem;
    width: 100%;
    height: auto;

    & img {
        border-radius: 50%;
        width: 2rem;
        height: 2rem;
    }    
}

.verified {
    position: relative;
}

    .verified::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 0.25rem;
        transform: translateY(-50%);
        width: 1rem;
        height: 1rem;
        background-color: goldenrod;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10.6 16.6l7.05-7.05-1.4-1.4-5.65 5.65-2.85-2.85-1.4 1.4 4.25 4.25zM12 22q-2.07 0-3.9-.79-1.82-.79-3.17-2.14Q3.58 17.73 2.79 15.9T2 12Q2 9.92 2.79 8.1 3.58 6.27 4.93 4.93 6.28 3.57 8.1 2.79 9.93 2 12 2t3.9.79 3.17 2.14q1.35 1.35 2.14 3.17Q22 9.92 22 12t-.79 3.9-2.14 3.17q-1.35 1.35-3.17 2.14T12 22z'/%3E%3C/svg%3E") no-repeat center / contain;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10.6 16.6l7.05-7.05-1.4-1.4-5.65 5.65-2.85-2.85-1.4 1.4 4.25 4.25zM12 22q-2.07 0-3.9-.79-1.82-.79-3.17-2.14Q3.58 17.73 2.79 15.9T2 12Q2 9.92 2.79 8.1 3.58 6.27 4.93 4.93 6.28 3.57 8.1 2.79 9.93 2 12 2t3.9.79 3.17 2.14q1.35 1.35 2.14 3.17Q22 9.92 22 12t-.79 3.9-2.14 3.17q-1.35 1.35-3.17 2.14T12 22z'/%3E%3C/svg%3E") no-repeat center / contain;
    }


.icons {
    background-color: #fff;
    box-shadow: 0 2px 2px 2px rgba(0,0,0,0.1);
    border-radius: 9999px;
    width: fit-content;
    align-self: center;
    padding: 0.5rem 1rem;
    gap: 2rem;
}

.box .actions {
    display: none;
    font-size: 14px;
    border-radius: 1rem;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    padding-bottom: 0;
}

.box:focus-within > .actions {
    display: flex;
}

.action-icon {
    display: block;
    width: 24px !important;
    height: 24px !important;
}

.opened {
    background-color: #00800011;
    box-shadow: 0 2px 2px 2px #00800033;
    cursor: default;
}

.closed {
    background-color: #ffc0cb33;
    box-shadow: 0 2px 2px 2px #ffc0cb66;
    cursor: default;
}

.masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.rotate {
    animation: rotate 1s linear infinite forwards;
}

@keyframes flash {
    from {
        opacity: 0.2
    }

    to {
        opacity: 1
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
