@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* Start CSS for "Quick Quiz" (index.html)  -------------------------------------------------------------------------- */
body.quickQuizWrapper {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  display: flex;
  justify-content: center;
  justify-items: center;
  align-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
  background: url("../images/HCover.png") no-repeat center center fixed;
  background-size: cover;
  /* cover entire area */
  height: 100vh;
  width: 100vw;
}

.quickQuizWrapper h1 {
  margin-top: 0px;
  font-size: 3rem;
  color: #000000;
  margin-bottom: 2rem;
  text-align: center;
}

.quickQuizWrapper button {
  display: inline-block;
  /* or just remove any display:block if present */
  padding: 0.75rem 2rem;
  margin: 0.5rem;
  font-size: 1.2rem;
  border: none;
  background-color: #33008a;
  color: rgba(248, 248, 255, 0.746);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.quickQuizWrapper div#coverText.button-group {
  justify-content: center;
  gap: 1rem;
  /* space between buttons */
  flex-wrap: wrap;
  margin-top: 1rem;
}

.quickQuizWrapper button:hover {
  background-color: #9E0059;
  color: rgb(254, 243, 243);
}

.quickQuizWrapper div#bgQuickQuiz {
  justify-content: center;
  align-items: center;
  flex-direction: row;
  text-align: center;
}

.quickQuizWrapper div#coverText {
  margin-top: 45px;
  background: #bca2868c;
  align-content: center;
  align-items: center;
  justify-content: center;
  justify-items: center;
}

/* Ending section for "Quick Quiz" (index.html)  -------------------------------------------------------------------------- */



/* Started CSS for "Quiz" (quiz.html) and "feedback" (feedback.html) -------------------------------------------------------------------------- */
body.quiz-wrapper,
body.feedback-wrapper {
  font-family: 'Inter', sans-serif;
  color: white;
  margin: 10px;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  max-width: 100%;
}

body.quiz-wrapper {
  background: url("../images/1.jpg") no-repeat center center fixed;
  background-size: cover;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.feedback-wrapper {
  background: url("../images/dued.png") no-repeat center center fixed;
  background-size: cover;
}

.quiz-wrapper .custom-alert {
  background-color: #ffeeba7d;
  color: rgb(228, 3, 3);
  border: 1px solid #ffeeba;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 1rem auto;
  text-align: center;
  justify-content: center;
  max-width: 500px;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.quiz-wrapper #alert-card p {
  padding: 0.5rem;
  margin: 0;
  font-size: medium;
  font-weight: 500;
}


.quiz-wrapper .hidden {
  display: none;
}

.quiz-wrapper .custom-alert.show {
  display: block;
}


.feedback-wrapper .container {
  background-color: rgba(255, 255, 255, 0.86);
  color: #333;
  max-width: 600px;
  width: 90%;
  margin-top: 50px;
  margin-bottom: 10px;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
}

.quiz-wrapper .quiz-container {
  background-color: rgba(255, 255, 255, 0.938);
  color: #333;
  max-width: 600px;
  min-width: auto;
  margin-top: 50px;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
}

.quiz-wrapper h1,
.feedback-wrapper h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.quiz-wrapper .quiz-question,
.feedback-wrapper .quiz-question {
  margin-bottom: 1.5rem;
}

.quiz-wrapper label,
.feedback-wrapper label {
  display: block;
  margin: 0.4rem 0;
  cursor: pointer;
}

.quiz-wrapper button {
  display: block;
  background-color: rgba(173, 92, 70, 0.813);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  display: block;
  transition: background-color 0.3s ease;
  justify-content:center;
}

.quiz-wrapper .button {
  display: block;
  background-color: rgba(173, 92, 70, 0.813);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  display: block;
  transition: background-color 0.3s ease;
  justify-content:center;
}

.quiz-wrapper .button-group {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 1rem; /* Space between buttons */
  justify-content:center;
  margin: 1rem auto;  /* Centers it horizontally */
  margin-top: 1rem;
}

.quiz-wrapper button:hover {
  background-color: rgb(132, 29, 0);
  color: white;
}


.feedback-wrapper .button {
  display: inline-block;
  margin: 10px 10px 0 0;
  padding: 0.5rem 1rem;
  background-color: #9E0059;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.feedback-wrapper .button:hover {
  background-color: #ff5400;
  color: white;
}

.quiz-wrapper div.card p,
.feedback-wrapper div.card p {
  font-size: 1.2rem;
}


.quiz-wrapper .card,
.feedback-wrapper .card {
  background: #f0f0f0;
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quiz-wrapper div.card .card h2,
.feedback-wrapper div.card .card h2 {
  color: #33008a;
  margin-bottom: 0.8rem;
}


.quiz-wrapper .card ul,
.feedback-wrapper .card ul {
  list-style: disc inside;
  padding-left: 0;
}


.quiz-wrapper #result {
  background-color: rgba(227, 199, 164, 0.706);
  border: 2px solid rgba(255, 255, 255, 0.838);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  color: rgb(184, 92, 67);
  max-width: 600px;
  margin: 1rem auto;
  font-family: 'Inter', sans-serif;
}

.quiz-wrapper #result .score-line {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.quiz-wrapper #result .feedback-line {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.4;
}

.quiz-wrapper #result {
  display: none;
  /* Hide initially */
}

.quiz-wrapper #result.show {
  display: block;
  /* Show when JavaScript adds .show class */
}

.quiz-wrapper input[type="radio"]:checked {
  accent-color: #9E0059;
  transform: scale(1.5);
}

.quiz-wrapper input[type="radio"] {
  accent-color: #9E0059;
  transform: scale(1.25);
}

.quiz-wrapper label {
  padding-left: 20px;
  ;
}

.quiz-wrapper .quiz-page {
  display: none;
}

.quiz-wrapper .quiz-page.active {
  display: block;
}

/* Ending section for "Quiz" (quiz.html) and "feedback" (feedback.html) -------------------------------------------------------------------------- */



/* Started CSS for "Check This" (checkThis.html) -------------------------------------------------------------------------- */

body.checkThis-wrapper::before {
  content: "";
  position: fixed;
  /* Change from absolute to fixed for full coverage */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.774);
  /* Cambia la opacidad aquí */
  z-index: 0;
  /* Keep it behind everything */
  pointer-events: none;
}



body.checkThis-wrapper {
  position: relative;
  /* Needed for ::before layering */
  z-index: 1;
  /* Ensure content is above the background. */
  background-image: url("../images/saveMoney.png");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  width: 100%;
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.checkThis-wrapper h2 {
  color: #9E0059;
  margin: 5px;
}

.checkThis-wrapper .btn {
  font-size: 20px;
  font-weight: bold;
  color: white;
  border-radius: 5px;
  padding: 5px;
  width: 150px;
  border: none;
  justify-content: center;
  margin: 0; /* Ensures gap works consistently */
}

#backCTBtn.checkThis-wrapper {
  margin: 1rem auto;  /* Centers it horizontally */
  justify-content: center;
  align-content: center;
}

.checkThis-wrapper .btn-darkRed {
  background-color: #9E0059;
  color: rgb(254, 243, 243);
}


.checkThis-wrapper .btn-purple {
  background-color: #33008a;
  color: rgb(243, 238, 245);
}

.checkThis-wrapper .btn-darkRed:hover {
  background-color: #ff5400;
  color: rgba(254, 249, 243, 0.978);
}

.checkThis-wrapper .btn-purple:hover {
  background-color: #217d00;
  color: rgb(239, 245, 238);
}

.checkThis-wrapper .btn-purple:hover {
  background-color: #217d00;
  color: rgb(239, 245, 238);
}

.checkThis-wrapper .container {
  position: relative;
  /* Needed for ::before layering */
  z-index: 3;
  /* Ensure content is above the background. */
  background-color: transparent;
  padding-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}


.checkThis-wrapper #buttons-container {
  display: flex;
  justify-content: center;
  /* center horizontally */
  gap: 1rem;
  /* space between buttons */
  margin: 1rem auto;  /* Centers it horizontally */
  align-items: center;
  flex-wrap: wrap;

}

.checkThis-wrapper h1 {
  margin-top: 20px;
  text-align: center;
  width: 100%;
}


.checkThis-wrapper .fact-card {
  flex: 1 1 30%;
  /* grow, shrink, base 30% */
  max-width: 375px;
  min-width: 275px;
  text-align: center;
  padding: 10px;
  margin: 10px;
  border-radius: 5px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  vertical-align: top;
  font-size: 14px;
  background-color: white;
  justify-content: center;
}

.checkThis-wrapper .fact-card h2 {
  color: #d63a3a;
  font-size: 18px;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: bold;
}


.checkThis-wrapper .fact-card>p {
  color: #4a4a4f;
  padding: 0px;
  font-size: medium;
}

.checkThis-wrapper .fact-card img {
  height: 200px;
  width: 100%;
}

.checkThis-wrapper .facts-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.85);
  /* white with transparency */
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 1200px;
}


.checkThis-wrapper .facts-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  gap: 25px;
  max-width: 1200px;
  margin: 25px;
}

.checkThis-wrapper div#facts-container.container {
  background-color: rgba(186, 215, 224, 0.065);
  border: none;
  box-shadow: none;
}

/* Start section for "Prize" (prize.html) -------------------------------------------------------------------------- */
body.prize-wrapper::before {
  content: "";
  position: fixed;
  /* Change from absolute to fixed for full coverage */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0);
  /* Cambia la opacidad aquí */
  z-index: 0;
  /* Keep it behind everything */
  pointer-events: none;
}

body.prize-wrapper {
  position: relative;
  /* Needed for ::before layering */
  z-index: 1;
  /* Ensure content is above the background. */
  background-image: url("../images/prizeC.png");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  width: 100%;
  margin: 0;
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.prize-wrapper #prize {
  position: relative;
  /* Needed for ::before layering */
  z-index: 3;
  /* Ensure content is above the background. */
  background-color: rgb(143 200 214 / 52%);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.prize-wrapper h1 {
  color: #33008a;
  margin-bottom: 1.5rem;
}

.prize-wrapper #revealBtn,
#backBtn {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  color: white;
  background-color: #9E0059;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 2rem;
  transition: all 0.2s ease;
}

.prize-wrapper #revealBtn:hover,
#backBtn:hover {
  background-color: #ff5400;
  transform: scale(1.05);
}

.prize-wrapper .card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.prize-wrapper .card-container.hidden {
  display: none;
}

.prize-wrapper .card {
  width: 150px;
  height: 220px;
  perspective: 1000px;
  cursor: pointer;
  border-radius: 15px;
  --bs-card-border-color: none;
  margin-bottom: 15px;
  margin-left: 5px;
  margin-right: 5px;
}

.prize-wrapper .card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.prize-wrapper .card.flipped .card-inner {
  transform: rotateY(180deg) scale(1.2);
  z-index: 1;
}

.prize-wrapper .card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.prize-wrapper .card-front {
  background: linear-gradient(135deg, #cbe90a, #ff8000);
  color: white;
  font-size: 2.5rem;
}

.prize-wrapper .card-back {
  background: white;
  transform: rotateY(180deg);
  flex-direction: column;
  padding: 10px;
}

.prize-wrapper .card-back img {
  width: 140px;
  height: auto;
  max-height: 125px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.prize-wrapper .card-back .prize-text {
  color: #33008a;
  font-size: 0.95rem;
  font-weight: bold;
}

.prize-wrapper #backBtn {
  display: none;
}

/* Ending section for "Prize" (prize.html) -------------------------------------------------------------------------- */



/* Responsive Design */
/* Small devices (landscape phones, 576px and up)*/
@media (max-width: 576px) {
  .checkThis-Wrapper .fact-card {
    height: 325px;
  }
  .quickQuizWrapper div#coverText {
    margin-right: 0px;}
  }

    /* Medium devices (tablets, 768px and up) */
    @media (max-width: 768px) {
      .checkThis-Wrapper .fact-card {
        height: 335px;
      }

      .quickQuizWrapper div#coverText {
        margin-right: 0px;
      }
    }

    /* Large devices (desktops, 992px and up) */
    @media (max-width: 992px) {
      .checkThis-Wrapper .fact-card {
        height: 315px;
      }

      .quickQuizWrapper div#coverText {
        margin-right: 0px;
      }
    }

    /* Extra large devices (large desktops, 1200px and up) */
    @media (max-width: 1200px) {
      .checkThis-Wrapper .fact-card {
        height: 335px;
        padding: 10px;
        margin: 10px;
      }

      .quickQuizWrapper div#coverText {
        margin-right: 0px;
      }
    }

    /* Extra extra large devices (larger desktops, 1400px and up) */
    @media (max-width: 1400px) {
      .checkThis-Wrapper .fact-card {
        height: 350px;
        padding: 10px;
        margin: 10px;
      }

      .quickQuizWrapper div#coverText {
        margin-right: 0px;
      }
    }