html {
    scroll-behavior: smooth;
}

body {
    font-size: 16px;
    line-height: 1.8em;
    color: #fff;
    font-family: "微軟正黑體", "新細明體", Arial, Helvetica, sans-serif;
    background-color: #200f21;
}

h2 {
    text-align: center;
    /*color: #343a40;*/
    font-weight: 700;
    padding: 20px;
}

h2::after {
    content: "";
    width: 60px;
    height: 3px;
    display: block;
    border-left: 30px solid #ffc107;
    background-color: #66d965;
    margin: 5px auto 0;

}

h3 {
    text-align: center;
}

h4 {
    text-align: center;
    margin-bottom: 1rem;
}

p {
    padding-bottom: 20px;
}


section {
    padding: 2em 0 3em;
}

section:nth-of-type(even) {
    background: #ffffff;
    color: #333;
}


/*錨點位置調整*/
:target:before {
    content: "";
    display: block;
    height: 75px;
}



nav {
    background: rgb(0, 0, 0, 0.7);
}

.navbar-brand {
    text-align: center;
}

.navbar-brand img {
    max-width: 80%;
    padding: 8px;
}

.navbar-nav {
    width: 100%;
}

.nav-item {
    padding: 0px 10px;
}

.nav-link {
    padding: 0.8rem 1rem;
}

.navbar .navbar-nav>li>a:hover {
    -webkit-transform: translateY(-3px);
    -ms-transform: translateY(-3px);
    transform: translateY(-3px)
}

.navbar-dark .navbar-nav .nav-link {
    color: #ffffff;
}

/* en按鈕 */
.nav-item.en {
    margin-left: auto;
    padding: 0;
    font-weight: 500;
}

.navbar .navbar-nav .nav-item.en a {
    padding: 0.5rem 1rem 0.4rem;
    border: 3px solid #ffc107;
    transition: .3s;
}

.navbar .navbar-nav .nav-item.en a:hover {
    -webkit-transform: translateY(0px);
    -ms-transform: translateY(0px);
    transform: translateY(0px);
    border: 3px solid #ffc107;
    background-color: #ffc107;
    color: #794778;
}

@media(max-width:991px) {
    .nav-item.en {
        width: 100%;
    }
}


.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}


.kv img {
    width: 100%;
}

.foreword {
    /* font-size: 1.3rem;*/
    line-height: 1.8;
}


.color_bg {
    background-color: #200f21;

}

.color_bg:after {
    content: "";
    display: block;
    position: absolute;
    right: 50%;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 30px solid #200f21;
    transform: translateX(30px);
}

.bg_left {
    position: relative;
    height: 50px;
    background-image: url(../img/bg_left.svg);
    background-size: cover;
}

.bg_right {
    position: relative;
    height: 50px;
    background-image: url(../img/bg_right.svg);
    background-size: cover;
}

.focus {
    color: #794778;
    text-align: center;
    font-size: 1.5em;
    padding: 20px 0;
    font-weight: 700;
    letter-spacing: 2px;
}

.focus span {
    color: #ffc107;
    font-size: 1.6em;
}

.focus2 {
    color: #794778;
    text-align: center;
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.5;
}

.focus2 span {
    color: #ffc107;
    font-size: 1.4em;
}

.intro-box {
    padding: 15px 25px;
}

.intro-box ol {
    padding-left: 15px;
}

.focus-box{
    border: 1px solid #ffc107;
    border-radius: 15px;
    padding: 10px 30px;
}

.focus-box-title{
    color: #ffc107;
    font-size: 2em;
    /*font-weight: 700;*/
    text-align: center;
    position: relative;
    top: -25px;

}

.focus-box-title span{
    background-color: #200f21;
}

.custom-icon li {
    background-image: url(../img/icon-01.png);
    background-position: left 7px;
    background-repeat: no-repeat;
    list-style-type: none;
    padding-left: 20px;
    border-bottom: 1px solid #efefef;
}

.forward-box {
    padding: 1.5em;
    background-color: #F7EFF3;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(98, 82, 97, 0.5);
}



.speaker-title {
    font-size: 1.4em;
    padding: 20px;
}



.line {
    height: 1px;
    background-color: #ffc107;
    width: 2em;
    margin-top: 33px;
}

.speaker-box {
    text-align: center;
}

.speakers img {
    max-width: 180px;
    border: 2px solid #E8B6DE;
}

.speaker-txt {
    padding: 0 0 15px;
    color: #625261;
}

.speaker-name {
    padding: 5px;
    color: #794778;
    font-weight: 700;
    font-size: 18px;
}

.history-block {
    text-align: center;
    padding: 10px;
}

.history-btn {
    font-size: 18px;
    padding: 15px 25px;
    border: 1px solid #200f21;
    color: #200f21;

    background-color: #fff;
}

.history-btn:hover {
    background-color: #794778;
}


.footer-logo {
    text-align: center;
}


footer {
    color: #999999;
    background-color: #101010;
    font-size: 16px;
    padding: 2% 0;
    line-height: 1.4em;
}

#gotopBtn {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Fixed/sticky position */
    bottom: 20px;
    /* Place the button at the bottom of the page */
    right: 30px;
    /* Place the button 30px from the right */
    z-index: 99;
    /* Make sure it does not overlap */
    border: none;
    /* Remove borders */
    outline: none;
    /* Remove outline */
    background-color: rgba(0, 0, 0, 0.5);
    color: #232323;
    cursor: pointer;
    /* Add a mouse pointer on hover */
    padding: 15px 20px;
    border-radius: 50%;
    font-size: 18px;
}

#gotopBtn:hover {
    background-color: #999;
}