:root {
  --popup-width: 704px;
  --popup-height: 498px;
  --close-x: 32px;
  --close-y: 34px;
  --text-dist: 38px;
  --submit-width: 206px;
  --submit-height: 40px;
  --submit-radius: 20px;
  --submit-fontsize: 1.125em;
  --submit-dist: 6.5px;
  --thanks-button-dist: 35px;
}

.border-gray {
  border-color: rgb(118, 118, 118);
}

#popup-june {
  --blue: #2a3b74;
}

#popup-june-game .game-inner {
  width: 853px;
  height: 552px;
}

/* #c2canvasdiv,
#c2canvas {
  width: 853px !important;
  height: 552px !important;
  margin-left: 0 !important;
} */

#popup-june .popup-content {
  width: var(--popup-width);
  height: var(--popup-height);
  padding: 0 15px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url(../images/hero/popup-back.jpg);
  background-image: -webkit-image-set(
    url("../images/hero/popup-back.jpg") 1x,
    url("../images/hero/popup-back@2x.jpg") 2x
  );
}

#popup-june .popup-close {
  width: auto;
  height: auto;
  top: 0;
  right: 0;
  padding: 20px;
}

#popup-june form {
  margin-top: 10px;
}

#popup-june .button {
  padding: 0;
  width: 10.5em;
  height: 2em;
  border-radius: 1em;
  font-size: 1.2em;
  margin-top: 0;
  line-height: 1;
  padding-top: 2px;
  color: white !important;
  border: none !important;
  z-index: 2;
}

#popup-june .popup-thanks .button {
  margin-top: 20px;
}

#popup-june .form-action {
  text-align: center;
}

#popup-june .form-text {
  margin-top: 10px;
}

#popup-june .image {
  bottom: -19px;
  right: -1.5em;
}

@supports (background: -webkit-named-image(i)) {
  #popup-june .button {
    padding-top: 4px;
  }
}

@media screen and (max-width: 853px) {
  #popup-june-game .game-inner {
    width: 100%;
    height: auto;
  }

  #c2canvasdiv,
  #c2canvas {
    width: 100 !important;
    height: 100 !important;
    margin-left: 0 !important;
  }
}

@media screen and (max-width: 567px) {
  :root {
    --popup-width: 100%;
    --popup-height: 100%;
    --close-x: 16px;
    --close-y: 20px;
    --text-dist: 21px;
    --submit-width: 150px;
    --submit-height: 33px;
    --submit-radius: 17px;
    --submit-fontsize: 0.8125em;
    --submit-dist: 10px;
    --thanks-button-dist: 24px;
  }

  #popup-june .popup-content {
    height: 100%;
    width: 100%;
    background-image: url(../images/hero/popup-back-m.jpg);
    background-image: -webkit-image-set(
      url("../images/hero/popup-back-m.jpg") 1x,
      url("../images/hero/popup-back-m@2x.jpg") 2x
    );
  }

  #popup-june .popup-form {
    width: 100%;
  }

  #popup-june form.uni-style {
    width: calc(100% - 35px);
  }

  #popup-june .thanks {
    width: 93%;
  }

  #popup-june .button {
    font-size: 1.2em;
  }

  #popup-june .image {
    bottom: 0;
    right: 0;
    width: 42%;
    z-index: 0;
  }

  @supports (background: -webkit-named-image(i)) {
    #popup-june .button {
      padding-top: 2px;
    }
  }
}
