html {
  scroll-behavior: smooth;
}

body {
  font-size: 18px;
  line-height: 1.8;
  color: #1b2d45;
  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: 2rem;
  font-weight: 500;
  letter-spacing: 0.2rem;
  padding: 25px 0;
  text-align: center;
  color: #00214d;
}

.main-title span {
  letter-spacing: 0.2rem;
}

.main-heading {
  text-align: center;
  position: relative;
  margin-bottom: 3rem;
}

.main-heading .en {
  color: #f2f4f6;
  font-size: 6rem;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1;
  opacity: 0.8;
}

.main-heading .title {
  width: 100%;
  color: #212121;
  font-size: 3rem;
  line-height: 1;
  position: absolute;
  bottom: -0.5em;
  left: 50%;
  transform: translate(-50%, -50%);
}


@media (max-width:576px) {
  .main-heading .en {
    font-size: 3rem;
  }

  .main-heading .title {
    font-size: 2.5rem;
  }
}


.btn-main {
  letter-spacing: 0.25rem;
  font-size: 20px;
  border-radius: 30px;
  color: #00214d;
  font-weight: 700;
  background-color: #00ebc7;
  padding: 15px;
  margin: 25px 0;
  transition: all 0.2s;
}

.btn-main:hover {
  background-color: #ff5470;
  color: #ffffff;

}

.btn-main-close {
  letter-spacing: 0.25rem;
  font-size: 20px;
  border-radius: 30px;
  border: 1px solid #999999;
  padding: 15px;
  margin: 25px 0;
  background-color: #AAAAAA;
  cursor: not-allowed;
  color: #ffffff;
}

.highlight {
  background-image: linear-gradient(to top, #fde24f 0, #fde24f 30%, transparent 30%, transparent 100%);
}



/*====================================
# kv
==================================== */

.masthead {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  width: 100%;
  height: 100vh;
  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 {
  background: rgba(0, 87, 156, .3);
  box-shadow: 0px 1px 0px 0px rgba(1, 31, 93, .2), 0px 1px 0px 0px rgba(255, 255, 255, .35) inset;
  color: #ffffff;
  border-radius: 30px;
}


.cl-txt {
  padding: 2rem;
  line-height: 4;
  text-align: center;
  text-shadow: 1px 1px 5px #212121;
}

.cl-txt h1 {
  font-weight: 700;
  font-size: 5.5rem;
  letter-spacing: 0.5rem;
  padding: 10px 0px;
}

.cl-txt h2 {
  font-size: 2.7rem;
  font-weight: 700;
}


.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;
}

.kvbox {
  border: 2px solid #ffffff;
  line-height: 35px;
  width: 60%;
  display: block;
  margin: 0 auto;
  font-size: 22px;
}

@media (max-width:576px) {
  .masthead {
    height: 650px;
  }

  .cl-txt {
    transform: none;
    padding: 1rem;
  }

  .cl-txt h1 {
    font-size: 3.5rem;
  }

  .cl-txt h4 {
    font-size: 1.3rem;
  }

  .kvbox {
    width: 80%;
  }
}

/* =======================================
# scrolldown
========================================= */

.scrolldown {
  /*位置*/
  position: absolute;
  bottom: 30px;
  left: 50%;
}

.scrolldown .trail {
  margin-left: 3px;
  height: 15px;
  width: 15px;
  border: 1px solid;
  border-color: #fff transparent transparent #fff;
  transform: rotate(-135deg);
  -webkit-animation-delay: 0.1s;
  -moz-animation-delay: 0.1s;
  animation-delay: 0.1s;
  -webkit-animation: srcoll-trail 1.2s infinite;
  -moz-animation: srcoll-trail 1.2s infinite;
  animation: srcoll-trail 1.2s infinite;
}

.scrolldown .trail:nth-child(2) {
  -webkit-animation-delay: 0.2s;
  -moz-animation-delay: 0.2s;
  animation-delay: 0.2s;
}

@-webkit-keyframes scroll {
  0% {
      opacity: 1;
  }

  100% {
      opacity: 0;
      -webkit-transform: translateY(10px);
      transform: translateY(10px);
  }
}

@-moz-keyframes scroll {
  0% {
      opacity: 1;
  }

  100% {
      opacity: 0;
      -webkit-transform: translateY(10px);
      transform: translateY(10px);
  }
}

@-o-keyframes scroll {
  0% {
      opacity: 1;
  }

  100% {
      opacity: 0;
      -webkit-transform: translateY(10px);
      transform: translateY(10px);
  }
}

@keyframes scroll {
  0% {
      opacity: 1;
  }

  100% {
      opacity: 0;
      -webkit-transform: translateY(10px);
      transform: translateY(10px);
  }
}

@-webkit-keyframes srcoll-trail {
  0% {
      opacity: 0;
  }

  50% {
      opacity: 1;
  }

  100% {
      opacity: 0;
  }
}

@-moz-keyframes srcoll-trail {
  0% {
      opacity: 0;
  }

  50% {
      opacity: 1;
  }

  100% {
      opacity: 0;
  }
}

@-o-keyframes srcoll-trail {
  0% {
      opacity: 0;
  }

  50% {
      opacity: 1;
  }

  100% {
      opacity: 0;
  }
}

@keyframes srcoll-trail {
  0% {
      opacity: 0;
  }

  50% {
      opacity: 1;
  }

  100% {
      opacity: 0;
  }
}

/* ---------------
     前言
   --------------- */

.foreword-title {
  font-size: 2.2rem;
  font-weight: bold;
  padding: 1.5rem 0;
}

.titlelink {
  color: #00214d;
  background-image: linear-gradient(#ffffff 50%, #f4e097 50%);
  background-size: auto 175%;
  transition: background 0.3s ease-in-out;
}

.titlelink:hover {
  background-position-y: 100%;
  text-decoration: none;
}

.sec-intro {
  position: relative;
  background-color: #f2f4f6;
  border-radius: 10rem 10rem 0 0;
}

@media (max-width:576px) {
  .sec-intro {
    border-radius: 6rem 6rem 0 0;
  }

  .foreword-title {
    font-size: 2.8rem;
    line-height: 1.5;
  }
}


.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;
  background-color: #f2f4f6;
}

.type-title {
  position: relative;
  padding: 4rem 0 0 3rem;
  color: #212121;
}

.type-box {
  padding: 2rem 0;
  background-color: #ffffff;
  margin-bottom: 3rem;
}

.type-box:last-of-type {
  border: none;
}

.type-title::before {
  position: absolute;
  bottom: 0;
  left: -5rem;
  color: #cbc5d9;
  font-size: 3em;
  font-weight: 600;
  line-height: 1;
  content: attr(data-number);
  pointer-events: none;
}

.type-title .en {
  font-size: 25px;
}

.sec-type ul {
  margin: 0;
}

.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:768px) {
  .type-title {
    margin-bottom: 2rem;
  }
}


@media (max-width:576px) {
  .type-title {
    padding: 4rem 0 0 2rem;
  }

  .type-title::before {
    top: -25px;
    left: 0;
    font-size: 2.5em;
  }

  .news-tag {
    right: 1rem;
    top: 2rem;
  }
}



/* ---------------
    徵稿主題
   --------------- */

.sec-theme {
  position: relative;
  background: #f2f4f6;
  border-radius: 0 0 10rem 10rem;
  padding-bottom: 5rem;
}

@media (max-width:576px) {
  .sec-theme {
    border-radius: 0 0 6rem 6rem;
  }
}

/* .sec-theme::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 90%;
  height: 100%;
  border-radius: 0 30px 30px 0;
  background-color: #f2f4f6;
} */

.sec-theme .main-heading .en {
  color: #ffffff;
  opacity: 0.6;
}


.sec-theme .tag {
  padding: 5px 10px;
  font-size: 20px;
  margin: 6px;
  color: #1b2d45;
  background-color: #ffffff;
  font-weight: 700;
  /* border: 1px solid #1b2d45; */
  border-radius: 10px 10px 0 10px;
  transition: 0.2s;
}

.sec-theme .tag:hover {
  /* color: #59c1d9; */
  background-color: #f2ebc4;
}

@media (max-width:576px) {
  .sec-theme::before {
    width: 96%;
  }

  .sec-theme .tag {
    font-size: 16px;
  }
}

/* ---------------
    徵稿時程
   --------------- */

.flowList {
  position: relative;
  display: flex;
  gap: calc(0.5rem * 3);
  counter-reset: num;
  flex-direction: column;
  list-style: none;
}

.flowList-item {
  position: relative;
  padding: calc(0.5rem * 3) calc(0.5rem * 2);
  border-radius: 8px;
  border: 1px solid #193446;
  background-color: #FFF;
  flex-basis: 25%;
  text-align: center;
}

.flowList-item::before {
  counter-increment: num;
  content: "STEP " counter(num);
  display: block;
  width: -moz-fit-content;
  width: fit-content;
  position: absolute;
  top: -12px;
  left: 12px;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: bold;
  color: #193446;
  background-color: #FFF;
  padding: 4px;
}

.flowList::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0px;
  left: 50%;
  transform: translate(-50%, 0px);
  width: 1px;
  height: 100%;
  background-color: #193446;
}

@media screen and (min-width: 768px) {
  .flowList {
    flex-direction: row;
  }

  .flowList-item {
    padding: calc(0.5rem * 4) calc(0.5rem * 3);
  }

  .flowList-item::before {
    font-size: 2rem;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
  }

  .flowList::after {
    top: 50%;
    left: 0px;
    transform: translate(0px, -50%);
    width: 100%;
    height: 1px;
  }
}

@media (min-width: 768px) and (max-width: 1200px) {
  .flowList-item::before {
    top: -45px;

  }
}

@media (max-width:576px) {
  .flowList {
    padding-left: 0;
  }
}


/* ---------------
     徵稿條件
   --------------- */

.v-title,
.x-title {
  font-size: 22px;
  font-weight: bold;
  padding-bottom: 15px;
}

.v-box,
.x-box {
  color: #00214d;
  /* 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;
  background-color: #ff5470;
}

.v-box {
  background-color: #00ebc7;
}

.v-title {
  color: #00ebc7;
}

.x-title {
  color: #ff5470;
}

.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: #f2f4f6;
  padding: 3rem 3rem 2rem;
  border-radius: 20px 0 20px 0;
}

/* ---------------
    講者權利義務
   --------------- */
.sec-rules {
  background-color: #eff7fd;
  padding: 4rem 1rem 1.5rem;
  border-radius: 10rem 10rem 0 0;
}

.sec-rules h4 {
  margin-top: 25px;
}

@media (max-width:576px) {
  .sec-rules {
    border-radius: 6rem 6rem 0 0;
  }
}

.sec-rules .main-heading .en {
  color: #ffffff;
  opacity: 0.8;
}


.rule-list li {
  list-style-type: none;
  position: relative;
}

.rule-list li::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #00214d;
  left: -15px;
  top: 10px;
}


/* ---------------
   徵稿聯絡信箱
   --------------- */

.sec-mail {
  position: relative;
  background-color: #eff7fd;
}

.sec-mail::before {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background-color: #283040;
}

.mail-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding: 3rem;
  border-radius: 30px;
  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:768px) {
  .mail-box {
    text-align: center;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width:576px) {
  .mail-txt {
    font-size: 18px;
    margin-left: 0;
    margin-top: 2rem;
  }

}

/* ---------------
     講者回顧
   --------------- */
.sec-link {
  color: #ffffff;
  background-color: #283040;
}

.sec-link h2 {
  font-size: 2.5rem;
}

.year-link a {
  font-size: 1.8rem;
  color: #D9D2C5;
  text-decoration: none;
}

.year-link a:hover {
  color: #F2C46D;
}

.year-link li::after {
  content: "/";
  margin-left: 10px;
}

.year-link li:last-child::after {
  content: "";
}

@media (max-width:576px) {
  .sec-link h2 {
    font-size: 2.2rem;
  }
}

/* ---------------
       goTop 
   --------------- */

/*形狀*/
#page-top a {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px 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;
  opacity: 0.5;
}

#page-top a:hover {
  opacity: 1;
}

/*右下固定*/
#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);
  }
}

