#toastBox {
    position: fixed;
    right: 0px;
    top: 70px;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    overflow: hidden;
    padding: 20px;
}

.toast {
    width: 400px;
    height: 80px;
    background: white;
    font-size: large;
    font-weight: 500;
    margin: 15px 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    position: relative;
    transform: translateX(100%);
    animation: moveleft 0.5s linear forwards;
    filter: opacity(0.7);
    color: black;
    border-radius: 2rem;
}

body.dark .toast {
    color: var(--white);
    background: var(--mine-shaft);
}


    body.dark .toast button {
        color: var(--white);
    }

.toast img{
    margin: 10px;
}

.toast-dark-img{
    filter:brightness(100);
}

.toast button {
    margin: 0 10px 0 auto;
    border: none;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
}

.toast:hover {
    filter: opacity(1);
}

@keyframes moveleft {
    100% {
        transform: translateX(0);
    }
}

@keyframes anim {
    100%{
        width: 0;
    }
}