@import url('https://fonts.googleapis.com/css?family=Noto+Sans+TC&display=swap');
@import url('https://fonts.googleapis.com/css?family=Noto+Sans+TC|Noto+Serif+TC:400,600,700,900&subset=chinese-traditional,cyrillic,vietnamese');

:root {
    --MainColor: rgb(0, 0, 0);
    --SecondColor: rgb(173, 173, 173);
    --BodyBackGroundColor: rgb(219, 219, 219);
    --BackGroundColor: rgb(237, 237, 237);
    --SecondBackGroundColor: rgb(222, 222, 222);
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--BodyBackGroundColor);

    /* height: 100vh; */
    width: 100%;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 0.9em;
    margin: 0;
    scrollbar-width: none;
}

h1 {
    font-size: 1.5em;
}

h2 {
    font-size: 1.2em;
}

h4 {
    font-size: 1.2em;
}

embed {
    width: 100%;
    height: 3em;
}

.danger {
    color: red;
    animation: Danger .2s ease;
}

.RatioType {
    display: flex;
    width: 100%;
}

.RatioType>div {
    margin: 0 1.5em;
}

table span {
    color: rgb(131, 131, 131);
}


#display {
    display: flex;
    flex-wrap: wrap;
    background: #FFF;
    justify-content: space-evenly;
}

.TableTitle {
    background: var(--MainColor);
    color: #FFF;
    width: 1.2em;
    padding: 1em;
    text-align: center;
}

table {
    width: 100%;
}

#display input {
    width: calc(100% - 1em);
}

#display .TableTitle {
    height: 1.4em
}

#display td {
    height: 5em;
    min-width: 4.3em;
}

#display .warn {
    font-size: .7em;
    margin: 0;
}

#DemoBox {
    display: flex;
    align-items: center;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

#ScreenSize_ChoBox {
    width: 100%;
    display: flex;
    justify-content: space-around;
}

#ScreenSize_ChoBox>div {
    border-radius: 10px;
    border: solid var(--MainColor) 1px;
    Transition: all .4s;
}

#ScreenSize_ChoBox>.active {
    color: white;
    background: var(--MainColor);
}

.ScreenSize_Cho {
    opacity: 100%;
    font-size: 1.3em;
    margin: 10px;
    text-align: center;
}

#cal-key {
    background-color: var(--BackGroundColor);
    padding: 1em;
}


#cal-show {
    padding: 0em 0em 1em 0em;
    text-align: center;
}

#BaseDisplay>div {
    position: relative;
    bottom: 0;
}

.outerDiv>div>div {
    position: relative;
}

.outerDiv p {
    position: absolute;
    font-size: 1.2em;
    margin: 0
}

#Base_s {
    bottom: 70%;
    right: 75%;
}

#Base_w {
    top: 51%;
    left: 25%;
    margin: 0px;
    width: 4em;
}

#Base_h {
    top: 21%;
    left: 45%;
}

#Base_d {
    right: 40%;
    bottom: 13%;
    width: 5em;
}

#Base_h2 {
    top: 11%;
    left: 10%;
}

.outerDiv>div>div {
    position: relative;
    display: flex;
}

.outerDiv img {
    width: 100%;
}

.outerDiv .HD {
    margin: 9% 0 0 0;
}

#CenterScreen .C_h1 {
    top: 60%;
    left: 15%;
}

#CenterScreen .C_h2 {
    top: 42%;
    left: 20%;
}

#DigitalZoom .h {
    top: 25%;
    left: 40%;
}

#DigitalZoom .w {
    top: 41%;
    left: 25%;
}

#DigitalZoom .sd {
    bottom: 68%;
    right: 74%;
}

#DigitalZoom .far {
    top: 76%;
    left: 55%;
}

.outerDiv .HD1 {
    top: 31%;
    left: 35%;
}

.outerDiv .HD2 {
    top: 31%;
    left: 9%;
}

.outerDiv .TipWord {
    bottom: 10%;
    right: 18%;
    font-size: .8em;
}

@keyframes Danger {
    0% {
        transform: translate(0, 0);
    }

    /* 起始位置 */
    50% {
        transform: translate(0, -20%);
    }

    100% {
        transform: translate(0, 0);
    }

    /* 结束位置 */
}


/* 滑動CSS */

/* 底下是滑動展示框的css */
.outerDiv {
    overflow: hidden;
    display: flex;
}

.outerDiv>div {
    min-width: 100%;
}

.outerDiv>div:nth-of-type(2n) {
    background: var(--BackGroundColor);
}

.outerDiv>div:nth-of-type(2n+1) {
    background: var(--SecondBackGroundColor);
}

.BoxList {
    width: 150px;
    height: 120px;
    overflow: auto;
}

/* 底下這些是頂部導覽按鈕的css */
.RadioModelButtonList {
    width: 100%;
    display: flex;
    user-select: none;
    overflow: hidden;
    flex-wrap: wrap;
}

.RadioModelButtonList p {
    margin: 0;
    font-size: 1.2em;
}

.RadioModelButtonList div {
    padding: 4px 10px;
    border-radius: 10px;
    margin: .3em 0 0 1.3em;
    border: var(--MainColor) 1px solid;
    Transition: all .4s;
}

.RadioModelButtonList>.active {
    background: var(--MainColor);
}

.RadioModelButtonList>.active p {
    color: white;
}

@media screen and (max-width: 800px) {
    .outerDiv {
        width: 100%
    }
}


@media screen and (min-width: 900px) {
    #display>div:first-child {
        width: 30%;
        height: 100%;
    }

    #display>div:last-child {
        width: 620px;
    }

    table span {
        font-size: .6em;
    }

    .ScreenSize_Cho p {
        margin: .2em .5em;
    }
}

@media screen and (max-width: 900px) {
    #display>div {
        width: 100%;
        height: auto;
    }

    #display td {
        height: auto
    }

    #cal-key {
        border: none;
    }

    .RadioModelButtonList {
        padding: .5em 0;
    }

    .RadioModelButtonList p {
        font-size: .9em;
    }

    body {
        font-size: calc(2.4vw + 3px);
    }

    .outerDiv p {
        font-size: 1em;
    }

    .ScreenSize_Cho p {
        margin: 0em .4em;
    }

    input {
        height: 1.5em;
        font-size: 1em;
    }

    #ScreenSize_ChoBox {
        justify-content: flex-end;
    }

    #display .TableTitle {
        display: none;
    }
}