/* CODE BY: https://codepen.io/Mhmdhasan/pen/YqKMxV */


ul.overlay-buttons{
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
}


.overlay {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 9998;
}

button {
    outline: 0;
  display: inline-block;
  min-width: 200px;
  height: 60px;
  line-height: 60px;
  border: none;
  background: #69b1a9;
  color: #fff;
  font-size: 15px;
  letter-spacing: 1px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s;
}
button.main-button {
  margin-top: 10vh;
  position: relative;
  font-size: 17px;
  font-weight: 700;
  margin-left: 50px;
  margin-bottom: 100px;
}
button:hover {
  opacity: 0.9;
}
button.main-button::before {
  content: url(https://res.cloudinary.com/http-mohamdhasan-tk/image/upload/v1456482398/modal_poh7t7.png);
  width: 60px;
  height: 60px;
  line-height: 60px;
  padding: 10px 0;
  display: inline-block;
  background: #58a199;
  text-align: center;
  position: absolute;
  top: 0;
  left: -50px;
}
.popup {
  background: #e5ddcb;
  width: 400px;
  min-height: 250px;
  text-align: center;
  position: fixed;
  display: none;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2), -1px 0 4px rgba(0, 0, 0, 0.2);
  z-index: 9999;
}

.popup h2 {
    padding-top: 10px; 
    font-size: 20px;
    color: #000;
    /* padding: 10px 0px; */
  }

.popup p {
  font-size: 18px;
  color: #555;
  padding: 30px;
}
.popup ul li {
  display: inline-block;
  width: 50%;
}
.popup ul li button {
  width: 100%;
  border-radius: 0;
}
.popup ul li:first-of-type button {
  background: #a7c5bd;
}
.popup ul li:last-of-type button {
  background: #aab3ab;
}

/* ----------------------------
   single popup styles
   ----------------------------*/

/* first style */
.popup.one {
  top: calc(50vh - 150px);
  left: calc(50vw - 200px);
  -webkit-transform: scale(0);
  transform: scale(0);
  opacity: 0;
  transition: all 0.7s cubic-bezier(0.845, -0.265, 0.19, 1.28);
}
.popup.oneOpen {
  -webkit-transform: scale(1);
  transform: scale(1);
  opacity: 1;
}

/* Seconed style */
.popup.two {
    top: calc(50vh - 150px);
    left: calc(50vw - 200px);
    -webkit-transform: scale(0);
    transform: scale(0);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.845, -0.265, 0.19, 1.28);
  }

.popup.twoOpen {
  -webkit-transform: scale(1);
  transform: scale(1);
  opacity: 1;
}

/* Third style */
.popup.three {
    top: calc(50vh - 150px);
    left: calc(50vw - 200px);
    -webkit-transform: scale(0);
    transform: scale(0);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.845, -0.265, 0.19, 1.28);
}
.popup.threeOpen {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
}

/* Fourth style */
.popup.four {
    top: calc(50vh - 150px);
    left: calc(50vw - 200px);
    -webkit-transform: scale(0);
    transform: scale(0);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.845, -0.265, 0.19, 1.28);
}
.popup.fourOpen {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
}

/* Fifth style */
.popup.five {
    top: calc(50vh - 150px);
    left: calc(50vw - 200px);
    -webkit-transform: scale(0);
    transform: scale(0);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.845, -0.265, 0.19, 1.28);
}
.popup.fiveOpen {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
}

/* Sixth style */
.popup.six {
    top: calc(50vh - 150px);
    left: calc(50vw - 200px);
    -webkit-transform: scale(0);
    transform: scale(0);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.845, -0.265, 0.19, 1.28);
}
  
  .popup.sixOpen {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
  }

/* ----------------------------
   mediaqueries
   ----------------------------*/
@media screen and (max-width: 480px) {
  .popup {
    width: 300px;
  }
  .popup.one,
  .popup.two,
  .popup.three,
  .popup.four,
  .popup.five,
  .popup.six  {
    left: calc(50vw - 160px);
  }
  .popup.one,
  .popup.two,
  .popup.three,
  .popup.four,
  .popup.five,
  .popup.six{
    top: calc(50vh - 120px);
  }
  .popup.twoOpen,
  .popup.threeOpen,
  .popup.fourOpen,
  .popup.fiveOpen,
  .popup.sixOpen,
   {
    left: calc(50vw - 150px);
  }
  button {
    min-width: 125px;
    height: 50px;
    line-height: 50px;
    font-size: 14px;
  }
  button.main-button {
    min-width: 170px;
  }
  button.main-button::before {
    height: 50px;
    padding: 6px 0;
  }
}
