.alert_popup {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 20px;
  width: 360px;
  margin: auto;
  -webkit-transition: all .2s ease-in-out;
  transition: all .2s ease-in-out;
  visibility: hidden;
  opacity: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  pointer-events: none;
  z-index: 1099;
}

.alert_popup.open {
  visibility: visible;
  opacity: 1;
}

.alert_popup [class^='alert_'] {
  width: 100%;
  padding: 16px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 1rem;
  -webkit-transition: all .1s ease;
  transition: all .1s ease;
  position: relative;
  padding-right: 20px;
  pointer-events: all;
  -webkit-box-shadow: 0 0 15px 0px rgba(0, 0, 0, 0.3);
          box-shadow: 0 0 15px 0px rgba(0, 0, 0, 0.3);
  -webkit-animation: slideUp .3s ease;
          animation: slideUp .3s ease;
}

.alert_popup [class^='alert_'] .close_alert {
  position: absolute;
  right: 5px;
  top: -5px;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: .7;
  pointer-events: all;
}

.alert_popup .alert_black {
  color: #fff;
  background-color: #0c0c0c;
}

.alert_popup .alert_success {
  color: #fff;
  background-color: #4CAF50;
}

.alert_popup .alert_danger {
  color: #fff;
  background-color: #ff4b2b;
}

@-webkit-keyframes slideUp {
  0% {
    opacity: 0;
    -webkit-transform: translateY(50px);
            transform: translateY(50px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0px);
            transform: translateY(0px);
  }
}

@keyframes slideUp {
  0% {
    opacity: 0;
    -webkit-transform: translateY(50px);
            transform: translateY(50px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0px);
            transform: translateY(0px);
  }
}