.alert-holder {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 8px;
    padding: 64px;
    user-select: none;
    pointer-events: none;
}

.alert-item {
    position: relative;
    width: 60%;
    background-color: var(--primary);
    color: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    opacity: 0;
    transition: opacity var(--alert-fade-time) ease;
    user-select: text;
    pointer-events: all;
}

.alert-item.error {
    background-color: var(--red);
}

.alert-item.visible {
    opacity: 1;
}

.alert-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    aspect-ratio: 1/1;
    padding-right: 8px;
    cursor: pointer;
}
