/* ★★NM-UI★★ 20250803 */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    /* 0. 底 */
    --nmbackgroundcolor0: #ffeadb;
    /* --nmbackgroundcolor0: rgba(0, 0, 0, 0.5); */
    --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. 按鈕 */
    --nmborder2: 1px solid rgba(0, 0, 0, 0.15);
    --nmborderradius2: 6px;
    --nmboxshadow2: 0 0 6px 1px rgba(0, 0, 0, 0.05);
    --nmbackgroundcolor2: white;
    --nmpadding2: 4px 6px;
    --nmgap2: 6px 6px;

    /* 2. 按鈕狀態 hover */
    /* 20250803 updated */
    --nmboxshadow2h: 0 0 8px 0 rgba(0, 0, 0, 0.08);
    --nmbackgroundcolor2h: #fdece0;
}

.nmblock {
    border: var(--nmborder1);
    border-radius: var(--nmborderradius1);
    box-shadow: var(--nmboxshadow1);
    background-color: var(--nmbackgroundcolor1);
}

.nmbutton {
    border: var(--nmborder2);
    border-radius: var(--nmborderradius2);
    box-shadow: var(--nmboxshadow2);
    background-color: var(--nmbackgroundcolor2);
    cursor: pointer;
}

/* ★★NM-UI★★ End */

body {
    font-family: 'Noto Sans', 'Noto Sans TC', sans-serif;
    font-weight: 200;
    /* 200-600 available */
}

h1,
h2 {
    font-weight: 500;
}

h3,
h4,
h5,
h6 {
    font-weight: 400;
}

body {
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    /* align-items: center; */

    width: 936px;
    padding: 0 12px;

    background: var(--nmbackgroundcolor0);

    gap: 12px;

    /* A4 height */
    height: 793.92px;
    /* border: 2px dotted red; */
}

body {
    font-size: 16px;
}

input {
    font-size: 20px;
}

#content1,
#content2 {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    /* align-items: just;
    gap: 4px; */

    /* border: 1px dotted red; */
}

/* #header>* {
    height: 100%;
    border: 2px dotted green;
} */

#header>*:nth-child(1) {
    flex: 1;

    display: flex;
    flex-direction: row;
    align-items: center;
}

#header>*:nth-child(2) {
    flex: auto;
    text-align: center;
}

#header>*:nth-child(3) {
    flex: 1;

    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
}

#homepage>img {
    height: 1.5rem;
    width: 1.5rem;
    margin: 8px 0 0 0;
    /* border: 2px dotted green; */
}

#print {
    margin: 4px 0 0 0;

    text-decoration: none;
    border: var(--nmborder2);
    border-radius: var(--nmborderradius2);
    background-color: var(--nmbackgroundcolor2);
    padding: var(--nmpadding2)
}

#print:hover,
input:hover,
select:hover {
    cursor: pointer;
    box-shadow: var(--nmboxshadow2h);
}

#input {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;

    align-items: center;
    text-align: center;

    border: var(--nmborder1);
    border-radius: var(--nmborderradius1);
    background-color: var(--nmbackgroundcolor1);
    box-shadow: var(--nmboxshadow1);
    padding: 4px 12px 10px 12px;
}

#input>div {
    width: 30%;
    flex: 1;
    /* border: 1px dotted blue; */

    /* display: flex;
    flex-direction: row; */
}

.inputitemwrapper {
    display: flex;
    flex-direction: column;

    /* border: 2px dotted red; */
}

.inputparameter {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    height: 2rem;
    padding: 0 12px;
    width: 100%;
}

#resultarea1,
#resultarea2 {
    display: flex;
    flex-direction: column;
    /* gap: 12px; */
}

.areaspacer {
    height: 8px;
}

.area0 {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.areatype1 {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
}

.areatype1>div {
    width: 40%;
    flex: 1;
}

.area1 {
    /* border: var(--nmborder1); */
    border-radius: var(--nmborderradius1);
    background-color: var(--nmbackgroundcolor1);
    box-shadow: var(--nmboxshadow1);
    padding: 6px 8px 8px 8px;

    display: flex;
    flex-direction: column;
    align-items: center;

}

.footnote {
    font-size: 0.8rem;
}

.area2 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;

    /* border: 3px dotted green; */
}

.area2>div {
    width: 30%;
    flex-grow: 1;

    /* display: flex;
    flex-direction: column; */

    text-align: center;

    /* border: 2px dashed orange; */
}

/* .area3 {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.area3>div {
    border: 2px dashed purple;

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.area3>div>div:nth-child(1) {
    flex: 3;
    text-align: right;
    padding: 0 12px 0 0;
}

.area3>div>div:nth-child(2) {
    flex: 3;
} */

h3 {
    font-size: 1.25rem;
    font-weight: 400;
}

.emphasis {
    font-size: 1.5rem;
    font-weight: 500;
}

.unit {
    font-size: 0.8rem;
    font-weight: 300;
}

#oocytearea {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
}

.oocyte {
    width: 1.6rem;
    height: 1.6rem;
}

/* graph 1 style */

.g1area {
    width: 100%;
    padding: 4px 12px;
}

.g1barcontainer {
    width: 100%;
    height: 30px;
    background-color: #e9ecef;
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;

    padding: 4px;
    /* border: 1px solid gray; */
}

.g1bar {
    height: 100%;
    width: 20%;
    background-color: #28a745;
    border-radius: 16px;
    transition: width 1.0s ease-in-out;
    display: none;
    /* Initially hidden */
}

/* graph 2 style */
.g2area {
    width: 100%;
}

.g2indicatorcontainer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.g2indicatorcontainer>div:nth-child(2) {
    flex: 1;
    /* border: 1px dotted green; */
}

.g2indicator {
    width: 0;
    height: 0;
    border-left: 0.5rem solid transparent;
    border-right: 0.5rem solid transparent;
    border-top: 1rem solid black;
}

.g2barcontainer {
    width: 100%;
    height: 20px;

    overflow: hidden;

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;

    align-items: center;
}

.g2barcontainer>div:nth-child(2) {
    flex: 1;
}

.g2barcontainer>div:nth-child(1),
.g2barcontainer>div:nth-child(3) {
    height: 100%;
    margin: 0 0 4px 0;
}

.g2bar {
    height: 16px;
    background: linear-gradient(to right, #FFC1CC, #E6E6FA);
    /* box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); */
    /* width: 100%; */
    border-radius: 8px;
    /* transition: width 1.0s ease-in-out; */
}

#r-menopauseindicatorcontainer {
    display: none;
}

#r-menopauseindicatoradjust {
    width: 47.8%;
    transition: width 1.0s ease-in-out;
}

#menopauseprediction {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 12px;
    text-align: center;
    padding: 0 16px;

    align-items: center;
}

#menopauseprediction>div {
    flex: 1;
    /* border: 1px solid red; */
}

#style1 {
    padding: 6px 16px 8px 16px;
}

#style2 {
    margin: 4px 0 8px;
}

.style3 {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;

    width: 100%;

    gap: 10px;
    padding: 0 8px;
}

.style3>div {
    flex: 1;
    text-align: center;

    display: flex;
    flex-direction: column;
}

.style4 {
    font-weight: 400;
}

.style5 {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-weight: 500;
}

.highlightarea {
    background-color: rgba(128, 128, 128, 0.1);
    margin: 0 14px 8px;
    border-radius: 6px;
}

#fetprognosis {
    width: 100%;

    margin: 4px 0 0 0;
}

#fetprognosis>div {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;

    width: 100%;
    text-align: center;
    /* 水平置中 */
    align-items: center;
    /* 垂直置中 */
    /* border: 1px dotted red; */

}

#fetprognosis>div>:nth-child(1) {
    flex: 1;
    /* border: 1px dotted green; */
}

#fetprognosis>div>:nth-child(2) {
    flex: 1;
    /* border: 1px dotted green; */
}

#fetprognosis>div>:nth-child(3) {
    flex: 1;
    /* border: 1px dotted green; */
}

.baby {
    width: 1rem;
    height: 1rem;
}

.babyhidden {
    width: 1rem;
    height: 1rem;
    opacity: 0;
}

#r-subsidy1note {
    margin: 2px 0 2px 0;
}

#subsidy1 {
    width: 95%;
    border: 1px solid rgba(128, 128, 128, 0.5);
    border-radius: 6px;

    margin: 0 0 6px 0;
}

#subsidy1>div {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;

    width: 100%;
    text-align: center;
    /* 水平置中 */
    align-items: center;
    /* 垂直置中 */
}

#subsidy1>div>div {
    flex: 1;
}

#subsidy1>div:nth-child(1) {
    background-color: rgba(255, 166, 0, 0.1);
    border-radius: 6px 6px 0 0;
}

#subsidy1>div:nth-child(2) {
    border-top: 1px solid rgba(128, 128, 128, 0.5);
    /* border-bottom: 1px solid rgba(128, 128, 128, 0.5); */
    /* padding: 1px 0; */
}

#r-citylinkimage {
    width: 1rem;
    height: 1rem;
}


@media (max-width: 935px) {
    body {
        flex-direction: column;
        width: 474px;
    }
}

@media (max-width: 492px) {
    body {
        flex-direction: column;
        width: 100%;
    }
}

@media print {

    .area1,
    #input {
        box-shadow: none;
        border: 1px solid rgba(0, 0, 0, 0.2);
    }
}