/* 공통 */
:root {
  --game-87-color: #3747ff;
  --game-87-font: 'jalnan', sans-serif;
  --game-87-big-size: 1.2rem;
  --game-87-super-big-size: 2rem;
}

.game-wrapper.basic .test-lists-wrap .title:before,
.game-result .result-box h3.result-box-title p:before {
  background: #ffe484;
}

.game-intro .game-count .count-label:before,
.game-intro .result-box .result-box-title:before {
  background: #779cf5;
}

.game-result .recommend-list:before {
  background-color: var(--game-87-color);
}

.game-result .img-halt-box .list > li a:nth-child(4):hover {
  color: #ffffff;
}

.result-box .img-halt-box ul.list > li span.label-top.first,
.result-box .img-halt-box ul.list > li span.label-top.second {
  text-shadow: 0.1rem 0.1rem #779cf5;
}

/* intro */

.game-intro .btn-game-start {
  background-color: var(--game-87-color);
  color: #ffffff;
}

.game-intro .user-nickname input {
  display: block;
  margin: 1rem auto 0;
  width: 70%;
  height: 3rem;
  text-align: center;
  font-size: 1rem;
  color: #222222;
  padding: 0.5rem;
  font-weight: 700;
  border-radius: 10px;
  background-color: #f6f6f6;
}

.game-intro .user-nickname input::placeholder {
  color: #cecece;
}

.game-intro .user-nickname input:focus {
  outline: none;
  border: 3px solid var(--game-87-color);
}

/* 문제페이지 - 공통 */

.game-wrapper .test-progress-header {
  border-top: 0.1rem solid var(--game-87-color);
}

.game-wrapper.basic .app-header.page {
  border-bottom: 1px solid var(--game-87-color);
}

.game-wrapper.basic .game-title.page {
  color: var(--game-87-color);
}

.game-wrap .game-body .question-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
}

/*사진 없는 글자 선택지*/
.game-wrap .game-body .question-options .question-option:focus,
.game-wrap .game-body .question-options .question-option:active {
  outline: none;
  background-color: #ffffff;
}

.game-wrapper .game-body .question-options .question-option.right {
  background-color: #ffecb0;
  border: 0.1rem solid #fbd55a !important;
}

.game-wrapper .game-body .question-options .question-option.wrong {
  border: 0.1rem solid #ff8ae0 !important;
  background-color: #ffcdfa;
}

.game-wrapper .game-body .question-options .question-option.right > p {
  background-color: #ffecb0;
}

.game-wrapper .game-body .question-options .question-option.wrong > p {
  background-color: #ffcdfa;
}

.game-wrapper .game-body .question-options .question-option.right:after,
.game-wrapper .game-body .question-options .question-option.wrong:after {
  content: '';
  position: absolute;
  right: 0.7rem;
  background-size: 1.5rem 1.5rem;
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.game-wrapper .game-body .question-options .question-option.right:after {
  background-image: url('https://cdn.banggooso.com/assets/images/game87/icon/O.png');
}

.game-wrapper .game-body .question-options .question-option.wrong:after {
  background-image: url('https://cdn.banggooso.com/assets/images/game87/icon/X.png');
}

.image-step-12 .question-option > p {
  font-size: 0.8rem !important;
}

/*사진 선택시 */
.image-step-1 .question-option,
.image-step-2 .question-option,
.image-step-5 .question-option,
.image-step-6 .question-option,
.image-step-19 .question-option:not(#button-4.question-option) {
  display: inline-block !important;
  width: 9.7rem !important;
  height: 10.5rem !important;
  border-radius: 1rem !important;
  background-color: transparent;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  margin: 0 0 0.3rem 0 !important;
  padding: 0 !important;
  border: 0.1rem solid #e1e1e1;
  box-sizing: content-box;
}

.image-step-1 .question-option > p,
.image-step-2 .question-option > p,
.image-step-5 .question-option > p,
.image-step-6 .question-option > p,
.image-step-19 .question-option:not(#button-4.question-option) > p {
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5rem;
  padding: 0.3rem;
  background-color: #ffffff;
  border-radius: 0 0 0.85rem 0.85rem;
  font-size: 0.75rem;
}

.image-step-1 .question-option.right:after,
.image-step-1 .question-option.wrong:after,
.image-step-2 .question-option.right:after,
.image-step-2 .question-option.wrong:after,
.image-step-5 .question-option.right:after,
.image-step-5 .question-option.wrong:after,
.image-step-6 .question-option.right:after,
.image-step-6 .question-option.wrong:after,
.image-step-19 .question-option.right:after,
.image-step-19 .question-option.wrong:after {
  position: absolute !important;
  right: 1rem !important;
  top: 15% !important;
}

.game-wrap .image-step-19 #button-4.question-option.active:after,
.game-wrap .image-step-19 #button-4.question-option:focus:after,
.game-wrap .image-step-19 #button-4.question-option:active:after {
  top: 50% !important;
}

.game-wrap .game-body .question-title {
  font-size: 1.2rem;
  text-align: left;
  margin-top: 1.5rem;
  font-weight: 800;
}

.game-wrapper .game-progress .game-progress-inner {
  background-color: var(--game-87-color);
}

.test-controller-top .game-stage-wrap {
  font-weight: 700;
}

.game-wrapper.basic .game-body.no-image .question-title {
  margin: 1.5rem 0 1.125rem;
  font-size: 1.2rem;
}

/* 플레이어 뒤로가기 삭제 */

.game-wrapper.basic .test-controller-top .back-btn-wrap {
  visibility: hidden;
}

/* 문제페이지 - 이미지 */

.image-step-1 #button-0.question-option {
  background-image: url('https://cdn.banggooso.com/assets/images/game87/page/1-1.jpg');
}

.image-step-1 #button-1.question-option {
  background-image: url('https://cdn.banggooso.com/assets/images/game87/page/1-2.jpg');
}

.image-step-1 #button-2.question-option {
  background-image: url('https://cdn.banggooso.com/assets/images/game87/page/1-3.jpg');
}

.image-step-1 #button-3.question-option {
  background-image: url('https://cdn.banggooso.com/assets/images/game87/page/1-4.jpg');
}

.image-step-2 #button-0.question-option {
  background-image: url('https://cdn.banggooso.com/assets/images/game87/page/2-1.jpg');
}

.image-step-2 #button-1.question-option {
  background-image: url('https://cdn.banggooso.com/assets/images/game87/page/2-2.jpg');
}

.image-step-2 #button-2.question-option {
  background-image: url('https://cdn.banggooso.com/assets/images/game87/page/2-3.jpg');
}

.image-step-2 #button-3.question-option {
  background-image: url('https://cdn.banggooso.com/assets/images/game87/page/2-4.jpg');
}

.image-step-5 #button-0.question-option {
  background-image: url('https://cdn.banggooso.com/assets/images/game87/page/5-1.jpg');
}

.image-step-5 #button-1.question-option {
  background-image: url('https://cdn.banggooso.com/assets/images/game87/page/5-2.jpg');
}

.image-step-5 #button-2.question-option {
  background-image: url('https://cdn.banggooso.com/assets/images/game87/page/5-3.jpg');
}

.image-step-5 #button-3.question-option {
  background-image: url('https://cdn.banggooso.com/assets/images/game87/page/5-4.jpg');
}

.image-step-6 #button-0.question-option {
  background-image: url('https://cdn.banggooso.com/assets/images/game87/page/6-1.jpg');
}

.image-step-6 #button-1.question-option {
  background-image: url('https://cdn.banggooso.com/assets/images/game87/page/6-2.jpg');
}

.image-step-6 #button-2.question-option {
  background-image: url('https://cdn.banggooso.com/assets/images/game87/page/6-3.jpg');
}

.image-step-6 #button-3.question-option {
  background-image: url('https://cdn.banggooso.com/assets/images/game87/page/6-4.jpg');
}

.image-step-6 #button-4.question-option {
  background-image: url('https://cdn.banggooso.com/assets/images/game87/page/6-5.jpg');
}

.image-step-19 #button-0.question-option {
  background-image: url('https://cdn.banggooso.com/assets/images/game87/page/19-1.jpg');
}

.image-step-19 #button-1.question-option {
  background-image: url('https://cdn.banggooso.com/assets/images/game87/page/19-2.jpg');
}

.image-step-19 #button-2.question-option {
  background-image: url('https://cdn.banggooso.com/assets/images/game87/page/19-3.jpg');
}

.image-step-19 #button-3.question-option {
  background-image: url('https://cdn.banggooso.com/assets/images/game87/page/19-4.jpg');
}

/* 결과페이지 */

.game-wrapper .game-title {
  background-color: var(--game-87-color);
  color: #ffffff;
}

.game-result #result-title h2 {
  font-size: 1.5rem;
  color: var(--game-87-color);
}

.game-result #result-title h1 {
  color: #000000;
  font-size: 1.7rem;
}

.game-result .num-statement {
  display: none;
}

.game-result .img-box {
  margin: 1.5rem 0 0;
}

.game-result .result-bot-text .subtitle {
  color: var(--game-87-color);
}

.game-result .detail .result-box .result-bot-text .subtitle > .mark {
  background-color: var(--game-87-color) !important;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.4rem;
  margin-left: -0.05rem;
}

.game-result .result-bot-text .mark {
  background-color: var(--game-87-color);
}

.game-result .result-bot-text > p > b {
  color: var(--game-87-color);
}

.game-wrapper.basic .game-result .btn_retest.player {
  margin: 1rem auto 3rem;
}

.game-wrapper.basic .game-result .btn_retest > a {
  color: #ffffff;
}

.game-wrapper.basic .game-result .btn_retest.maker > a {
  background: none;
  background-color: rgba(251, 213, 90, 1);
  padding: 0;
  color: #0c0c0c;
}

.game-wrapper.basic .game-result .btn_retest.player > a {
  background-color: var(--game-87-color);
}

.game-result .btn_retest,
.game-result .btn_save,
.game-result .btn-maker-answer {
  margin: 1rem auto;
  width: 18rem;
}

.game-wrapper.basic .game-result .btn_save > a,
.game-result .btn-maker-answer > a {
  color: #ffffff;
  border: 0.2rem solid #222222;
  border-radius: 3rem;
  font-size: 1.2rem;
  background-color: var(--game-87-color);
  display: inline-block;
  line-height: 3.5rem;
  box-shadow: 0.25rem 0.25rem #222222;
  font-family: 'jalnan', sans-serif;
  width: 100%;
  text-align: center;
  cursor: pointer;
}

.pop_induce .popup .wrap .btn_goRank {
  visibility: hidden;
}

.new-popup.popup-module.pop_induce .popup div.btn_induce {
  padding: 0.8rem 0 1.2rem !important;
}

.game-result .event-btn > a {
  width: 90%;
  display: inline-block;
  margin-top: 1rem;
  line-height: 3.5rem;
  background-color: var(--game-87-color);
  color: #ffffff;
  border: 0.2rem solid #000000;
  border-radius: 3rem;
  box-shadow: 0.25rem 0.25rem #000000;
  font-size: 1.15rem;
  font-family: 'jalnan', sans-serif;
  cursor: pointer;
}

.game-result .banner-section {
  width: 100%;
  margin-bottom: 0.5rem;
}

.game-result .banner-section > a > img {
  width: 100%;
}

/* 결과페이지 - 그래프 */

.game-result .result-circle-box {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.game-result .result-draw-circle {
  width: 25%;
  display: inline-block;
}

.game-result .circle-ment {
  width: 70%;
  display: inline-block;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 700;
}

.game-result .result-draw-circle .circle-chart {
  width: 4.5rem;
  height: 4.5rem;
  position: relative;
  margin: 0.5rem 0 0 0;
}

.game-result .result-draw-circle .circle-chart__circle {
  animation: circle-chart-fill 2s reverse;
  transform: rotate(-90deg);
  transform-origin: center;
}

@keyframes circle-chart-fill {
  to {
    stroke-dasharray: 0 100;
  }
}

.result-draw-circle .circle-chart-text {
  font-size: 1.1rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--game-87-color);
  font-family: 'Jalnan';
}

/*  TOP3 순위  */

.game-intro .result-box {
  padding: 1.5rem 1.1rem;
  border: 0.1875rem solid #f2f2f2;
  border-radius: 0.3125rem;
}

.btn_medal {
  font-family: 'Jalnan', sans-serif;
  line-height: 2.48rem;
  font-size: 0.92rem;
}

.medal-box {
  color: #4a4a4a;
  font-weight: 600;
  position: relative;
  padding-top: 6rem;
}

.medal-box > img {
  width: 100%;
}

.ranking {
  position: absolute;
  width: 14.5%;
  height: 3.5rem;
  top: 50%;
}

.ranking .name {
  display: inline-block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.7rem;
  padding-top: 0.5rem;
}

.ranking.rank1 {
  left: 50%;
  transform: translate(-50%, -160%);
}

.ranking.rank2 {
  right: 0;
  transform: translate(-62.5%, -100%);
}

.ranking.rank3 {
  left: 0;
  transform: translate(62.5%, -35%);
}

.medal-user-img {
  border-radius: 50%;
  width: 100%;
  height: 83%;
}

.myroom-popup .popup.my_pop .btn_retest {
  background-color: var(--game-87-color) !important;
  color: white !important;
}

.notice {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.6rem;
  color: rgb(199, 193, 193);
}
