/* 공통 */
:root {
  --game-97-color: #ee73a4;
  --game-97-sub-color: #973c60;
  --game-97-2nd-color: #e65890;
  --game-97-3rd-color: #ffb0b2;
  --game-97-fail-color: #2181c3;
  --game-97-font: 'jalnan', sans-serif;
  --game-97-big-size: 1.2rem;
  --game-97-super-big-size: 1.8rem;
}
.game-btn {
  font-family: 'jalnan', sans-serif !important;
  background-color: var(--game-97-color) !important;
  font-size: var(--game-97-big-size) !important;
  color: white;
  border-color: #222222;
  line-height: 3.5rem;
}

.game-wrapper .game-title {
  font-family: 'jalnan', sans-serif !important;
  background-color: var(--game-97-color);
  color: #ffffff;
}
.bg-pattern {
  background-image: url('https://cdn.banggooso.com/assets/images/game97/background.png');
  background-repeat: repeat-y !important;
  background-position: center top !important;
  background-size: 100%;
}

.header-pattern {
  background-image: url('https://cdn.banggooso.com/assets/images/game97/background.png') !important;
  background-size: cover !important;
}

.header-pattern-intro {
  border: 0px !important;
}
/* 인트로 페이지 */
.game-intro .btn-game-start {
  font-family: 'jalnan', sans-serif !important;
  background-color: var(--game-97-color) !important;
  font-size: var(--game-97-big-size) !important;
  box-shadow: 0.3rem 0.4rem 0 white !important;
  border: 0.25rem solid white !important;
  color: black;
}
.game-intro .game-intro-title,
.game-wrapper.basic .game-intro-text,
.game-intro .share-sns-list .list-title,
.game-intro .result-box .result-box-title {
  color: white !important;
}
.game-intro .result-box-title:before {
  background-color: var(--game-97-color) !important;
}
.game-intro .result-box .img-halt-box ul.list > li span.label-top {
  text-shadow: 0 0 var(--game-97-sub-color) !important;
}
.game-intro .result-box .img-halt-box ul.list > li span.label-bottom,
.game-intro .result-box .img-halt-box ul.list > li span.label-top,
.game-intro .result-box .img-halt-box ul.list > li span.label-bottom > em {
  color: white;
}

.game-intro .share-sns-list .list-title .countBox .countImg {
  background-image: url(https://cdn.banggooso.com/assets/images/icons/icon-reply-w.png) !important;
}

.game-intro-text > p {
  text-decoration: underline;
  font-weight: 900;
}
.game-intro .result-box .result-box-title:before,
.game-intro .game-count .count-label:before {
  background-color: var(--game-97-sub-color) !important;
}

.game-intro .game-count .count-num,
.game-intro .game-count .count-label {
  color: white !important;
}

/* 문제 페이지 */

.game-wrapper .game-wrap {
  padding: 0;
}

.game-wrap .game-body .question-options .question-option:focus,
.game-wrap .game-body .question-options .question-option:active {
  background-color: var(--game-97-color) !important;
  color: #ffffff;
}

.game-wrap .game-progress .game-progress-inner {
  background-color: var(--game-97-color) !important;
}

.game-wrap .game-body .question-title {
  color: white;
}
/*베이직 진행상황 바*/
.game-wrapper.basic .test-controller-top .back-btn-wrap {
  background: transparent url(https://cdn.banggooso.com/assets/images/icons/back-arrow-w.png) no-repeat left center /
    0.4rem !important;
}

.game-wrapper.basic .test-controller-top > .back-btn-wrap button,
.game-wrap .game-title,
.game-stage {
  color: white;
}

/* 결과 페이지 */

.game-result .result-box {
  border: 0.1875rem solid white !important;
}
.game-result #result-title {
  font-family: var(--game-97-font);
  padding-top: 0;
}
.game-result #result-title h2 {
  color: var(--game-97-color);
}
.game-result #result-title h1 {
  font-size: var(--game-97-super-big-size);
}
.game-result #result-title h1 > p:first-child {
  font-size: 1.4rem;
}
.game-result p.num-statement > span {
  font-family: var(--game-97-font) !important;
  color: var(--game-97-color);
}
.game-result #result-title .img-box {
  margin: 0 2rem 1.5rem;
  width: auto;
}
.game-result #result-title .img-box .img-caption {
  margin: -0.5rem auto 0.3rem;
  color: var(--game-97-color) !important;
}
.game-result .result-box .game-btn-wrapper {
  margin: 0.5rem auto;
}
.game-result .brand-btn {
  background-color: white !important;
  color: black !important;
}
.game-result .event-btn {
  background-color: white !important;
  color: #222222;
}
.game-result .detail .result-box .result-bot-text .idiom-wrapper {
  font-size: 0.85rem;
  text-align: center;
}
.game-result .detail .result-box .result-bot-text .idiom-wrapper .idiom-box {
  font-weight: 900;
  font-size: 1.2rem;
  color: #ffffff;
  background-color: #ff1a47;
  border-radius: 1rem;
  display: inline-block;
  padding: 0 1rem;
  margin: 0.2rem;
}
.game-result .detail .result-box .result-bot-text .mark {
  background-color: var(--game-97-color);
}
.game-result .detail .result-box .result-bot-text .subtitle {
  color: var(--game-97-color);
}
.game-result .detail .result-box .result-bot-text .subtitle > .mark {
  background-color: var(--game-97-color);
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.4rem;
  margin-left: -0.05rem;
}
.game-result .detail .result-box .result-bot-text b {
  color: var(--game-97-color) !important;
}
.game-result .result-box .result-box-title:before,
.game-result .result-box h3.result-box-title span:before,
.game-result .result-box h3.result-box-title p:before {
  background-color: white !important;
}
.game-result .btn_myranking a {
  background-color: white !important;
  color: #222222;
}
.game-result .btn_retest a {
  background-image: url('https://cdn.banggooso.com/assets/images/common/re-test-w.png') !important;
  background-position: 80% center !important;
  padding-right: 30px !important;
}
.game-result .share-sns-list span {
  margin: 0;
  font-size: 1rem;
}

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

.result-box .small-font {
  font-size: 1rem !important;
}
.type-container {
  display: flex;
}
.type-container img {
  width: 40% !important;
  object-fit: contain;
}

.type-container p {
  font-size: 0.7rem !important;
}

.type-container strong {
  color: var(--game-97-color);
}

.type-style {
  padding-left: 0.5rem;
}
.icecream-container {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.icecream-notice {
  width: 70%;
  display: flex;
  position: relative;
  left: 1rem;
}
.icecream-notice .explain {
  font-size: 0.8rem;
  font-weight: 600;
  background-color: var(--game-97-color);
  padding: 0.65rem 1rem;
  border-radius: 10px;
}
.icecream-notice .rec {
  border-top: 0.4rem solid var(--game-97-color);
  border-left: 0.4rem solid var(--game-97-color);
  width: 0;
  height: 0;
  border-bottom: 0.4rem solid transparent;
  border-right: 0.4rem solid transparent;
  position: relative;
  top: 0.7rem;
}
.icecream-img {
  width: 30%;
}
.icecream-img div {
  font-size: 0.75rem;
  font-family: var(--game-97-font);
}
/* 인스타 섹션 */
.insta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
}

.insta-box img {
  width: 90%;
  margin-bottom: 1rem;
}

.insta-box .game-btn-wrapper .event-btn {
  background-color: white;
}

/* 유형별 궁합 */
.game-result .good,
.game-result .bad {
  text-shadow: 0.1rem 0.1rem white !important;
}

/* 가장 많은 유형 순위 */
.result-box .img-halt-box ul.list > li span.label-top {
  text-shadow: 0.1rem 0.1rem white !important;
  font-family: var(--game-97-font) !important;
}
.result-box .img-halt-box ul.list > li span.label-bottom span {
  line-height: 1.5;
}

.result-icon {
  display: flex;
  justify-content: center;
}

.result-icon img {
  width: 40%;
}

/* 유형 순위 페이지 */
.test-lists-wrap .title {
  font-family: var(--game-97-font) !important;
  color: white;
}
.test-lists-wrap .title::before {
  background-color: var(--game-97-sub-color) !important;
}
.test-lists-wrap .test-lists .test-list-item.rank_list .num {
  text-shadow: 3px 4px 0px var(--game-97-sub-color) !important;
  color: white;
}
.test-lists-wrap .test-lists .test-list-item .item-title > p {
  color: var(--game-97-color) !important;
}

.test-lists-wrap .test-lists .test-list-item .item-wrap .item-info {
  color: white !important;
}
.test-lists-wrap .test-lists .test-list-item.rank_list .percen {
  background-color: #ededed;
}
.test-lists-wrap .test-lists .test-list-item:first-child {
  border-color: var(--game-97-color);
}
.test-lists-wrap .test-lists .test-list-item:nth-child(2) {
  border-color: var(--game-97-2nd-color);
}
.test-lists-wrap .test-lists .test-list-item:nth-child(3) {
  border-color: var(--game-97-3rd-color);
}

.game-result #compliance-text-box {
  position: relative;
  top: -1.5rem;
}

.game-result #compliance-text-box > span {
  position: absolute;
  font-size: 0.8rem;
  right: 1rem;
}

/*97- 성공했을 때*/
.app-header.ENFP,
.app-header.ENTP,
.app-header.ESTP,
.app-header.ENFJ,
.app-header.ESFJ,
.app-header.ESTJ,
.app-header.INFP,
.app-header.INTP,
.app-header.ISTP,
.app-header.INFJ,
.app-header.ISFJ,
.app-header.ISTJ {
  background-color: #ffecf3 !important;
}

.game-result.ENFP,
.game-result.ENTP,
.game-result.ESTP,
.game-result.ENFJ,
.game-result.ESFJ,
.game-result.ESTJ,
.game-result.INFP,
.game-result.INTP,
.game-result.ISTP,
.game-result.INFJ,
.game-result.ISFJ,
.game-result.ISTJ {
  background-image: url('https://cdn.banggooso.com/assets/images/game97/result/success_background.png');
  background-repeat: repeat-y !important;
  background-position: center top !important;
  background-size: 100%;
}

.result-icon img {
  content: url('https://cdn.banggooso.com/assets/images/game97/result/icon/success_icon.png');
}

/*97-실패했을 때*/
.app-header.ESFP,
.app-header.ENTJ,
.app-header.ISFP,
.app-header.INTJ {
  background-color: #d1edfc !important;
}

.game-result.ESFP,
.game-result.ENTJ,
.game-result.ISFP,
.game-result.INTJ {
  background-image: url('https://cdn.banggooso.com/assets/images/game97/result/fail_background.png') !important;
  background-repeat: repeat-y !important;
  background-position: center top !important;
  background-size: 100%;
}
.game-result.ESFP .result-icon img,
.game-result.ENTJ .result-icon img,
.game-result.ISFP .result-icon img,
.game-result.INTJ .result-icon img {
  content: url('https://cdn.banggooso.com/assets/images/game97/result/icon/fail_icon.png');
}

.game-result.ESFP .icecream-notice .rec,
.game-result.ENTJ .icecream-notice .rec,
.game-result.ISFP .icecream-notice .rec,
.game-result.INTJ .icecream-notice .rec {
  border-top: 0.4rem solid var(--game-97-fail-color);
  border-left: 0.4rem solid var(--game-97-fail-color);
  width: 0;
  height: 0;
  border-bottom: 0.4rem solid transparent;
  border-right: 0.4rem solid transparent;
  position: relative;
  top: 0.7rem;
}

.game-result.ESFP #result-title > h2,
.game-result.ESFP .num-statement > span,
.game-result.ESFP .result-bot-text .subtitle,
.game-result.ESFP .btn-retest .game-btn,
.game-result.ENTJ #result-title > h2,
.game-result.ENTJ .num-statement > span,
.game-result.ENTJ .result-bot-text .subtitle,
.game-result.ENTJ .btn-retest .game-btn,
.game-result.ISFP #result-title > h2,
.game-result.ISFP .num-statement > span,
.game-result.ISFP .result-bot-text .subtitle,
.game-result.ISFP .btn-retest .game-btn,
.game-result.INTJ #result-title > h2,
.game-result.INTJ .num-statement > span,
.game-result.INTJ .result-bot-text .subtitle,
.game-result.INTJ .btn-retest .game-btn,
.game-result.ESFP .type-container strong,
.game-result.ENTJ .type-container strong,
.game-result.ISFP .type-container strong,
.game-result.INTJ .type-container strong {
  color: var(--game-97-fail-color) !important;
}

.game-result.ESFP .icecream-notice .explain,
.game-result.ENTJ .icecream-notice .explain,
.game-result.ISFP .icecream-notice .explain,
.game-result.INTJ .icecream-notice .explain {
  color: white;
}

.game-result.ESFP .result-bot-text .mark,
.game-result.ESFP .game-title,
.game-result.ESFP .icecream-notice .explain,
.game-result.ESFP .btn_retest .game-btn,
.game-result.ENTJ .result-bot-text .mark,
.game-result.ENTJ .game-title,
.game-result.ENTJ .icecream-notice .explain,
.game-result.ENTJ .btn_retest .game-btn,
.game-result.ISFP .result-bot-text .mark,
.game-result.ISFP .game-title,
.game-result.ISFP .icecream-notice .explain,
.game-result.ISFP .btn_retest .game-btn,
.game-result.INTJ .result-bot-text .mark,
.game-result.INTJ .game-title,
.game-result.INTJ .icecream-notice .explain,
.game-result.INTJ .btn_retest .game-btn,
.game-title.ESFP,
.game-title.ENTJ,
.game-title.ISFP,
.game-title.INTJ {
  background-color: var(--game-97-fail-color) !important;
}

.game-result.ESFP .recommend-list:before,
.game-result.ENTJ .recommend-list:before,
.game-result.ISFP .recommend-list:before,
.game-result.INTJ .recommend-list:before {
  background-color: var(--game-97-fail-color) !important;
}

/*97- 앱 로고 변경*/
.baskin-logo {
  width: 14rem !important;
  background-size: auto 60% !important;
  background-image: url('https://cdn.banggooso.com/assets/images/game97/logo_white.png') !important;
}

.baskin-color-logo {
  width: 14rem !important;
  background-size: auto 60% !important;
  background-image: url('https://cdn.banggooso.com/assets/images/game97/logo_color.png') !important;
}

/*97-피드백*/
.game-wrapper.basic .test-step-0 .question-title {
  margin: 3rem auto !important;
  font-size: 1rem !important;
  color: white;
}

.test-step-0 .question-image {
  width: 20% !important;
}

.icecream-img > img {
  width: 70% !important;
}

.icecream-img .INFP,
.icecream-img .ENTP {
  font-size: 0.7rem !important;
}

.game-wrapper.basic .game-result .result-box .btn_myranking > a::after {
  background-image: none;
  margin-left: 0;
  width: 0;
}

a[href='./result?score=ESTP'] > .label-bottom > span,
a[href='./result?score=ISTJ'] > .label-bottom > span {
  font-size: 0.8rem;
}
