body {
  -webkit-user-select:none;
  -webkit-touch-callout:none;
  -moz-user-select: none;
}

/* 成績算法通用 */

.algorithm {
    position: relative;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: flex-end;
    width: 100%;
    margin: 0px auto 0.6em;
    padding: 0px 0.5em;
    color: #c9551b;
    font-size: 15px;
    line-height: 0;
    cursor: pointer;
}

.algorithm>img {
    width: 1.1em;
    margin-right: 5px;
}

.algorithm>.content {
    position: absolute;
    top: calc(100% + 20px);
    right: -130px;
    border: 2px #4c2c22 solid;
    background: #fff;
    margin: 0px;
    padding: 0.5em 1em;
    color: #4C2C22;
    font-size: 15px;
    border-radius: 10px;
    -webkit-transition: 0.2s ease-in-out;
    -o-transition: 0.2s ease-in-out;
    -moz-transition: 0.2s ease-in-out;
    transition: 0.2s ease-in-out;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.algorithm>img:hover .content {
    opacity: 1;
    pointer-events: visible;
}

.algorithm .content.show {
    opacity: 1;
    pointer-events: visible;
}

.algorithm>.content strong {
    color: #F4B541;
    font-weight: normal;
}

.algorithm>.content::before,
.algorithm>.content::after {
    content: "";
    position: absolute;
    top: calc(-1.4em + 2px);
    left: 50%;
    width: 0px;
    height: 0px;
    border-width: 0.6em;
    border-style: solid;
    transform: translate(-50%, 0px)
}

.algorithm>.content:before {
    border-color: transparent transparent #4c2c22;
}

.algorithm>.content:after {
    top: calc(-1.4em + 4px);
    border-color: transparent transparent #fff;
}


/* 考試中 */

main {
    position: relative;
    max-height: 100vh;
    overflow: hidden;
}

#content-above{
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}
#timer{    
    display: flex;
    align-items: center;
}
.time {
    margin: auto;
    font-family: "Harmony_blod";
    font-size: 30px;
    font-weight: 600;
    position: relative;
}

.time>span {
    position: relative;
    display: inline-block;
    padding: 0.28em 0.8em 0.28em 2.5em;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    -webkit-text-stroke: 1px #fff;
    letter-spacing: 0.1em;
}

#content-tip{
    position: absolute;
    left: calc(50vw + 50px);
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 1rem;
    margin-left: 6em;
    padding: 5px;
}

#content-tip span{
    display: flex;
    flex-wrap: wrap;
}

#content-tip strong{
    color: #fa7842;
}

#content-tip img{
    vertical-align: middle;
    height: 1.6em;
    margin-left: 0.2em;
}

.hurry>span {
    color: #e84a35;
    -webkit-text-stroke: 1px #e84a35;
    animation: breath 0.75s infinite ease;
}

@keyframes breath {
    from {
        color: #fff;
        -webkit-text-stroke: 1px #fff;
    }
    50% {
        color: #e84a35;
        -webkit-text-stroke: 1px #e84a35;
    }
    to {
        color: #fff;
        -webkit-text-stroke: 1px #fff;
    }
}

@-webkit-keyframes breath {
    from {
        color: #fff;
        -webkit-text-stroke: 1px #fff;
    }
    50% {
        color: #e84a35;
        -webkit-text-stroke: 1px #e84a35;
    }
    to {
        color: #fff;
        -webkit-text-stroke: 1px #fff;
    }
}

.time>img {
    width: 75px;
    position: absolute;
    /* top: 50%; */
    margin-right: calc(3.3em + 35px);
    /* transform: translate(0, -50%); */
    z-index: 1;
}

.time.active>img {
    animation: timerRotate 1s infinite ease;
}

.content {
    margin: 2em 0px 1em;
    overflow: auto;
}

.content>ul {
    height: 100%;
    padding: 0px 1.5em;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-snap-align: start;
    -ms-overflow-style: none;
    overflow-y: scroll;
}

.content>ul>li {
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    max-width: calc(1024px + 1.5em);
    margin: 0px auto;
}

.content>ul>li:not(:last-child) {
    margin-bottom: 2em;
}

.content>ul>li>.qabox {
    width: 100%;
}

.content>ul>li .question {
    padding: 0px 1em;
    margin-bottom: 0.3em;
    color: #7d7d7d;
    word-wrap: break-word;
}

.content>ul>li .answer {
    position: relative;
}

.content>ul>li .answer>input {
    width: 100%;
    border: 3px #f4b541 solid;
    background: #fdf6ed;
    border-radius: 50px;
    color: #4c2c22;
    padding: 8px calc(1em - 3px);
}

.content>ul>li .question,
.content>ul>li .question>span,
.content>ul>li .answer>input{
    font-size: 24px;
}


.content>ul>li .answer::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 5px;
    left: 0px;
    border-radius: 50px;
    background: rgba(76, 44, 34, 0.7);
    z-index: -1;
}

.caption {
    position: fixed;
    top: 50vh;
    left: 0px;
    width: 100%;
    background: -moz-linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
    background: -o-linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
    color: #fff;
    font-family: "TaipeiSans_bold";
    font-size: 1.45em;
    text-align: center;
    letter-spacing: 0.1em;
    transform: translate(0px, -50%);
    z-index: 1;
    -webkit-transition: all 1.3s ease-in-out, opacity 0.35s ease-in-out;
    -moz-transition: all 1.3s ease-in-out, opacity 0.35s ease-in-out;
    -o-transition: all 1.3s ease-in-out, opacity 0.35s ease-in-out;
    transition: all 1.3s ease-in-out, opacity 0.35s ease-in-out;
    pointer-events: none;
}

.caption>ul {
    padding: 0.7em 0px;
}

.caption>ul>li {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    padding: 0.3em 0px;
}

.caption>ul>li:nth-child(2) img {
    margin-right: 0.5em;
}

.caption>ul>li:nth-child(2) img:last-child {
    margin: 0px;
}

.caption>ul>li strong{
    color: #FFC74B;
}

.caption>ul>li img{
    height: 1.6em;
    margin-left: 0.3em;
}

.up_remove {
    opacity: 0;
    top: -100vh;
}

.score {
    position: relative;
    border: 3px #974014 solid;
    border-radius: 10px;
    background: #fcf2e8;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    width: 550px;
}

.score>.title {
    position: absolute;
    top: -28px;
    line-height: 0;
}

.score>.score_content {
    width: 100%;
    background: #eee3c7;
    border-radius: 10px;
    padding: 20px;
}

.score>.score_content>.time_s {
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    width: 100%;
    line-height: 0;
    font-size: 22px;
}

.score>.score_content>.time_s>img {
    width: 1.1em;
    margin-right: 5px;
}

.score>.score_content>.time_s>span {
    color: #4c2c22;
}

.score>.score_content>p {
    text-align: center;
    color: #b18976;
}

.score>.score_content>.time_t {
    text-align: center;
    font-size: 26px;
    color: #aa4235;
    letter-spacing: 2px;
}

.score>.score_content>.time_t>span {
    font-family: "TaipeiSans_bold";
}

.score>.score_content>.s_content {
    width: 60%;
    margin: 0px auto;
    padding: 30px 0px;
}

.score>.score_content>.s_content>ul>li {
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: space-between;
    margin: 5px 0px;
}

.score>.score_content>.s_content>ul>li>.left {
    color: #4c2c22;
    display: flex;
    align-items: flex-end;
}

.score>.score_content>.s_content>ul>li>.left>span {
    font-size: 20px;
}

.score>.score_content>.s_content>ul>li>.left>p {
    font-size: 14px;
    line-height: 25px;
}

.score>.score_content>.s_content>ul>li>.right>span {
    font-size: 20px;
    color: #4c2c22;
    font-family: "TaipeiSans_bold";
}

.mask>.btn_box {
    width: 100%;
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: center;
    margin-top: 30px;
}

.mask>.btn_box>a {
    display: block;
    line-height: 0;
    margin: 0px 20px;
    cursor: pointer;
}

@media screen and (max-width: 1366px) {
    .time {
        font-size: 26px;
    }
    .time>img {
        width: 60px;
        margin-right: calc(3em + 35px);
    }
}
@media screen and (max-width: 1024px) {
    #content-tip{
        left: calc(50vw + 50px);
        margin-left: 4em;
        max-width: 350px;
    }
    #content-tip span{
        display: block;
    }
    .time {
        font-size: 26px;
    }
    .time>img {
        width: 60px;
        margin-right: calc(3em + 35px);
    }
}
@media screen and (max-width: 760px) {
    main{
        padding: 4em 5px 0px 5px;
    }
    #content-above{
        display: block;
        margin: 0 auto;
        text-align: center;
    }
    #timer{
        display: block;
        margin: 0 auto;
        line-height: 1;
    }
    .time > img{
        width: 45px;
        margin-right: calc(2.3em + 35px);
    }
    .time > span{
        padding: 0.2em 0.6em 0.2em 2.2em;
    }
    #content-tip{
        display: inline-flex;
        position: unset;
        margin: 10px 0;
        justify-content: center;
    }
    #content-tip span{
        display: block;
    }
}

@-webkit-keyframes timerRotate {
    0% {
        transform: rotateZ(0deg);
    }
    50% {
        transform: rotateZ(0deg);
    }
    100% {
        transform: rotateZ(-180deg);
    }
}

@-moz-keyframes timerRotate {
    0% {
        transform: rotateZ(0deg);
    }
    50% {
        transform: rotateZ(0deg);
    }
    100% {
        transform: rotateZ(-180deg);
    }
}

@-ms-keyframes timerRotate {
    0% {
        transform: rotateZ(0deg);
    }
    50% {
        transform: rotateZ(0deg);
    }
    100% {
        transform: rotateZ(-180deg);
    }
}

@keyframes timerRotate {
    0% {
        transform: rotateZ(0deg);
    }
    50% {
        transform: rotateZ(0deg);
    }
    100% {
        transform: rotateZ(-180deg);
    }
}


/* 捲軸寬度 */

::-webkit-scrollbar {
    width: 0.5em;
}


/* 捲軸背景色 */

::-webkit-scrollbar-track {
    background: unset;
}


/* 捲軸把手 */

::-webkit-scrollbar-thumb {
    background: #3C5984;
    border-radius: 99em;
}



@media screen and (max-width: 1024px) {
    .content > ul > li .question,
    .content > ul > li .question > span,
    .content > ul > li .answer > input{
        font-size: 1.2rem;
    }

    main{
        padding: 4em 10px;
    }

    .content > ul{
        padding: 0 0.75em;
    }
    
}

@media screen and (max-width: 768px) {
    .content > ul > li .question,
    .content > ul > li .question > span,
    .content > ul > li .answer > input{
        font-size: 1.07rem;
    }
    
}