/* 불조심 어린이마당 퀴즈 대회 */

.kidsQuizArt {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 4% auto 10%;
  max-width: 1400px;
  gap: 60px;
}


/* 타이틀 영역 */
.quizTits {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.quizTitImg {
  width: 80%;
  max-width: 300px;
}
.quizTitImg img {
  width: 100%;
}

.quizTit {
  display: flex;
  align-items: end;
  height: 45px;
  position: relative;
}

.quizTit h2 {
  font-size: 25px;
  color: #222;
  font-weight: 800;
}
.quizTit h2 span {
  color: #D75252;
}

.quizTitIcon {
  width: 30px;
  position: absolute;
  top: 0;
  left: -10%;
}
.quizTitIcon img {
  width: 100%;
}

.quizTitMore {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.quizTitSub {
  font-size: 15px;
  color: #555;
  font-weight: 400;
}


.quizDivTit {
  color: #333;
  font-weight: 600;
  font-size: 19px;
}

.quizWaitDiv {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.waitText {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.waitTextTit {
  font-size: 19px;
  color: #ff6325;
  font-weight: 700;
}

.waitTextTxt {
  text-align: center;
  color: #777;
  font-size: 15px;
  line-height: 160%;
  font-weight: 500;
}

.quizTimeOverDiv {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  margin: 20px 0 0 0;
}

.timeOverImg {
  width: 180px;
}

.timeOverImg img {
  width: 100%;
}

/* 하단 버튼 */
.quizBottomBtns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mainGoBtn {
  width: 120px;
  height: 40px;
  border-radius: 4px;
  color: #ff6325;
  background-color: white;
  border: 1px solid #ff6325;
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quizMoreBtn {
  width: 120px;
  height: 40px;
  border-radius: 4px;
  background-color: #ff6325;
  color: white;
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/** 퀴즈 항목 **/
/* 문제 수 */
.quizBoxTop {
  min-height: 50px;
  display: flex;
  align-items: start;
  padding: 10px;
  gap: 10px;
  border: 2px solid #ffd4c0;
  border-radius: 4px;
}

.quizQuestionNo {
  width: 70px;
  height: 45px;
  background-color: #ff6325;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  position: relative;
}

.quizQuestionText {
  min-height: 45px;
  display: flex;
  align-items: center;
  color: #222;
  font-weight: 500;
}

.quizQuestionList {
  display: flex;
  flex-direction: column;
  margin: 0 0 0 20px;
  gap: 15px;
}

.quizChoiceBox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #222;
}
.quizChoiceBox span {
  cursor: pointer;
}

.quizChoiceBox input[type=radio] {
  appearance: none;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background-image: url(/img/occasion/kidsQuiz/checkOff.png);
  background-size: cover;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quizChoiceBox input[type=radio]:checked {
  background-image: url(/img/occasion/kidsQuiz/checkOn.png);
}

.quizChoiceBox:has(input[type=radio]:checked) {
  color: #ff6325;
  font-weight: 500;
}


/* OX형 */
.quizOXList {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 0 0 0;
}
.quizOBox {
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 80px;
  font-weight: 900;
  color: #0077ff;
  cursor: pointer;
}
.quizOBox:has(input:checked) {
  background-color: #e5f1ff;
  border: 1px solid #0077ff;
}

.quizXBox {
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 80px;
  font-weight: 900;
  color: #ff0800;
  cursor: pointer;
}
.quizXBox:has(input:checked) {
  background-color: #ffe8e5;
  border: 1px solid #ff0800;
}

.quizOXList input[type=radio] {
  display: none;
}

/* 주관식 */
.quizAnswerList {
  margin: 0;
}

.answerBox textarea {
  width: 100%;
  min-height: 150px;
  border: none;
  resize: none;
  background-color: transparent;
  padding: 15px;
  font-size: 15px;
  color: #222;
  background-color: #fffaf2;
  border-radius: 4px;
}

.answerBox textarea::-webkit-scrollbar {
    display: none;
}

.answerBox textarea:read-only {
  cursor: default;
}


/* 퀴즈 문제 */
.quizQuestionBox {
  width: 100%;
  max-width: 1000px;
  min-height: 350px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 20px;
  margin: 20px 0 0 0;
}

/* ----------------------------- */
/* Responsive: quiz pages (quizAll.css)
   Breakpoints: 1440px, 1024px, 800px, 600px
*/

@media (max-width: 1440px) {
  .kidsQuizArt {
    margin: 8% auto 10%;
    max-width: 1200px;
    gap: 50px;
  }

  .quizTitImg {
    max-width: 240px;
  }

  .quizTit h2 {
    font-size: 23px;
  }

  .quizQuestionBox {
    width: 90%;
    min-height: 320px;
  }

  .quizQuestionNo {
    width: 60px;
    height: 40px;
    font-size: 14px;
  }

  .quizOBox, .quizXBox {
    width: 140px;
    height: 140px;
    font-size: 72px;
  }

  .answerBox textarea {
    min-height: 130px;
  }
}

@media (max-width: 1024px) {
  .kidsQuizArt {
    max-width: 900px;
    gap: 40px;
  }

  .quizTitImg {
    width: 35%;
    max-width: 220px;
  }

  .quizTit h2 {
    font-size: 22px;
  }


  .quizQuestionNo {
    width: 60px;
    height: 38px;
  }

  .quizQuestionBox {
    min-height: 300px;
    padding: 16px;
  }

  .quizChoiceBox {
    font-size: 14px;
  }

  .quizOBox, .quizXBox {
    width: 120px;
    height: 120px;
    font-size: 64px;
  }

  .answerBox textarea {
    min-height: 120px;
  }

}

@media (max-width: 800px) {
  .kidsQuizArt {
    gap: 30px;
    margin: 10% auto 15%;
  }
  .quizTit h2 {
    font-size: 21px;
  }



  .quizQuestionBox {
    min-height: 260px;
    padding: 14px;
  }

  .quizQuestionNo {
    width: 56px;
    height: 36px;
    font-size: 13px;
  }

  .quizQuestionText {
    font-size: 15px;
  }

  .quizChoiceBox {
    font-size: 14px;
  }

  .quizOBox, .quizXBox {
    width: 100px;
    height: 100px;
    font-size: 56px;
  }

  .answerBox textarea {
    font-size: 13px;
  }

  .quizQuestionList {
    margin: 0 0 0 10px;
  }

  .quizTitSub {
    font-size: 14px;
  }

  .timeOverImg {
    width: 120px;
  }
  .waitTextTit {
    font-size: 16px;
  }
  .waitTextTxt {
    font-size: 13px;
    word-break: keep-all;
  }

  .mainGoBtn {
    width: 100px;
    height: 35px;
    font-size: 13px;
  }
  .quizMoreBtn {
    width: 100px;
    height: 35px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .kidsQuizArt {
    gap: 30px;
  }

  .quizTitImg {
    width: 50%;
    max-width: 180px;
  }

  .quizTit h2 {
    font-size: 18px;
  }

  .quizTitIcon {
    left: -6%;
  }

  .quizQuestionBox {
    min-height: 220px;
    padding: 12px;
  }

  .quizQuestionNo {
    width: 48px;
    height: 34px;
    font-size: 12px;
  }

  .quizQuestionText {
    font-size: 14px;
  }

  .quizChoiceBox {
    font-size: 13px;
  }

  .quizOXList {
    gap: 12px;
  }



  .quizOBox, .quizXBox {
    width: 84px;
    height: 84px;
    font-size: 44px;
  }

  .answerBox textarea {
    min-height: 80px;
  }

  .quizBottomBtns {
    justify-content: center;
  }
}



