/* COMMON */
:root {
  --main-color: #4ECDC4;
}

body {
  background: #f4fffc;
}

#wrap {
  margin-bottom: 8.4rem;
}

.inner {
  width: 100%;
  padding: 0 1.6rem;
  margin: 0 auto;
}

main {
  margin-top: 8.8rem;
  padding: 1rem 0 3rem;
}

/* HEADER */
header {
  text-align: center;
  padding: 2rem 0;
  position: fixed;
  top: 0;
  left: 0;
  background: #fff;
  z-index: 99;
  width: 100%;
  background: #f4fffc;
}
header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.4rem;
}
header .logo {
  display: inline-block;
  width: 4.8rem;
}
header .logo img {
  width: 100%;
}
header .menu {
  width: 2.8rem;
  aspect-ratio: 1 / 1;
}
header .menu img {
  width: 100%;
}

/* FOOTER */
footer {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  background: #fff;
  z-index: 999;
  border-top: 1px solid var(--main-color);
  background: #f4fffc;
}
footer ul {
  display: flex;
  justify-content: space-evenly;
  gap: 2rem;
}
footer ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  padding: 1.3rem 0;
}
footer ul li a img {
  width: 3rem;
  aspect-ratio: 1 / 1;
}
footer ul li a p {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--main-color);
  white-space: nowrap;
}
footer ul li.active a p {
  color: #1EA79D;
}

/* home.php */
.home .state_wrap {
  background: #fff;
  padding: 2.4rem;
  border-radius: 3rem;
  box-shadow: 0px 0px 8px 0px #0000001A;
  margin-bottom: 1.6rem;
}
.home .state_wrap h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
}
.home .state_wrap .study_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.home .state_wrap .study_wrap p {
  font-size: 2.4rem;
  font-weight: 700;
  white-space: nowrap;
}
.home .state_wrap .study_wrap p b {
  color: var(--main-color);
}
.home .state_wrap .study_wrap .circle {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  flex-shrink: 0;
}
.home .state_wrap .study_wrap .circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.home .state_wrap .study_wrap .circle circle {
  fill: none;
  stroke-width: 12;
}
.home .state_wrap .study_wrap .circle .circle_bg {
  stroke: #d7f3ed;
}
.home .state_wrap .study_wrap .circle .circle_bar {
  stroke: var(--main-color);
  stroke-linecap: round;
  transition: stroke-dashoffset .6s ease;
}
.home .state_wrap a {
  display: block;
  width: 100%;
  padding: 2rem 0;
  text-align: center;
  background-color: var(--main-color);
  color: #fff;
  margin-top: 3rem;
  font-size: 2rem;
  font-weight: 600;
  border-radius: 3rem;
}
.home .today_wrap {
  background: #fff;
  padding: 2.4rem;
  border-radius: 3rem;
  box-shadow: 0px 0px 8px 0px #0000001A;
  margin-bottom: 4rem;
}
.home .today_wrap .title_wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2.2rem;
}
.home .today_wrap .title_wrap h2 {
  font-size: 1.8rem;
  font-weight: 600;
}
.home .today_wrap .title_wrap .bv_box {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.home .today_wrap .sentence_wrap {
  margin-bottom: 2.4rem;
}
.home .today_wrap .sentence_wrap p {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .8rem;
}
.home .today_wrap .sentence_wrap span {
  display: block;
  font-size: 1.6rem;
  line-height: 1.3;
}
.home .today_wrap .more_btn {
  display: block;
  width: 100%;
  padding: 2rem 0;
  text-align: center;
  border: 1px solid var(--main-color);
  color: var(--main-color);
  margin-top: 3rem;
  font-size: 2rem;
  font-weight: 600;
  border-radius: 3rem;
}
.home .category_wrap {
  margin-bottom: 4rem;
}
.home .category_wrap h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
}
.home .category_wrap ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.home .category_wrap ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 2.5rem;
  padding: 2rem 2.7rem;
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow: 0px 0px 8px 0px #0000001A;
}
.home .learning_wrap h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
}
.home .learning_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.home .learning_wrap ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 2.5rem;
  padding: 2.6rem 2.4rem;
  box-shadow: 0px 0px 8px 0px #0000001A;
}
.home .learning_wrap ul li a p {
  font-size: 1.8rem;
  font-weight: 600;
}
.home .learning_wrap ul li a .status {
  font-size: 1.8rem;
  font-weight: 700; 
}
.home .learning_wrap ul li a .status .current {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--main-color);
}

/* category.php */
.category .search_wrap .inner,
.category .search_wrap .search_inner {
  display: flex;
  align-content: center;
  background: #e0efeb;
  border-radius: 3rem;
  padding: 1.5rem 2.4rem;
  margin-bottom: 2.4rem;
}
.category .search_wrap input[type="text"] {
  width: 100%;
  font-size: 2rem;
  font-weight: 500;
  outline: none;
  border: 0;
  background: transparent;
  padding: 0 1.8rem;
}
.category .list_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.category .list_wrap ul li a {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  background: #fff;
  border-radius: 2.5rem;
  box-shadow: 0px 0px 8px 0px #0000001A;
  padding: 2.5rem 3rem;
}
.category .list_wrap ul li a .text_wrap h2 {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.category .list_wrap ul li a .text_wrap p {
  font-size: 1.4rem;
}
.category .list_wrap ul li a .text_wrap p b {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--main-color);
}
.category .list_wrap ul li a .arrow {
  margin-left: auto;
}

/* list.php */
.list .title_wrap {
  margin-bottom: 2.5rem;
}
.list .title_wrap .title_box {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2.5rem;
}
.list .title_wrap .title_box a {
  display: block;
  width: 3rem;
  aspect-ratio: 1 / 1;
}
.list .title_wrap .title_box h1 {
  font-size: 2.8rem;
  font-weight: 700;
}
.list .title_wrap .filter_wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
}
.list .title_wrap .filter_wrap button,
.list .title_wrap .filter_wrap a {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 2rem;
  padding: .8rem 1.2rem;
  border: 1px solid #1ea79d;
  color: #1EA79D;
  text-decoration: none;
}
.list .title_wrap .filter_wrap button.active,
.list .title_wrap .filter_wrap a.active {
  background: #1ea79d;
  color: #fff;
}
.list .list_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.list .list_wrap ul li a {
  display: block;
  width: 100%;
  background: #fff;
  border-radius: 2.5rem;
  box-shadow: 0px 0px 8px 0px #0000001A;
  padding: 2rem 2.5rem;
}
.list .list_wrap ul li a .top_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.3rem;
}
.list .list_wrap ul li a .top_wrap .tag_wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.list .list_wrap ul li a .top_wrap .tag_wrap span {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  border: 1px solid #5a6a79;
  border-radius: 2rem;
  padding: .8rem 1.2rem;
}
.list .list_wrap ul li a .top_wrap .tag_wrap span.diff {
  border: 1px solid #1EA79D;
  color: #1EA79D;
}
.list .list_wrap ul li a .top_wrap .bv_wrap {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.list .list_wrap ul li a .eng {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .8rem;
  word-break: keep-all;
}
.list .list_wrap ul li a .kor {
  font-size: 1.6rem;
  line-height: 1.3;
  word-break: keep-all;
}
.list .list_wrap ul li.done a {
  border: 1px solid var(--main-color);
  background: #e4fff9;
}
.list .list_wrap ul li.done a .top_wrap .tag_wrap span.state {
  background: #1ea79d;
  border: 1px solid #1ea79d;
  color: #fff;
}
.list .list_wrap ul li.wrong a {
  border: 1px solid #FF6B6B;
  background: #FFE6E4;
}
.list .list_wrap ul li.wrong a .top_wrap .tag_wrap span.state {
  background: #FF6B6B;
  border: 1px solid #FF6B6B;
  color: #fff;
}
.list .list_wrap ul li.wrong a .top_wrap .tag_wrap span.diff {
  border: 1px solid #FF6B6B;
  color: #FF6B6B;
}
.list .list_wrap.empty p {
  font-size: 1.6rem;
  font-weight: 500;
  text-align: center;
  color: #5a6a79;
  padding: 8rem 0;
  line-height: 1.8;
}

/* detail.php */
.detail {
  padding-top: 0;
}
.detail .title_wrap {
  box-shadow: 0px 4px 8px 0px #1E67621A;
  position: relative;
  background: #F4FFFC;
  padding: 0 .8rem 2.4rem;
}
.detail .title_wrap .title_box {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 4rem;
  position: relative;
}
.detail .title_wrap .title_box h1 {
  font-size: 2.8rem;
  font-weight: 700;
}
.detail .title_wrap .title_box .bar_wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
  margin-left: auto;
}
.detail .title_wrap .title_box .bar_wrap p {
  font-size: 1.8rem;
  font-weight: 600;
}
.detail .title_wrap .title_box .bar_wrap p b {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--main-color);
}
.detail .title_wrap .title_box .bar_wrap .bar {
  width: 10rem;
  height: .5rem;
  border-radius: 5rem;
  background: #d7f3ed;
  position: relative;
}
.detail .title_wrap .title_box .bar_wrap .bar .gage {
  width: 50%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: var(--main-color);
  border-radius: 5rem;
}
.detail .title_wrap .sentence_wrap {
  margin-bottom: 2.4rem;
}
.detail .title_wrap .sentence_wrap p {
  font-size: 4rem;
  font-weight: 700;
  line-height: 5rem;
  margin-bottom: .8rem;
}
.detail .title_wrap .sentence_wrap span {
  font-size: 2.4rem;
  line-height: 1.5;
  word-break: keep-all;
}
.detail .title_wrap .bv_wrap {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.detail .teach_wrap {
  background: #fff;
  padding-top: 3rem;
}
.detail .teach_wrap .info_box {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: 3rem;
}
.detail .teach_wrap .info_box p {
  font-size: 1.4rem;
  color: #5a6a79;
  word-break: keep-all;
  line-height: 1.5;
}
.detail .teach_wrap .sub_wrap h2 {
  font-size: 1.8rem;
  font-weight: 600;
  padding: 0 .8rem 1.6rem .8rem;
  border-bottom: 1px solid #ccd3d1;
}
.detail .teach_wrap .sub_wrap ul li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem .8rem;
  border-bottom: 1px solid #ccd3d1;
}
.detail .teach_wrap .sub_wrap ul li p {
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.3;
}
.detail .teach_wrap .sub_wrap ul li span {
  font-size: 1.8rem;
  color: #5a6a79;
  line-height: 1.3;
}
.detail .teach_wrap .sub_wrap.sentence {
  margin-top: 5rem;
}
.detail .teach_wrap .sub_wrap.sentence ul li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.detail .btn_wrap {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.detail .btn_wrap button {
  display: block;
  width: 100%;
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  border: 1px solid var(--main-color);
  color: var(--main-color);
  padding: 2rem 0;
  border-radius: 3rem;
  margin-top: 4rem;
}
.detail .btn_wrap button.learn {
  background: var(--main-color);
  color: #fff;
}
.detail .btn_wrap button.done {
  background: #ccc;
  border: 1px solid #ccc;
}

/* wrong.php */
.wrong .title_wrap {
  background: #FFF4F4;
}
.wrong .btn_wrap button {
  background: #FF6B6B;
  border: 1px solid #FF6B6B;
  color: #fff;
}

/* complete.php */
.complete .date {
  font-size: 1.2rem;
  color: #5a6a79;
  position: absolute;
  bottom: 2.4rem;
  right: 1.6rem;
}
.complete .btn_wrap button {
  background: var(--main-color);
  border: 1px solid var(--main-color);
  color: #fff;
}

/* setting.php */
.setting h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 4rem;
}
.setting .setting_box {
  padding: 0 .8rem 4.5rem;
  border-bottom: 1px solid #ccd3d1;
  margin-bottom: 4rem;
}
.setting .setting_box h2 {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 4rem;
}
.setting .setting_box ul {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
.setting .setting_box ul li,
.setting .setting_box ul li a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.setting .setting_box ul li h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #5a6a79;
}
.setting .setting_box ul li .adjust_wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.setting .setting_box ul li .adjust_wrap button img {
  width: 2.4rem;
}
.setting .setting_box ul li .adjust_wrap button.disabled img {
  filter: grayscale(100%) brightness(1.3);
  opacity: .4;
}
.setting .setting_box ul li .adjust_wrap p {
  font-size: 2rem;
  font-weight: 700;
  color: #1ea79d;
  width: 6.7rem;
  text-align: center;
}
.setting .setting_box:last-of-type {
  margin-bottom: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

/* prepare.php */
.prepare {
  height: calc(100dvh - 20.5rem);
}
.prepare .inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 2.4rem;
}
.prepare .text_wrap {
  padding-top: 8rem;
}
.prepare .text_wrap h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 4rem;
}
.prepare .text_wrap p {
  font-size: 2rem;
  line-height: 3rem;
}
.prepare .start {
  display: block;
  width: 100%;
  background: var(--main-color);
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
  padding: 2rem 0;
  border-radius: 3rem;
  text-align: center;
  margin-top: auto;
}

/* quiz.php */
.quiz .title_wrap {
  box-shadow: none;
}
.quiz .title_wrap .sentence_wrap .empty {
  text-decoration: underline;
  color: transparent;
  text-decoration-color: #000;
}
.quiz .option_wrap {
  padding-top: 1rem;
}
.quiz .option_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.quiz .option_wrap ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.8rem;
  font-weight: 600;
  padding: 2.4rem 2.8rem;
  background: #fff;
  border-radius: 2.5rem;
  box-shadow: 0px 0px 8px 0px #0000001A;
  cursor: pointer;
  word-break: keep-all;
  line-height: 1.3;

}
.quiz .option_wrap .next_btn {
  display: block;
  width: 100%;
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  padding: 2rem 0;
  border-radius: 3rem;
  color: #fff;
  background: #ccc;
  margin-top: 4rem;
  pointer-events: none;
}
.quiz .option_wrap .next_btn.active {
  background: var(--main-color);
  pointer-events: auto;
}
.quiz .option_wrap ul li.correct {
  border: 1px solid var(--main-color);
  background: #e4fff9;
}
.quiz .option_wrap ul li.wrong {
  border: 1px solid #FF6B6B;
  background: #FFE6E4;
}

/* result.php */
.result .result_wrap {
  background: #fff;
  padding: 2.4rem;
  border-radius: 3rem;
  box-shadow: 0px 0px 8px 0px #0000001A;
  margin-bottom: 4rem;
}
.result .result_wrap h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2.8rem;
}
.result .result_wrap p {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 2.8rem;
}
.result .result_wrap p b {
  color: var(--main-color);
}
.result .result_wrap a {
  display: block;
  width: 100%;
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  padding: 2rem 0;
  border-radius: 3rem;
  background: var(--main-color);
  text-align: center;
}
.result .list_wrap h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
}
.result .list_wrap ul li.correct a {
  border: 1px solid var(--main-color);
  background: #e4fff9;
}
.result .list_wrap ul li.correct a .top_wrap .tag_wrap .state {
  background: #1ea79d;
  border: 1px solid #1ea79d;
  color: #fff;
}
.result .list_wrap .back_btn {
  display: block;
  width: 100%;
  padding: 2rem 0;
  border-radius: 3rem;
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  background: var(--main-color);
  text-align: center;
  margin-top: 4rem;
}

/* service.php */
.service .title_box {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2.5rem;
}
.service .title_box a {
  display: block;
  width: 3rem;
  aspect-ratio: 1 / 1;
}
.service .title_box h1 {
  font-size: 2.8rem;
  font-weight: 700;
}
.service .content_wrap {
  padding: 0 .8rem;
}
.service .content_wrap p {
  font-size: 1.6rem;
  color: #5A6A79;
  line-height: 2.4rem;
}
.service .content_wrap p span {
  font-size: 1.8rem;
  font-weight: 600;
  color: #5A6A79;
}
.service .content_wrap p b {
  font-weight: 600;
}