/* Import Google font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
:root {
  --dark: #34495e;
  --light: #ffffff;
  --success: #0abf30;
  --error: #e24d4c;
  --warning: #e9bd0c;
  --info: #3498db;
}
body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.notifications {
  position: fixed;
  top: 450px;
  right: 20px;
  max-width: 30%;
  display: flex;
  flex-direction: column;
  align-items: end;
}
.notifications :where(.toast, .column) {
  display: flex;
  align-items: center;
}

.alert-count {
  position: absolute;
  left: -10px;
  top: -10px;
  background: blue;
  height: 30px;
  width: 30px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  font-size: 15px;
  font-weight: bold;
  justify-content: center;
}

.count-section {
  position: absolute;
  right: 7px;
  top: 7px;
  padding: 4px 7px;
  background: red;
  height: 18px;
  line-height: 12px;
  border-radius: 4px;
  font-weight: 500;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem;
  font-size: 1.4rem;
  color: #ffffff;
  border-radius: 50px;
}

.message {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  margin: 0 20px 0px 20px;
}

.message .text-1 {
  font-weight: 600;
  padding-bottom: 4px;
}

.column {
  padding-left: 1rem;
}

.notifications .toast {
  max-width: 600px;
  width: fit-content;
  position: relative;
  overflow: hidden;
  list-style: none;
  border-radius: 4px;
  padding: 12px 0px;
  color: #e7e7e7;
  margin-bottom: 10px;
  justify-content: space-between;
  animation: show_toast 0.3s ease forwards;
  background: linear-gradient(
    to right,
    var(--color-gd, 59)-8%,
    #31303015 40%,
    #31303015 85%,
    #31303015 85%
  );
}
@keyframes show_toast {
  0% {
    transform: translateX(100%);
  }
  40% {
    transform: translateX(-5%);
  }
  80% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-10px);
  }
}
.notifications .toast.hide {
  animation: hide_toast 0.3s ease forwards;
}
@keyframes hide_toast {
  0% {
    transform: translateX(-10px);
  }
  40% {
    transform: translateX(0%);
  }
  80% {
    transform: translateX(-5%);
  }
  100% {
    transform: translateX(calc(100% + 20px));
  }
}

.toast::before {
  position: absolute;
  content: "";
  height: 3px;
  width: 100%;
  bottom: 0px;
  left: 0px;
  animation: var(--animation);
  background-color: var(--color);
}

@keyframes progress {
  100% {
    width: 0%;
  }
}

@media screen and (max-width: 530px) {
  .notifications {
    width: 95%;
  }
  .notifications .toast {
    width: 100%;
    font-size: 1rem;
    margin-left: 20px;
  }
}
