*, *:before, *:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #fff;
  font-family: 'Hammersmith One', sans-serif;
}

.button {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.button button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: inherit;
  background-color: #73be27;
  border: 0;
  padding: 15px 25px;
  color: #fff;
  text-transform: uppercase;
  font-size: 21px;
  letter-spacing: 1px;
  width: 200px;
  overflow: hidden;
  outline: 0;
  transition: all 0.4s;
  visibility: visible;
  opacity: 1;
  font-weight: bold;
  box-shadow: 0px 6px 30px rgba(0, 0, 0, 0.6);
}
.button button:hover {
  cursor: pointer;
  background-color: #2ab1ce;
}
.button button span {
  opacity: 1;
}
.button.clicked button {
  visibility: hidden;
  oacity: 0;
}
.popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  overflow-y: auto;
  box-shadow: 0px 6px 30px rgba(0, 0, 0, 0.4);
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s;
  z-index: 10;
  background-color: #ffffff;
  width: 100%;
  /*height: 100%;*/
  max-height: 500px;
}

.popup .content {
  width: 100%;
  max-width: 700px;
  overflow: hidden;
  text-align: center;
  position: relative;
  min-height: 100vh;
  max-height: 500px;
}
.popup .content .container {
  padding: 100px 20px 140px;
}

.popup .content .closebtn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 3.1rem;
  letter-spacing: 0.05rem;
  color: #3e4146;
  transition: all 0.4s;
  z-index: 1000;
}
.popup .content .closebtn:hover {
  cursor: pointer;
  color: #73be27;
}
.popup .content .circles .circle {
  position: absolute;
  border-radius: 100%;
  z-index: 11;
}
.popup .content .circles .circle:nth-of-type(1) {
  top: -80px;
  right: -80px;
  width: 160px;
  height: 160px;
  background-color: #73be27;
}
.popup .content .circles .circle:nth-of-type(2) {
  bottom: -120px;
  left: -120px;
  width: 240px;
  height: 240px;
  background-color: #2ab1ce;
}

.popup .content .circles .circle:nth-of-type(3) {
  top: -50px;
  left: -50px;
  width: 100px;
  height: 100px;
  background-color: #333;
}
.popup .content .title h1 {
  text-align: center;
  color: #51a2cb;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 2.8rem;
  letter-spacing: 0.05rem;
}
.popup .content img {
  width: 100%;
  max-width: 220px;
  display: inline-block;
  margin: 30px 0 40px 0;
  opacity: 0;
  transform: translateX(-60px);
  transition: 0.2s;
  -webkit-backface-visibility: hidden;
}

.popup .content .subscribe h1 {
  font-size: 1.5rem;
  color: #3e4146;
  line-height: 130%;
  letter-spacing: 0.07rem;
  margin-bottom: 30px;
}
.popup .content .subscribe h1 span {
  color: #73be27;
}
.popup .content .subscribe form {
  overflow: hidden;
}
.popup .content .subscribe form input {
  width: 100%;
  float: left;
  padding: 15px 20px;
  text-align: center;
  font-family: inherit;
  font-size: 1.1rem;
  letter-spacing: 0.05rem;
  outline: 0;
}
.popup .content .subscribe form input[type=email] {
  margin-bottom: 15px;
  border: 1px solid #bec1c5;
  transition: all 0.4s;
}

.popup .content .subscribe form input[type=email]:focus {
  border-color: #3e4146;
}
.popup .content .subscribe form input[type=button] {
  background-color: #73be27;
  color: #ffffff;
  border: 1px solid #73be27;
  transition: all 0.4s;
}

.popup .content .subscribe form input[type=button]:hover {
  cursor: pointer;
  background-color: #2ab1ce;
  border-color: #2ab1ce;
}
.popup.open {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.popup.open img {
  opacity: 1;
  transition: 1s;
  transition-delay: 0.3s;
  transform: translateX(0px);
}
@media (min-width: 568px) {
  .popup .content {
    min-height: inherit;
  }
  .popup .content .container {
    padding: 50px 20px 80px;

  }
  .popup {
    max-height: 500px;
  }
}

@media (min-width: 768px) {
  .popup .content .container {
    padding: 70px 0px 50px;
    max-width: 520px;
    margin: 0 auto;
    
  }
  .popup {
    max-height: 500px;
  }
  .popup .content .circles .circle:nth-of-type(1) {
      top: -190px;
      right: -190px;
      width: 350px;
      height: 350px;

    }
  .popup .content .subscribe form input[type=email] {
      margin-bottom: 0px;
      width: 75%;
      border-right-width: 0px;
    }
  .popup .content .subscribe form input[type=button] {
      width: 25%;
    }
  .popup {
      width: calc(100% - 40px);
      height: auto;
      max-width: 700px;
      max-height: 500px;
    }
  
}

.prueba {
  color: red;
}

@media (max-width: 468px) {
  .prueba {
    color: green;
  }
  }

  @media (max-width: 768px) {
  
  .popup .content .container {
    padding: 50px 20px 80px;

  }
  .popup {
    max-height: 500px;
  }
}