#snackbar {
  visibility: hidden;
  min-width: 25%;
  border-radius: 2px;
  padding: 1rem;
  position: fixed;
  z-index: 1;
  right: 2rem;
  bottom: 2rem;
  font-size: 1rem;
}

#snackbar.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;} 
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {bottom: 30px; opacity: 1;} 
  to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

.alert {
  padding: 20px;
  color: white;
  opacity: 1;
  transition: opacity 0.6s;
  margin-bottom: 15px;
  font-weight: 600;
}

.alert.success {  
  background-color: #dff0d8;
  color: #4a804a;
}
.alert.error {
  background-color: #f1b1b1;
  color: #bb0000;
}
.alert.info {
  background-color: #74c0ff;
  color: #2196F3;
}
.alert.warning {
  background-color: #ffd28e;
  color: #ff9800;
}

.closebtn {
  margin-left: 15px;
  color: white;
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.closebtn:hover {
  color: black;
}