.notification {
  display: block;
  position: relative;
  padding: 15px;
  margin-bottom: 15px;
  overflow: hidden;
  width: 280px;
  border-radius: 4px;
  box-shadow: 0 0 12px #999;
  color: #fff;
  -webkit-animation: show-notification 3s ease-out;
  animation: show-notification 3s ease-out;
  z-index: 100;
}

.notification-close {
  padding: 0;
  cursor: pointer;
  background: none;
  border: 0;
  outline: none;
  -webkit-appearance: none;
  position: absolute;
  top: 5px;
  right: 10px;
  color: #fff;
  text-shadow: 0 1px 0 #ddd;
}

.notification-success {
  background-color: #90b900;
}

.notification-error {
  background-color: #e85656;
}

.notification-info {
  background-color: #2dacd1;
}

.notification-warning {
  background-color: #dfb81c;
}

@-webkit-keyframes show-notification {
  0% {
      opacity: 0;
      -webkit-transform: translate(0, -100%);
  }
  10% {
      opacity: 1;
      -webkit-transform: translate(0, 0);
  }
  90% {
      opacity: 1;
      -webkit-transform: translate(0, 0);
  }
  100% {
      opacity: 0;
      -webkit-transform: translate(0, -100%);
  }
}

@keyframes show-notification {
  0% {
      opacity: 0;
      -webkit-transform: translate(0, -100%);
      transform: translate(0, -100%);
  }
  10% {
      opacity: 1;
      -webkit-transform: translate(0, 0);
      transform: translate(0, 0);
  }
  90% {
      opacity: 1;
      -webkit-transform: translate(0, 0);
      transform: translate(0, 0);
  }
  100% {
      opacity: 0;
      -webkit-transform: translate(0, -100%);
      transform: translate(0, -100%);
  }
}