/*
Notification needs to be invisible by default, as once it's in the DOM,
the 'visible' class will be added to it, which makes it appear with a CSS transition.

In this case, the 'bottom' property is being used to keep the notification off screen until
it's visible.
*/

.notif-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  position: fixed;
  bottom: 10px;
  height: auto;
  margin-left: 5px;
}

.simple-notification {
  background: #ffffff;
  opacity: 0.91;
  color:#333333;
  box-shadow: 0 -2px 2px rgba(0, 0, 0, 0.1);
  font-family:Verdana, sans-serif;
  font-size: 14px;
  left: 0;
  height: auto;
  width: auto;
  max-width: 350px;;
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 5px;
  text-align: left;
  bottom: -150px;
  margin-top: 5px; /*Spacing btw notifications*/
  /* Puts it off screen by default. */
  -webkit-transition: bottom 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  -ms-transition: bottom 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  -moz-transition: bottom 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  -o-transition: bottom 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: bottom 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  /* Transition applied when 'visible' class is added. */
}

.simple-notification:hover{
  opacity: 1;
}

.simple-notification.visible {
  bottom: 0;
}

.simple-notification.good {
  background: #5abe57;
}

.simple-notification.bad {
  background: #c00;
}
