@charset "utf-8";
@import url(./reset.css);
@import url(./font.css);
@import url(./viewer.css);

/* 공통 */
* {
  -ms-user-select: none;
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  box-sizing: border-box;
  touch-action: pan-y;
}
body {
  position: relative;
  width: 100%;
  height: 100%;
  font-weight: 700;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

#wrap {
  position: absolute;
  width: 1920px;
  height: 1080px;
  padding: 0px 0px 0px;
  font-size: 65px;
  font-weight: inherit;
  color: #000;
  text-align: center;
  background: #fff;
  top: 0 !important;
  left: 50%;
  transform: translateX(-50%);
}

#wrap.block {
  /* pointer-events: none; */
}
.d-none{
  display: none;
}

#container {
  position: relative;
  display: inline-block;
  width: 100%;
  height: calc(100%);
  text-align: center;
  overflow: hidden;
  background-color: #FCFFF0;
  top: 0px;
  padding: 65px 207px 0;
}

/* 스크롤바 기본 설정 */
::-webkit-scrollbar {
  width: 24px; /* 스크롤바 전체 너비 */
  height: 24px; /* 가로 스크롤바 높이 */
}

/* 트랙 스타일 */
::-webkit-scrollbar-track {
  background: #fff; /* 트랙 색상 */
  border: 1px solid #C7C7C7;
  border-radius: 100px;
}

/* 스크롤바(손잡이) 스타일 */
::-webkit-scrollbar-thumb {
  background: #ededed url(../img/scroll-deco.png) no-repeat center / 14px 11px; /* 손잡이 색상 */
  border-radius: 100px; /* 손잡이 둥근 모서리 */
  border: 1px solid #9C9C9C;
}

button > a{
  width: 100%;
  height: 100%;
}

/* header */
.header{
  display: flex;
  align-items: center;
  position: relative;
}
.header::after{
  content: '';
  display: block;
  width: 171px;
  height: 203.5px;
  background: url(../img/bg-deco.png) no-repeat center / 100%;
  position: absolute;
  top: -65px;
  right: 218px;
}
.head-tit{
  width: 183px;
  height: 150px;
  background: url(../img/tit.png) no-repeat center / 100%;
  position: absolute;
  bottom: -28px;
  left: 0;
  z-index: 3;
}
.header .tab{
  display: flex;
  align-items: end;
  margin-left: 154px;
}
.tab-btn{
  font-family: 'BMHANNA';
  font-size: 35px;
  color: #696969;
  background: #E1E1E1;
  border-radius: 33px 33px 0 0;
  width: 297px;
  height: 69px;
  box-shadow: 0 4px 4px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.tab-btn.on{
  box-shadow: 0px 6px 9px 8px #3D7E2526;
  border-bottom: 0;
  width: 368px;
  height: 84px;
  font-size: 45px;
}
.tab-btn1.on{
  color: #006765;
  background: #F2FECC;
  border: 8px solid #CFE880;
}
.tab-btn2.on{
  color: #401C09;
  background: #FFF4CA;
  border: 8px solid #FFE270;
}
.page-num{
  font-family: 'Pretendard';
  font-weight: 600;
  font-size: 35px;
  color: #606060;
  background: #E9EFD6;
  border-radius: 100px;
  width: 233px;
  padding: 10px 0;
  text-align: center;
  margin-left: auto;
}

/* tab contents */
.tab-contents{
  height: 100%;
  position: relative;
  z-index: 2;
}
.tab-contents .tab{
  width: 100%;
  height: 100%;
  border-radius: 40px 40px 0 0 ;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
}
.tab-contents .tab.on{
  display: block
}
.tab-contents .tab.tab1{
  background: #CFE880;
  box-shadow: 8px 29px 0px 9px #E9EFD6;
}
.tab-contents .tab.tab2{
  background: #FFE270;
  box-shadow: 8px 29px 0px 9px #F8F1D2;
}
.tab-title-wrap{
  height: 104px;
  padding: 0 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tab-title-wrap h2{
  font-family: 'Pretendard';
  font-weight: 700;
  font-size: 45px;
  text-align: left;
  letter-spacing: 0.02em;
}
.tab.tab1 .tab-title-wrap h2{
  color: #006765;
}
.tab.tab2 .tab-title-wrap h2{
  color: #401C09;
}
.tab-inner{
  margin: 0 10px;
  background: #fff;
  height: 100%;
}
.tab-content-wrap{
  padding: 45px 42px 0 ;
  position: relative;
}
.tab2 .tab-inner[data-idx="2-2"] .tab-content-wrap{
  padding: 45px 15px 0 42px ;
}
.scroll-wrap{
  /* height: 723px; */
  height: 693px;
  overflow-y: scroll;
}
.tab-cont-img{
  position: relative;
}


/* 버튼 */
.btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-download{
  width: 71px;
  height: 71px;
  margin-top: 10px;
}
.tab1 .btn-download{
  background: url(../img/btn-download1.png) no-repeat center / 100%;
}
.tab2 .btn-download{
  background: url(../img/btn-download2.png) no-repeat center / 100%;
}

.tab-cont-btns{
  /* width: 100%; */
  width: calc(100% - 20px);
  height: 80px;
  background: #F5F5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 70px;
  position: absolute;
  bottom: 82px;
  left: 50%;
  transform: translateX(-50%);
}
.tab-cont-btns2{
  background: transparent;
  width: auto;
}
.tab2 .tab-cont-btns{
  margin-top: 10px;
}
.btn-answer{
  width: 198px;
  height: 63.5px;
  background: url(../img/btn-answer.png) no-repeat center / 100%;
}
.btn-reset{
  display: none;
  width: 198px;
  height: 63.5px;
  background: url(../img/btn-reset.png) no-repeat center / 100%;
}
.btn-answer,.btn-reset{
  position: absolute;
  top: 50%;
  right: 70px;
  transform: translateY(-50%);
}
.tab-inner.done .btn-answer{
  display: none;
}
.tab-inner.done .btn-reset{
  display: block;
}
.tab-btn-wrap{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.tab-btn-s {
  width: 144px;
  height: 63.5px;
  background: url(../img/btn-tab.png) no-repeat center / 100%;
  font-size: 30px;
  font-family: 'Pretendard';
  font-weight: 700;
  color: #949494;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding-bottom: 5px;
  
}
.tab-btn-s span{
  color: #fff;
  font-size: 25px;
  font-family: 'Pretendard';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 32px;
  width: 32px;
  height: 32px;
  background: #949494;
  border-radius: 50%;
  padding-top: 5px;
  pointer-events: none;
  padding-bottom: 6px;
}

.tab-btn-s.on{
  background-image: url(../img/btn-tab-on.png);
  color: #BE6F8D;
}
.tab-btn-s.on span{
  background: #BE6F8D;
}

.answer-box-wrap{
  position: absolute;
  top: 0;
  left: 0;
  /* width: 100%;
  height: 100%; */
}
.answer-box {
  height: 59px;
  border: 3px solid #7DB2D4;
  border-radius: 10px;
  background: #fff;
  position: absolute;
  box-shadow: 0px 4px 4px 0px #0000002E;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: all 0.1s ease-in-out;
}
.answer-box.done{
  opacity: 0;
}
.answer-box::after{
  content: '';
  display: block;
  width: 42.5px;
  height: 42px;
  background: url(../img/answerbox.png) no-repeat center / 100%;
}
.katex{
  font-family: 'KaTeX_Main';
}

@media (orientation: portrait) {
  #wrap{
    top: 0 !important;
    left: 0;
    transform: translateX(0);
  }
  #container{
    overflow: visible;
    transform: scale(1.2);
    transform-origin: top center;
  }
  .tab-contents .tab{
    height: auto;
  }
  .scroll-wrap{
    height: auto;
    overflow-y: auto;
    padding-right: 24px;
  }
  .tab-cont-btns{
    position: static;
    width: 100%;
    transform: translate(0);
  }
  .tab1 .tab-cont-btns{
    width: calc(100% - 20px);
    margin: 0 auto;
  }
  .tab-cont-btns2{
    width: auto;
    position: absolute;
    transform: translateX(-50%);
    bottom: 0;
  }
}