/* Popup container - can be anything you want */
.popup {
  position: center;
  display: block;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* The actual popup */
.popup .popuptext {
  visibility: hidden;
  width: 90%;
  background-color: red;
  border: 2px solid black;
  color: lightgrey;
  font-size: 1.3rem;
  text-align: center;
  border-radius: 6px;
  padding: 15px 5px;
  position: absolute;
  z-index: 1;
  //top: 30%;
  left: 5%;
  //margin-left: -80px;
}

/* Popup arrow */
.popup .popuptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 10px;
  border-style: solid;
  border-color: black transparent transparent transparent;
}

/* Toggle this class - hide and show the popup */
.popup .show {
  visibility: visible;
  -webkit-animation: fadeIn 1s;
  animation: fadeIn 1s;
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
  from {opacity: 0;} 
  to {opacity: 1;}
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}}
  
/* Toggle this class - hide and show the popup */
.popup .hidden {
  visibility: hidden;
  -webkit-animation: fadeOut 5s;
  animation: fadeOut 5s;
}

  /* Add animation (fade out the popup) */
@-webkit-keyframes fadeOut {
  from {opacity: 1;} 
  to {opacity: 0;}
}

@keyframes fadeOut {
  from {opacity: 1;}
  to {opacity: 0;}}