/* ★★NM-UI★★ 20250616 */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    /* 0. 底 */
    --nmbackgroundcolor0: #ffeadb;
    --nmgap0: 12px;
    --nmwidth0: 450px;
    /* 1. 區塊 */
    --nmbackgroundcolor1: rgba(255, 255, 255, 0.7);
    --nmborder1: 1px solid rgba(0, 0, 0, 0);
    --nmboxshadow1: 0 2px 8px 0 rgba(0, 0, 0, 0.10);
    --nmpadding1: 6px 14px 12px 14px;
    --nmborderradius1: 12px;
    /* 2. 按鈕 */
    --nmbackgroundcolor2: white;
    --nmborder2: 1px solid rgba(0, 0, 0, 0.15);
    --nmboxshadow2: 0 0 4px 1px rgba(0, 0, 0, 0.1);
    --nmborderradius2: 8px;
    --nmpadding2: 4px 6px;
    --nmgap2: 6px 6px;
    /* 2. 按鈕狀態 hover active */
    --nmbackgroundcolor2h: #fdece0;
}

body {
    font-family: 'Noto Sans', 'Noto Sans TC', sans-serif;
    font-weight: 300;
    /* 200-600 available */
}

h1,
h2 {
    font-weight: 500;
}


h3,
h4,
h5,
h6 {
    font-weight: 400;
}

/* ★★NM-UI★★ End */

body {
    width: 932px;
    margin: 0 auto;
    background-color: var(--nmbackgroundcolor0);
    padding: 0 12px;
}

.nmui-block1 {
    border: 1px solid rgb(180, 180, 180);
    border-radius: 4px;
    padding: 16px;
    background-color: #f8f2ee;
    background-color: pink;
    background-color: white;
    /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); */
}

.nmui-btn1 {
    border: var(--nmborder2);
    border-radius: var(--nmborderradius2);
    padding: var(--nmpadding2);
    box-shadow: var(--nmboxshadow2);
    background-color: var(--nmbackgroundcolor2);
}


.nmui-btn1:hover {
    border: 1px solid rgba(255, 192, 203, 0.9);
    background-color: rgba(255, 192, 203, 0.3);
    cursor: pointer;
}

.nmui-btn1-active {
    border: 1px solid rgba(255, 192, 203, 1.0);
    background-color: rgba(255, 192, 203, 0.9);
    cursor: pointer;
    font-weight: 400;
}

/* UniUI Setting 1 */

li {
    margin-left: 1rem;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 8px;
}

header {
    width: 100%;

    display: flex;
    flex-direction: row;
    justify-content: center;

    gap: 8px;
    align-items: center;
}

#content {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

#block1,
#block2,
#block3 {
    width: 450px;
    border-radius: var(--nmborderradius1);
    border: var(--nmborder1);
    background-color: var(--nmbackgroundcolor1);
    box-shadow: var(--nmboxshadow1);
}

#block1 {
    padding: 12px 20px 16px;
}

#block2 {
    padding: 20px 20px 20px;
}

#block12 {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.factor {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.factor1 {
    font-weight: 400;
}

.factor2 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 6px;
    /* font-size: 0.9rem; */
}

.factor2>div {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

/* 項目名稱粗體 */
/* .factor2>div>div:nth-child(1) {
    font-weight: 300;
} */

.factor2>div>div:nth-child(2) {
    /* 把分數放在右邊 */
    /* margin-left: auto;
    text-align: right; */
    font-weight: 300;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
}

.multiplechoices>div {
    border-radius: 4px;
    border: dashed 1px rgb(160, 160, 160);
}

#block2 {
    display: flex;
    flex-direction: column;
    gap: var(--nmgap0);
    /* padding: 16px 20px 14px; */
}

/* 兩欄layout */
.block2-X2 {
    display: flex;
    flex-direction: row;
    gap: 14px;
}

.block2-X2>div {
    flex: 1;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    /* border: 1px solid rgb(180, 180, 180); */
    padding: 8px 12px;
}

/* 單欄layout */
.block2-X1 {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    /* border: 1px solid rgb(180, 180, 180); */
    padding: 8px 12px;
}

/* 有用但尚未使用 */
/* .dottedbg {
    background-color: white;
    background-image: radial-gradient(lightgray 1px, transparent 0);
    background-size: 10px 10px;
} */

#result-score,
#result-riskgroup,
#result-stage {
    font-weight: 500;
    font-size: 1.4rem;
}

#result-stagenote {
    color: rgba(0, 0, 0, 0.6);
    font-style: italic;
}

.hspa {
    font-size: 1.3rem;
}

#footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

/* Type III：925以上 */
/* 2W */
@media (min-width: 933px) {
    /* Default setting */
}

/* Type II：w+2p to 2W+2p+g */
/* 1W */
@media (max-width: 932px) {
    body {
        width: 466px;
    }

    h1 {
        font-size: 1.8rem;
    }

    #content {
        flex-direction: column;
        align-items: center;
    }
}

/* Type I：0-466 */
/* 100% */
@media (max-width: 466px) {
    body {
        width: 100%;
    }

    #content {
        gap: 12px;
    }

    #content,
    #block1,
    #block2,
    #block3 {
        width: 100%;
    }

    h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 400px) {
    h1 {
        font-size: 1.4rem;
    }
}