
#openPopUp{
  text-align:center;
  background-color: #aa123a;
}

a#openPopUp:hover{
  cursor: pointer;
  background-color: #1abc9e;
}

.popup{
  position: fixed;
  top: -100vh;
  left: 0;
  z-index: 9999999;
  background: rgba(0,0,0, 0.50);
  width: 100vw;
  height: 100vh;
  opacity: 0;
}

.popup .popUpContainer{
  width: 100%;
  max-width: 600px;
  position: fixed; /* To avoid scroll to target */
  left: 50%;
  top: -100vh;

  /* Trick to properly center the element by using negative 
  1/2 length of element as margin left and top */
  margin-left: -300px;
    
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  border-radius: 2px;
  z-index: 9999999; 
}

.popup h2{
  padding: 0.5em;
  text-align: center;
  color: #444444;
  margin: 0;
}

.popup img{
  width: 100%;
  display: block;
}

.popup article{
  height: 300px;
    
    /* A single image, centered and scaled */
    background: no-repeat center/80% url("images/three-people-working-together-vector-clipart.png");
    
    
  background-color: #ffffff;
}

/* The cancel button on popup dialog */
.popup a.closePopUp{
  font-family: verdana;
  color: #e74c3c;
  position: absolute;
  top: 0.2em;
  right: 0.375em;
  margin: 0;
  padding: 5px;
  font-weight: bold;
  font-size: 1.5em;
  text-decoration: none;
}

/* The cancel button on popup dialog */
.popup a:hover{
  color: #c0392b;
}

/* When popup is targeted, by clicking on link with #popup in HTML */
.popup:target{
  opacity: 1;
  top: 0;
}

.popup .closePopUpOutSide{
  position: absolute;
  left:0;
  width: 100%;
  height: 100%;
  z-index: 9999991; 
}

.popup:target .popUpContainer{
  top: 50px;
}

@media  (max-width: 796px) {
  .popup .popUpContainer{
    width: 90%;
    max-width: none;
    left: 5%;
    margin-left: 0;
  }
    
  .popup ul{
    padding: 0 1em 0 1em;
  }
    
  .popup:target .popUpContainer{
    top: 25px;
  }
}