#popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 20000;
}
.popup-content {
  display: grid;
  grid-template-columns: 55% 45%;
}
#popup-form {
  margin: 40px 20px 0px 20px;
}
#popup-form h1, #popup-form h2{
  text-align: center;
}
#popup-form h1 {
  font-size: 380%;
}
#popup-form h2 {
  font-size: 175%;
  margin-top: 40px;
}
#newsletterTypeContainer {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
}
#newsletterTypeContainer {
  font-size: 150%;
  font-weight: bold;
  margin: 60px 0px 20px;
}
#newsletterTypeContainer p {
  grid-column: 1/span 3;
  margin-bottom: 20px;
}
#newsletterTypeContainer input, #newsletterTypeContainer label {
  cursor: pointer;
}
#email {
  border: 1px solid #ccc;
  font-size: 150%;
  padding: 10px;
}
#email::placeholder {
  color: gray;
  font-size: 100%;
}
#subscribe-btn, #close-btn {
  background-color: black;
  color: #fff;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-top: 5px;
  font-weight: bold;
  font-size: 140%;
}
#subscribe-btn:hover, #close-btn:hover {
  background-color: red;
}
#email, #subscribe-btn, #close-btn {
  width: 100%;
}

.recaptcha-container {
  margin-top: 5px;
    transform: scale(0.8);
    transform-origin: top center;
    display: flex;
    justify-content: center;
}

#subscribe-btn:disabled {
  background-color: gray;
  cursor: not-allowed;
}


#voucherNote {
  position: fixed;
  bottom: 5px;
}
#popUpImage {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
#popUpImageMobile {
  display: none;
}
#closePopUp {
  text-decoration: none;
  font-size: 35px;
  color: #818181;
  position: fixed;
  top: 25px;
  right: 5px;
  transform: translate(-50%, -50%);
}
#closePopUp:hover {
  color: #f1f1f1;
}

@media screen and (max-width: 1917px) {
  #popup-form h1 {
    font-size: 350%;
  }
  #popup-form h2 {
    font-size: 153%;
    margin-top: 30px;
  }
  #newsletterTypeContainer {
    margin: 50px 0px 15px;
  }
  #newsletterTypeContainer, #email {
    font-size: 131%;
  }
  #subscribe-btn, #close-btn {
    font-size: 123%;
  }
}

@media screen and (max-width: 1695px) {
  #popup-form h1 {
    font-size: 300%;
  }
  #popup-form h2 {
    font-size: 131%;
    margin-top: 20px;
  }
  #newsletterTypeContainer {
    margin: 40px 0px 10px;
  }
  #newsletterTypeContainer, #email {
    font-size: 112%;
  }
  #subscribe-btn, #close-btn {
    font-size: 105%;
  }
}

@media screen and (max-width: 1474px) {
  #popup-form h1 {
    font-size: 250%;
  }
  #popup-form h2 {
    font-size: 109%;
    margin-top: 15px;
  }
  #newsletterTypeContainer {
    margin: 30px 0px 5px;
  }
  #newsletterTypeContainer, #email, #voucherNote {
    font-size: 93%;
  }
  #subscribe-btn, #close-btn {
    font-size: 88%;
  }
}

@media screen and (max-width: 1252px) {
  #popup-form h1 {
    font-size: 200%;
  }
  #popup-form h2 {
    font-size: 87%;
    margin-top: 10px;
  }
  #newsletterTypeContainer {
    margin: 20px 0px 5px;
  }
  #newsletterTypeContainer, #email, #voucherNote {
    font-size: 75%;
  }
  #email, #subscribe-btn, #close-btn {
    margin-top: 10px;
  }
  #subscribe-btn, #close-btn {
    font-size: 71%;
  }
}

@media screen and (max-width: 1093px) {
 .popup-content {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 2fr;
 }
  #popup-image {
    grid-row: 1;
  }
  #popUpImage {
    display: none;
  }
  #popUpImageMobile {
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
  #popup-form {
    margin: 20px 20px 0px 20px;
  }
  #popup-form h1 {
    font-size: 300%;
  }
  #popup-form h2 {
    font-size: 131%;
    margin-top: 20px;
  }
  #newsletterTypeContainer {
    margin: 40px 0px 10px;
  }
  #newsletterTypeContainer, #email {
    font-size: 112%;
  }
  #subscribe-btn, #close-btn {
    font-size: 105%;
  }
}

@media screen and (max-width: 975px) {
  #popup-form h1 {
    font-size: 250%;
  }
  #popup-form h2 {
    font-size: 109%;
    margin-top: 15px;
  }
  #newsletterTypeContainer {
    margin: 30px 0px 5px;
  }
  #newsletterTypeContainer, #email, #voucherNote {
    font-size: 93%;
  }
  #subscribe-btn, #close-btn {
    font-size: 88%;
  }
}

@media screen and (max-width: 847px) {
  #popup-form h1 {
    font-size: 200%;
  }
  #popup-form h2 {
    font-size: 87%;
    margin-top: 10px;
  }
  #newsletterTypeContainer {
    margin: 20px 0px 5px;
  }
  #newsletterTypeContainer, #email, #voucherNote {
    font-size: 75%;
  }
  #email, #subscribe-btn, #close-btn {
    margin-top: 10px;
  }
  #subscribe-btn, #close-btn {
    font-size: 71%;
  }
}

@media screen and (max-width: 743px) {
  #newsletterTypeContainer p {
    margin-bottom: 10px;
  }
  #email, #subscribe-btn, #close-btn {
    margin-top: 5px;
  }
  #voucherNote {
    bottom: 2px;
  }
}

@media screen and (max-width: 677px) {
  #popup-form {
    margin: 15px 20px 0px 20px;
  }
  #popup-form h1 {
    font-size: 150%;
  }
}

@media screen and (max-width: 647px) {
  #voucherNote {
    position: static;
    margin-top: 10px;
    margin-bottom: 5px;
  }
}

@media screen and (max-width: 576px) {
  #popup {
    top: 0;
    left: 0;
    transform: translate(0, 0);
    height: 100%;
  }
  #popup-form h1 {
    font-size: 350%;
  }
  #popup-form h2 {
    font-size: 153%;
    margin-top: 30px;
  }
  #newsletterTypeContainer {
    margin: 50px 0px 15px;
  }
  #newsletterTypeContainer p {
    margin-bottom: 20px;
  }
  #newsletterTypeContainer, #email {
    font-size: 131%;
  }
  #subscribe-btn, #close-btn {
    font-size: 123%;
  }
  #voucherNote {
    font-size: 100%;
    position: fixed;
  }
}

@media screen and (max-width: 466px) {
  #popup-form h1 {
    font-size: 300%;
  }
  #popup-form h2 {
    font-size: 131%;
    margin-top: 20px;
  }
  #newsletterTypeContainer {
    margin: 40px 0px 10px;
  }
  #newsletterTypeContainer, #email {
    font-size: 112%;
  }
  #subscribe-btn, #close-btn {
    font-size: 105%;
  }
}

@media screen and (max-width: 405px) {
  #popup-form h1 {
    font-size: 250%;
  }
  #popup-form h2 {
    font-size: 109%;
    margin-top: 15px;
  }
  #newsletterTypeContainer {
    margin: 30px 0px 5px;
  }
  #newsletterTypeContainer, #email, #voucherNote {
    font-size: 93%;
  }
  #subscribe-btn, #close-btn {
    font-size: 88%;
  }
}

@media screen and (max-width: 344px) {
  #popup-form h1 {
    font-size: 200%;
  }
  #popup-form h2 {
    font-size: 87%;
    margin-top: 10px;
  }
  #newsletterTypeContainer {
    margin: 20px 0px 5px;
  }
  #newsletterTypeContainer, #email, #voucherNote {
    font-size: 75%;
  }
  #email, #subscribe-btn, #close-btn {
    margin-top: 10px;
  }
  #subscribe-btn, #close-btn {
    font-size: 71%;
  }
}