
.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity .5s;
  visibility: hidden;
  opacity: 0;
    z-index:9999;
     visibility: visible;
    opacity: 1;
}
.overlay:target {
  visibility: visible;
  opacity: 1;
}

.modal {
  width: 80%;
     height:300px;
     overflow-y:scroll;
  position: relative;
  margin: auto;
    margin-top:180px;
  padding: 1.5rem;
  background: #fff;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  transition: .5s;
  opacity: 0;
   visibility: visible;
  opacity: 1;

}
.modal .content {
  margin-top: 1rem;
  text-align: justify;
}
.modal .content a {
  max-width: 60%;
  margin: auto;
  display: block;
}

.overlay:target > .modal {
  transform: translateY(30%) scale(0.9);
  transition-timing-function: cubic-bezier(0.8, 0, 0, 1.5);
  opacity: 1;
}

.modal h2 {
  text-align: center;
  margin-top: 2rem;
  color: #ff0000;
}

a.close {
  position: absolute;
  top: 15px;
  right: 13px;
  width: 24px;
  height: 24px;
  text-decoration: none;
  text-align: center;
  font-size: 24px;
  line-height: 22px;
  color: lightslategrey;
  background-color: lightgrey;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  transition: .25s;
}
a.close:hover {
  background-color: tomato;
  color: white;
}