.cd-tour-wrapper,
.cd-tour-wrapper * {
    box-sizing: border-box;
}

/* main layout - 背景 */
.cd-tour-wrapper {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    max-width: none;
    max-height: none;
    visibility: hidden;
    opacity: 1;
    z-index: 2;
    -webkit-transition: opacity 0.4s 0s, visibility 0s 0.4s;
    -moz-transition: opacity 0.4s 0s, visibility 0s 0.4s;
    transition: opacity 0.4s 0s, visibility 0s 0.4s;
}

.cd-tour-wrapper.active {
    z-index: 999;
    -webkit-transition: opacity 0.4s 0s, visibility 0s 0s;
    -moz-transition: opacity 0.4s 0s, visibility 0s 0s;
    transition: opacity 0.4s 0s, visibility 0s 0s;
}

/* step layout - 步驟畫面 */
.cd-single-step {
    position: absolute;
    z-index: 1;
    -webkit-transition: -webkit-transform 0.4s 0s, opacity 0s 0.4s visibility 0s 0.4s;
    -moz-transition: -moz-transform 0.4s 0s, opacity 0s 0.4s visibility 0s 0.4s;
    transition: transform 0.4s 0s, opacity 0s 0.4s visibility 0s 0.4s;
    border-radius: 50%;

    visibility: hidden;
    opacity: 1;
    background-color: transparent;
    box-shadow: none;
}

.cd-single-step.is-selected {
    visibility: visible;
    -webkit-transition: visibility 0s 0s;
    -moz-transition: visibility 0s 0s;
    transition: visibility 0s 0s;
}




.active .cd-single-step {
    /* tour started */
    -webkit-transition: -webkit-transform 0.4s 0s, opacity 0.4s 0s;
    -moz-transition: -moz-transform 0.4s 0s, opacity 0.4s 0s;
    transition: transform 0.4s 0s, opacity 0.4s 0s;
}



.active .cd-single-step.is-selected {
    /* visible step */
    opacity: 1;
    visibility: visible;
    /* -webkit-transition: -webkit-transform 0.4s 0s, visibility 0s 0s;
    -moz-transition: -moz-transform 0.4s 0s, visibility 0s 0s;
    transition: transform 0.4s 0s, visibility 0s 0s; */
    -webkit-transition: -webkit-transform 0.4s 0s, visibility 0s 0s;
    -moz-transition: -moz-transform 0.4s 0s, visibility 0s 0s;
    transition: transform 0.4s 0s, visibility 0s 0s;
}

.active .cd-single-step,
.active .cd-single-step.move-left {
    -webkit-transition: visibility 0s 0.4s;
    -moz-transition: visibility 0s 0.4s;
    transition: visibility 0s 0.4s;
}

/* 步驟圓點位置 */
.cd-single-step:nth-of-type(1) {
    top: 65px;
    left: 50%;
}

.cd-single-step:nth-of-type(2) {
    bottom: 105px;
    left: 50%;
}

.cd-single-step:nth-of-type(3) {
    top: 200px;
    left: 80px;
}

.cd-single-step:nth-of-type(4),
.cd-single-step:nth-of-type(5) {
    top: 30%;
    left: 50%;
}

@media (max-width: 850px) {
    .cd-single-step:nth-of-type(1) {
        top: 50px;
        left: 50%;
    }

    .cd-single-step:nth-of-type(2) {
        bottom: 50px;
        left: 50%;
    }

    .cd-single-step:nth-of-type(3) {
        bottom: 420px;
        left: auto;
        top: auto;
        right: 135px;
    }

    .cd-single-step:nth-of-type(4),
    .cd-single-step:nth-of-type(5) {
        top: 35%;
        left: 50%;
    }
}

@media (max-width: 850px) and (max-height: 630px) {
    .cd-single-step:nth-of-type(3) {
        bottom: auto;
        top: 200px;
    }
}

@media (orientation: landscape)and (max-height: 630px) {
    .cd-single-step:nth-of-type(3) {
        bottom: 185px;
        left: auto;
        top: auto;
        right: 270px;
    }

    .cd-single-step:nth-of-type(3) .cd-more-info {
        width: 250px;
    }
}

/* 閃爍圓點 */
.cd-single-step::after {
    /* this is used to create the pulse animation */
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: inherit;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.cd-single-step.is-selected::after {
    -webkit-animation: cd-pulse 2s infinite;
    -moz-animation: cd-pulse 2s infinite;
    animation: cd-pulse 2s infinite;
    -webkit-animation-delay: 0.5s;
    -moz-animation-delay: 0.5s;
    animation-delay: 0.5s;
}

@-webkit-keyframes cd-pulse {
    0% {
        box-shadow: 0 0 0 0 #cc4b59;
    }

    100% {
        box-shadow: 0 0 0 20px rgba(255, 150, 44, 0);
    }
}

@-moz-keyframes cd-pulse {
    0% {
        box-shadow: 0 0 0 0 #cc4b59;
    }

    100% {
        box-shadow: 0 0 0 20px rgba(255, 150, 44, 0);
    }
}

@keyframes cd-pulse {
    0% {
        box-shadow: 0 0 0 0 #cc4b59;
    }

    100% {
        box-shadow: 0 0 0 20px rgba(255, 150, 44, 0);
    }
}

/* span 大小控制閃爍圓點大小 */
.cd-single-step>span {
    /* dot indicator - visible on desktop version only */
    position: relative;
    z-index: 1;
    display: block;
    width: 10px;
    height: 10px;
    border-radius: inherit;
    background: #cc4b59;
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0);
    -webkit-transition: -webkit-transform 0.4s;
    -moz-transition: -moz-transform 0.4s;
    transition: transform 0.4s;
    /* replace text with background images */
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
}

.cd-single-step.is-selected>span {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
}

/* content layout - 步驟說明 */
.cd-single-step .cd-more-info {
    z-index: 1;
    padding: 10px 15px 15px;
    position: absolute;
    width: 390px;
    border-radius: 4px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    background-color: rgb(204, 75, 89);
    -webkit-transition: opacity 0.4s, width 0.4s;
    -moz-transition: opacity 0.4s, width 0.4s;
    transition: opacity 0.4s, width 0.4s;
}

@media (max-width: 400px) {
    .cd-single-step .cd-more-info {
        padding: 10px;
        width: 300px;
    }
}

.cd-single-step.is-selected .cd-more-info {
    opacity: 1;
}

.cd-single-step .cd-more-info::after {
    clear: both;
    content: "";
    display: table;
}

.cd-single-step .cd-more-info::before {
    content: '';
    position: absolute;
    height: 0;
    width: 0;
    border: 6px solid transparent;
    display: block;
}

/* 步驟說明位置 */
/* step1: top */
/* step2: bottom */
.cd-single-step .cd-more-info.top {
    top: calc(100% + 15px);
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
}

.cd-single-step .cd-more-info.bottom {
    bottom: calc(100% + 15px);
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
}


.cd-single-step .cd-more-info.top,
.cd-single-step .cd-more-info.bottom {
    left: 50%;
}

.cd-single-step .cd-more-info.top::before,
.cd-single-step .cd-more-info.bottom::before {
    left: 50%;
    right: auto;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
}

.cd-single-step .cd-more-info.top::before {
    border-bottom-color: rgb(204, 75, 89);
    bottom: 100%;
}

.cd-single-step .cd-more-info.bottom::before {
    border-top-color: rgb(204, 75, 89);
    top: 100%;
}

/* step3: left */
.cd-single-step .cd-more-info.left {
    left: calc(100% + 15px);
    -webkit-transform: translateY(-44%);
    -moz-transform: translateY(-44%);
    -ms-transform: translateY(-44%);
    -o-transform: translateY(-44%);
    transform: translateY(-44%);
}

.cd-single-step .cd-more-info.left,
.cd-single-step .cd-more-info.right {
    top: 50%;
}

.cd-single-step .cd-more-info.left::before,
.cd-single-step .cd-more-info.right::before {
    top: 50%;
    bottom: auto;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
}

.cd-single-step .cd-more-info.left::before {
    border-right-color: rgb(204, 75, 89);
    right: 100%;
    margin-top: -15px;
}

@media (max-width: 850px) {
    .cd-single-step .cd-more-info.left {
        top: auto;
        bottom: calc(100% + 15px);
        -webkit-transform: translateX(135px);
        -moz-transform: translateX(135px);
        -ms-transform: translateX(135px);
        -o-transform: translateX(135px);
        transform: translateX(135px);
    }

    .cd-single-step .cd-more-info.left {
        left: auto;
        right: 50%;
    }

    .cd-single-step .cd-more-info.left::before {

        -webkit-transform: translateX(50%);
        -moz-transform: translateX(50%);
        -ms-transform: translateX(50%);
        -o-transform: translateX(50%);
        transform: translateX(50%);
    }

    .cd-single-step .cd-more-info.left::before {
        border-top-color: rgb(204, 75, 89);
        border-right-color: transparent;
        top: 100%;
        left: auto;
        right: 135px;
        margin-top: 0px;
    }
}

@media (orientation: landscape) and (max-height: 630px) {
    .cd-single-step .cd-more-info.left {
        bottom: auto;
        right: calc(100% + 15px);
        -webkit-transform: translateY(-44%);
        -moz-transform: translateY(-44%);
        -ms-transform: translateY(-44%);
        -o-transform: translateY(-44%);
        transform: translateY(-44%);
    }

    .cd-single-step .cd-more-info.left {
        left: auto;
        top: 50%;
    }

    .cd-single-step .cd-more-info.left::before {
        -webkit-transform: translateY(-50%);
        -moz-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        -o-transform: translateY(-50%);
        transform: translateY(-50%);
    }

    .cd-single-step .cd-more-info.left::before {
        border-left-color: rgb(204, 75, 89);
        border-top-color: transparent;
        border-right-color: transparent;
        top: 50%;
        bottom: auto;
        left: auto;
        left: 100%;
        margin-top: -14px;
    }
}


/* 步驟說明 - 標題 */
.cd-single-step .cd-more-info h2 {
    font-size: 1.375em;
    line-height: 1.2;
    margin: 5px 0 15px;
    padding-right: 50px;
}

/* 步驟說明 - 內文 */
.cd-single-step .cd-more-info .info_txt {
    font-size: 0.875em;
    line-height: 1.4;
    margin: 10px 2px 20px 2px;
    color: #fff;
}

@media (max-width: 850px) {
    .cd-single-step .cd-more-info .info_txt {
        margin: 5px 2px;
    }
}

/* prev / next step button */
.cd-tour-nav {
    float: right;
}

.cd-tour-nav::after {
    clear: both;
    content: "";
    display: table;
}

.cd-tour-nav li {
    display: inline-block;
    float: left;
}

.cd-tour-nav li:first-of-type {
    margin-right: 10px;
}

.cd-tour-nav a {
    font-size: 0.75em;
    color: #cc4b59;
    font-weight: bold;
    display: inline-block;
    padding: 3px 10px;
    background: #fff;
    border-radius: 20px;
}

.cd-tour-nav a:hover {
    text-decoration: none;
}

.cd-tour-nav a.inactive {
    /* item not clickable */
    color: #cc4b59;
    cursor: not-allowed;
    opacity: 0.3;
}

/* close button */
.cd-single-step .cd-more-info .cd-close {
    /* 'X' icon to skip the tour */
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    /* replace text with background images */
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    color: #fff;
}

.cd-single-step .cd-more-info .cd-close::after,
.cd-single-step .cd-more-info .cd-close:before {
    /* these are the 2 lines of the 'X' icon */
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    height: 2px;
    width: 16px;
    border-radius: 4em;
    background-color: #fff;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.cd-single-step .cd-more-info .cd-close::after {
    -webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg);
    -moz-transform: translateX(-50%) translateY(-50%) rotate(45deg);
    -ms-transform: translateX(-50%) translateY(-50%) rotate(45deg);
    -o-transform: translateX(-50%) translateY(-50%) rotate(45deg);
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
}

.cd-single-step .cd-more-info .cd-close::before {
    -webkit-transform: translateX(-50%) translateY(-50%) rotate(-45deg);
    -moz-transform: translateX(-50%) translateY(-50%) rotate(-45deg);
    -ms-transform: translateX(-50%) translateY(-50%) rotate(-45deg);
    -o-transform: translateX(-50%) translateY(-50%) rotate(-45deg);
    transform: translateX(-50%) translateY(-50%) rotate(-45deg);
}

/* 步驟內容標籤 */
.info_txt .toolslist {
    padding: 0 0 5px !important;
    margin: 0 !important;
}

.info_txt .toolsItem,
.info_txt .toolslist li {
    padding: 5px 3px;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 0.8125em;
    display: inline;
    float: left;
    margin: 2px 1% 2px 0;
    width: 31%;
    border-radius: 4px;
}

.info_txt p {
    line-height: 2;
}

.info_txt .toolsItem {
    float: none;
    margin: 0px 1%;
    padding: 3px 8px;
    white-space: nowrap;
}

.info_txt .toolsItem img,
.info_txt .toolslist li img {
    width: 20px;
    margin: 0px 0px;
    padding: 0px 1px;
    top: 2px;
    position: relative;
    display: inline-block;
    vertical-align: initial;
}



.info_txt .toolslist li i {
    width: 20px;
    text-align: center;
}


/* 步驟內容的圖片 */
.cd-single-step .cd-more-info img {
    margin: 5px 0;
}

.cd-cover-layer {
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    background-color: transparent;
    border-color: rgba(37, 45, 45, 0.5);
    border-style: solid;
    z-index: 2;
    transition: all 0.5s ease 0.2s;
}

.cd-cover-layer.is-visible {
    z-index: 998;
    visibility: visible;
    opacity: 1;
}

.toolslist li em {
    width: 20px;
    height: 14px;
    display: inline-block;
    background-size: 100%;
    background-position: 0px -2px;
    filter:brightness(4);
}

.toolslist li.m05 em {
    background-image:url(../../theme/tw/images/content/mbk_i_lnav05.png);
}
.toolslist li.m08 em {
    background-image:url(../../theme/tw/images/content/mbk_i_lnav08.png);
}
.toolslist li.m12 em {
    background-image:url(../../theme/tw/images/content/mbk_i_lnav12.png);
}
.toolslist li.m06 em {
    background-image:url(../../theme/tw/images/content/mbk_i_lnav06.png);
}
.toolslist li.m10 em {
    background-image:url(../../theme/tw/images/content/mbk_i_lnav10.png);
}
.toolslist li.m07 em {
    background-image:url(../../theme/tw/images/content/mbk_i_lnav07.png);
}
.toolslist li.m09 em {
    background-image:url(../../theme/tw/images/content/mbk_i_lnav09.png);
}
.toolslist li.m11 em {
    background-image:url(../../theme/tw/images/content/mbk_i_lnav11.png);
}
