.overlay {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
    display: none;
}
/* .overlay:target {
    visibility: visible;
    opacity: 1;
} */

.popup {
    margin: 120px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    width: 60%;
    max-height: 80%;
    overflow-y: scroll;
    position: relative;
    background: #f9f9f9;
    transition: all 5s ease-in-out;
    -webkit-box-shadow: 0 27px 24px 0 rgba(0,0,0,0.2), 0 40px 77px 0 rgba(0,0,0,0.22);
    box-shadow: 0 27px 24px 0 rgba(0,0,0,0.2), 0 40px 77px 0 rgba(0,0,0,0.22);
    -webkit-border-radius: 3px;
}

.popup .head {
    position: fixed;
    width: 58%;
    background: #f9f9f9;
    top: 120px;
    padding-top: 10px;
    bottom: 0;
    left: 50%;
    margin-left: -29%;
    right: 0;
    height: 85px;
}

.popup .content {
    clear: both;
    padding: 80px 20px
}

.popup h2 {
    margin-top: 0;
    color: #333;
    font-family: Tahoma, Arial, sans-serif;
}
.popup .close {
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 30px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
    opacity: 0.2;
}
.popup .close:hover {
    opacity: 0.8;
}
.popup .content {
    max-height: 30%;
    overflow: auto;
}

@media screen and (max-width: 700px) {
    .popup {
        width: 90%;
        max-height: 75%;
    }
    .popup .head {
        width: 88%;
        margin-left: -44%;
    }
}
