.box {
            width: 20%;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.2);
            padding: 35px;
            border: 2px solid #fff;
            border-radius: 20px/50px;
            background-clip: padding-box;
            text-align: center;
          }
          .button {
            font-size: 1em;
            padding: 10px;
            color: #fff;
            border: 2px solid orange;
            border-radius: 20px/50px;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.3s ease-out;
          }
          .button:hover {
            background: orange;
          }
          .overlay {
            position: absolute;
            top: -15px;
            bottom: 0;
            left: 0;
            right: 0;
            transition: opacity 500ms;
            visibility: visible;
            opacity: 1;
            z-index:999;
            background: rgba(29, 29, 27, 0.5);
          }
          .overlay:target {
            visibility: hidden;
            opacity: 0;
            display:none
          }
          
          

.popup {
position: relative;
  margin: 250px auto;
  padding: 20px;
  border-radius: 15px;
  width: 40%;
  transition: all 5s ease-in-out;
  background: #000;
              
}

.popup .close {
position: absolute;
  right: 10px;
  top: -40px;
  transition: all 200ms;
  font-size: 50px;
  font-weight: bold;
  text-decoration: none;
  color: #fff !important;
z-index: 1000;
opacity: 0.7;
}
  
.popup .close:hover {
color: red; }

.popup .content {
overflow: auto;
  color: #000;
  max-width: 85%;
  margin: 0 auto;
}

/*.popup h2 { margin-top: 0; color: #fff; font-family: Tahoma, Arial, sans-serif; }*/

@media (max-width: 1024px) {
              .popup { 
            width: 80%;
}
.popup .content {
    overflow: auto;
    color: #000;
    max-width: 100%;
    margin: 0 auto;
}
}

@media (max-width: 786px) {
              .popup { 
margin: 80px auto;
}
}