#snackbar {
  background-color: #28143d;
  border-radius: 10px;
  border: 2px solid #0ff;
  bottom: 30px;
  color: #fff;
  font-family: arial;
  font-size: 14px;
  left: 50%;
  margin: 0 auto;
  min-width: 230px;
  padding: 8px 16px;
  position: fixed;
  text-align: center;
  transform: translateX(-50%);
  visibility: hidden;
  z-index: 1;
  display: flex;
  align-items: center;

   & > .icon::before {
    content: "";
    display: inline-block;
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
  }
}

#snackbar .success-text {
  display: none;
}

#snackbar .error-text {
  display: none;
}

#snackbar.success {
  border-color: #0ff;

  .success-text {
    display: block;
  }

  & > .icon::before {
    background-image: url("/assets/icons/check_0FF.svg");
  }
}

#snackbar.error {
  border-color: #f0f;

  .error-text {
    display: block;
  }

  & > .icon::before {
    background-image: url("/assets/icons/error_F0F.svg");
  }
}

#snackbar.show {
  -webkit-animation: fadein 0.5s, fadeout 0.5s 3.5s;
  animation: fadein 0.5s, fadeout 0.5s 3.5s;
  visibility: visible;
}

#snackbar .icon {
  margin: 8px 16px 0 0;
}

#snackbar .message {
  text-align: left;
}

@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}
