/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  --c1: #34B233;
  --c2: #067C44;
  --c3: #17CC4E;
  --b: #231815;
  --yellow: #EEEA41;
  --blue: #5E97FF;
  scroll-padding-top: 5rem;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

::selection {
  background-color: #7edfb2;
  color: var(--b);
}

body {
  font-size: 18px;
  line-height: 1.8;
  color: #fff;
  background-color: #020619;
  font-family: 'Roboto', 'Noto Sans TC', Arial, '微軟正黑體', '新細明體', Helvetica, sans-serif;
}

p {
  font-size: 19px;
  letter-spacing: 1px;
}

a {
  color: var(--yellow);
}

a:hover {
  color: #f0b943;
  text-decoration: none;
}

section {
  padding: 4rem 0 3rem;
  overflow: hidden;
}


.title {
  display: inline-block;
  position: relative;
  text-align: center;
  margin: 1rem 2rem;
  text-align: center;
  position: relative;
}

.title::before,
.title::after {
  content: '';
  position: absolute;
  top: 26%;
  transform: translateY(-50%);
  display: block;
  width: 25px;
  height: 25px;
}

.title::before {
  content: url(../img/icon1.svg);
  left: -3rem;
}

.title::after {
  content: url(../img/icon2.svg);
  right: -3rem;
}


.m-btn {
  position: relative;
  display: inline-block;
  margin-top: 4rem;
  font-size: 1.3rem;
  text-align: center;
  padding: 1rem 3rem;
  font-weight: 500;
  letter-spacing: 1.2rem;
  text-shadow: none;
  color: var(--b);
  background-color: var(--c1);
}

.m-btn:hover {
  background-color: var(--b);
  color: #fff;
  outline: 2px solid var(--c1);
}

@media (max-width:992px) {
  .m-btn {
    letter-spacing: 0.5rem;
  }
}

.color-in {
  background: linear-gradient(90deg, #11c43e 0%, #adcf16 50%, #11c43e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  background-size: 1000% 100%;
  -webkit-animation: font-color-smooth 60s linear infinite;
  animation: font-color-smooth 60s linear infinite;
}

@keyframes font-color-smooth {
  0% {
    background-position: 0% 100%;
  }

  100% {
    background-position: 1000% 100%;
  }
}


.slash {
  margin: 2rem auto;
  height: 10px;
  background-image: linear-gradient(45deg,
      hsla(0, 0%, 5%, 0),
      hsla(0, 0%, 5%, 0) 33.33%,
      hsla(0, 0%, 5%, 1) 33.33%,
      hsla(0, 0%, 5%, 1) 66.67%,
      hsla(0, 0%, 5%, 0) 66.67%,
      hsla(0, 0%, 5%, 0) 100%);
  background-size: 10px 100%;
  width: 250px;
  border-top: transparent;
}


[data-aos="fade-in"] {
  opacity: 0;
}

[data-aos="fade-in"].aos-animate {
  opacity: 1;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background-color: var(--b);
  border: 2px solid var(--c1);
  width: 40px;
  height: 40px;
  border-radius: 4px;
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background-color: var(--c1);
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/* ------------------------------
         Navbar
   ------------------------------ */
.main-nav {
  margin: 10px 20px;
  padding: 10px 15px;
  font-size: 1.1rem;
  letter-spacing: 0.1rem;
  background-color: var(--b);
  background-image: linear-gradient(130deg, #14161d 28%, #191d2c 28%);
  box-shadow: rgba(17, 17, 26, 0.7) 0px 1px 6px;
}

@media (max-width: 991px) {
  .main-nav {
    background-color: #14161d;
    background-image: linear-gradient(130deg, transparent, transparent);
  }
}

.navbar-light .navbar-nav .nav-link {
  color: #fff;
  text-align: center;
}

.navbar-light .navbar-nav .nav-link:hover {
  color: var(--c1);
}

.navbar-light .navbar-nav .signup {
  background-color: var(--c1);
  color: #fff;
}

.navbar-light .navbar-nav .signup:hover {
  background-color: #fff;
  outline: 2px solid var(--c1);
}


.navbar-brand img {
  height: 2.8rem;
}

.btn-signup {
  background-color: #006CB0;
  padding: 8px 25px;
  border-radius: 25px;
  color: #fff;
  transition: all 0.3s;
}

.btn-signup:hover {
  color: #fff;
  background-color: #0191eb;
}


.custom-toggler.navbar-toggler {
  border: none;
}

.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0,181,99, 1)' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

@media (min-width: 992px) {
  .navbar-nav {
    text-align: center;
  }
}

@media (max-width: 992px) {
  .navbar-light .navbar-nav .nav-link {
    transition: all .2s ease;
  }

  .navbar-light .navbar-nav .nav-link:hover {
    letter-spacing: 0.3rem;
  }

  .navbar-light .navbar-nav .signup {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ------------------------------
       kv
   ------------------------------ */
.kv {
  position: relative;
  overflow: hidden;
  margin: 15rem 0;
}


.kv-txt {
  text-align: center;
  text-shadow: 0 0 10px #111735;
}

.kv h1 {
  font-size: 3.75rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1.5rem;
}

.kv h2 {
  line-height: 1.5;
  margin-top: 0.5rem;
  font-size: 2rem;
  letter-spacing: 1.1rem;
  color: #fff;
}

.kv h3 {
  line-height: 1.5;
  margin-top: 0.5rem;
  font-size: 1.5rem;
  letter-spacing: 1.1rem;
  color: #fff;
}

.kv .m-btn {
  -webkit-animation: heartbeat 2s ease-in-out infinite both;
  animation: heartbeat 2s ease-in-out infinite both;
}

@-webkit-keyframes heartbeat {
  from {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transform-origin: center center;
    transform-origin: center center;
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  10% {
    -webkit-transform: scale(0.97);
    transform: scale(0.97);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  17% {
    -webkit-transform: scale(0.98);
    transform: scale(0.98);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  33% {
    -webkit-transform: scale(0.95);
    transform: scale(0.95);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  45% {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }
}

@keyframes heartbeat {
  from {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transform-origin: center center;
    transform-origin: center center;
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  10% {
    -webkit-transform: scale(0.97);
    transform: scale(0.97);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  17% {
    -webkit-transform: scale(0.98);
    transform: scale(0.98);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  33% {
    -webkit-transform: scale(0.95);
    transform: scale(0.95);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  45% {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }
}

@media (max-width:992px) {
  .kv h1 {
    font-size: 2.8rem;
    letter-spacing: 1rem;
  }

  .kv h2 {
    font-size: 2rem;
    letter-spacing: 0.8rem;
  }
}

@media (max-width:576px) {
  .kv {
    margin: 7rem 0;
  }

  .kv h1 {
    font-size: 2.8rem;
    letter-spacing: 0.4rem;
  }

.kv h3 {
    font-size: 1rem;        /* 建議用 rem 不要用 1vw，1vw 太小几乎看不到字 */
    letter-spacing: 0.1rem; /* 關鍵：把寬字距覆蓋掉 */
    white-space: nowrap;
  }

  .kv i {
    display: block;
  }
}

/* 固定背景 */
.fixed-bg {
  position: relative;
  overflow: hidden;
  z-index: -1;
}

.fixed-bg .fxbg-box {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: url("../img/kv.png") no-repeat 40% center fixed;
  background-size: cover;
  background-color: var(--c4);
  z-index: -2;
}


/* signup kv */

.signup-kv {
  padding-top: 0;
  padding-bottom: 0;
}

.signup-kv .kv-box {
  padding-left: 0;
  padding-right: 0;
  position: relative;
}

/* ------------------------------
       foreword
   ------------------------------ */
.foreword {
  background-color: rgba(255, 255, 255, 0.98);
  color: var(--b);
}

.foreword p {
  font-size: 1.3rem;
}

/* ------------------------------
       info 
   ------------------------------ */
.sec-info {
  background-color: rgba(233, 234, 238, 0.98);
}

.sec-info .title {
  color: var(--b);
}

.sec-info p {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.info,
.info-b {
  font-size: 1.25rem;
  line-height: 2.1;
  padding: 2rem 1.5rem;
  color: var(--b);
  border: 1px solid #fff;
  background-image: linear-gradient(130deg, #e8e8eb 28%, #f0f0f0 28%);
  box-shadow: 0 0 10px #00000022;
}

.info-b {
  padding: 2rem 3rem;
  color: #fff;
  background-image: linear-gradient(130deg, #222942 28%, #1d2234 28%);
  box-shadow: 0 0 10px #00000042;
}

.info:hover {
  background-image: linear-gradient(130deg, #eeeef3 28%, #f3f2f2 28%);
}

.info-b:hover {
  background-image: linear-gradient(130deg, #272f4e 28%, #20263b 28%);
}

.info a {
  background-color: var(--b);
  padding: 0.2rem 1.5rem;
}

.info-b h4 {
  color: var(--c3);
  letter-spacing: 3px;
}

.info-b h5 {
  line-height: 2.5;
}

.info-b ul,
.info-b ol {
  font-size: 1.1rem;
}

.info-b ul li::marker,
.info-b ol li::marker {
  color: var(--c1);
}

/* ------------------------------
       agenda
   ------------------------------ */
.sec-agenda {
  background-color: #1d2234;
}

.agenda {
  font-size: 1.25rem;
  line-height: 1.5;
  padding: 1.8rem 1.5rem;
  border: 1px solid var(--c2);
  background-color: #202741;
  box-shadow: 0 0 10px #1d1e2480;
  height: 95%;
}

.agenda-time {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  background-color: #161a2b;
  position: relative;
}

.agenda-time::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2rem;
  background-color: var(--c1);
  left: 50%;
  right: 50%;
  top: 100%;
  bottom: -2px;
}

.time-last::after {
  width: 0;
  height: 0;
}

.agenda-hover:hover .agenda {
  background-color: #252f52;
}

.agenda-hover:hover .agenda-time {
  background-color: #1d223a;
}

.agenda h4 {
  color: var(--c3);
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed var(--c2);
}

.agenda p {
  text-align: justify;
  font-size: 1.2rem;
  margin-bottom: 0;
}

.agenda span {
  font-size: 1rem;
  color: #cacaca;
}

@media (max-width:1200px) {
  .agenda {
    padding: 1rem 1.5rem;
    height: auto;
    margin: 0 1rem 0;
  }

  .agenda-content {
    position: relative;
    margin-bottom: 1rem;
  }

  .agenda-time::after {
    content: '';
    width: 0;
    height: 0;
  }

  .agenda-content::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2rem;
    background-color: var(--c1);
    left: 50%;
    right: 50%;
    top: 100%;
    bottom: -2px;
  }

  .content-last::after {
    width: 0;
    height: 0;
  }
}

/* ------------------------------
       gift
   ------------------------------ */
.gift {
  background-color: rgba(19, 19, 42, 0.70);
  backdrop-filter: blur(12px);
  color: var(--b);
}

.gift .gift-box {
  background-color: #fff;
  padding: 2rem 1.5rem;
  border-radius: 2rem;
  border: 2px solid #fff;
  background-image: linear-gradient(130deg, #e8e8eb 28%, #f0f0f0 28%);
  box-shadow: 0 0 10px #00000022;
}

.gift .gift-box:hover {
  background-image: linear-gradient(130deg, #eeeef3 28%, #f3f2f2 28%);
}

.gift h4 {
  font-size: 2rem;
  line-height: 1.5;
  color: var(--c1);
}

.gift h5 {
  background-color: var(--c1);
  border-radius: 30px;
  padding: 5px 15px;
  color: #fff;
}

.gift p {
  font-size: 1rem;
}

/* ------------------------------
       notice
   ------------------------------ */

.notice {
  background-color: rgba(233, 234, 238, 0.98);
  color: var(--b);
}

.notice ul {
  font-size: 1rem;
}

.notice a {
  background-color: var(--b);
  padding: 0.2rem 1rem;
}

/* ------------------------------
       partner
   ------------------------------ */
.partner {
  background-color: #fff;
}

.level-title {
  color: var(--c1);
  text-align: center;
  font-weight: 500;
  font-size: 23px;
  letter-spacing: 0.3rem;
  padding: 20px 0 0;
}

.partner-img {
  max-width: 270px;
}

/*--------------------------------------------------------------
# form 
--------------------------------------------------------------*/

.form-inner {
  color: var(--b);
  margin-bottom: 25px;
  padding: 3rem 1rem;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 20px 0 rgba(4, 31, 43, 0.12);
}

.form h4 {
  color: var(--c1);
  font-size: 1.8rem;
  margin-top: 0.8rem;
}

.form h5 {
  text-align: center;
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.form span {
  margin: 0 8px;
  color: var(--c3);
}

.form hr {
  border-top: 1px solid #eeeeee;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.form input {
  border: 1px #666666 dotted;
  border-radius: 10px;
}

.form select {
  border: 1px #333333 dotted;
  border-radius: 10px;
  padding: 6px 20px;
}

.form label {
  display: block;
}

.form input[type="radio"] {
  margin: 8px 16px;
  width: 16px;
  height: 16px;
}

.form input[type=checkbox] {
  margin: 8px 16px;
  width: 16px;
  height: 16px;
}

.form textarea {
  padding: 12px;
  border: 1px #c9c9c9 dotted;
  border-radius: 8px;
}

.form .btn-main,
.form .btn-main:focus {
  background-color: var(--c1);
  color: #fff;
  border-radius: 150px;
  padding: 1em 2.5em;
  margin-top: 2rem;
  transition: all .2s ease;
}

.form .btn-main:hover,
.form .btn-main:focus {
  background-color: var(--c3);
  color: #fff;
}

@media screen and (max-width:576px) {
  .form {
    padding: 0;
  }

  .form-inner {
    border-radius: 0;
    margin-bottom: 0;
    padding: 3rem 1rem 4rem 1rem;
  }

}

/*--------------------------------------------------------------
# sec-thx
--------------------------------------------------------------*/
.sec-thx {
  padding: 3rem 1rem 4rem;
  color: #fff;
}

.sec-thx h4 {
  margin: 3rem 0;
  color: var(--c1);
  text-align: center;
}

.sec-thx p {
  font-size: 1.2rem;
  line-height: 2;
}


/*--------------------------------------------------------------
# sidebar
--------------------------------------------------------------*/
#sidebar .register {
  background: linear-gradient(180deg, var(--c1) 0%, var(--c3) 100%);
  color: #fff;
  text-align: justify;
  position: fixed;
  bottom: 10%;
  right: 10px;
  border: none;
  display: block;
  font-size: 20px;
  padding: 25px 10px;
  z-index: 10;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  border-radius: 10px 0 0 10px;
  transition: all .3s;
}

#sidebar .register:hover {
  padding: 25px 25px 25px 10px;
}

#sidebar i {
  animation: fade-in 5s infinite;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }

  30% {
    opacity: 100%;
  }

  100% {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  #sidebar {
    display: none;
  }
}