body,
html {
  margin: 0;
}

.demon_popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  font-family: sans-serif;
  display: none;
  z-index: 9999;
}

.demon_popup.active {
  display: block;
}

.demon_overflow {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.7);
}

.demon_popup_body {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 850px;
  padding: 20px 20px 90px;
  background: linear-gradient(135deg, #3c72b5 0, #7b9fcc 100%) 0 0;
  box-sizing: border-box;
  border: 5px solid #ddd;
  min-height: 430px;
}

.demon_popup_title {
  width: 100%;
  text-align: center;
  font-size: 28px;
  color: #fff;
  margin: 0;
}

.demon_popup_body img {
  width: 48%;
  max-width: 300px;
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  object-fit: contain;
  margin: 0 10px 0 0;
}

.demon_popup_body p {
  padding-left: 340px;
  font-size: 23px;
  line-height: 1.3;
  margin: 0;
  padding-top: 30px;
  color: #fff;
}

.demon_popup_body p span {
  color: #de455c;
  white-space: nowrap;
  font-size: 34px;
  font-weight: 700;
}

.demon_popup_body p:first-of-type {
  padding-top: 90px;
}

.demon_popup_body a:last-of-type {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  height: 60px;
  background: transparent linear-gradient(to bottom, #de455c 0, #de455c 13%, #c01f37 76%, #c01f37 100%) repeat scroll 0 0;
  color: #e0e2e6;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  margin: 0 auto;
  max-width: 400px;
  font-size: 26px;
  font-weight: 900;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
}

.demon_popup_body a:last-of-type:hover {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-name: pulse;
  animation-name: pulse;
}

.demon_close {
  z-index: 1;
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  display: block;
  cursor: pointer;
}

.demon_close:after {
  content: "";
  width: 40px;
  height: 4px;
  background-color: #de455c;
  transform: rotate(45deg);
  position: absolute;
  top: 13px;
  left: -5px;
}

.demon_close:before {
  content: "";
  width: 40px;
  height: 4px;
  background-color: #de455c;
  transform: rotate(-45deg);
  position: absolute;
  top: 13px;
  left: -5px;
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.demon_popup.active .demon_popup_body {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-name: fadeIn;
  animation-name: fadeIn;
}

@-webkit-keyframes pulse {
  from {
    -webkit-transform: translateX(-50%) scale(1);
    transform: translateX(-50%) scale(1);
  }

  50% {
    -webkit-transform: translateX(-50%) scale(1);
    transform: translateX(-50%) scale(1.05);
  }

  to {
    -webkit-transform: translateX(-50%) scale(1);
    transform: translateX(-50%) scale(1);
  }
}

@keyframes pulse {
  from {
    -webkit-transform: translateX(-50%) scale(1);
    transform: translateX(-50%) scale(1);
  }

  50% {
    -webkit-transform: translateX(-50%) scale(1);
    transform: translateX(-50%) scale(1.05);
  }

  to {
    -webkit-transform: translateX(-50%) scale(1);
    transform: translateX(-50%) scale(1);
  }
}

@media (max-width: 767px) {
  .demon_popup_body img {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    display: block;
    margin: 15px auto 0 auto;
  }

  .demon_popup_body p {
    text-align: center;
    padding-left: 0;
  }

  .demon_popup_body p:first-of-type {
    padding-top: 20px;
  }
}

@media (max-width: 520px) {
  .demon_popup_body {
    max-width: 100vw;
  }

  .demon_popup_body img {
    width: 80%;
  }

  .demon_popup_title {
    font-size: 20px;
    margin-top: 40px;
  }

  .demon_popup_body p {
    font-size: 16px;
    padding-top: 10px;
  }

  .demon_popup_body a:last-of-type {
    font-size: 18px;
  }
}
