html {
  scroll-behavior: smooth;
}

body {
  font-size: 18px;
  line-height: 1.8;
  color: #333333;
  font-family: 'Roboto', 'Noto Sans TC', Arial, '微軟正黑體', '新細明體', Helvetica, sans-serif;
}

section {
  padding: 4em 1.5em;
}


a {
  color: #5e83ff;
}

a:hover {
  text-decoration: none;
  color: #99b9f3;
}


::selection {
  color: #0046c6;
  background-color: #ffe712;
}

.main-title {
  text-align: center;
  font-size: 2.5rem;
  letter-spacing: 0.5rem;
  padding: 20px 0;
  margin-left: -0.5rem;
  font-weight: bold;
}

.second-title {
  text-align: center;
  font-size: 2.2rem;
  letter-spacing: .5rem;
  padding: 20px 0;
}

.btn-main,
.btn-main:focus {
  position: relative;
  background: transparent;
  background-image: linear-gradient(90deg, #ffaff6, #b2fcff);
  color: #333;
  box-sizing: inherit;
  border: 1px solid;
  box-shadow: inset 0 0 20px rgba(225, 51, 45, 0);
  outline: 1px solid !important;
  outline-color: rgba(255, 255, 255, 0.5);
  outline-offset: 0;
  text-shadow: none;
  transition: all 1250ms cubic-bezier(.19, 1, .22, 1);
  font-size: 1.5rem;
  text-decoration: none;
  padding: 1em 2.5em;
  display: inline-block;
  border-radius: 6em;
  font-weight: 600;
}

.btn-main:hover,
.btn-main:active {
  color: #333;
  border: 1px solid;
  box-shadow: inset 0 0 5px rgba(255, 255, 255, .5), 0 0 20px rgba(255, 255, 255, 0.2);
  outline: 2px solid !important;
  outline-color: rgba(255, 255, 255, 0) !important;
  outline-offset: 15px;
  transform: translateY(-5px);
}

.color-main {
  color: #4e31ff;
}

.highlight {
  position: relative;
  padding: 0 5px;
  background-image: linear-gradient(90deg, #ffaff6, #b2fcff);
  background-repeat: no-repeat;
  background-position: bottom 0 left 0;
  background-size: 100% 12px;
}


/* ---------------
     navbar
   --------------- */
.cfp-navbar {
  background: #9916faf2;
  background: -webkit-linear-gradient(to right, #9916faf2 0%, #ffa2c0f7 100%);
  background: linear-gradient(to right, #9916faf2 0%, #ffa2c0f7 100%);
  backdrop-filter: contrast(1) blur(3px);
  font-size: 22px;
  letter-spacing: 2px;
  box-shadow: 0 1px 3px #36363626;
}

.navbar-light .navbar-nav .nav-link {
  color: #fff;
}

.navbar-light .navbar-nav .nav-link:hover {
  color: #fff;
}

.navbar-light .navbar-nav .singup .nav-link {
  color: #fff;
}

.navbar-light .navbar-nav .singup .nav-link:hover {
  color: #ffe712;
}

.navbar-nav {
  position: relative;
}

.navbar-nav li::before {
  content: "/";
  position: absolute;
  top: 8px;
  color: #ffe712;
}

.navbar-nav li:first-child::before {
  content: "";
}

.navbar-light .navbar-nav .nav-link {
  padding: 10px 20px;
}

@media (max-width: 576px) {
  .navbar-nav li::before {
    content: "";
  }

  .nav-link {
    text-align: center;
  }
}



/*  */
.sec-foreword {
  text-align: justify;
}

.sec-foreword h2 {
  text-align: center;
}

.sec-foreword h2 span {
  border: 2px solid #333;
}

@media (max-width:576px) {
  .sec-foreword h2 span {
    font-size: 1.8rem;
    border: none;
  }
}

/* .foreword-wrapper {
    display: flex;
} */

.foreword-box {
    border: 1px solid #9B5DE5;
    border-radius: 10px;
    position: relative;
    padding: 80px 20px 20px;
    margin-top: 40px; 
    height: 95%;
}

.foreword-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
  background-color: #9B5DE5;
  color: #fff;
  display: inline-block;
  margin: auto;
}

.foreword-box .ribbon {
  position: absolute;
  width: 12rem;
  height: 3.7rem;
  background: #9B5DE5;
  top: -0.625rem;
  left: 50%;
  transform: translateX(-50%);
}

.foreword-box .ribbon::after,
.foreword-box .ribbon::before {
  content: "";
  position: absolute;
  bottom: -0.15rem;
  border-top: 2rem solid transparent;
  border-bottom: 1rem solid #fff;
}

.foreword-box .ribbon::after {
  left: -0.05rem;
  border-right: 6.5rem solid transparent;
}

.foreword-box .ribbon::before {
  right: -0.05rem;
  border-left: 6.5rem solid transparent;
}


.foreword-box.c2 {
  border: 1px solid #F15BB5;
}

.foreword-title.c2 {
  background-color: #F15BB5;
}

.ribbon.c2 {
  background: #F15BB5;
}

.foreword-box.c3 {
  border: 1px solid #fea240;
}

.foreword-title.c3 {
  background-color: #fea240;
}

.ribbon.c3 {
  background: #fea240;
}

.foreword-box.c4 {
  border: 1px solid #00BBF9;
}

.foreword-title.c4 {
  background-color: #00BBF9;
}

.ribbon.c4 {
  background: #00BBF9;
}

.foreword-box.c5 {
  border: 1px solid #04d5b9;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: left;
}

.foreword-title.c5 {
  background-color: #04d5b9;
}

.ribbon.c5 {
  background: #04d5b9;
}

.foreword-box ul li {
  line-height: 1.6;
}

.sec-info2 ul {
  font-size: 1.3rem;
}

.sec-foreword .thx {
  display: flex;
  align-items: baseline;
  margin-top: 1rem;
}

.thx img {
  padding-right: .5rem;
}

@media (max-width:576px) {
  .sec-foreword .thx {
    flex-direction: column;
    line-height: 1.9;
  }
}

.info-title {
  font-size: 22px;
  font-weight: 700;
}

.icon {
  position: relative;
  /* max-width: 150px; */
  display: block;
  margin: 0 auto;
}

.sec-intro .intro-back {
  line-height: 40px;
  font-size: 20px;
  border-radius: 1rem;
  background-color: #f7f7f7;
  border: 1px solid #26c9c0;
  color: #333;
  padding: 2rem;
  box-shadow: 0 3px 0 #26c9c050;
}

.heading {
  border: 2px solid #333;
  padding: 20px;
  line-height: 1.5;
  letter-spacing: 1px;
  text-align: center;
  border-radius: 4rem;
  margin-bottom: 2rem;
}

.heading span {
  background-image: linear-gradient(90deg, #afffe1, #d3ffb2);
}

@media (max-width:992px) {
  .heading {
    border-radius: 1rem;
  }
}

/*  */
.sec-speaker {
  /* fallback for old browsers */
  background: -webkit-linear-gradient(20deg, #f0ffff, #ace3ff);
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(20deg, #f0ffff, #ace3ff);
}

.sec-speaker span {
  font-size: 20px;
}

/*  */
.sec-suggest .tag-area {
  border: 1px solid #bcf38f;
  color: #333;
  box-shadow: none;
}

.suggest-box {
  padding: 0 20px;
}

.suggest-box .suggest-inner {
  background-color: #ff006e;
  border-radius: 100px;
  padding: 80px;
}

.suggest-box i {
  font-size: 40px;
  color: #fff;
}

.topic-title {
  text-align: center;
}

.topic-title h5 {
  font-size: 24px;
  color: #3362ff;
  text-align: center;
  font-weight: 600;
  margin: .5rem 0;
}

.rule-list li {
  margin-bottom: .8rem;
}

.rule-list li strong {
  font-weight: 600;
  padding-bottom: 5px;
  color: #4e31ff;
}

.rule-list li strong::after {
  content: '|';
  padding: 0 .5rem;
}

/*  */
.sec-speaker,
.sec-suggest,
.sec-info,
.sec-info2,
.sec-rules {
  margin: 0rem 2rem;
  color: #333;
  border-radius: 2rem;
}

.sec-info {
  background: #4db2e0;
  /* fallback for old browsers */
  background: -webkit-linear-gradient(20deg, #a9f1fd, #fbffee);
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(20deg, #a9f1fd, #fbffee);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.sec-info .tag-area {
  color: #0046c6;
  position: relative;
}

.sec-info .tag-area::after {
  content: url(../img/dec.png);
  position: absolute;
  top: -28px;
  left: 0;
  transform: rotate(148deg);
}

/*  */
.sec-info2 {
  border: 1px solid #1f23ed;
}

.sec-info2 p {
  font-size: 22px;
  text-align: center;
  margin-top: 10px;
}

.sec-info2 p span {
  font-size: 28px;
}

.sec-info2 .info-btn p {
  color: #1f23ed;
}

.info-list {
  display: flex;
  justify-content: center;
  align-content: center;

}

.sec-tag {
  text-align: center;
  display: flex;
  justify-content: center;
}

.tag-area {
  margin-bottom: 20px;
  color: #896afb;
  font-size: 20px;
  margin: 1rem;
  background-color: #fff;
  padding: 6px 15px;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tag-area p {
  margin: 1rem 0;
}

.sec-year {
  padding: 6rem 1rem;
}

.year-link {
  line-height: 1;
  text-align: center;
  font-size: 3rem;
  font-style: italic;
  font-weight: 600;
  padding-bottom: 2rem;
}

@media (max-width:1200px) {
  .year-link {
    display: flex;
    flex-direction: column;
  }
}

.year-link span {
  font-size: 23px;
}

/*  */
.sec-rules {
  background: #4db2e0;
  background: -webkit-linear-gradient(20deg, #fbffd5, #d1eaff);
  background: linear-gradient(20deg, #fbffd5, #d1eaff);
}

/* ---------------
         footer
   --------------- */
.footer {
  position: relative;
  margin: 0;
  padding: 40px 20px;
  width: 100%;
  padding-bottom: 2%;
  background: #2f64f7;
  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #eca6ff, #fbc58e, #f3ff8e);
  background: linear-gradient(to right, #eca6ff, #fbc58e, #f3ff8e);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  overflow: hidden;
  width: 100%;
}

.footer * {
  color: #333;
}


.footer-bottom {
  font-size: 16px;
  letter-spacing: 2px;
  padding-top: 15px;
  border-top: 1px solid #333;
}

.footer-logo {
  color: #333;
  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;
}



/* ---------------
       goTop 
   --------------- */

/*形狀*/
#page-top a {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #9916fa;
  opacity: 0.6;
  border-radius: 1rem;
  width: 60px;
  height: 60px;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.6rem;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
  transition: all 0.3s;
}

#page-top a:hover {
  opacity: 1;
}

#page-top i {
  font-size: 40px;
}

/*右下固定*/
#page-top {
  position: fixed;
  right: 15px;
  bottom: 10px;
  z-index: 2;
  opacity: 0;
  transform: translateY(100px);
  backdrop-filter: contrast(1) blur(3px);
}

/*　往上動畫　*/

#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);
  }
}