html {
  scroll-behavior: smooth;
}

:root {
  --main: #234aff;
  --C1: #606bff;
  --C2: #fef9b0;
  --black: #333;
  scroll-padding-top: 3rem;
  scroll-behavior: smooth;
}

body {
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
  color: #fff;
  background-color: #f7f7f7;
  font-family: "Roboto", "Noto Sans TC", Arial, "微軟正黑體", "新細明體",
    Helvetica, sans-serif;
}

section {
  position: relative;
  padding: 3rem 1rem;
  z-index: 1;
}

h2 {
  color: #fff;
  display: inline-block;
  padding: 5px;
  border: 2px solid var(--C1);
}

p {
  font-size: 21px;
  line-height: 1.8;
}

p strong {
  margin: 0 8px;
  background: linear-gradient(180deg, transparent 70%, #606bff80 70.1%);
}

a {
  background: linear-gradient(90deg, #87a3ff 0%, #3564ff 100%);
  color: #fff;
}

a:hover {
  color: #fff;
  text-decoration: none;
}


.highlight {
  text-align: center;
  position: relative;
  padding: 15px 0;
  background-image: linear-gradient(90deg, #87a3ff 0%, #3564ff 100%);
  background-clip: text;
  color: transparent;
  background-repeat: no-repeat;
}

.star-box {
  position: relative;
  margin: 0 20px;
  padding: 25px;
  background-color: #05050f;
  border-radius: 20px;
  border: 1px solid #234AFF;
  height: 95%;
}

.star-box::after {
  content: url(../img/star.svg);
  position: absolute;
  left: 50%;
  top: -25px;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
}

.txtc {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: left;
}

@media (max-width: 767px) {
  .highlight {
    text-align: center;
  }

  .highlight::after {
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
  }
}

.m-btn,
.m-btn a {
  position: relative;
  border-radius: 60px;
  z-index: 0;
}

.m-btn {
  margin: 1rem auto;
  letter-spacing: 0.1rem;
  padding: 1px;
  width: 100%;
  font-weight: bold;
  max-width: 280px;
  font-size: 25px;
  overflow: hidden;
}

.m-btn a {
  width: 280px;
  padding: 1em 1.5em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.m-btn::before,
.m-btn::after {
  content: '';
  display: block;
  position: absolute;
}

.m-btn::before {
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  top: 0;
  left: 0;
  border: 1px solid var(--main);
  border-radius: 60px;
  z-index: -2;
}

.m-btn::after {
  width: 51%;
  height: 0;
  bottom: 50%;
  left: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 50%, #fff 100%);
  transform-origin: left center;
  transform: translateY(50%) rotate(-90deg);
  transition: 200ms;
  z-index: -1;
  opacity: 0;
}

.m-btn:hover::after {
  animation: buttonwheel cubic-bezier(1, 0.45, 0.01, 0.55) 1000ms;
}

@keyframes buttonwheel {
  0% {
    height: 0;
    opacity: 0;
    transform: translateY(50%) rotate(-90deg);
  }

  10% {
    opacity: 1;
  }

  50% {
    height: 25px;
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    height: 0;
    opacity: 0;
    transform: translateY(50%) rotate(270deg);
  }
}

/* =======================================
  # sec-info
========================================= */
.star-box p strong {
  font-size: 29px;
  background: none;
}

.sec-info .star2 {
  border: 1px solid #ff006e;
}

.sec-info .star2::after {
  content: url(../img/star2.svg);
}

.sec-info .star3 {
  border: 1px solid #fb5607;
}

.sec-info .star3::after {
  content: url(../img/star3.svg);
}

.info-inner {
  margin: 20px;
  background-color: #000;
  padding: 20px;
}

/* =======================================
  # sec-structure
========================================= */
.structure-box .structure-inner{
  margin: 5px 5px;
  background-color: #fff;
  border-radius: 20px;
  border: 2px solid var(--C1);
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.structure-box h4{
  font-size: 36px;
  font-weight: bold;
}
.structure-box h5{
  font-size: 24px;
}
.sec-structure img {
  background-color: #191e3095;
  border: 2px solid var(--C1);
  border-radius: 20px;
}

/* =======================================
  # sec-theme
========================================= */
.sec-theme .theme-title {
  text-align: center;
  background: linear-gradient(90deg, #87a3ff 0%, #3564ff 100%);
  margin: 20px auto 0;
}

/* =======================================
  # sec-rules
========================================= */
.sec-rules h2 {
  display: block;
  text-align: center;
  position: relative;
  margin: 40px 0 25px;
}

.sec-rules h2::before {
  content: url(../img/star.svg);
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  left: 0;
  transform: translateY(-50%);
}

.sec-rules .list-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  position: relative;
  padding: 25px;
  margin: 0 20px;
  background-color: #272761;
  border-radius: 20px;
  border: 1px solid var(--C2);
}

.list-box .rule-list {
  color: var(--C2);
  padding-top: 10px;
  margin-bottom: 0;
}

.rule-list li {
  margin-bottom: .8rem;
  line-height: 1.8;
}

.rule-list li strong:first-child {
  font-weight: 600;
  padding-bottom: 5px;
  color: var(--C2);
}

.rule-list li strong::after {
  content: '|';
  padding: 0 .5rem;
}

.rule-list li span {
  font-weight: bold;
}

/* =======================================
  # sec-thanks
========================================= */
.sec-thanks h4 {
  font-size: 30px;
  color: var(--C2);
}


/* ---------------
         footer
   --------------- */
.footer {
  position: relative;
  margin: 0;
  padding: 40px 20px;
  width: 100%;
  padding-bottom: 2%;
  background: #000;
  overflow: hidden;
  width: 100%;
}

.footer a {
  background: none;
}

.footer-bottom {
  font-size: 16px;
  letter-spacing: 2px;
  padding-top: 15px;
  border-top: 1px solid #333;
}

.footer-logo {
  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;
}




#topBtn {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Fixed/sticky position */
  bottom: 20px;
  /* Place the button at the bottom of the page */
  right: 1.3rem;
  /* Place the button 30px from the right */
  z-index: 99;
  /* Make sure it does not overlap */
  border: 2px solid #fff;
  /* Remove borders */
  outline: none;
  /* Remove outline */
  background-color: transparent;
  background: transparent;
  color: #fff;
  cursor: pointer;
  /* Add a mouse pointer on hover */
  padding: 11px 13px;
  border-radius: 50%;
  font-size: 27px;
  transition: 0.2s;
}

#topBtn:hover {
  background-color: #fff;
  color: var(--main);
}

@media (max-width: 768px) {
  #topBtn {
    bottom: 7rem;
    background-color: #00000095;
  }
}