html {
  scroll-behavior: smooth;
}

body {
  font-size: 17px;
  line-height: 1.8;
  color: #333333;
  font-family: "Roboto", "Noto Sans TC", Arial, "微軟正黑體", "新細明體",
    Helvetica, sans-serif;
}

section {
  padding: 2.5em 1.5em;
}

p {
  font-size: 20px;
}

::selection {
  background-color: #c3f0ca;
}

.main-title {
  font-size: 2.3rem;
  letter-spacing: 0.5rem;
  padding: 20px 0;
  text-align: center;
  text-shadow: 2px 2px 3px #aaa;
}

.btn-main {
  letter-spacing: 0.25rem;
  font-size: 24px;
  border-radius: 60px;
  border: 1px solid #91164f;
  box-shadow: 2px 2px 6px 0px #999;
  padding: 20px;
  margin: 36px 0;
  background: linear-gradient(to left, rgb(127, 75, 209), rgb(214, 50, 91) 30%);
  color: #FFF;
}

.btn-main:hover {
  background-color: #000;
  box-shadow: 0px 0px 0px 0px #cccccc;
  color: #ffffff;
  background: linear-gradient(to left, #000, #000);
  border: 1px solid #000;
}

.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;
}

/* ---------------
     navbar
   --------------- */
.cfp-navbar {
  background-color: #edeff4;
  font-size: 18px;
  letter-spacing: 2px;
}

.navbar-light .navbar-nav .singup .nav-link {
  color: #994ff3;
  font-weight: 700;
}

.navbar-light .navbar-nav .singup .nav-link:hover {
  color: #5827ae;
}

.navbar-nav {
  position: relative;
}

/* .navbar-nav li::before {
  content: "|";
  position: absolute;
  top: 8px;
} */

.navbar-nav li:first-child::before {
  content: "";
}

.navbar-light .navbar-nav .nav-link {
  padding: 10px 20px;
}

.en-navlogo {
  min-width: 400px;
}

@media (max-width: 576px) {
  /* .navbar-nav li::before {
    content: "";
  } */

  .nav-link {
    text-align: center;
  }

  .en-navlogo {
    min-width: 300px;
  }

}

/* ---------------
     
   --------------- */

.sec-foreword {
  padding: 2.5em 1em 0;
}

.foreword-title {
  font-size: 2.5rem;
  font-weight: bold;
  padding: 1.5rem 0;
}

.img-blob {
  background-position: top left, bottom right;
  background-repeat: no-repeat;
}

.img-blob img {
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
}

.date-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  margin: 20px 0;
}

.date-title span {
  font-size: 20px;
  border: 2px #FFF solid;
  padding: 8px 24px;

}

.date span {
  font-size: 2.2rem;
  font-weight: bold;
}

.au-title {
  font-weight: bold;
  font-size: 20px;
  padding: 15px 0 20px;
}

.sec-info {
  padding: 0em 1em 2em;
}

.sec-info h4.date-title {
  line-height: 1.5;
  padding: 3em 0em;
  background-color: #FFF;
  border-radius: 4px;
}

.brc01 {
  border: 2px #91164f solid;
}

.brc02 {
  border: 2px #0c6632 solid;
}

.typebg01 {
  color: #91164f;
}

.typebg02 {
  color: #0c6632;
}

.sec-info h4.date-title span {
  font-size: 2rem;
  font-weight: 700;
}

.text-left {
  padding: 0.3em 2em;
}

.sec-date {
  background: linear-gradient(#ad2c57, #2b005c);
  color: #FFF;
  padding: 3.5em 1em;
  text-shadow: 1px 2px 5px #2b005c;
}

.sec-date a {
  color: #ffd310;
}

.sec-date a:hover {
  text-decoration: none;
  color: #52ffff;
}

.sec-topic {
  padding: 0.2em 1em 5em;
}

.sec-topic .subtitle {
  font-size: 22px;
}

.sec-topic .tag {
  font-size: 24px;
  font-weight: 700;
  line-height: 2.2;
  color: rgb(0, 88, 189);
}

.sec-topic .tag span {
  font-size: 20px;
  font-weight: 500;
}

.sec-topic .tag:hover {
  color: #2b005c;
}

/* ---------------
     徵稿條件
   --------------- */

.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;
}

.v-title,
.v-box {
  color: #078080;
}

.x-title,
.x-box {
  color: #fa5246;
}

.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 {
  padding: 2.5rem 0;
  margin-top: 2.5rem;
}

.x-box::before {
  content: "";
}

.info-title {
  border: 1px solid #333333;
  border-radius: 2px;
  text-align: center;
  margin-bottom: 20px;
}

.sec-rules {
  background-color: #efefef;
}

.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;
}

/* ---------------
     easyPieChart
   --------------- */

.chart {
  position: relative;
  margin: 0 auto 25px;
}

.chart span {
  font-size: 3rem;
  font-weight: bold;
}

.chart canvas {
  position: absolute;
  top: 0;
  left: 0;
}

/* ---------------
         footer
   --------------- */
.footer {
  position: relative;
  margin: 0;
  padding: 40px 20px;
  width: 100%;
  padding-bottom: 2%;
  background-color: #293045;
  overflow: hidden;
  width: 100%;
}

.footer * {
  color: #aaaaaa;
}

.footer-bottom {
  font-size: 16px;
  letter-spacing: 2px;
  padding-top: 15px;
  border-top: 1px solid #ffffff;
}

.footer-logo {
  color: #ffffff;
  font-size: 26px;
  font-weight: bold;
  padding-right: 10px;
}

.foot-logo-img {
  vertical-align: text-bottom;
  padding-left: 10px;
}

.foot-icon {
  max-width: 35px;
  margin: 10px 5px;
}

.foot-icon:hover {
  transform: translateY(2px);
  transition: 0.2s;
}

.foot-year a {
  color: #ffd803;
  text-decoration: none;
  transition: 0.2s;
}

.foot-year a:hover {
  color: #fffffe;
}

/* ---------------
       goTop 
   --------------- */

/*形狀*/
#page-top a {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #333333;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.6rem;
  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);
  }
}

/* ---------------
     timeline
   --------------- */

.timeline {
  position: relative;
  width: 660px;
  margin: 0 auto;
  margin-top: 20px;
  padding: 1em 0;
  list-style-type: none;
  font-size: 1.5rem;
}

.timeline:before {
  position: absolute;
  left: 50%;
  top: 0;
  content: ' ';
  display: block;
  width: 6px;
  height: 100%;
  margin-left: -3px;
  background: rgb(80, 80, 80);
  background: -moz-linear-gradient(top, rgba(80, 80, 80, 0) 0%, rgb(80, 80, 80) 8%, rgb(80, 80, 80) 92%, rgba(80, 80, 80, 0) 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(30, 87, 153, 1)), color-stop(100%, rgba(125, 185, 232, 1)));
  background: -webkit-linear-gradient(top, rgba(80, 80, 80, 0) 0%, rgb(80, 80, 80) 8%, rgb(80, 80, 80) 92%, rgba(80, 80, 80, 0) 100%);
  background: -o-linear-gradient(top, rgba(80, 80, 80, 0) 0%, rgb(80, 80, 80) 8%, rgb(80, 80, 80) 92%, rgba(80, 80, 80, 0) 100%);
  background: -ms-linear-gradient(top, rgba(80, 80, 80, 0) 0%, rgb(80, 80, 80) 8%, rgb(80, 80, 80) 92%, rgba(80, 80, 80, 0) 100%);
  background: linear-gradient(to bottom, rgba(80, 80, 80, 0) 0%, rgb(80, 80, 80) 8%, rgb(80, 80, 80) 92%, rgba(80, 80, 80, 0) 100%);

  z-index: 5;
}

.timeline li {
  padding: 0.6em 0;
}

.timeline li:after {
  content: "";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.direction-l {
  position: relative;
  width: 300px;
  float: left;
  text-align: right;
}

.direction-r {
  position: relative;
  width: 300px;
  float: right;
}

.flag-wrapper {
  position: relative;
  display: inline-block;
  text-align: center;
}

.flag {
  position: relative;
  display: inline;
  padding: 6px 10px;
  border-radius: 5px;
  font-weight: 600;
  text-align: left;
  border: 1px solid #fff;
}

.direction-l .flag {
  -webkit-box-shadow: -1px 1px 1px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: -1px 1px 1px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.15);
  box-shadow: -1px 1px 1px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.15);
}

.direction-r .flag {
  -webkit-box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.15);
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.15);
}

.direction-l .date,
.direction-r .date {
  position: relative;
  z-index: 50;
}

.direction-l .flag:before,
.direction-r .flag:before {
  position: absolute;
  top: 55%;
  right: -40px;
  content: ' ';
  display: block;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  background: #fff;
  border-radius: 10px;
  border: 4px solid rgb(255, 80, 80);
  z-index: 10;
}

.direction-r .flag:before {
  left: -40px;
}

.direction-l .flag:after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  height: 0;
  width: 0;
  margin-top: -8px;
  border: solid transparent;
  border-left-color: rgb(248, 248, 248);
  border-width: 8px;
  pointer-events: none;
}

.direction-r .flag:after {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  height: 0;
  width: 0;
  margin-top: -8px;
  border: solid transparent;
  border-right-color: rgb(248, 248, 248);
  border-width: 8px;
  pointer-events: none;
}

.time-wrapper {
  display: inline;
  line-height: 1em;
  font-size: 0.66666em;
  color: rgb(250, 80, 80);
  vertical-align: middle;
}

.direction-l .time-wrapper {
  float: left;
}

.direction-r .time-wrapper {
  float: right;
}

.time {
  display: inline-block;
  padding: 4px 6px;
  /* background: rgb(248, 248, 248); */
}

.desc {
  /* margin: 1em 0.75em 0 0; */
  font-size: 0.77777em;
  line-height: 1.5em;
}

.direction-r .desc {
  /* margin: 1em 0 0 0.75em; */
}

.date.en {
  font-size: 2rem;
}

/* ================ Timeline Media Queries ================ */

@media screen and (max-width: 660px) {

  .timeline {
    width: 100%;
    padding: 4em 0 1em 0;
  }

  .timeline:before {
    z-index: 1;
  }

  .timeline li {
    padding: 2em 0;
  }

  .direction-l,
  .direction-r {
    float: none;
    width: 100%;

    text-align: center;
  }

  .flag-wrapper {
    text-align: center;
  }

  .flag {
    background: rgb(255, 255, 255);
    z-index: 15;
    color: #212121;
    text-shadow: none;
  }

  .direction-l .flag:before,
  .direction-r .flag:before {
    position: absolute;
    top: -30px;
    left: 48%;
    content: ' ';
    display: block;
    width: 20px;
    height: 20px;
    margin-left: -9px;
    background: #fff;
    border-radius: 10px;
    border: 4px solid rgb(255, 80, 80);
    z-index: 10;
  }

  .direction-l .flag:after,
  .direction-r .flag:after {
    content: "";
    position: absolute;
    left: 50%;
    top: -8px;
    height: 0;
    width: 0;
    margin-left: -8px;
    border: solid transparent;
    border-bottom-color: rgb(255, 255, 255);
    border-width: 8px;
    pointer-events: none;
  }

  .time-wrapper {
    color: #212121;
    display: block;
    position: relative;
    margin: 4px 0 0 0;
    z-index: 14;
  }

  .direction-l .time-wrapper {
    float: none;
  }

  .direction-r .time-wrapper {
    float: none;
  }

  .desc {
    position: relative;
    margin: 1em 0 0 0;
    padding: 1em;
    background: rgb(245, 245, 245);
    -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.20);
    -moz-box-shadow: 0 0 1px rgba(0, 0, 0, 0.20);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.20);

    z-index: 15;
  }

  .direction-l .desc,
  .direction-r .desc {
    position: relative;
    margin: 1em 1em 0 1em;
    padding: 1em;
    z-index: 15;
    background-color: rgba(255, 255, 255, 0.5);
  }

}

@media screen and (min-width: 400px ?? max-width: 660px) {

  .direction-l .desc,
  .direction-r .desc {
    margin: 1em 4em 0 4em;
  }

}