@charset "UTF-8";
body {
  background-color: #F6F2EB;
  opacity: 0;
}
main {
  padding: 115px 50px 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.figureArea {
  background: url(../img/boxBg.png)center/100% no-repeat;
  width: 1452px;
  height: 595px;
  color: #fff;
  position: relative;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
}

.sideArea {
  width: 333px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sideArea .textBox {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: #F6F2EB;
  min-height: 244px;
  padding: 10px 16px 0;
  border-radius: 20px;
  margin: 33px -16px 0;
}

.sideArea .textBox h2 {
  font-size: 32px;
  margin-left: 16px;
}

.sideArea .textBox p {
  font-size: 28px;
  padding: 16px;
  width: 333px;
  height: 192px;
  border-radius: 20px;
  line-height: 40px;
  text-align: justify;
  font-family: 'NSNB';
  letter-spacing: -0.9px;
  background-color: rgba(216, 200, 172, 0.5);
}
[data-step="1"] .sideArea .textBox p {
  height: 232px;
}
.sideArea .textBox p span {
  opacity: 0;
  position: absolute;
}
[data-step="1"] .sideArea .textBox p span:nth-of-type(1),
[data-step="2"] .sideArea .textBox p span:nth-of-type(2) {
  opacity: 1;
  position: relative;
}
.blue {
  color: #322DD5;
}
.red {
  color: #FF0035;
}
.green {
  color: #00863D;
}

.sideArea .btnBox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.sideArea .btnBox button {
  width: 100%;
  height: 88px;
}

.bottomArea {
  width: 100%;
  height: 280px;
  background-color: #fff;
  border: 3px solid #AE8C50;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottomArea>div {
  width: fit-content;
  height: fit-content;
}

.bottomArea>div>div {
  font-size: 40px;
  padding: 10px 0;
  font-family: 'NSNB';
}
.bottomArea>div>div>em {
  color: transparent;
}
.bottomArea>div>div .quizBox {
  display: inline-flex;
  position: relative;
}
body.m .bottomArea>div>div .quizBox {
  padding-top: 4px;
}



[data-pressed] {
  cursor: pointer;
}
[data-pressed="true"] {
  pointer-events: none;
}
[data-pressed="false"][data-step="1"] svg:nth-of-type(1) .obj,
.on[data-pressed="false"][data-step="2"] svg:nth-of-type(2) .obj {
  pointer-events: visible;
}
.figure {
  pointer-events: none;
  width: 527px;
  height: 265px;
  position: absolute;
  top: 176px;
  left: 429px;
}
.figure svg {
  position: absolute;
  bottom: 0;
  left: 0;
  opacity: 0;
}
.figure svg:nth-of-type(1) {}
.figure svg:nth-of-type(2) {}
.figure:not(.on)[data-step="1"] svg:nth-of-type(1),
.figure[data-pressed="false"][data-step="2"] svg:nth-of-type(2),
.figure[data-pressed="true"][data-step="2"] svg:nth-of-type(3)  {
  opacity: 1;
}

.dropObj {
  pointer-events: none;
  position: absolute;
  height: 134px;
}
.dropObj.obj1 {
  top: 307px;
  left: 887px;
  transform: scale(-1);
}
.dropObj.obj2 {
  top: 307px;
  left: 232px;
  transform: scale(-1);
}
.dropObj.answer {
  pointer-events: none;
}
.dropObj:not(.answer) svg:not(.hint) {
  opacity: 0;
}
.dropObj.answer svg:not(.hint) {
  opacity: 1;
}
.figure[data-pressed="true"] ~ .dropObj:not(.answer) svg:not(.hint) .obj {
  pointer-events: visible;
}
.dropObj .hint {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  /* transform: scale(-1); */
}
.dropObj .hint.on {
  animation: induce .7s steps(1) 2;
}
@keyframes induce {
  50% {opacity: 1;}
}

.dragObj {
  position: absolute;
  width: fit-content;
  height: fit-content;
  transform-origin: center;
  user-select: none;
  border: 1px solid transparent;
  top: 140px;
  left: 559px;
}
/* body:not(.m) .dragObj {
  will-change: transform;
} */
body.a .dragObj,
body.pc .dragObj {
  will-change: opacity;
}
.dragObj:not(.on) {
  pointer-events: none;
}
.dragObj.move {
  animation: move 1s ease-in-out forwards;
}
@keyframes move {
  0% {
    transform: translate(0, 35px);
  }
  100% {
    transform: translate(0, 0);
  }
}
.dragObj[data-select="true"] {
  border-color: #00B0F0;
}
.dragObj.induce {
  /* animation: border 1s steps(1) 2; */
}
@keyframes border {
  50% {
    border-color: #00B0F0;
  }
}

.dragObj .figureBox {
  width: fit-content;
  height: fit-content;
  font-size: 0;
  transform-origin: center;
}

.dragObj .figureBox>svg {
  pointer-events: none;
}
.dragObj.on:not(.hidden) .figureBox>svg>.obj {
  pointer-events: visible;
  cursor: pointer;
}

.dragObj .dot {
  height: 34px;
  width: 34px;
  position: absolute;
  border-radius: 50%;
  user-select: none;
}

.dragObj .dot.rotate {
  top: -90px;
  left: calc(50% - 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  width: 80px;
  height: 80px;
}
.dragObj .dot.rotate::before {
  content: '';
  background: url(../img/cursor.png)center/100% no-repeat;
  width: 57px;
  height: 57px;
  position: absolute;
  pointer-events: none;
}

.dragObj .rotate-link {
  position: absolute;
  width: 2px;
  height: 25px;
  background-color: #00B0F0;
  top: -25px;
  left: calc(50% - 1px);
}
.dragObj[data-select="false"] .rotate-link,
.dragObj[data-select="false"] .dot.rotate {
  display: none;
}
.dragObj[data-select="true"] .dot.rotate {
  cursor: url('https://findicons.com/files/icons/1620/crystal_project/16/rotate_ccw.png'), auto;
}
.dragObj[data-select="true"] .rotate-link {
  background-color: #00B0F0;
}

.dragObj .btnBox {
  position: absolute;
  left: 100%;
  bottom: 100%;
  width: fit-content;
  height: fit-content;
  display: flex;
  background: url(../img/transBtn.png)center/100% no-repeat;
  width: 182px;
  height: 77px;
  padding: 0 0 12px 8px;
  transform-origin: left bottom;
  /* gap: 8px; */
}
.dragObj .btnBox button {
  font-size: 30px;
  color: #000;
  width: 83px;
  height: 100%;
}
.dragObj .btnBox .between {
  width: 8px;
  height: 100%;
}

.dragObj[data-select="false"] .btnBox {
  opacity: 0;
  pointer-events: none;
}


.quizBox {
  border: 3px solid;
  padding: 0 21px;
  border-radius: 8px;
  font-family: 'NSNEB';
  height: 70px;
  line-height: 70px;
  align-items: center;
  justify-content: center;
}
.quizBox[data-on="false"] {
  border-color: #D4D4D4;
  pointer-events: none;
}
.quizBox[data-on="true"] {
  border-color: #00A6ED;
}

.quizBox::before {
  content: '?';
  position: absolute;
  color: #838383;
  margin: auto;
  inset: 0;
  width: fit-content;
  height: fit-content;
  pointer-events: none;
}
body.m .quizBox::before {
  inset: 4px 0 0 0;
}
.quizBox[data-on="true"]::before {
  color: #5589D0;
}
.quizBox[data-pressed="true"]::before {
  display: none;
}

.quizBox[data-pressed="false"] {
  color: transparent;
}
.quizBox[data-pressed="true"] {
  color: #1757BE;
}

.hand {
  position: absolute;
  margin: auto;
  animation : handAni 0.8s infinite linear;
  pointer-events: none;
}
.figure .hand {
  inset: 33px 180px 0 auto;
}
.figure.on .hand {
  inset: 90px 67px 0 auto;
}
/* .dragObj .hand {
  inset: 70px 160px 0 0;
} */
.figure:not(.induce) .hand,
.figure:not(.on)[data-step="2"] .hand {
  display: none;
}


@keyframes handAni {
	0% {
		transform: scale(1.1);
	}
	50% {
		transform: scale(1);
	}
	100% {
		transform: scale(1.1);
	}
}

.figure:not(.on)[data-step="2"] .induce {
  animation: induce2 1.2s steps(1) 2;
}

@keyframes induce2 {
  50% {
    stroke: transparent;
  }
}

.figure.dash[data-step="2"] .dash {
  fill: black;
}

.nonClick {
  position: absolute;
  bottom: 155px;
  left: 429px;
  width: 528px;
  height: 132px;
  display: none;
}
.figure[data-pressed="false"].on ~ .nonClick {
  display: block;
}