@font-face {
    font-family: Nunito;
    font-weight: bold;
    font-style: normal;
    font-display: auto;
    src: url('../../../../api/fonts/Nunito/Nunito-VariableFont_wght.ttf') format('truetype');
}

@font-face {
    font-family: source sans pro;
    font-weight: normal;
    font-style: normal;
    font-display: auto;
    src: url('../../../../api/fonts/source-sans-pro/source-sans-pro-latin-400-normal.ttf') format('truetype');
}

@font-face {
    font-family: source sans pro;
    font-weight: 600;
    font-style: normal;
    font-display: auto;
    src: url('../../../../api/fonts/source-sans-pro/source-sans-pro-latin-600-normal.ttf') format('truetype');
}

@font-face {
    font-family: source sans pro;
    font-weight: 700;
    font-style: normal;
    font-display: auto;
    src: url('../../../../api/fonts/source-sans-pro/source-sans-pro-latin-700-normal.ttf') format('truetype');
}

[v-cloak] {
    display: none !important;
}

[flex-center] {
    display: flex;
    align-items: center;
    justify-content: center;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--pageBg);
}

* {
    box-sizing: border-box;
}

a {
    color: #000000;
    display: inline-block;
    text-decoration: none;
}

#app {
    min-height: calc(100vh - 2rem);
}

.selectPage {
    padding-top: 3.125rem;
}

.selectPage header {
    width: 17.5rem;
    height: 3.125rem;
    background: #ffffff;
    border-radius: 0 0 0.3125rem 0.3125rem;
    box-shadow: 0 0.0625rem 0.25rem 0 rgba(0, 0, 0, 0.2);

    display: flex;
    align-items: center;
    justify-content: space-around;

    top: 0;
    left: 50%;
    z-index: 10;
    position: fixed;
    transform: translateX(-50%);
}

.selectPage header img {
    display: block;
    width: 1.03125rem;
}

.selectPage header .title {
    font-family: Nunito, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: normal;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0;
    font-feature-settings: "kern" on;
    color: #826CFF;
}

.selectPage header .progress {
    width: 6.4375rem;
    height: 0.4375rem;
    margin-left: 0.625rem;
    border-radius: 0.296875rem;
    background: rgba(0, 0, 0, 0.1);

    position: relative;
}

.selectPage header .progress::after {
    width: var(--finish-progress);

    content: "";
    height: 100%;
    background: #826CFF;
    border-radius: 0.296875rem;

    position: absolute;
    transition: width 0.4s ease;
}

.selectPage .question-card {
    width: 100%;
    padding: 0 1rem;
    margin: 1.25rem 0 0.9375rem;
    color: #666666;
    opacity: 0.5;

    font-family: source sans pro, sans-serif;
    font-size: 1.0625rem;
    font-weight: normal;
    line-height: 150%;
    letter-spacing: 0;
    font-feature-settings: "kern" on;

    transition: opacity 400ms ease;
}

.selectPage .question-active {
    opacity: 1
}

.selectPage .question-card > :first-child {
    color: #222222;
    font-weight: 600;
    padding-bottom: 0.625rem;
}

.selectPage .question-card > :nth-child(n + 2) {
    padding: 0.625rem 0;
}

.selectPage .question-card .question-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0;
}

.selectPage .question-card .question-btn > div {
    width: var(--btn-size);
    height: var(--btn-size);
    border-radius: 50%;
    border: 0.125rem solid var(--btn-color);
}

.selectPage .question-card .question-btn .isActive {
    background-color: var(--btn-color);
    background-image: url("../resources/select.webp");
    background-repeat: no-repeat;
    background-size: 60%;
    background-position: center;
}

.selectPage .question-card .question-tag > div {
    width: 2.5625rem;
    text-align: center;
    font-family: source sans pro, sans-serif;
    font-size: 1.3125rem;
}

.resultPage {
    display: none;
    padding: 0.9375rem 0;
}

.resultPage .result-content {
    width: 20.5rem;
    margin: 0 auto;
    padding: 1.0625rem 0.9375rem;
    border-radius: 0.625rem 10rem 0.8125rem 0.8125rem;
    background: var(--contentBg);
    position: relative;
}

.resultPage .result-content .result-back svg {
    display: block;
    fill: var(--backColor);
}

.resultPage .result-content .result-title {
    margin: 0.9375rem 0;
    font-family: source sans pro, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: normal;
    text-transform: capitalize;
    letter-spacing: 0;
    font-feature-settings: "kern" on;
    color: var(--titleColor);
}

.resultPage .result-content .result-role {
    font-family: source sans pro, sans-serif;
    font-size: 1.9375rem;
    font-weight: bold;
    line-height: 100%;
    text-transform: uppercase;
    letter-spacing: 0;
    font-feature-settings: "kern" on;
    color: rgb(var(--roleColor));
}

.resultPage .result-content .result-tags {
    margin-top: 0.78125rem;
    font-size: 0.75rem;
    display: flex;
    justify-content: flex-end;
    position: relative;
    height: 8.65625rem;
    margin-bottom: 0.9375rem;
}

.resultPage .result-content .result-tags .result-tag {
    position: absolute;
    color: #FFFFFF;

    line-height: 100%;
    box-sizing: border-box;
    border-radius: 0.921875rem;
    padding: 0.34375rem 0.40625rem;
}

.result-tags .result-tag:nth-child(1) {
    top: 0;
    left: 5%;
    background: rgb(var(--roleColor), 0.5);
}

.result-tags .result-tag:nth-child(2) {
    top: 25%;
    left: 25%;
    background: rgb(var(--roleColor), 0.8);
}

.result-tags .result-tag:nth-child(3) {
    top: 50%;
    left: 2%;
    background: rgb(var(--roleColor), 0.6);
}

.result-tags .result-tag:nth-child(4) {
    top: 75%;
    left: 20%;
    background: rgb(var(--roleColor), 0.6);
}

.resultPage .result-content .result-tags img{
    z-index: 10;
    height: 8.65625rem;
    transform: scaleX(-1);
}

.resultPage .result-content .result-ratio {
    margin-top: 1.25rem;
}

.resultPage .result-content .result-ratio-title {
    font-family: source sans pro, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: normal;
    text-transform: capitalize;
    letter-spacing: 0;
    font-feature-settings: "kern" on;
    color: rgba(0, 0, 0, 0.76);
}

.resultPage .result-content .result-ratio-content {
    margin-top: 0.4375rem;

    display: grid;
    gap: 0.4375rem;
    align-items: center;
    grid-template-columns: 3.125rem 1fr 3.125rem;

    font-family: source sans pro, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 100%;
    text-transform: uppercase;
    letter-spacing: 0;
    font-feature-settings: "kern" on;
    color: rgba(0, 0, 0, 0.76);
}

.resultPage .result-content .result-ratio-content .left span{
    color: var(--leftColor);
}

.resultPage .result-content .result-ratio-content .ratio {
    width: 100%;
    height: 0.5625rem;
    border-radius: 6.90625rem;
    background: var(--rightColor);

    position: relative;
}

.resultPage .result-content .result-ratio-content .ratio::after {
    width: var(--ratio);
    height: 100%;
    border-radius: 6.90625rem;
    background: var(--leftColor);

    content: "";
    position: absolute;
}

.resultPage .result-content .result-ratio-content .right span{
    color: var(--rightColor);
}

.resultPage .result-content .result-btn {
    width: 18.625rem;
    height: 3.75rem;
    margin-top: 1.5625rem;
    border-radius: 7.375rem;
    background: #FFCCD4;

    font-family: source sans pro, sans-serif;
    font-size: 1.125rem;
    font-weight: bold;
    line-height: 100%;
    text-transform: uppercase;
    letter-spacing: 0;
    font-feature-settings: "kern" on;
    color: #9D1E32;

    z-index: 11;
    position: fixed;
    bottom: 0.875rem;
}

.resultPage .result-content .result-analysis {
    margin-top: 1.5625rem;
    filter: blur(5px);
    font-family: Nunito, 'sans-serif';
}

.resultPage .result-content .result-badge {
    top: 0;
    right: 0;
    transform: rotate(15deg);
    width: 5.9375rem;
    position: absolute;
}

.resultPage .result-content .result-badge img {
    width: 100%;
}

.resultPage .result-content .result-badge::after {
    top: 50%;
    left: 50%;
    content: var(--resMBTI);
    position: absolute;
    transform: translate(-50%, -50%);

    font-family: source sans pro, sans-serif;
    font-size: 1.125rem;
    font-weight: bold;
    line-height: 100%;
    text-transform: uppercase;
    letter-spacing: 0;
    font-feature-settings: "kern" on;
    color: #333333;
}

#reward-toast {
    display: none;
    padding: 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.72);

    color: #1c1c1c;
    font-size: 14px;
    font-weight: 500;
    line-height: 110%;
    text-align: center;

    left: 50%;
    bottom: 16vh;
    z-index: 12;
    position: fixed;
    transform: translateX(-50%);
}

footer {
    height: 2rem;
    color: #4c4c4c;
    padding: 0 2.6rem;
    font-size: 0.74rem;
    text-align: center;
    border-top: 1px solid #3a3a3a;
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 4px 1fr;
}

footer a {
    color: #3a3a3a;
    text-align: center;
}
