#toastBox {
    position: fixed;
    bottom: 50px;
    right: 0;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    overflow: hidden;
    padding: 20px;
    z-index: 9999;
}

.toast {
    width: 400px;
    height: 80px;
    background: #fff;
    font-weight: 500;
    margin: 15px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    display: flex!important;
    align-items: center;
    position: relative;
    transform: translateX(100%);
    animation: moveleft 0.3s linear forwards;
    border-bottom: 0;
    font-size: 16px;
}

@keyframes moveleft {
    0% {
        transform: translateX(100%);
    }

    80% {
        transform: translateX(-10%);
    }
    
    100% {
        transform: translateX(0%);
    }
}

.toast i {
    margin: 0 20px;
    font-size: 30px;
}

.toast-success i {
    color: seagreen;
} 

.toast-error i {
    color: red;
} 

.toast-info i {
    color: gold;
}

.toast::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: seagreen;
    animation: anim 5s linear forwards;
}

@keyframes anim {
    100% {
        width: 0%;
    }
}

.toast-error::after {
    background: red;
}

.toast-info::after {
    background: orange;
}

.toast-out {
    animation: moveout 0.3s linear forwards;
}

@keyframes moveout {
    0% {
        transform: translateX(-5%);
    }

    90% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(110%);
    }
}

/* View Mobile */

@media screen and (max-width: 768px) {
    #toastBox {
        width: 100%;
    }
}

/* View Mobile */