.toast-message {
  position: fixed;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 18px;
  transition: 0.5s;
  z-index: 999999;
  max-width: 40%;
  text-align: center;
  font-weight: 600;
  font-family: "ubuntu", sans-serif;
  margin: 0;
}

.toast-message.success {
  background: #6441A5;  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #2a0845, #6441A5);  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #2a0845, #6441A5); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  color: #fff;
}

.toast-message.error {
  background: rgb(202, 6, 6);
  color: #fff;
}

.toast-message.warn {
  background: var(--Accent-Color);
  color: #000;
}

/* Hidden message */
.toast-message.top {
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
}

.toast-message.top-left {
  top: -100%;
  left: 10px;
}

.toast-message.top-right {
  top: -100%;
  right: 10px;
}

.toast-message.bottom {
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
}

.toast-message.bottom-left {
  bottom: -100%;
  left: 10px;
}

.toast-message.bottom-right {
  bottom: -100%;
  right: 10px;
}

/* Shown message */
.toast-message.top.shown {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.toast-message.top-left.shown {
  top: 10px;
  left: 10px;
}

.toast-message.top-right.shown {
  top: 10px;
  right: 10px;
}

.toast-message.bottom.shown {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.toast-message.bottom-left.shown {
  bottom: 10px;
  left: 10px;
}

.toast-message.bottom-right.shown {
  bottom: 10px;
  right: 10px;
}

/* Make the toast wider on smaller screens */
@media screen and (max-width: 768px) {
  .toast-message {
    max-width: 70%;
  }
}
