.toaster{
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    width: auto;

    position: fixed;

    bottom: 1.2rem;
    right: 1.2rem;
}
.toast{
    display: flex;
    flex-direction: column;
    padding: 15px 20px;

    align-items: flex-start;
    justify-content: center;

    margin-top: 10px;
    border-radius: 10px;

    color: white;

    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);

    position: relative;
    animation: movein 0.5s linear forwards;

    overflow: hidden;

}

.toast:hover{
    cursor: default;
}

.toast::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 5px;
    border-radius: inherit;
    animation: anim 5s linear forwards;
}

.toast #close{
    position: absolute;

    right: 8px;
    top: 8px;
}

.toast h1{
    font-size: 18px;
    margin: 0;
    color: white;
}

.toast p{
    font-size: 14px;
    color: rgba(255, 255, 255, 0.759);
}

.toast.sucess{
    background-color: rgba(104, 193, 96, 0.985);
}
.toast.sucess::after{
    background-color: rgba(84, 165, 76, 0.985);
}

.toast.error{
    background-color: rgba(224, 78, 78, 0.985);
}
.toast.error::after{
    background-color: rgba(155, 44, 44, 0.985);
}



@keyframes anim{
    0%{
        width: 100%;
    }
    100%{
        width: 0;
    }
}

@keyframes movein{
    0%{
        transform: translate(100%, 100%);
    }
    100%{
        transform: translate(0%, 0%);
    }
}