html {
  scroll-behavior: smooth;
}

body {
  font-size: 18px;
  line-height: 1.8;
  color: #212121;
  font-family: 'Roboto', 'Noto Sans TC', Arial, '微軟正黑體', '新細明體', Helvetica, sans-serif;

}

section {
  padding: 3em 1.5em;
}

::selection {
  color: #333333;
  background-color: #D0F5FF;
}

.main-title {
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 0.5rem;
  padding: 20px 0;
}

.main-title span {
  letter-spacing: 0.2rem;
}

.btn-main {
  letter-spacing: 0.25rem;
  font-size: 20px;
  border-radius: 10px;
  border: 2px solid #212121;
  background-color: #ffffff;
  /* box-shadow: 0px 3px 5px 0px #cccccc; */
  padding: 15px;
  margin: 25px 0;
}

.btn-main:hover {
  background-color: #24B8FF;
  box-shadow: 0px 0px 0px 0px #cccccc;
  color: #ffffff;

}

.btn-main-close {
  letter-spacing: 0.25rem;
  font-size: 20px;
  border-radius: 10px;
  border: 1px solid #999999;
  padding: 15px;
  margin: 25px 0;
  background-color: #AAAAAA;
  cursor: not-allowed;
  color: #ffffff;
}

.highlight {
  background-image: linear-gradient(to top, #f5ff00 0, #f5ff00 50%, transparent 50%, transparent 100%);
}

.btn-lang {
  position: fixed;
  display: block;
  font-size: 18px;
  color: #ffffff;
  background-color: #9568C6;
  border: 2px solid #9568C6;
  border-radius: 0 0 0 25%;
  padding: 10px 20px;
  top: 0;
  right: 0;
  z-index: 100;
  transition: 0.2s;
  box-shadow: 0 0 5px #333;
}

.btn-lang:hover {
  text-decoration: none;
  color: #9568C6;
  background-color: #fff;
}


/*====================================
# 
==================================== */

.masthead {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background-size: cover !important;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 37%, rgba(0, 0, 0, 0.65) 100%), url(../img/kvbg.jpg) no-repeat center center scroll;
}


.cl-mask {
  position: absolute;
  overflow: hidden;
  z-index: 1;
  height: 100%;
  width: 45rem;
  top: 0;
  right: -4rem;
  background-color: rgba(113, 111, 195, 0.4);
  display: flex;
  justify-content: center;
  /* align-items: center; */
  flex-direction: column;
  color: #ffffff;
  transform: skewX(-10deg);
}


.cl-txt {
  padding: 2rem;
  line-height: 4;
  text-align: center;
  transform: skewX(10deg);
  text-shadow: 1px 1px 5px #212121;
}

.cl-txt h1 {
  font-weight: 700;
  font-size: 5rem;
  letter-spacing: 0.5rem;
}


.cl-txt a {
  text-decoration: none;
}

.btn-top {
  color: #0DDAAA;
  border: 1px solid #0DDAAA;
  padding: 0.8rem 4rem;
  border-radius: 5px;
  letter-spacing: 5px;
  transition: all 0.2s ease-in-out;
}

.btn-top:hover {
  color: #F9F871;
  border-color: #F9F871;
}

@media (max-width:576px) {
  .cl-mask {
    width: 100%;
    top: 0;
    right: 0;
    transform: none;
  }

  .cl-txt {
    transform: none;
  }
}

/* ---------------
     前言
   --------------- */
/* 
.sec-foreword {
  padding-top: 0;
} */

.foreword-title {
  font-size: 2.2rem;
  font-weight: bold;
  padding: 1.5rem 0;
}

.foreword-title span {
  color: #0083C6;
}


.foreword-title a {
  color: #212121;
  text-decoration: none;
  border-bottom: 4px dotted #0083C6;
  transition: 0.2s;
}

.foreword-title a:hover,
.foreword-title a:hover span {
  color: #9568C6;
  border-color: #9568C6;
}


.date-title {
  font-size: 20px;
  letter-spacing: 0.25rem;
}

.date span {
  font-size: 2.2rem;
  font-weight: bold;
}

.au-title {
  font-weight: bold;
  font-size: 20px;
  padding: 15px 0 20px;
}

.sec-intro {
  position: relative;
}

.sec-intro::before {
  content: "";
  display: block;
  position: absolute;
  right: 0;
  top: 0;
  width: 90%;
  height: 100%;
  border-radius: 30px 0 0 30px;
  background-color: #E7F3F8;
}

.intro-title {
  position: relative;
  padding: 3rem 2rem;
  color: #0083C6;
  font-weight: 700;
  line-height: 1.5;
}

.intro-title::before,
.intro-title::after {
  display: inline-block;
  position: absolute;
  width: 1em;
  height: 1em;
  content: '';
}

.intro-title::before {
  top: 0;
  left: 0;
  border-top: 5px solid #2589d0;
  border-left: 5px solid #2589d0;
}

.intro-title::after {
  bottom: 0;
  right: 0;
  border-bottom: 5px solid #2589d0;
  border-right: 5px solid #2589d0;
}

.intro-title p {
  margin-top: 1rem;
  font-size: 28px;
  color: #212121;
  font-style: italic;
  letter-spacing: 0.08rem;
}

@media (max-width:576px) {
  .sec-intro::before {
    width: 96%;
  }
}


/* ---------------
     徵稿類別
   --------------- */
.sec-type {
  overflow: hidden;
}

.type-title {
  position: relative;
  padding: 2rem 0 0 2.5rem;
  padding-top: 1.5em;
  color: #212121;
}

.type-box {
  padding: 3rem 0;
  border-bottom: 1px solid #212121;
}

.type-box:last-of-type {
  border: none;
}

.type-title::before {
  position: absolute;
  bottom: 2.2rem;
  left: -2.8rem;
  z-index: -1;
  color: #D0F5FF;
  font-size: 3em;
  line-height: 1;
  content: attr(data-number);
  pointer-events: none;
}

.type-title .en {
  font-size: 25px;
}

.sec-type ul li {
  list-style: square;
}

.news-tag {
  position: absolute;
  right: 6rem;
  top: 0;
  color: #ffffff;
  padding: 0 5px;
  background-color: #fa5246;
  transform: rotate(10deg);
  font-size: 25px;
}

@media (max-width:576px) {
  .news-tag {
    right: 1rem;
    top: 2rem;
  }
}

@media (max-width:768px) {
  .type-title {
    margin-bottom: 2rem;
  }
}


/* ---------------
    徵稿主題
   --------------- */

.sec-theme {
  position: relative;
  /* background: #E7F3F8; */
}

.sec-theme::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 90%;
  height: 100%;
  border-radius: 0 30px 30px 0;
  background-color: #E7F3F8;
}

.sec-theme .tag {
  padding: 5px 10px;
  font-size: 20px;
  margin: 6px;
  color: #9568C6;
  background-color: #ffffff;
  font-weight: 700;
  border: 1px solid #212121;
  border-radius: 0 8px 0 8px;
  transition: 0.2s;
}

.sec-theme .tag:hover {
  color: #24B8FF;
  border-color: #24B8FF;
}

@media (max-width:576px) {
  .sec-theme::before {
    width: 96%;
  }

  .sec-theme .tag {
    font-size: 16px;
  }
}


/* ---------------
     徵稿條件
   --------------- */

.v-title,
.x-title {
  font-size: 22px;
  font-weight: bold;
  padding-bottom: 15px;
}

.v-box,
.x-box {
  border: 2px solid;
  border-radius: 12px;
  font-size: 18px;
  position: relative;
  margin-bottom: 20px;
}

.x-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 225px;
  font-size: 24px;
}

.v-title,
.v-box {
  color: #00AD7B;
}

.x-title,
.x-box {
  color: #F46359;
}

.v-box::before,
.x-box::before {
  font-size: 2rem;
  font-weight: bold;
  position: relative;
  top: 5px;
  padding: 0 6px;
}

.v-box::before {
  content: "";
}

.x-box::before {
  content: "";
}

@media (max-width:576px) {
  .x-box {
    min-height: 62px;
    font-size: 18px;
  }
}

.info-title {
  border: 1px solid #333333;
  border-radius: 2px;
  text-align: center;
  margin-bottom: 20px;
}

.top-box {
  background-color: #E7F3F8;
  padding: 3rem 3rem 2rem;
  border-radius: 20px 0 20px 0;
}

/* ---------------
    講者權利義務
   --------------- */
.sec-rules {
  background-color: #efefef;
  padding: 4rem 1rem 1.5rem;
}


.rule-list li {
  list-style-type: none;
  position: relative;
}

.rule-list li::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #666666;
  left: -15px;
  top: 10px;
}


/* ---------------
   徵稿聯絡信箱
   --------------- */

.sec-mail {
  position: relative;
  background-color: #efefef;
}

.sec-mail::before {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background-color: #394955;
}

.mail-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding: 3rem;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.mail-img {
  max-width: 100px;
  display: block;
}

.mail-txt {
  font-size: 24px;
  margin-left: 2rem;
}

@media (max-width:576px) {
  .mail-box {
    text-align: center;
    flex-direction: column;
    text-align: center;
  }

  .mail-txt {
    font-size: 18px;
    margin-left: 0;
    margin-top: 2rem;
  }

}

/* ---------------
     講者回顧
   --------------- */
.sec-link {
  color: #ffffff;
  background-color: #394955;
}

.year-link a {
  font-size: 1.8rem;
  color: #ffffff;
  text-decoration: none;
}

.year-link a:hover {
  color: #fbdd74;
}


/* ---------------
       goTop 
   --------------- */

/*形狀*/
#page-top a {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 3px solid #2e2e2e;
  background: #ffffff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  color: #2e2e2e;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s;
}

#page-top a:hover {
  background: #666666;
}

/*右下固定*/
#page-top {
  position: fixed;
  right: 15px;
  bottom: 10px;
  z-index: 2;
  opacity: 0;
  transform: translateY(100px);
}

/*　往上動畫　*/

#page-top.UpMove {
  animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime {
  from {
    opacity: 0;
    transform: translateY(100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*　往下動畫　　*/

#page-top.DownMove {
  animation: DownAnime 0.5s forwards;
}

@keyframes DownAnime {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 1;
    transform: translateY(100px);
  }
}