#notifier {
  position: fixed;
  bottom: 1.5em;
  left: 1em;
  z-index: 1000;
  width: 700px;
  height: 300px;
  overflow-y: auto;
  display: inline-flex;
  flex-direction: column-reverse;
  gap: 0.5em;
  padding: 4px;
  pointer-events: none;

  .message {
    outline: 2px solid black;
    min-width: 200px;
    width: fit-content;
    max-width: 700px;
    overflow: hidden;
    padding: 0.4em;
    border-radius: 5px;
    transform: scaleX(0);
    transform-origin: 0% 50%;
    display: flex;
    align-items: center;
    gap: 0.5em;

    .svg-container {
      border-radius: 50%;
      width: 1em;
      height: 1em;
      padding: 2px;
      display: flex;
      justify-content: center;
      align-items: center;
      color: black;
      outline: 2px solid black;
      background-color: #dadada;

      svg {
        width: 100%;
        height: 100%;
      }
    }

    button {
      pointer-events: all;
    }

    &.tooltip {
      font-size: 0.8em;
      min-width: unset;
      width: auto;
      z-index: 200;
      position: fixed;
      bottom: 0;
      left: 0;
      background-color: black;
      transform: scaleX(1);
      padding: 0.3em 0.4em;
      border-top-right-radius: 5px;
      border-top-left-radius: 0;
      border-bottom-right-radius: 0;
      border-bottom-left-radius: 0;
    }

    &.confirmation button {
      outline: 1px solid black;

      .first-y {
        color: var(--success);
      }

      .first-n {
        color: var(--warn);
      }
    }

    &.success {
      background-color: var(--success);
      animation:
        showNotification 300ms ease-out 0ms 1 forwards,
        hideNotification 300ms ease-out 5000ms 1 forwards;
    }

    &.confirmation,
    &.info-dynamic,
    &.info-static {
      background-color: var(--info);

      &.info-dynamic {
        animation:
          showNotification 300ms ease-out 0ms 1 forwards,
          hideNotification 300ms ease-out 5000ms 1 forwards;
      }

      &.confirmation,
      &.info-static {
        animation: showNotification 300ms ease-out 0ms 1 forwards;
      }

      .svg-container {
        padding: 3px;
      }
    }

    &.warn {
      background-color: var(--warn);
      animation:
        showNotification 300ms ease-out 0ms 1 forwards,
        hideNotification 300ms ease-out 6000ms 1 forwards;
    }

    &.error {
      background-color: var(--error);
      animation:
        showNotification 300ms ease-out 0ms 1 forwards,
        hideNotification 300ms ease-out 7000ms 1 forwards;
    }

    &.confirmation,
    &.success,
    &.info,
    &.warn,
    &.error {
      color: var(--white);
      outline: 2px solid black;
      font-weight: bold;
    }

    &.static {
      animation: showNotification 300ms ease-out 0ms 1 forwards;
    }

    &.dismiss {
      animation: hideNotification 300ms ease-out 0ms 1 forwards !important;
    }
  }
}

@keyframes showNotification {
  from {
    transform: translateX(-100%);
    opacity: 0.5;
  }

  to {
    transform: translateX(0px);
    opacity: 1;
  }
}

@keyframes hideNotification {
  from {
    transform: translateX(0px);
    opacity: 1;
  }

  to {
    transform: translateX(-100%);
    opacity: 0.5;
  }
}
