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: #6b6feb;
}

a:hover {
  text-decoration: none;
  color: #ab99f3;
}


::selection {
  color: #5071f8;
  background-color: #ffdf07;
}

.main-title {
  font-size: 2.5rem;
  letter-spacing: 0.5rem;
  padding: 20px 0;
  margin-left: -0.5rem;
}

.btn-main {
  position: relative;
  text-decoration: none;
  padding: 1em 2.5em;
  display: inline-block;
  border-radius: 6em;
  transition: all 0.2s;
  border: none;
  font-size: 20px;
  font-weight: 600;
  color: black;
  background-color: #ffdf07;
  margin-top: 2rem;
}

.btn-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-main:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.btn-main::after {
  content: "";
  display: inline-block;
  height: 100%;
  width: 100%;
  border-radius: 100px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  transition: all 0.4s;
}

.btn-main::after {
  background-color: #ffdf07;
}

.btn-main:hover::after {
  transform: scaleX(1.4) scaleY(1.6);
  opacity: 0;
}

.color-main {
  color: #5071f8;
}


/* ---------------
     navbar
   --------------- */
.cfp-navbar {
  background: #5071f8;
  font-size: 18px;
  letter-spacing: 2px;
}

.navbar-light .navbar-nav .nav-link {
  color: #ffffff;
}

.navbar-light .navbar-nav .nav-link:hover {
  color: #53d6e0;
}

.navbar-light .navbar-nav .singup .nav-link {
  color: #ffdf07;
}

.navbar-light .navbar-nav .singup .nav-link:hover {
  color: #53d6e0;
}

.navbar-nav {
  position: relative;
}

.navbar-nav li::before {
  content: "/";
  position: absolute;
  top: 8px;
  color: #ffdf07;
}

.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;
  background-color: #fefefd;
}

.foreword-title {
  font-size: 2rem;
  padding-left: 1.5rem;
  border-left:6px solid #53d6e0;
  margin-bottom: 2rem;
}

.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%;
}


.au-title {
  font-weight: bold;
  font-size: 20px;
  padding: 15px 0 20px;
}



.info-title {
  font-size: 22px;
  font-weight: 700;
}

.icon {
  position: relative;
  /* max-width: 150px; */
  display: block;
  margin: 0 auto;
}

.sec-rules {
  background-color: #edfbf8;
}

.sub-title {
  font-size: 22px;
  font-weight: 700;
}

.sec-intro {
  background-color: #fefefd;
  border-radius: 5rem;
  margin-top: -5rem;
}

.sec-intro .sub-title {
  color: #fefefd;
  background-color: #53d6e0;
  padding: 6px 15px;
  margin-top: 2rem;
}

.heading {
  color: #fefefd;
  border: 3px solid #fefefd;
  padding: 20px;
  text-align: center;
  border-radius: 5rem;
  margin-bottom: 2rem;
}

.topic-title {
  font-size: 24px;
  color: #ffdf07;
  text-align: center;
  font-weight: 600;
}

.topic-title span {
  position: absolute;
  top: 0;
  left: 25%;
  font-size: 30px;
  line-height: 40px;
  width: 40px;
  height: 40px;
  font-weight: 900;
  color: #fff;
  background-color: #5071f8;
  border-radius: 50%;
  transform: translate(-50%, 50%);
}

.rule-list li span {
  font-weight: 600;
  border-bottom: 3px solid #ffdf07;
}


.sec-info {
  color: #ffffff;
  border-radius: 5rem 5rem 0 0;
  padding-bottom: 10rem;
  background: #5071f8;
  /* fallback for old browsers */
  background: -webkit-linear-gradient(20deg, #5071f8, #53d6e0);
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(20deg, #5071f8, #53d6e0);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.sec-info2 {
  background: #edfbf8;
  border-radius: 5rem 5rem 0 0;
  margin-bottom: -6.5rem;
  /* fallback for old browsers */
  background: -webkit-linear-gradient(20deg, #4ecbd6, #a8dbe6, #edfbf8);
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(20deg, #4ecbd6, #a8dbe6, #edfbf8);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}



.sec-tag {
  background-color: #edfbf8;
  padding: 2em 0.5em 4em;
  color: #333;
}

.tag-area {
  margin-bottom: 20px;
}

.tag-area div {
  display: inline-block;
  color: #5071f8;
  font-weight: 600;
  background-color: #fff;
  padding: 6px 15px;
  margin: 8px;
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.sec-year {
  padding: 6rem 1rem;
}

.year-link {
  text-align: center;
  font-size: 3rem;
  font-style: italic;
  font-weight: 600;
}


/* ---------------
         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, #8bacee, #6179e6, #2f64f7);
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #8bacee, #6179e6, #2f64f7);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  overflow: hidden;
  width: 100%;
}

.footer * {
  color: #fff8f0;
}


.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: #ffdf07;
  opacity: 0.6;
  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 {
  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);
  }
}