/*主框架*/
.page-course {
    position           : relative;
    width              : 100%;
    height             : 100%;
    margin             : 0 auto;
    overflow           : hidden;
    opacity            : 1;
    background-image   : url(../images/p/bg_course.jpg);
    background-position: center;
    background-repeat  : no-repeat;
    background-size    : contain;
}

/* 課程標題 */
h1 {
    position   : relative;
    color      : #4d933e;
    font-size  : 3.5vw;
    text-align : center;
    padding-top: 0.5%;
    margin     : 0;
    z-index    : 1;
    display: none;
}

/* 課程影片跟ppt */
/* 初始 */
.videoContainer,
.pptContainer,
.pptContainerLink {
    position  : absolute;
    box-sizing: border-box;
    z-index   : 5;
    overflow  : hidden;
}

.pptContainerLink .LinkBox{
    position  : absolute;
    box-sizing: border-box;
    cursor: pointer;
    width: 0%;
    height: 0%;
    top: 0%;
    left: 0%;
    display: none;
}

.pptContainer.default::after {
    position       : absolute;
    content        : "";
    width          : 100%;
    height         : 100%;
    top            : 0;
    left           : 0;
    background     : url(../images/ppt_default.jpg) no-repeat center;
    background-size: contain;
}

.pptContainer.final::after {
    position       : absolute;
    content        : "";
    width          : 100%;
    height         : 100%;
    top            : 0;
    left           : 0;
    background     : url(../images/ppt_end.jpg) no-repeat center;
    background-size: cover;
}

.videoContainer-box {
    position: relative;
    width: 100%;
    height: 100%;
    overflow  : hidden;
}

.videoContainer video,
.pptContainer img {
    position  : relative;
    margin    : 0 auto;
    overflow  : hidden;
    box-sizing: border-box;
}

.videoContainer video {
    width : auto;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.pptContainer img {
    width        : 100%;
    height       : 100%;
    /* height    : auto; */
    display      : none;
}

.pptContainer img.act {
    display: block;
}

.pptContainerLink .LinkBox.act {
    display: block;
}

/* 左側 */
.videoContainer.left,
.pptContainer.left {
    top             : 10%;
    left            : 1.8%;
    width           : 41.4%;
    height          : 55.8%;
    padding         : 0.5%;
    border-radius   : 15px;
    background-color: #ffffff;
}

.pptContainerLink.left{
    top             : 10%;
    left            : 1.8%;
    width           : 41.4%;
    height          : 55.8%;
    padding         : 0.5%;
    border-radius   : 15px;
}

.pptContainer.left.default,
.pptContainer.left.final {
    background-color: transparent;
}

.videoContainer.left .videoContainer-box {
    border-radius   : 15px;
    /* 在Safari時，要加這句↓，不然圓角隱藏不會成功 */
    transform: translateZ(0);
}

.videoContainer.left video,
.pptContainer.left img {
    border-radius: 15px;
}

/* 右側 */
.videoContainer.right .videoContainer-box {
    border-radius: 10px 10px 0 0;
}

.videoContainer.right,
.pptContainer.right {
    top          : 10.9%;
    left         : 44.8%;
    width        : 52.8%;
    height       : 70.9%;
    border-radius: 10px 10px 0 0;
}

.pptContainerLink.right{
    top          : 10.9%;
    left         : 44.8%;
    width        : 52.8%;
    height       : 70.9%;
    border-radius: 10px 10px 0 0;
}

/* 放大 */
.videoContainer.big,
.pptContainer.big,
.pptContainerLink.big {
    top          : 10%;
    left         : 50%;
    width        : 62%;
    height       : 83%;
    transform    : translateX(-50%);
    border-radius: 15px;
    z-index      : 9;
}
.pptBox{
    position: absolute;
    top          : 0%;
    left         : 0%;
    width        : 100%;
    height       : 100%;
    opacity: 0;
}
.pptBox img{
    position: absolute;
    top          : 0%;
    left         : 0%;
    width        : 100%;
    height       : 100%;
    display: none;
}

.pptBox img.act{
    display: block;
}

/* KO標題 */
.koTitle {
    position   : absolute;
    width: 35%;
    top        : 67.4%;
    left       : 2.5%;
    color      : #ffffff;
    font-size  : 2.2vw;
    line-height: 1.2em;
    font-weight: bold;
    text-indent: -2em;
    margin     : 0 0 0 2em;
}

.koTeacher {
    font-size: 0.8em;
    color    : #7363cb;
}

/* 右側展示區及控制鈕 */
.mainContainer {
    position        : absolute;
    top             : 10%;
    left            : 44.2%;
    width           : 54%;
    height          : 81.7%;
    background-color: #ffffff;
    border-radius   : 15px;
    z-index         : 2;
}

/* 控制鈕-上下組頁碼 */
.pagePre,
.pageNext {
    position     : absolute;
    /* display   : none; */
    bottom       : 3%;
    width        : 3%;
    cursor       : pointer;
    transition   : transform .3s;
}

.pagePre {
    left: 2.5%;
}

.pageNext {
    left: 48.5%;
}

.pagePre img,
.pageNext img {
    width : 100%;
    height: 100%;
}

.pagePre:hover,
.pagePre:focus {
    outline  : 0;
    transform: translate(-8%, 0%);
}

.pageNext:hover,
.pagePre:focus {
    outline  : 0;
    transform: translate(8%, 0%);
}

/* 控制鈕-頁碼 */
.pageBar {
    position  : absolute;
    display   : block;
    bottom    : 1.5%;
    left      : 8.3%;
    width     : 38%;
    height    : 9%;
    text-align: center;
}

.pageBar li {
    width     : 20%;
    display   : table;
    color     : #f8897e;
    text-align: center;
    float     : left;
    position  : relative;
    height    : 100%;
    box-sizing: border-box;
    cursor    : pointer;
    padding   : 0 1px;
}

.pageBar li.hide {
    display: none;
}

.pageBar li .num {
    font-size     : 2.3vw;
    display       : table-cell;
    vertical-align: middle;
}

.pageBar li:before {
    content         : "";
    position        : absolute;
    display         : block;
    width           : 1px;
    background-color: #fdab9f;
    top             : 20%;
    bottom          : 20%;
    right           : -1px;
    box-shadow      : -1px 0 0 #fdab9f;
}

.pageBar li:nth-child(5n+1):after {
    content         : "";
    position        : absolute;
    display         : block;
    width           : 1px;
    background-color: #fdab9f;
    top             : 20%;
    bottom          : 20%;
    left            : -1px;
    box-shadow      : -1px 0 0 #fdab9f;
}

.pageBar li .num:hover,
.pageBar li .num:focus {
    background-color: rgba(255, 255, 255, 0.2);
}

.pageBar .act .num {
    background-color: #ffaca6;
    border-bottom: solid 3px #ff8e7e;
    color           : #ffffff;
}

.pageBar .act .num:hover,
.pageBar .act .num:focus {
    background-color: #ffaca6;
    border-bottom: solid 3px #ff8e7e;
}

/* 控制鈕-切換模式 */
.toolBar {
    position: absolute;
    display: block;
    bottom: 1.5%;
    left: 54.3%;
    width: 43.5%;
    height: 9%;
}
.toolBar ul {
    position: relative;
    width: 100%;
    height: 100%;
}
.toolBar li {
    width: 17%;
    display: table;
    color: #fb8b7f;
    text-align: center;
    float: left;
    position: relative;
    height: 100%;
    box-sizing: border-box;
    cursor: pointer;
    padding: 0 0px;    
    /* font-weight: 600; */
}
.toolBar li:not(:last-child){
    margin-right: 1.8vw;
}

.toolBar li .btn {
    font-size: 1.54vw;
    line-height: 1.7vw;
    display: table-cell;
    vertical-align: middle;
    border-radius: 15px;
    padding-top: 0.2vw;
}

.toolBar li:not(:last-child):before {
    content: "";
    position: absolute;
    display: block;
    width: 1px;
    background-color: #f07f71;
    top: 20%;
    bottom: 20%;
    right: -0.9vw;
    box-shadow: -1px 0 0 #f6cbc4;
}

.toolBar li .btn:hover,
.toolBar li .btn:focus {
    outline  : 0;
    background-color: rgba(255, 255, 255, 0.2);
}

.toolBar li .btn.act {
    background-color: #f98c78;
    color           : #ffffff;
}

.toolBar li .btn.act:hover,
.toolBar li .btn.act:focus {
    background-color: #f98c78;
    color           : #ffffff;
}

/* 放大後的返回鈕 */
.btn-back {
    position : absolute;
    bottom   : 50%;
    right    : 3%;
    width    : 6.5%;
    transform: translateY(50%);
    cursor   : pointer;
    display  : none;
}

.btn-back img {
    position: relative;
    width   : 100%;
    height  : auto;
}

/*字幕*/
.subtitle {
    color         : #424242;
    position      : absolute;
    display       : inline-block;
    background    : rgba(255, 255, 255, 0.7);
    bottom        : 0;
    left          : 0;
    width         : 100%;
    height        : auto;
    font-weight   : bold;
    text-align    : center;
    opacity       : 1;
    font-size     : 1.9vw;
    padding-top   : 0.5%;
    padding-bottom: 0.5%;
    transition : All 0.4s ease-in-out;
}

.subtitle:empty {
    opacity: 0;
}

/* 測驗 */
.iframe_quiz {
    position: absolute;
    left    : 0%;
    top     : 0%;
    height  : 100%;
    width   : 100%;
    z-index : 0;
}

/* OPA_controller-影片組件-樣式擴充 */
.buttonGroup.t0 .button{
    border-radius: 15px;
}