
@font-face {
    font-family: '王漢宗中楷體注音';
    src: url('../font/wp010-08.ttf') format('truetype');
    font-display: swap;
    font-weight: normal;
    font-style: normal;
    unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE30-FE4F, U+20000-2FA1F;
}

@font-face {
    font-family: '王漢宗中楷體破音一';
    src: url('../font/wp110-08.ttf') format('truetype');
    font-display: swap;
    font-weight: normal;
    font-style: normal;
    unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE30-FE4F, U+20000-2FA1F;
}

@font-face {
    font-family: '王漢宗中楷體破音二';
    src: url('../font/wp210-08.ttf') format('truetype');
    font-display: swap;
    font-weight: normal;
    font-style: normal;
    unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE30-FE4F, U+20000-2FA1F;
}

@font-face {
    font-family: '王漢宗中楷體破音三';
    src: url('../font/wp310-08.ttf') format('truetype');
    font-display: swap;
    font-weight: normal;
    font-style: normal;
    unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE30-FE4F, U+20000-2FA1F;
}

body {
    font-size: 20px;

    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -moz-user-select: none;
}
body, h3 {
    font-family: '王漢宗中楷體注音', '標楷體', Arial, sans-serif;
}
body.no-zhuyin, body.no-zhuyin h3 {
    font-family: '標楷體', Arial, sans-serif;
}
#panel_question.no-zhuyin, #panel_question.no-zhuyin h3 {
    font-family: '標楷體', Arial, sans-serif;
}

.btn {
    border-radius: 30px;
    color: #819cd6;
    background: white;
    border-color: #819cd6;
    border-width: 1px;
    font-size: 20px;
    padding: 10px 24px;
}
.btn:hover:enabled {
    color: white;
    background: linear-gradient(to bottom, #8fa6db 0%, #334c8b 100%);
}
.btn:focus {
    outline: 0 !important;
    border-color: #819cd6;
    color: #819cd6;
    background-color: white !important;
}
.btn[disabled],
.btn.btn-success[disabled] {
    border-color: #ccc;
    color: #ccc;
}
.btn.btn-success {
    color: #00b151;
    border-color: #00b151;
}.btn.btn-success:hover:enabled {
    color: white;
    background: linear-gradient(to bottom, #a2d089 0%, #4a7a33 100%);
    border-color: #a2d089;
}
.jumbotron .btn {
    font-size: 20px;
    padding: 10px 24px;
}


.navbar-inverse {
    min-height: 80px;
    text-align: center;
    background-color: white !important;
    border-bottom-width: 12px;
    border-color: #b5c6e7;
}
.navbar-inverse .navbar-brand {
    float: none;
    color: black !important;
    font-size: 26px;
    line-height: 30px;
    margin: 0px !important;
    padding: 0px;
}
.navbar-header {
    float: none;
    text-align: center;
    padding-top: 14px;
}
.navbar-toggle {
    display: none;
}


.panel-default {
    -webkit-box-shadow: none;
    box-shadow: none;
    border-width: 0px;
    background-color: transparent;
}
.panel-default > .panel-heading {
    border-width: 0px;
    background-color: transparent;
}
.panel-default > .panel-footer {
    border-width: 0px;
    background-color: transparent;
}

/*.container {
    max-width: 640px !important;
}*/

.site-index {
/*        max-width: 680px !important;*/
    margin: auto;
}

.select2-container--krajee {
    display: inline-block;
    width: auto !important;
    min-width: 100px;
}

.btn-default:hover {
    background-color: #fff;
    border-color: #ccc;
}



#panel1 input {
    height: 40px;
    max-width: 300px;
    margin: auto;
    margin-top: 16px;
}

#panel_intro .panel-body,
#panel_intro_sub .panel-body {
    line-height: 50px; 
}

#panel_intro,
#panel_intro_sub {
    max-width: 780px;
    margin: auto;
}
#panel_option {
/*    display: table;*/
    margin: auto;
    overflow-x: auto;
}

.menu_btn {
    border: 1px solid #365297;
    border-radius: 10px;
    color: black;
}
.menu_btn[disabled] {
    border-color: #ccc;
    color: #ccc;
}

#panel_content {
/*    height: 70vh;*/
    overflow-y: scroll;
    margin-bottom: 0px;
    position: relative;
}

/* Android Chrome 自訂 scrollbar 樣式 */
#panel_content::-webkit-scrollbar {
    width: 8px;
    -webkit-appearance: none;
}
#panel_content::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}
#panel_content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}
#panel_content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

/* SimpleBar 自訂樣式 (for iOS) */
/* SimpleBar 自訂樣式 - 強制顯示滾動條 */
/* #panel_content .simplebar-scrollbar::before {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    opacity: 1 !important;
    visibility: visible !important;
}

#panel_content .simplebar-scrollbar {
    opacity: 1 !important;
    visibility: visible !important;
} */

#panel_content .simplebar-track.simplebar-vertical {
    width: 8px;
    right: 2px;
    opacity: 1 !important;
    visibility: visible !important;
}

#panel_content .simplebar-track.simplebar-horizontal {
   display: none;
}

#panel_content .simplebar-track {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    opacity: 1 !important;
    visibility: visible !important;
}

#panel_content .panel-heading span {
    color: #365297;
}
#panel_question span.circle {
    display: inline-block;
    width: 34px;
    height: 34px;
    line-height: 32px;
    border-radius: 34px;
    border: solid;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    color: #ccc;
    vertical-align: middle;
    margin: 0px 12px;
}
#panel_question span.circle.expire {
    color: #365297;
    border-color: #ccc;
}
#panel_question span.circle.active {
/*    color: #365297;*/
    border-color: #365297;
    border-width: 3px;
    line-height: 29px;
}
#panel_question span.circle[value] {
    color: #365297;
}

#panel_question .panel-heading {
/*    display: inline-block;*/
    padding: 8px;
}
#panel_question .panel-heading #image {
    max-height: 200px;
}
#panel_question .panel-heading #question {
    display: table;
    min-height: 100px;
    text-align: center;
    margin: auto;
}
#panel_question .panel-heading #question p {
    display: inline-block;
/*    text-align: left;*/
/*    padding-left: 16px;*/
/*    max-width: 40vh;*/
    display: table-cell;
    vertical-align: middle;
}
/*#panel_question .panel-heading #question p.read {
    max-width: 50vh;
    text-align: left;
    padding-left: 8px;
}*/
#panel_question.read .panel-heading #question p {
/*    display: flex;*/
    max-width: 50vh;
    text-align: left;
    padding-left: 8px;
}
#panel_content .panel-body {
    white-space: pre-line;
}



.radiogroup label {
    display: block;
    position: relative;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 2px 10px;
    min-width: 230px;
    text-align: left;
    margin-bottom: 15px;
    font-weight: normal;
}
.radiogroup input[type="radio"] {
    margin-top: 8px;
    vertical-align: top;
}
.radiogroup input[type="radio"]:checked+label {
    border: 1px solid #365297;
    font-weight: bold;
}
.radiogroup input:checked + label {
    border: 1px solid #365297;
}
/*input[type="radio"]:checked + ::marker {
    color: #365297;
}*/
.radiogroup label::before {
    position: absolute;
    content: "";
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    border: 3px solid #365297;
    border-radius: 5px;
    opacity: 0;
    transform: scale(1.03);
    transition: all 0.3s ease;
}
.radiogroup input[type="radio"]:checked  label::before {
    opacity: 1;
}
.radiogroup img {
    display: block;
}
.radiogroup .option_text {
    display: inline-block;
}

.read .radiogroup {
    width: 100%;
}
.read .radiogroup label {
    min-width: 300px;
}
.read .radiogroup .option_text {
    display: inline-block;
    width: 88%;
}

.radiogroup.image li {
    display: inline-block;
}
.radiogroup.image label {
    text-align: center;
    border-radius: 40px;
    padding-bottom: 12px;
    padding-left: 12px;
    padding-right: 12px;
}
.radiogroup.image img {
    display: block !important;
    max-height: 200px;
    margin: auto;
    margin-top: 8px;
}
.radiogroup.image span {
    display: none;
}
.radiogroup.image p {
    display: block !important;
    position: absolute;
    top: -26px;
    left: 0;
    right: 0;
    font-size: 22px;
}



p.normal-font,
.normal-font span {
    font-family: '標楷體';
}
p.big,
span.big {
    font-size: 30px;
    /* font-weight: bold; */
}



ul {
    list-style-type: upper-alpha;
}
/*li::marker {
    font-weight: bold;
}*/
li.active::marker {
    color: #365297;
    font-weight: bold;
}
li.active label {
    border: 3px solid #365297;
    margin-top: -2px;
    margin-bottom: 13px;
    padding-left: 8px;
/*    outline: solid;
    outline-color: #365297;
    outline-width: 3px;
    border-color: transparent;*/
}

.radiogroup {
    display: inline-block;
}


.arrow {
    border-style: solid;
    border-width: 0 3px 3px 0;
    padding: 3px;
    display: inline-block;
}
.right {
    transform: rotate(-45deg);
}
.left {
    transform: rotate(135deg);
}
.up {
    transform: rotate(-135deg);
}
.down {
    transform: rotate(45deg);
}


#panel_progress {
    margin-top: 30px;
}

.progress {
    position: relative;
    height: 20px;
    margin-bottom: 4px;
}
.progress > .progress-type {
    position: absolute;
    height: 100%;
    left: 0px;
}


.bubble {
    position: absolute;
    max-width: 400px;
    background: white;
    color: orange;
    font-size: 24px;
    text-align: left;
    border-radius: 10px;
    padding: 8px 16px;
    border: 1px solid orange;
    display: inline-block;
    z-index: 9999;
    cursor: pointer;
    animation: animated-border 1.0s infinite;
}
.bubble:before {
    content: '';
    position: absolute;
    display: block;
    width: 0;
    z-index: 1;
    border-style: solid;
    border-width: 0 30px 20px 0;
    border-color: transparent orange transparent transparent;
    top: 40%;
    left: -30px;
    margin-top: -10px;
}
.bubble:after {
    content: '';
    position: absolute;
    display: block;
    width: 0;
    z-index: 1;
    border-style: solid;
    border-width: 0 27.5px 18px 0;
    border-color: transparent white transparent transparent;
    top: 40%;
    left: -27px;
    margin-top: -9px;
}
.bubble.right-arrow:before {
    border-width: 0 0 20px 30px;
    border-color: transparent transparent transparent orange;
    left: unset;
    right: -30px;
}
.bubble.right-arrow:after {
    border-width: 0 0 18px 27.5px;
    border-color: transparent transparent transparent white;
    left: unset;
    right: -27px;
}

@keyframes animated-border {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.4);
    }
    100% {
        box-shadow: 0 0 0 20px rgba(255, 165, 0, 0);
    }
}

.modal-dialog .close {
    display: none;
}


/*-----------------------------------------------------------------------------------*/
@keyframes growProgressBar {
    0%, 33% { --pgPercentage: 0; }
    100% { --pgPercentage: var(--value); }
}

/* 針對不支援 @property 的瀏覽器的備用方案 */
@keyframes growProgressBarFallback {
    0%, 33% { 
        background: radial-gradient(closest-side, white 80%, lightgray 0 82.5%, transparent 0 97.5%, lightgray 0 100%),
                    conic-gradient(var(--fg) 0%, var(--bg) 0);
    }
    100% { 
        background: radial-gradient(closest-side, white 80%, lightgray 0 82.5%, transparent 0 97.5%, lightgray 0 100%),
                    conic-gradient(var(--fg) calc(var(--value) * 1%), var(--bg) 0);
    }
}

@property --pgPercentage {
    syntax: '<number>';
    inherits: false;
    initial-value: 0;
}

div[role="progressbar-circle"] {
    /*--size: 10rem;*/
    --size: 100px;
    --fg: #4c6ec4;
    --bg: white;
    --pgPercentage: var(--value);
    /*animation: growProgressBar 1s 1 forwards;*/
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: radial-gradient(closest-side, white 80%, lightgray 0 82.5%, transparent 0 97.5%, lightgray 0 100%),
                conic-gradient(var(--fg) calc(var(--pgPercentage) * 1%), var(--bg) 0);
    font-family: Arial, sans-serif;
    font-size: calc(var(--size) / 2);
    color: var(--fg);
    cursor: pointer;
}
div[role="progressbar-circle"].active {
    background: radial-gradient(closest-side, white 80%, var(--fg) 0 82.5%, transparent 0 97.5%, var(--fg) 0 100%),
                conic-gradient(var(--fg) calc(var(--pgPercentage) * 1%), var(--bg) 0);
}
div[role="progressbar-circle"].disabled {
    cursor: no-drop;
    color: lightgray;
}

/* 支援 @property 的瀏覽器使用這個動畫 */
/*@supports (animation-timeline: auto) {
    div[role="progressbar-circle"] {
        animation: growProgressBar 1s 1 forwards;
    }
}*/

/* 不支援的瀏覽器使用備用動畫 */
/*@supports not (animation-timeline: auto) {*/
    div[role="progressbar-circle"] {
        animation: growProgressBarFallback 1s 1 forwards;
    }
/*}*/


#volume-icon {
    display: inline-block;
    width: 30px;
    vertical-align: middle;
    margin-left: 22px;
}
#volume-slider {
    margin: 10px 2.5%;
    width: 58%;

    display: inline-block;
    position: relative;
    -webkit-appearance: none;
    width: 20%;
    margin: 0;
    padding: 0;
    height: 19px;
    outline: none;
}
#volume-slider::-webkit-slider-runnable-track {
    background: #a5a5a5;
}
#volume-slider::-moz-range-track {
    background: #a5a5a5;
}
#volume-slider::-ms-fill-upper {
    background: #a5a5a5;
}
#volume-slider::before {
    width: var(--volume-before-width);
}
#volume-output {
    display: inline-block;
    width: 32px;
    text-align: center;
    font-size: 20px;
    margin-left: 10px;
}


path {
    stroke: #4c6ec4;
}

audio-player input[type="range"] {
    position: relative;
    -webkit-appearance: none;
    width: 48%;
    margin: 0;
    padding: 0;
    height: 19px;
    margin: 30px 2.5% 20px 2.5%;
    float: left;
    outline: none;
}
input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 3px;
    cursor: pointer;
    background: linear-gradient(to right, rgba(0, 125, 181, 0.6) var(--buffered-width), rgba(0, 125, 181, 0.2) var(--buffered-width));
}
input[type="range"]::before {
    position: absolute;
    content: "";
    top: 8px;
    left: 0;
    width: var(--seek-before-width);
    height: 3px;
    background-color: #4c6ec4;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
    position: relative;
    -webkit-appearance: none;
    box-sizing: content-box;
    border: 1px solid #4c6ec4;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    margin: -7px 0 0 0;
}
input[type="range"]:active::-webkit-slider-thumb {
    transform: scale(1.2);
    background: #4c6ec4;
}
input[type="range"]::-moz-range-track {
    width: 100%;
    height: 3px;
    cursor: pointer;
    background: linear-gradient(to right, rgba(0, 125, 181, 0.6) var(--buffered-width), rgba(0, 125, 181, 0.2) var(--buffered-width));
}
input[type="range"]::-moz-range-progress {
    background-color: #4c6ec4;
}
input[type="range"]::-moz-focus-outer {
    border: 0;
}
input[type="range"]::-moz-range-thumb {
    box-sizing: content-box;
    border: 1px solid #4c6ec4;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
}
input[type="range"]:active::-moz-range-thumb {
    transform: scale(1.2);
    background: #4c6ec4;
}
input[type="range"]::-ms-track {
    width: 100%;
    height: 3px;
    cursor: pointer;
    background: transparent;
    border: solid transparent;
    color: transparent;
}
input[type="range"]::-ms-fill-lower {
    background-color: #4c6ec4;
}
input[type="range"]::-ms-fill-upper {
    background: linear-gradient(to right, rgba(0, 125, 181, 0.6) var(--buffered-width), rgba(0, 125, 181, 0.2) var(--buffered-width));
}
input[type="range"]::-ms-thumb {
    box-sizing: content-box;
    border: 1px solid #4c6ec4;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
}
input[type="range"]:active::-ms-thumb {
    transform: scale(1.2);
    background: #4c6ec4;
}

/* Special styling for WebKit/Blink */
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    border: 3px solid #4c6ec4;
    height: 24px;
    width: 8px;
    border-radius: 3px;
    background: #ffffff;
    cursor: pointer;
    margin-top: -13px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
}

/* All the same stuff for Firefox */
input[type=range]::-moz-range-thumb {
    border: 1px solid #000000;
    height: 36px;
    width: 16px;
    border-radius: 3px;
    background: #ffffff;
    cursor: pointer;
}

/* All the same stuff for IE */
input[type=range]::-ms-thumb {
    border: 1px solid #000000;
    height: 36px;
    width: 16px;
    border-radius: 3px;
    background: #ffffff;
    cursor: pointer;
}


/*-----------------------------------------------------------------------------------*/
@media (max-width: 1024px) {
    .navbar-header {
        padding-top: 10px;
    }
    .navbar-brand {
        font-size: 20px !important;
        line-height: 20px !important;
    }
    .navbar-inverse {
        min-height: 70px;
        border-bottom-width: 8px;
    }
    .btn,
    .jumbotron .btn {
        height: 40px;
        padding: 5px 24px !important;
    }
    #panel_question .panel-heading #image {
        max-height: 150px;
    }
    #panel_question .panel-body {
        padding: 0;
    }
    #panel_question .radiogroup.image p {
        top: -24px;
        font-size: 20px;
    }
    #panel_question .radiogroup.image img {
        max-height: 180px;
    }
    #panel_content {
        height: 75vh;
    }
    #panel_progress {
        margin-top: 16px;
    }
    .panel-footer {
        padding-top: 0;
        padding-bottom: 0;
    }
    .footer {
        display: none;
    }
}