#snackbar {
    visibility: hidden;
    min-width: 250px;
    max-width: 350px;
    border-radius: 5px;
    padding: 12px;
    position: fixed;
    z-index: 999999;
    right: 20px;
    bottom: 35px;
  }
  
  /* Show the snackbar when clicking on a button (class added with JavaScript) */
  #snackbar.show {
    visibility: visible; /* Show the snackbar */
    /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
    However, delay the fade out process for 2.5 seconds */
    -webkit-animation: fadein 0.5s, fadeout 0.5s 3.5s;
    animation: fadein 0.5s, fadeout 0.5s 3.5s;
  }
  
  #snackbar.success {
    background-color: mediumseagreen;
    color: whitesmoke;
    font-weight: 700;
  }
  
  #snackbar.error {
    background-color: tomato;
    color: whitesmoke;
    font-weight: 700;
  }
  
  #snackbar.warning {
    background-color: #c6a819;
    color: whitesmoke;
    font-weight: 700;
  }
  
  #snackbar.info {
    background-color: #2e709c;
    color: whitesmoke;
    font-weight: 700;
  }

  .snackbar-link {
    margin-left: 15px;
    text-decoration: underline;
    color: deepskyblue;
    font-weight: 600;
}
  
  /* Animations to fade the snackbar in and out */
  @-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;}
  }