
.test_total_wrap{
  margin-bottom: 50px;
}

.name_area {
  margin: 0 auto;
}


.test_board{
  padding: 0 !important;
  min-height: 400px;

   /* 플렉스 컨테이너 설정 */
   display: flex;
   flex-direction: column;  /* 세로(수직) 방향으로 쌓기 */
   align-items: center;     /* 수평 중앙 정렬 */
   justify-content: center; /* 수직 중앙 정렬 (부모 높이가 확보되어야 효과가 있음) */
 
   /* 필요에 따라 높이 지정 (예: 화면 중앙에 두고 싶다면) */
   min-height: 400px;       /* 예시 값, 상황에 맞춰 조절 */
   
   /* 요소 사이 간격 */
   gap: 20px;    
}

.start_btn{
  height: 60px;
  display: inline-block;
  width: 100%;
  /* width: 240px;
  margin: 20px 20px 20px 20px; */
  padding: 14px 0;
  border-radius: 10px;
  font: 500 22px 'noto';
  color: #FFF;
  line-height: 1.4;
  text-decoration: none;
  border-width: 0px;
  margin-top: 30px;
  background: #ff5200
}

.input_level{
  height: 60px;
  margin-bottom: 10px;
  font-size: 20px;
}

.question-area{
  /* width: 100%; */
  /* padding: 20px 60px; */
  margin: 0 auto;
  background-color: #FFF; 
}

.level_question{
  text-align:center
}


#test_progress{
  margin-top: 2px;
}

.q_img {
  height: 200px;
}

.radio_option > img {
  object-fit: cover;  /* 이미지를 잘라서라도 가득 채움 */
  object-position: center; /* 이미지 위치를 중앙으로 */
}

.level-problem{
  /* margin-top: 5rem;
  margin-bottom: 4rem; */
}

.test_btn{
  width: 120px!important;
}


.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}
/* 각 셀: 이미지와 버튼 그룹을 가로 배치 */
.grid-item {
  display: flex;                /* 플렉스 컨테이너로 설정 */
  flex-direction: column;       /* 수직(세로) 배치 */
  align-items: center;          /* 자식 요소들을 가로 방향으로 가운데 정렬 */
  justify-content: center;      /* 필요 시 세로 방향 가운데 정렬도 가능 */
  position: relative;           /* 이미지 위에 버튼을 덮기 위해 상대 위치 지정 */
  /* border: 1px solid #ccc; */
  /* padding-bottom: 10px; */
  box-sizing: border-box;
}
/* 이미지 크기 예시 */
.grid-item img {
  width: 230px;
  height: auto;
}
/* YES/NO 버튼 그룹: 세로 배치 */
.yn_btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-top: 5px;
  gap: 10px;
}
/* 버튼 기본 스타일 (회색 배경) */
.yn_btn button {
  font-size: 17px;
  width: 80px;
  height: 40px;
  cursor: pointer;
  background-color: #ccc; /* 기본 회색 */
  color: #757474;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.2s;
}
/* 버튼이 선택되었을 때 (파란색 배경) */
.yn_btn button.selected {
  background-color: #007BFF; /* 파란색 */
  color: #fff;
}

.level_test_container{
  /* margin: 0 auto; */
  width: 800px;
}

.width_800{
  margin: 0 auto;
  width: 800px;
}

.extra_btn {
  display: flex;                /* 플렉스 컨테이너로 설정 */
  flex-direction: column;       /* 수직(세로) 배치 */
  align-items: center;          /* 자식 요소들을 가로 방향으로 가운데 정렬 */
  justify-content: center;      /* 필요 시 세로 방향 가운데 정렬도 가능 */

}

.play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #007BFF;
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.record-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: red;
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}


.play-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}


.hidden {
  display: none;
}

.play-btn.playing::after {
  content: "Playing...";
  font-size: 12px;
  color: #fff;
  display: block;
  margin-top: 5px;
}



.level-testing {
  max-width: 780px;
  margin: 20px 0;
  outline: 0;
}

.level-question {
  text-align: center;
  /* margin-bottom: 2rem;
  letter-spacing: -0.08rem; */
}
.lt_card{
  margin: 0 8px 0 8px;
  height: 270px;
  position: relative;
  background-color: #ced5d9;
  border: 5px solid rgba(255, 255, 255, 0.538);
  border-radius: 5px;
}

.option_4{
  width: 25%;
  
  /* width: 50px; */
}

.option_3{
  width: 33.3%;
}

.lt_card.is_low{
  height: 130px!important;
}

.options-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4개 열, 각각 너비 1fr */
  gap: 10px; /* 각 칸 사이의 간격 */
  max-width: 1200px; /* 예시 최대 너비 */
  margin: 0 auto;    /* 수평 중앙 정렬 */
  padding: 20px;
}

/* 각 옵션 div: 세로 비율을 고정하고 이미지가 가득 차도록 함 */
.option {
  /* aspect-ratio를 사용하면, div의 세로 비율을 고정 가능 (예: 9:16 세로로 긴 비율) */
  /* aspect-ratio: 9 / 16; */
  overflow: hidden; /* 이미지가 div 범위를 벗어나지 않도록 */
  background-color: #f1f1f1; /* 이미지가 로드되지 않았을 때의 배경색 (옵션) */
  position: relative; /* 이미지 위에 텍스트를 덮기 위해 상대 위치 지정 */
}

/* 이미지가 부모 .option div를 꽉 채우도록 설정 */
.option img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* div를 가득 채우되 이미지 비율 유지, 넘치는 부분은 잘림 */
  object-position: center;
  display: block;      /* 이미지 주변 여백 제거(브라우저 기본 inline 속성 해제) */
}




.is_checked::before{
  /* font-family: 'Font Awesome 5 Free'; */
  font-weight: 900;
  content: '\2713';
  display: inline-block;
  font-family: "icon";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  text-decoration: none;
  text-transform: none;
  position: absolute;
  top: 14px;
  left: 50%;
  margin-left: -1.5rem;
  margin-top: -3.5rem;
  z-index: 10;
  color: #C10A11;
  font-size: 5rem;
  line-height: 1;
  text-align: center;
}

.num {
  width: 26px;
  height: 26px;
  line-height: 20px;
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  z-index: 5;
  color: #231F20;
  font-size: 1.4rem;
  font-family: "Roboto", sans-serif;
  text-align: center;
  display: block;
  margin: 0 auto;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  -webkit-box-shadow: 0 1px 1px rgb(46 42 43 / 25%);
  -moz-box-shadow: 0 1px 1px rgba(46, 42, 43, 0.25);
  box-shadow: 0 1px 1px rgb(46 42 43 / 25%);
  background-color: #fff;
  top: 3%;
  border: 1px solid rgba(35, 31, 32, 0.3);
}

.lt_bar .num{
  top: 12px!important;
  left: 10px!important;
  right: auto!important;
}

.lt_bar.is_checked::before{
  /* font-family: 'Font Awesome 5 Free'; */
  font-weight: 900;
  content: '\2713';
  display: inline-block;
  font-family: "icon";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  text-decoration: none;
  text-transform: none;
  position: absolute;
  top: -21px;
  left: 2rem;
  margin-left: -1.5rem;
  margin-top: -0.5rem;
  z-index: 10;
  color: #C10A11;
  font-size: 5rem;
  line-height: 1;
  text-align: center;
}



/* 1) 이미지+버튼 겹치기 위한 컨테이너 */
.image-grid-container {
  position: relative;     /* 자식 요소(button)들을 절대 위치로 배치하기 위해 relative 사용 */
  width: 600px;           /* 예시: 컨테이너 가로 크기 (필요에 따라 조절) */
  display: inline-block;  /* 크기를 컨텐츠에 맞추어 감싸도록 설정 */


}

/* 2) 이미지 */
.image-grid-container img {
  display: block;         /* 이미지 주변 여백 제거 */
  width: 100%;            /* 컨테이너 너비에 맞춰 자동 확대/축소 */
  height: auto;           /* 비율 유지 */
}

/* 3) 격자로 배치되는 버튼 */
.grid-button {
  position: absolute;     /* 이미지 위에 겹치기 */
  background-color: rgba(0, 0, 255, 0.2); /* 파란색 반투명(디버깅용) */
  border: 1px solid #ccc;
  cursor: pointer;
}

/* 4) 버튼 9개를 3×3 형태로 배치
   - top, left, width, height를 33.333% 단위로 나누어 설정
   - 예시로 nth-of-type(1)은 첫 번째 버튼, (2)는 두 번째 버튼, ... 순서대로 지정
*/
.grid-button:nth-of-type(1) {
  top: 0; left: 0;
  width: 33.333%; height: 33.333%;
}
.grid-button:nth-of-type(2) {
  top: 0; left: 33.333%;
  width: 33.333%; height: 33.333%;
}
.grid-button:nth-of-type(3) {
  top: 0; left: 66.666%;
  width: 33.333%; height: 33.333%;
}

.grid-button:nth-of-type(4) {
  top: 33.333%; left: 0;
  width: 33.333%; height: 33.333%;
}
.grid-button:nth-of-type(5) {
  top: 33.333%; left: 33.333%;
  width: 33.333%; height: 33.333%;
}
.grid-button:nth-of-type(6) {
  top: 33.333%; left: 66.666%;
  width: 33.333%; height: 33.333%;
}

.grid-button:nth-of-type(7) {
  top: 66.666%; left: 0;
  width: 33.333%; height: 33.333%;
}
.grid-button:nth-of-type(8) {
  top: 66.666%; left: 33.333%;
  width: 33.333%; height: 33.333%;
}
.grid-button:nth-of-type(9) {
  top: 66.666%; left: 66.666%;
  width: 33.333%; height: 33.333%;
}

.image-grid-container > button {
  background-color: transparent;

}

.image-grid{

  padding: 10px;
}

.padding_20{
  padding: 20px;
} 


.lt_bar{
  margin: 8px;
  width: 97%;
  height: 60px;
  position: relative;
  background-color: #ced5d9;
  border: 5px solid rgba(255, 255, 255, 0.538);
  border-radius: 5px;
}

.lt_word{
  background-color: #ced5d9;
  border: 5px solid rgba(245, 245, 245, 0.538);
  border-radius: 5px;
  margin: 5px 5px;
}

.read_text{
  font-size: 33px;
  text-align: center;
  padding: 20px;
}


.word_text, .word_text_br{
  background-color:#ced5d9;
  margin: 0px!important;
  border: 0!important;
  cursor: pointer;
}

.kor_sen{
  margin: 10px 0
}



.checkbox {
  position: relative;
  display: inline-block;
  white-space: normal;
  word-break: keep-all;
  word-wrap: break-word;
  margin-right: 0.5em;
}

.checkbox [type="checkbox"] + label {
  padding-left: 15px;
  padding-right: 15px;
  line-height: 50px;
}

.checkbox [type="checkbox"]:checked + label {
  color: #fff;
  /* padding: 10px 15px; */
  border: 0;
  background: #3C4557;
}

.checkbox [type="checkbox"]:checked + label:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  width: 25px;
  height: 25px;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  background-color: rgb(246, 207, 207);
  color: #231F20;
  -webkit-transform: translate(5px, -50%);
  -moz-transform: translate(5px, -50%);
  -ms-transform: translate(5px, -50%);
  -o-transform: translate(5px, -50%);
  transform: translate(5px, -50%);
}

.checkbox [type="checkbox"]:checked + label:after {
  content: '';
  position: absolute;
  right: 1px;
  top: -1px;
  left: auto;
  height: 2px;
  width: 12px;
  background-color: #231F20;
}

.level-checkbox-screen {
  min-height: 142px;
  color: #231F20;
  font-size: 30px;
  font-weight: bolder;
  font-family: "Roboto", sans-serif;
  line-height: 71px;
  text-align: left;
  background-image: url("/static/level_test/underline.b5654ab024e4.png");
  background-size: auto;
  background-position: 0 71px;
  background-repeat: repeat;
  word-break: keep-all;
  word-wrap: break-word;
  margin-bottom: 4rem;
}

.level-checkbox-screen span {
  display: inline-block;
  padding: 0 0.5rem 0;
}

.level-checkbox-screen i {
  width: 26px;
  height: 26px;
  line-height: 26px;
  margin-top: -3px;
  color: #231F20;
  font-size: 1.4rem;
  font-style: normal;
  text-align: center;
  vertical-align: middle;
  display: inline-block;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  border: 1px solid rgba(35, 31, 32, 0.3);
}

/* .lt_card img, .level-problem img{
  width:100%
} */

.score_num strong{
  color: #287473;
  font-size: 6rem;
  font-weight: normal;
}

.arrow_btns{
  margin-bottom: 20px;
}

#sheet_body div{
  font-size: 18px;
}

.answer_box .title {
  cursor: default;
  position: relative;
  width: 100%;
  padding: 20px;
  text-align: left;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 1.5rem;
  color: black;
  word-break: keep-all;
  word-wrap: break-word;
}


/* 헤더 스타일 */
.report-header {
  background-color: #58b0df; /* 상단 파란색 영역 */
  color: #fff;              /* 텍스트 색상 */
  padding: 20px;
  text-align: center;
  font-size: 33px;
  border-radius: 5px;       /* 모서리 둥글게 (선택사항) */
  margin-bottom: 20px;
  /* margin-top: 40px; */
  font-weight: bold;
}


.q_frame_border{
  border-color: #58b0df!important;
  /* .ts-card-wrap.ts-type-b */
}

/* 테이블 컨테이너 */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
  font-size: 20px;
}

.info-table th,
.info-table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

.info-table th {
  width: 30%;
  background-color: #f5f5f5; /* 헤더 셀 배경색 */
  font-weight: normal;
}

.section-title {
  font-weight: bold;
  margin: 47px 0 10px;
  font-size: 20px;
}

/* #result_paper{
  width: 100%;
} */


.answer_paper_table{
  /* width:1000px */
}

.answer_paper_table img{
  width: 50px;
}

.answer_paper_table tr{
  width: 50px;
  padding:10px;
}

.answer_paper_table td{
  width: 50px;
  padding:20px;
}



/* 점수 테이블 스타일 */
.score-table th,
.score-table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

.score-table thead {
  background-color: #f5f5f5;
}

/* 차트 섹션 스타일 */
.chart-section {
  margin-bottom: 20px;
}
.chart-section p {
  font-weight: bold;
  margin-bottom: 10px;
}
.radar-chart-placeholder {
  width: 300px;
  height: 300px;
  border: 1px dashed #999; /* 실제 차트 대신 표시용 */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.radar-chart-placeholder img {
  max-width: 100%;
  max-height: 100%;
}

/* 강조 표시용 (필요 시 사용) */
.highlight {
  font-weight: bold;
  color: #58b0df;
}

.section-title.width_100_percent{
  width: 100%;
}

#result_area p{
  font-size: 20px;
}

#result_area {
  padding: 40px 40px;
}

#spiderChart {
  display: block;
  margin: 0 auto; /* 중앙 정렬 */
  width: 550px;   /* 고정 너비 */
}

.score-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
  font-size: 20px;
}

.transparent_text{
  color: transparent!important;
  background-color: transparent!important;
}

.student_info_td{
  text-align: center!important;
}

@media print {
  body * {
    visibility: hidden !important;
  }
  #result_area, #result_area * {
    visibility: visible !important;
  }
  #result_area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}

.answer_paper_table {
  table-layout: fixed;
  width: 100%;
}
.answer_paper_table col:nth-child(1) { width: 6%; }
.answer_paper_table col:nth-child(2) { width: 66%; }
.answer_paper_table col:nth-child(3) { width: 20%; }
.answer_paper_table col:nth-child(4) { width: 8%; }


/* 행(tr) 잘리지 않게 */
tr.no-break {
  page-break-inside: avoid !important;
}

/* 표 크기 고정 */
.answer_paper_table {
  table-layout: fixed;
  width: 100%;
}
.answer_paper_table td, .answer_paper_table th {
  vertical-align: top;
  padding: 6px 6px 20px 6px;
}

.answer_paper_table tr {
  page-break-inside: avoid
}

.page-break-tr td {
  border-top: 0px solid #ffffff!important;
}




.page-break {
  page-break-before: always;
  height: 0;
}

.result_view{
  /* padding-top: 95px; */
}




.absolute_center_right{
  position: absolute;
  top: 125px;
  left: 50%; 
  transform: translateX(400px);
}