@charset "utf-8";

:root {
  --zoomX: 0;
  --zoomY: 0;
}

#view > article {display: none;}
#view[data-type="eBook"] #eBook, #view[data-type="lesson"] #lesson {display: block;}

#eBook {display: none;width: 100%;height: 100%;position: absolute;top: 0;left: 0;background-color: #e7e7e7;transform-origin: 0 0;z-index: 2;}
#bookWrap {margin: auto;width: fit-content;height: fit-content;position: absolute;inset: 0;}
#pages {display: flex;width: 1420px;height: 909px;box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.4);overflow: hidden;}
#pages img {height: 100%;}
#pages>div {
  display: flex;
  position: relative;
  left: 0;
  transition: left .5s;
  transform: scale(var(--scale)) translate(calc(var(--zoomX)*1px), calc(var(--zoomY)*1px));
  transform-origin: 710px center;
}
#pages section {display: flex;background-color: #fff;box-shadow: 0 0 0 1px #a6a6a6;position: relative;}
/* #pages section:before {content: '';margin: auto;width: 1px;background-color: #f1f1f1;position: absolute;top: 0;bottom: 0;z-index: 1;} */
#pages section:nth-child(1):before {right: 0;}
#pages section:nth-child(2):before {left: 0;}
#pages section div {position: relative;}
#pages section div:first-child {display: flex;width: 710px;}
#pages section:nth-child(1) div:first-child {justify-content: flex-end;}

#eBook > [data-move] {
  width: 114px;
  height: 114px;
  background-color: rgba(254,254,254,.6);
  border-radius: 50%;
  position: absolute;
  top: 483px;
  z-index: 2;
}
#eBook > [data-move="prev"] {left: 67px;}
#eBook > [data-move="next"] {right: 67px;}
#eBook > [data-move="prev"] img {transform: scaleX(-1);}

#pages section a,
#pages section button {
  background-repeat: no-repeat;
  background-size: 100%;
  position: absolute;
}

#pages section button.conBtn {
  width: 50px;
  height: 50px;
}
#pages section button.conBtn {
  background-image: url(../img/view/ebook/conBtn.png);
}
header {
  padding: 0 250px 0 165px;
  display: flex;
  align-items: center;
  width: 1920px;
  height: 70px;
  background-color: #6FCAD2;
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 1;
}
header > button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-family: NSacEB;
  font-size: 30px;
}
header button.home span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background-color: #fff;
  border-radius: 50%;
}
:not(.m) header button.home:hover span {background-color: #39B0C5;}
header button.home:not(:hover) span img:nth-child(2),
:not(.m) header button.home:hover span img:nth-child(1) {
  position: absolute;
  opacity: 0;
}
header button.order {margin-left: 190px;}
header button.order img {
  position: absolute;
  opacity: 0;
}
header button.order[data-pressed="true"] img:nth-child(2),
:not(.m) header button.order[data-pressed="false"]:not(:hover) img:nth-child(1),
:not(.m) header button.order[data-pressed="false"]:hover img:nth-child(2) {
  position: relative;
  opacity: 1;
}
header .orderBox {
  position: absolute;
  inset: 65px auto auto 400px;
}
header .orderBox .lesson {
  display: flex;
  flex-direction: column;
  background-color: #CDEBEE;
  border: 2px solid #39B0C5;
  border-radius: 16px;
  font-family: NSacB;
  font-size: 28px;
  overflow: hidden;
  padding: 6px;
}
header .orderBox .lesson li {
  padding: 0 10px 0 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 181px;
  height: 48px;
  background-color: #CDEBEE;
  cursor: pointer;
  border-bottom: 2px solid #39B0C5;
}
header .orderBox .lesson li:first-of-type {
  border-radius: 8px 8px 0 0;
}
header .orderBox .lesson li:last-of-type {
  border-radius: 0 0 8px 8px;
  border-bottom: unset;
}
header .orderBox .lesson li.on {
  background-color: #39B0C5;
  color: #fff;
}
header .orderBox .lesson li * {pointer-events: none;}
header .orderBox .lesson li div {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background-color: #F9F8FF;
  border-radius: 50%;
  position: relative;
}
header .orderBox .lesson li.on div {
  background-color: #1B8992;
}
header .orderBox .lesson li div img:nth-child(1) {
  /* transform: rotate(-90deg); */
}
header .orderBox .lesson li div img:nth-child(2) {
  /* transform: rotate(90deg); */
}
header .orderBox .lesson li:not(.on) div img:nth-child(2),
header .orderBox .lesson li.on div img:nth-child(1){
  position: absolute;
  opacity: 0;
}
header .orderBox .lessonList {
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
  border: 2px solid #39B0C5;
  border-radius: 16px;
  font-size: 28px;
  font-family: 'NSACB';
  position: absolute;
  inset: 0px auto auto 196px;
  overflow: hidden;
  padding: 6px;
}
header .orderBox .lessonList:not(.on) {
  opacity: 0;
  pointer-events: none;
}
header .orderBox .lessonList li {
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: max-content;
  min-width: 100%;
  height: 48px;
  background-color: #fff;
  cursor: pointer;
  border-bottom: 2px solid #39B0C5;
}
header .orderBox .lessonList li:last-of-type {
  border-bottom: unset;
}
header .orderBox .lessonList li:hover {
  background-color: #CDEBEE;
  color: #0E8C97;
}
header .orderBox .lessonList li.on {
  background-color: #e5f4ff;
  color: #3c87f8;
}
header .orderBox .lessonList li * {pointer-events: none;}
header button.order[data-pressed="false"] + .orderBox {
  display: none;
}
header button.menu {
  margin-left: auto;
  gap: 8px;
  width: 138px;
  height: 50px;
  background-color: #fff;
  border: 2px solid #319EA7;
  border-radius: 16px;
  font-size: 24px;
}
header dl.menu {padding: 5px 4px;display: flex;flex-direction: column;gap: 2px;width: 275px;background-color: #fff;border: 3px solid #39B0C5;border-radius: 16px;font-family: PSB;font-size: 26px;position: absolute;inset: 60px auto auto 1465px;}
header dl.menu dt {
  padding: 2px 12px 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  background-color: #CDEBEE;
  border-radius: 10px;
  position: relative;
  z-index: 1;
  cursor: pointer;
  box-shadow: 0 2px 0 #39B0C5;
  font-size: 28px;
  font-family: 'NSB';
}
header dl.menu dt * {pointer-events: none;}
header dl.menu dt div {
  width: 32px;
  height: 32px;
  background-color: #1B8992;
  border-radius: 50%;
  position: relative;
  margin-bottom: 2px;
}
header dl.menu dt div img {
  margin: auto;
  position: absolute;
  inset: 0;
}
header dl.menu dt div img:nth-of-type(2) {
  transform: scaleY(-1);
} 
header dl.menu dt[data-pressed="true"]{
  background-color: #39B0C5;
  color: #fff;
}
header dl.menu dt[data-pressed="true"] div {background-color: #1B8992;}
header dl.menu dt[data-pressed="false"] div img:nth-child(2),
header dl.menu dt[data-pressed="true"] div img:nth-child(1) {opacity: 0;}
header dl.menu dd {
  margin-top: -55px;
  border-radius: 10px;
  overflow: hidden;
}
header dl.menu dd div {
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  background-color: #fff;
  position: relative;
}
header dl.menu dd div:not(:first-child):not(:last-child):before {
  content: '';
  margin: auto;
  height: 2px;
  background-color: #39B0C5;
  position: absolute;
  inset: auto 3px -1px;
  z-index: 1;
}
header dl.menu dd div button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  font-family: NSB;
  font-size: 28px;
}
header dl.menu dd div button[data-menu="zoomOut"].off,
header dl.menu dd div button[data-menu="zoomIn"].off {
  color: #a5a5a5;
  pointer-events: none;
  opacity: 0.5;
}
header dl.menu dd div button span {/* padding: 4px 12px; *//* border-radius: 10px; */}
header dl.menu dd div button[data-pressed="true"] span {background-color: #e5f4ff;}
header dl.menu dd div button[data-menu="print"] img {/* width: 28px; *//* margin: 0 5px; */}
header dl.menu dd div button[data-menu="zoomOut"] img {/* width: 26px; *//* margin: 0 5px; */}
header dl.menu dd div button[data-menu="zoomIn"] img {/* width: 26px; *//* margin: 0 5px; */}
header dl.menu dd div button[data-menu="memo"] img {/* width: 24px; *//* margin: 0 6px; */}
header dl.menu dd div button[data-helper="board"] img {/* width: 36px; */}
header dl.menu dd div button[data-helper="timer"] img {/* width: 30px; *//* margin: 0 3px; */}
header dl.menu dd div button[data-helper="number"] img {/* width: 30px; *//* margin: 0 3px; */}
header dl.menu dd div button[data-helper="scoreboard"] img {/* width: 36px; */}
header button.menu:not([data-pressed="true"]) + dl.menu {display: none;}
header dl.menu dt:not([data-pressed="true"]) + dd {display: none;}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
  background-color: #F0B768;
  border-radius: 65px 65px 0 0;
  position: absolute;
  inset: auto 0 0;
}
footer .eBookMove {
  display: flex;
  align-items: center;
  gap: 11px;
}
footer .eBookMove .pageNum {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 118px;
  height: 45px;
  background-color: #fff;
  border-radius: 10px;
  font-size: 24px;
  font-family: 'PSB';
  color: #c0d2d9;
}
footer .eBookMove .pageNum input {
  /* padding-right: 6px; */
  /* width: 100%; */
  width: 42px;
  font-family: PB;
  text-align: right;
  font-size: 24px;
}
footer .eBookMove .pageNum .maxPage {
  /* width: 100%; */
  width: fit-content;
}
footer .eBookMove .go {
  width: 52px;
  height: 45px;
  background-color: #895930;
  border-radius: 10px;
  font-family: PB;
  font-size: 21px;
  color: #fff;
  letter-spacing: -0.5px;
}
footer .helper {
  display: flex;
  gap: 2px;
  font-family: 'PSB';
  font-size: 18px;
  color: #fff;
  position: absolute;
  inset: 0 230px 0 auto;
}
footer .helper li {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 0 16px;
  height: 70px;
  position: relative;
  cursor: pointer;
}
footer .helper li * {pointer-events: none;}
footer .helper li:not(:last-child):after {
  content: '';
  margin: auto;
  width: 2px;
  height: 35px;
  background-color: #895930;
  position: absolute;
  inset: 0 -2px 0 auto;
  pointer-events: none;
}

footer .helper li[data-pressed="true"] {color: #895930;}

footer .helper li[data-type="blind"] img {/* width: 38px; */}

footer .helper li[data-pressed="false"] div img:nth-child(2),
footer .helper li[data-pressed="true"] div img:nth-child(1) {
  position: absolute;
  opacity: 0;
}

#lesson {
  margin: auto;
  display: none;
  background: url(../img/contents/bg.webp)0 0 repeat-x;
  position: absolute;
  inset: 0;
}
/* 
#lesson .frameBg {
  width: 1880px;
  height: 1020px;
  background-color: #fff;
  border-radius: 60px 60px 0 0;
  margin: 0 auto;
  position: relative;
} */

#lesson iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0 auto auto 0;
}
#lesson > button {
  width: 50px;
  height: 50px;
  position: absolute;
  inset: 10px 20px auto auto;
  animation: opacity .5s;
  border: 1px solid #39B0C5;
  border-radius: 50%;
}
#lesson > button img {
  width: 100%;
  position: absolute;
  opacity: 0;
}
#lesson > button:not(:hover) img:nth-of-type(1), 
#lesson > button:hover img:nth-of-type(2) {
  position: relative;
  opacity: 1;
}

#eBook .help_popup {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 4;
}
#eBook .help_popup .closeBtn {
  width: 100px;
  height: 50px;
  border-radius: 50px;
  background-color: rgba(0, 0, 0, 0.2);
  position: absolute;
  right: 40px;
  top: 20px;
  color: #fff;
  font-family: 'PB';
  font-size: 25px;
}
#blind {
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #333;
  position: absolute;
  inset: 0;
  z-index: 20;
}
#blind button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 360px;
  height: 144px;
  background-color: #656565;
  border-radius: 114px;
  font-family: PB;
  font-size: 52px;
  color: #fff;
}

.saveAlert {
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  inset: 0;
  z-index: 5;
}
.saveAlert p {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1011px;
  height: 144px;
  background-color: #FFA64B;
  border: 3px solid #FFCE7D;
  border-radius: 10px;
  box-shadow: 0 4px 4px 0 rgba(0,0,0,0.25);
  font-family: PSB;
  font-size: 52px;
  color: #fff;
}