.toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 30px;
    right: 20px;
    width: 400px;
    overflow: hidden;
    border-radius: 4px;
    padding: 16px 17px;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 600;
    justify-content: space-between;
    animation: show_toast 0.3s ease forwards;
}
  
.toast.success { background-color: #28a745; }
.toast.error { background-color: #dc3545; }
.toast.info { background-color: #17a2b8; }
.toast.warning { background-color: #ffc107; }
 
.toast.hideToast {
    animation: hide_toast 0.3s ease forwards;
}


.toastCloseIcon {
  cursor: pointer;
}

.toastCloseIcon:hover {
  opacity: 0.7;
  transition: 0.3s ease all;
}
  
@keyframes show_toast {
    0% {
      transform: translateX(100%);
    }
    40% {
      transform: translateX(-5%);
    }
    80% {
      transform: translateX(0%);
    }
    100% {
      transform: translateX(-10px);
    }
}
  
@keyframes hide_toast {
    0% {
      transform: translateX(-10px);
    }
    40% {
      transform: translateX(0%);
    }
    80% {
      transform: translateX(-5%);
    }
    100% {
      transform: translateX(calc(100% + 20px));
    }
}