/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

.modal.open {
  top: 0% !important;
  padding: 0 1.6rem;
}

.modal-content {
  background-color: var(--primary-bg);
  margin: 8% auto;
  padding: 1.6rem !important;
  max-width: 50rem;
  border-radius: 4rem;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  overflow: hidden;
}

@media only screen and (min-width: 768px) {
  .modal-content {
    padding: 2rem;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
}

.modal-close .material-icons {
  color: var(--dark-text);
  cursor: pointer;
}

.modal-header h3 {
  margin: 0 auto;
  padding: 2rem 0 0 3rem;
  text-align: center;
}

.modal-img img {
  max-height: 40rem;
  object-fit: cover;
  margin: 2rem 0 2rem;
}

.modal-footer {
  height: auto !important;
  background-color: transparent !important;
}

.modal-footer .button {
  margin-top: 2rem;
}

.modal-redeem {
  text-align: center;
}

.modal-redeem img {
  margin: 2rem 0;
}

/* TERMS OF USE MODAL */
#modal1 .modal-content {
  padding: 2.4rem !important;
  max-width: 60rem;
}

#modal1 .terms-accept {
  text-align: center;
}

/* LOGIN MODAL */
.daily-login-modal {
  color: var(--light-text) !important;
}

.daily-login-modal .modal-content {
  background-color: var(--primary);
}

.daily-login-modal .modal-header {
  flex-wrap: wrap;
}

.daily-login-modal .modal-close .material-icons {
  color: var(--light-text);
}

.daily-login-modal .modal-header a {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.daily-login-modal h3,
.daily-login-modal p {
  color: var(--light-text) !important;
  text-align: center;
  width: 100%;
}

.daily-login-modal img {
  height: 25rem;
  object-fit: contain;
}

.daily-streak-card {
  text-align: center;
  margin: 4rem 0;
}

/* LOADING MODAL */
.loading-modal {
  top: 30% !important;
}

.loading-modal .modal-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.loading-modal .modal-content .loader {
  padding: 2rem;
}

.loading-modal .modal-content .loader .spinner-layer {
  border-color: var(--dark-text);
}

/* LEVEL UP MODAL */
.levelup-modal .levelup-circle {
  height: 30%;
  width: 30%;
  margin: auto;
}

.levelup-value {
  font-size: 2.2rem;
  visibility: hidden;
}

.levelup-text {
  text-align: center;
  margin-top: 1rem;
}

@media only screen and (min-width: 768px) {
  .levelup-value {
    font-size: 4rem;
    visibility: hidden;
  }
}

.levelup-modal .levelup-text {
  font-size: 2rem;
  padding-top: 2rem;
  visibility: hidden;
}

/* INVENTORY AND OFFER BARCODE MODAL */
.inventory-barcode,
.offer-barcode {
  margin: 2rem 0 1rem 2rem;
}

.inventory-barcode img,
.offer-barcode img {
  height: 20rem;
  width: 25rem;
  margin: 0 auto;
  display: flex;
}

/* INVENTORY RAFFLE CODE MODAL */
#raffle-codes-container {
  text-align: center;
  border: 1px solid var(--secondary-bg);
  margin-top: 2rem;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.8rem;
  max-height: 30rem;
  overflow: auto;
}

#raffleModal #title-text {
  color: var(--secondary);
}

.raffle-code-container.is-winner {
  background: var(--success);
}

/* EVENT SUCCESS MODAL */
.event-success h3,
.event-success p {
  color: var(--highlight);
  margin-bottom: 1rem;
}

.modal-header.event-success {
  flex-wrap: wrap;
  justify-content: center;
}

.event-success p {
  width: 100%;
  padding-bottom: 2rem;
  text-align: center;
}

.event-success img {
  margin-bottom: 2rem;
  max-height: 40rem;
  object-fit: contain;
}

/* QR EVENT MODAL */
.qr .modal-header {
  justify-content: flex-end;
}

.qr .modal-header a {
  margin-right: 0 !important;
}

.qr #qr-reader-error {
  margin-bottom: 2rem;
}

/* FILTER MODAL */
.filter-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.filter-section label {
  width: 46%;
  text-align: center;
  margin-bottom: 1rem;
}

.filter-header {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 1rem 0;
}

.filter-header p {
  width: 7rem;
  color: var(--dark-grey);
}

.filter-header .hr {
  width: 100%;
}

/* overriding material css */
.filter-details [type="radio"]:not(:checked) + span:before,
.filter-details [type="radio"]:not(:checked) + span:after {
  display: none;
}

.filter-details [type="radio"]:not(:checked) + span, .filter-details
[type="radio"]:checked + span {
  background-color: var(--light-text);
  color: var(--dark-text);
  border-radius: 1.6rem;
  display: block;
  height: auto;
  padding: 1rem;
  font-size: 1.6rem;
  font-size: clamp(1.6rem, 1.5rem + 0.1559vw, 1.8rem);
}

.filter-details [type="radio"] + span:before,
.filter-details [type="radio"] + span:after {
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  margin: 0rem;
  width: auto;
  height: auto;
  border-radius: 2rem;
  font-size: 1.6rem;
  font-size: clamp(1.6rem, 1.5rem + 0.1559vw, 1.8rem);
}

.filter-details [type="radio"]:checked + span:after {
  background-color: var(--dark-text);
  opacity: 0.2;
  font-size: 1.6rem;
  font-size: clamp(1.6rem, 1.5rem + 0.1559vw, 1.8rem);
}

.filter-details [type="radio"]:checked + span:after {
  border: 1px solid var(--dark-text);
  font-size: 1.6rem;
  font-size: clamp(1.6rem, 1.5rem + 0.1559vw, 1.8rem);
}

.modal-hr {
  margin: 0 -2rem;
  margin-top: 2rem;
}

.modal-btns {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.btn-reset {
  border: none;
  background-color: transparent;
  color: var(--primary);
  width: 34%;
  cursor: pointer;
}

.modal-submit {
  width: 66%;
  border: none;
}

@media only screen and (min-width: 768px) {
  .filter-section label {
    margin-bottom: 2rem;
  }

  .filter-header {
    margin: 2rem 0;
  }

  .modal-hr {
    margin: 0 -5rem;
  }
}

/* QUIZ & SURVEY MODALS */
.quizsuccessmodal .modal-header, 
.quizfailmodal .modal-header,
.surveysuccessmodal .modal-header  {
  flex-wrap: wrap;
  flex-direction: column;
  text-align: center;
  margin-bottom: 2rem;
}

.quizsuccessmodal .modal-header a, 
.quizfailmodal .modal-header a,
.surveysuccessmodal .modal-header a {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.quizsuccessmodal h3,
.quizsuccessmodal p {
  color: var(--success);
  padding: 0;
}

.quizfailmodal h3, 
.quizfailmodal p,
.surveysuccessmodal h3,
.surveysuccessmodal p{
  color:var(--primary);
  padding: 0;
}

.surveysuccessmodal .button{
  margin-top:2rem;
}

/* SPLASH MODAL */
.splash-modal h1,.splash-modal h2,.splash-modal h3,.splash-modal h4, .splash-modal h5, .splash-modal h6{
  margin: 1rem 0 .5rem;
  font-weight: bold;
}

.splash-modal p{
  font-size: 1.4rem;
  margin-bottom: 1rem;
}