*{
  font-family: sans-serif;
}
.notifications {
  position: fixed;
  top: 16px;
  right: 12px;
  z-index: 10;
}
.toast {
  position: relative;
  padding: 15px;
  color: #fff;
  color: red;
  margin-bottom: 10px;
  /* width: 300px; */
  display: grid;
  grid-template-columns: 40px 1fr 25px;
  border-radius: 5px;
  --color: #0abf30;
  background-image: linear-gradient(to right, #0abf3055, #31312f 30%);
  background-color: linear-gradient(to right, #0abf3055, #31312f 30%);
  background-color: #31312f;
  animation: show 0.3s ease 1 forwards;
}
.toast i {
  color: var(--color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: x-large;
}
.toast .title {
  font-size: x-large;
  font-weight: 400;
  color: #fff;
  padding-right: 15px;
}
.toast span,
.toast i:nth-child(3) {
  color: #fff;
  opacity: 0.6;
}
@keyframes show {
  0% {
    transform: translateX(100%);
  }
  40% {
    transform: translateX(-5%);
  }
  80% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-10%);
  }
}
.toast::before {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: var(--color);
  width: 100%;
  height: 3px;
  content: "";
  box-shadow: 0 0 10px var(--color);
  animation: timeOut 3s linear 1 forwards;
}
@keyframes timeOut {
  to {
    width: 0;
  }
}
.toast.error {
  --color: #f24d4c;
  background-image: linear-gradient(to right, #f24d4c55, #22242f 30%);
}
.toast.warning {
  --color: #e9bd0c;
  background-image: linear-gradient(to right, #e9bd0c55, #22242f 30%);
}
.toast.info {
  --color: #3498db;
  background-image: linear-gradient(to right, #3498db55, #22242f 30%);
}
@media (max-width: 600px) {
  .toast {
    top: 5.7svh;
    right: -6vw;
    padding: 10px;
  }
  .toast .title{
    font-size: 4vw;
  }
}
