.xmas-modal-wrapper {
  background: #001C5488;
}

.xmas-modal-wrapper .xmas-modal-wrap {
  background: transparent;
  border: none;
}

.xmas-modal-wrapper .xmas-modal {
  position: relative;
  border: 10px solid #00AEEF;
  border-radius: 18px;
  background: white;
  padding: 0;
}

/* xmas-ques-hold - while user clicks on an answer - he won't be able to click again for 2.5 seconds */
.xmas-ques-hold {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
}

.xmas-modal .xmas-top-image,
.xmas-modal .xmas-footer-image {
  position: absolute;
}

.xmas-modal .xmas-top-image {
  position: absolute;
  left: -8px;
  top: -17px;
}

.xmas-modal .xmas-footer-image {
  bottom: 0;
  left: 0;
  right: 0;
}

/* popup questions */
.xmas-popup-cont {
  margin-top: 40px;
  position: relative;
  z-index: 1;
  height: 450px;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
}

.xmas-popup-cont-1 .xmas-popup-inner-1 {
  flex-direction: row;
}

/* Other steps before the game */
.xmas-popup-cont-2,
.xmas-popup-cont-3,
.xmas-popup-cont-4,
.xmas-popup-cont-5 {
  display: none;
  position: relative;
}

.xmas-col-ted-2 {
  padding-top: 75px;
}

.ted-2 {
  position: relative;
  top: 3px;
}

.xmas-popup-cont-3 img.activity-book {
  scale: 1.2;
  position: relative;
  top: 30px;
}

.xmas-popup-row-3-2 {
  position: relative;
  top: -20px;
}

.xmas-popup-row-3-2 .ted-3 {
  scale: 1.15;
}

.xmas-popup-inner-3,
.xmas-popup-inner-5 {
  justify-content: space-between;
}


.xmas-popup-inner-5 .xmas-popup-ttl-wrap {
  margin-top: 27px;
}

.close-popup-reg {
  position: absolute;
  z-index: 99;
  float: none;
  left: initial;
  right: 0;
  top: 0;
  padding: 10px;
  font-size: 30px;
}

.xmas-col-ted-1 {
  margin-bottom: 8px;
}

.xmas-col-ted-1 img {
  position: relative;
  scale: 1.3;
  top: -50px;
  left: 10px;
}

.xmas-popup-ttl-wrap {
  position: relative;
  z-index: 1;
}

.xmas-popup-cont-1 .xmas-popup-ttl-wrap {
  margin-left: -30px;
  margin-top: -145px;
}

.form-ttl {
  color: #00AEEF;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.235em;
}

.form-teaser {
  color: #414141;
  font-size: 18px;
  line-height: 1.5em;
  font-weight: 600;
  margin: 20px auto 8px auto;
}

/* Save spave for mobile */
.xmas-popup-cont-4 .xmas-popup-ttl-wrap .form-teaser {
  margin-top: 0;
}

.ted-4 {
  position: relative;
  margin-top: -40px;
  right: -15px;
}

.input-terms input,
.input-terms label {
  cursor: pointer;
}

.input-terms input {
  display: block;
  margin-top: 4px;
  margin-right: 5px;
}

.input-terms label {
  display: flex;
  align-items: baseline;
}

.hd-terms-span {
  font-size: 14px;
}

#hd-reg-form {
  position: relative;
  z-index: 1;
  margin-bottom: 70px;
}

#stuName, .stu-name {
  text-transform: capitalize;
}

.hd-submit {
  margin: 10px auto;
  text-align: center;
}

#hd-stu-name .hd-submit {
  margin: 30px auto;
  text-align: center;
}

#hd-form-submit,
.lets-play-cta,
#hd-form-reg-submit {
  background: #00AEEF;
  border-radius: 23px;
  color: white;
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  margin: auto;
  padding: 5px 50px;
  border: none;
}

.lets-play-cta:hover,
.lets-play-cta:active,
.lets-play-cta:focus,
#hd-form-submit:hover,
#hd-form-submit:active,
#hd-form-submit:focus,
#hd-form-reg-submit:hover,
#hd-form-reg-submit:active,
#hd-form-reg-submit:focus {
  background: #098bbb;
}

.lets-play-cta {
  padding: 5px 50px 10px 50px;
}

.download-book-cta {
  display: none;
  margin-top: 15px;
}

.download-book-cta.show {
  display: block;
}

.download-book-cta span {
  padding: 8px 20px;
  border: 1px solid #00AEEF;
  display: block;
  color: #00AEEF !important;
}



/* Answer options */
.modal-body .modal-answers {
  margin-top: 20px;
}

.modal-body .modal-answer {
  font-size: 18px;
  font-weight: 600;
  border: 2px solid #00AEEF;
  border-radius: 30px;
  background: white;
  color: #00AEEF;
  margin: 10px auto 0 auto;
  padding: 4px 0;
  text-align: center;
  cursor: pointer;
}

.modal-body .modal-answer:hover {
  border: 2px solid #00AEEF;
  background: #00AEEF;
  color: white;
}

.modal-body .answer-error,
.modal-body .answer-error:hover,
.modal-body .answer-error:active,
.modal-body .answer-error:focus {
  border: 2px solid #F47D20;
  background: #F47D20;
  color: white;
}

.modal-body .answer-success {
  border: 2px solid #89C54F;
  background: #89C54F;
  color: white;
}


@media screen and (min-width: 992px) {
  .xmas-col-ted-1 img {
    scale: 1;
    left: -10px;
    top: -9px;
  }

  .xmas-popup-row-3-2 {
    top: -40px;
  }

  .xmas-popup-inner-5 .xmas-popup-ttl-wrap {
    margin-top: 5px;
  }

}

/* Moday popup answers */
.modal-popup-error,
.modal-popup-success {
  display: none;
  padding: 40px 20px 0 25px;
  color: white;
  text-align: center;
  margin: auto;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25em;
  font-family: 'Open Sans', sans-serif;
  position: absolute;
  z-index: 11;
}

.modal-popup-error {
  background: url(../images/popup/quiz/bubble-wrong-right.png) 0 0 no-repeat;
  background-size: contain;
  width: 220px;
  height: 158px;
}

.modal-popup-success {
  background: url(../images/popup/quiz/bubble-correct-right.png) 0 0 no-repeat;
  background-size: contain;
  padding-top: 58px;
  width: 240px;
  height: 213px;
}

.modal-popup-error.modal-popup-error-left {
  background: url(../images/popup/quiz/bubble-wrong-left.png) 0 0 no-repeat;
  background-size: contain;
  width: 220px;
  height: 158px;
}

.modal-popup-success.modal-popup-success-left {
  background: url(../images/popup/quiz/bubble-correct-left.png?v=1) 0 0 no-repeat;
  background-size: contain;
  width: 220px;
  height: 158px;
  top: -150px;
  left: -80px;
  padding-top: 45px;
}

.modal-popup-error.modal-teaser-ques-1-popup-error {
  top: -90px; 
  left: -150px;
}

.modal-popup-success.modal-teaser-ques-1-popup-success {
  top: -90px; 
  left: -150px;
}

.modal-popup-success.modal-popup-success-left.millie-bubble-correct {
  top: -120px;
}
@media screen and (min-width: 1024px) {
  .modal-popup-success.modal-popup-success-left.joey-bubble-correct,
  .modal-popup-success.modal-popup-success-left.nat-bubble-correct {
    left: 30px;
  }

  .modal-popup-success.modal-popup-success-left.ollie-bubble-correct {
    left: -30px;
  }
}


/*
.modal-popup-success.modal-popup-success-left.millie-bubble-correct {
  top: -170px;
  right: 22px;
}
*/
.ted-5-wrap {
  position: relative;
  background: white;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 85%, rgba(255,255,255,0) 90%, rgba(255,255,255,0) 100%);
}

.ted-5-wrap .ted-5-blend {
  mix-blend-mode: screen;
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  right: 0;
}

.lets-play-cta-wrap {
  margin: 20px auto 100px auto;
  text-align: center;
}
.lets-play-cta {
  cursor: pointer;
}

.continue-play {
  display: none;
}

/*
.lets-play-bubble {
  background: url(../images/popup/lets-play-bubble.png) 0 0 no-repeat;
  background-size: contain;
  height: 132px;
  width: 164px;
  position: relative;
  z-index: 1;
  float: right;
  top: 30px;
  right: 40px;
}

.lets-play-bubble span {
  display: block;
  padding-top: 30px;
  padding-left: 32px;
  color: #414141;
  font-size: 25px;
  line-height: 1.125em;
}

.lets-play-bubble:after {
  display: block;
  position: relative;
  content: '';
  clear: both;
}
*/

@media screen and (min-width: 768px) {
  .xmas-modal .xmas-top-image {
    top: -26px;
  }

  .form-ttl {
    font-size: 34px;
  }

  .form-teaser {
    font-size: 24px;
  }

  .xmas-popup-cont-1 .xmas-popup-ttl-wrap {
    margin-left: -55px;
    padding-left: 0;
    padding-right: 0;
  }

  .modal-body .modal-answer {
    font-size: 24px;
    padding: 2px 0;
  }

  .ted-4 {
    margin-top: -80px;
    right: -47px;
  }
}

@media screen and (min-width: 1024px) {
  .xmas-popup-cont-1 .xmas-popup-ttl-wrap {
    margin-top: -45px;
  }

  #hd-reg-form {
    margin-top: -20px;
    margin-bottom: 100px;
  }

  .xmas-popup-cont-2 .form-teaser {
    margin-top: 30px;
  }

  .ted-2 {
    left: 20px;
  }

  .xmas-popup-cont-3 img.activity-book {
    scale: 1.55;
    top: 50px;
  }

  .xmas-popup-cont {
    padding: 0 40px 0 40px;
    height: 580px;
  }

  .input-terms label {
    justify-content: center;
  }

  .modal-popup-error.modal-teaser-ques-1-popup-error {
    top: -70px; 
    left: 160px;
  }

  .modal-popup-success.modal-teaser-ques-1-popup-success {
    top: -60px; 
    left: 150px;
  }

  .lets-play-bubble {
    right: 90px;
  }

  .lets-play-bubble span {
    padding-top: 25px;
    padding-left: 27px;
    font-size: 30px;
    line-height: 1.125em;
  }

  .lets-play-cta-wrap {
    margin-bottom: 10px;
  }

}

@media screen and (min-width: 1200px) {
  .modal-dialog {
    min-width: 600px;
  }
  .xmas-popup-cont {
    margin-top: 80px;
  }

  .xmas-popup-cont.xmas-popup-inner-2 {
    align-items: flex-start;
  }

}

@media screen and (max-width: 768px) {
  .xmas-popup-cont-3 .modal-answers {
    position: relative;
    top: -15px;
  }

  .modal-body .modal-answers {
    margin-bottom: 50px;
  }
  .xmas-popup-cont-2 .modal-popup-error {
    background: url(../images/popup/quiz/bubble-wrong-left.png) 0 0 no-repeat;
    background-size: contain;
  }

  .xmas-popup-cont-2 .modal-popup-success {
    background: url(../images/popup/quiz/bubble-correct-left.png?v=1) 0 0 no-repeat;
    background-size: contain;
  }

  .xmas-popup-cont-5 .lets-play-cta-wrap {
    margin-bottom: 65px;
  }

  .ted-5-wrap {
    top: -27px;
  }
}

@media screen and (max-width: 380px) {
  #hd-reg-form {
    margin-top: 0;
  }
}




/* TESTING */
/*
.modal-popup-error.modal-popup-error-left,
.modal-popup-success.modal-popup-success-left {
  display: block !important;
}
*/