@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&family=Oswald:wght@200..700&display=swap');

:root {
    --corn-flower-blue: #257ec4;
    --corn-flower-blue-rgb: 37, 126, 196;
    --sky-magenta: #cd63bb;
    --sky-magenta-rgb: 205, 99, 187;
    --chinese-blue: #2E488D;
    --chinese-blue-rgb:46, 72, 141;
    --steel-blue: #3479B1;
    --steel-blue-rgb: 52, 121, 177;
    --steel-blue: #3479B1;
    --steel-blue-rgb: 52, 121, 177;
    --picton-blue: #3BBCE2;
    --picton-blue-rgb: 59, 188, 226;
    --electric-pink: #FF1F80;
    --electric-pink-rgb: 255, 31, 128;
    --light-gold: #E7CD78;

    --bs-white:#ffffff;
    --bs-white-rgb:255,255,255;    
    --bs-black:#333333;
    --bs-black-rgb:51, 51, 51;

    --bs-light:var(--bs-white);
    --bs-light-rgb:var(--bs-white-rgb);
    --bs-dark:var(--bs-black);
    --bs-dark-rgb:var(--bs-black-rgb);

    --header-font: "Oswald", sans-serif;
    --body-font: "Noto Sans TC", sans-serif;

}

header img {
  filter: invert(1);
}

html, body {
  height: 100%;
  margin:0;
  padding:0;
  font-size:16px;
  font-family: var(--body-font);
}

#background-video {
  position: fixed;
  top: 0;
  left: 0;
  bottom:0;
  right:0; 
  width: 100dvw;
  height: 100dvh;
  object-fit: cover;
  object-position: center;
}
.video-overlay {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: calc(100% - 2rem);
  height: calc(100% - 2rem);
  /** BACKGROUND OVERLAY FOR VIDEO BACKGROUND **/
  background: rgba(0,0,0,0.65);
  mix-blend-mode: multiply;
  border-radius: 4vw;
}

.wrapper {
  position: relative;
  padding:2rem;
  min-height: 100dvh;
  box-sizing: border-box;

  /*
    background-image: linear-gradient(to right, var(--sky-magenta),var(--steel-blue),var(--picton-blue),var(--corn-flower-blue),var(--sky-magenta));
    background-size: 600%;
    background-position: 0 0;
  */

  display: flex;
  justify-content: space-between;
  flex-direction: column;
  /* Animation */
  /*
  animation-duration: 20s;
  animation-iteration-count: infinite;
  animation-name: gradients;
  */
}

.wrapper.mobile-only {
  justify-content: center;
}

@keyframes gradients {
    0%   {background-position: 0 0;}
    25% {background-position: 50% 0;}
    50% {background-position: 90% 0;}
    60% {background-position: 60%;}
    75% {background-position: 40%;}
    100%  {background-position: 0 0;}
}

.glow-globe-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  color:var(--bs-dark);
  position: relative;
  width: 60vw;
  height:60vw;
  border-radius: 50%;
}
.glow-globe-wrapper img {
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center;
}
.glow-globe {
  width: 60vw;
  height:60vw;
  border-radius: 50%;
  box-shadow: inset 0 0 10vw rgba(var(--bs-dark-rgb),0.8), 
  inset 5vw 0 14vw rgba(var(--sky-magenta-rgb),0.8), 
  inset -5vw 0 14vw rgba(var(--picton-blue-rgb),0.8),
  
  inset 5vw 0 44vw rgba(var(--sky-magenta-rgb),0.8), 
  inset -5vw 0 44vw rgba(var(--picton-blue-rgb),0.8),

  0 0 10vw rgba(var(--bs-dark-rgb),0.8),
  -5vw 0 14vw rgba(var(--sky-magenta-rgb),0.8), 
  5vw 0 14vw rgba(var(--picton-blue-rgb),0.8);
  animation: load 3s infinite;
  position: absolute;
  top:0;
  left:0;
}

@keyframes load {
  0% {
    transform: rotate(0);
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(100deg);
  }
  100% {
    transform: rotate(360deg);
  }
  
}

@keyframes load-zoom {
  0% {
    transform: scale(1) rotate(0);
    filter: hue-rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(180deg);
    filter: hue-rotate(100deg);
  }
  100% {
    transform: scale(1) rotate(360deg);
  }
  
}
.loader {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(var(--bs-black-rgb), 1);
  z-index: 999;
}

.loader.loading {
  display: flex;
}
.loader.loading .glow-globe-wrapper {
  width: 42vw;
  height: 46vw;
}
.loader.loading .glow-globe-wrapper .glow-globe {
  width: 42vw;
  height: 46vw;
}
.loader.loading .glow-globe-wrapper .txt {
  font-family: var(--header-font);
  color: var(--bs-white) !important;
  font-size: 6vw;
  font-weight: 600;
  animation: breath 2s ease-in-out;
  z-index: 4;
  position: relative;
}
.loader.loading .glow-globe-wrapper .txt span {
  display: inline-block;
  margin: 0 -.05em;
}
.loader.loading .glow-globe-wrapper .txt span {
  animation: blur-txt 1.2s infinite alternate;
}
.loader.loading .glow-globe-wrapper .txt span:nth-child(2) {
  animation-delay: 0.2s;
}
.loader.loading .glow-globe-wrapper .txt span:nth-child(3) {
  animation-delay: 0.4s;
}
.loader.loading .glow-globe-wrapper .txt span:nth-child(4) {
  animation-delay: 0.6s;
}
.loader.loading .glow-globe-wrapper .txt span:nth-child(5) {
  animation-delay: 0.8s;
}
.loader.loading .glow-globe-wrapper .txt span:nth-child(6) {
  animation-delay: 1s;
}
.loader.loading .glow-globe-wrapper .txt span:nth-child(7) {
  animation-delay: 1.2s;
}

@keyframes blur-txt {
  0% {
    filter: blur(0);
    opacity: 1;
  }
  100% {
    filter: blur(5px);
    opacity: .2;
  }
}

@keyframes breath {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.wrapper.camera {
  padding: 0;
}
.wrapper.camera header,
.wrapper.camera footer {
  padding-top:3rem;
  padding-bottom:3rem;
  background: var(--bs-light);
  color: var(--bs-dark);
  font-family: var(--header-font);
  z-index: 3;
}
.wrapper.camera footer {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  height: 15dvw;
  display: flex;
  align-items: center;
}
#orientation-alert {
  position: fixed;
  left: 0;
  top: 0;
  width: 100dvw;
  height: 100dvh;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
}
#orientation-alert h1 {
  font-size: 2rem;
}
#orientation-alert img {
  filter: brightness(0);
  max-width: 30dvh;
}
/************************************************
* HEADER
*************************************************/
header {
  min-height: 5dvw;
}
.header-logo {
  height: 50px;
  width: auto;
}
.logo-cyberport {
  height: 30px;
}


h1 {
  font-size: 2.4em;
  text-align: center;
  text-transform: uppercase;
  font-family: var(--header-font);
}
/************************************************
* FOOTER
*************************************************/
.footer-list {
  display: flex;
  gap: 4vw;
  list-style: none;
  color: var(--bs-dark);
  font-family: var(--header-font);
  align-items: center;
  justify-content: space-around;
  margin: 0 0 6vw;
  padding: 0;
}

footer.user-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding-bottom: 2rem;
  padding-top: 1rem;
  backdrop-filter: blur(4px) saturate(50%);
}
footer.user-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content:center;
  gap: 6dvw;
}
footer.user-nav ul li {
  /* background: rgba(var(--bs-light-rgb), 0.8); */
  display: inline-flex;
  align-items: center; 
  justify-content: flex-start;
  font-size:0.6rem;
  flex-direction:column;
  flex-wrap: wrap;
  max-width: 18dvw;
  flex:0;
  font-family: var(--header-font);
  text-transform: uppercase;
  color: rgba(var(--bs-dark-rgb),1);
}
footer.user-nav ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--bs-dark-rgb),1);
  border-radius: 100%;
  width: 10dvw;
  height: 10dvw;
  margin-bottom:0.2rem;
}
footer.user-nav ul li:nth-child(3) {
  transform: scale(1.2);
}
footer.user-nav ul li img,
footer.user-nav ul li svg {
  width: 6dvw;
  height: 6dvw;
}
/************************************************
* MY ACCOUNT
*************************************************/

.digital-pass {
  position: relative;
  width: 100%;
}
#create-avator {
  position: absolute;
  bottom: 6%;
  right: 14dvw;
  display: flex;
  width: 12dvw;
  height: 12dvw;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 2dvw;
  z-index: 888;
  background: rgba(var(--bs-light-rgb), 0.8);
  border-radius: 100%;
  border: 1px solid var(--bs-dark);
  backdrop-filter: blur(4px);
}
#create-avator svg {
  width: 100%;
  height: auto;
}
.swiper {
  width: 100%;
}
.wrapper.my-account .swiper-wrapper {
  padding-top: 50px;
  padding-bottom: 50px;
}
.wrapper.my-account .swiper-slide {
  background-position: center;
  background-size: cover;
  width: 60dvw !important;
  height: 80dvw !important;
}
.wrapper.my-account .swiper-slide img {
    width: 100%;
    aspect-ratio:3/4;
    object-fit:cover;
    object-position:center;
    border-radius: .5rem;
    box-shadow: .5rem .5rem .5rem rgba(var(--bs-black-rgb), 0.45);
}
.wrapper.my-account .swiper-pagination-bullet-active {
  background: var(--bs-dark) !important;
}
.wrapper.my-account {
  padding-left:0;
  padding-right:0;
  justify-content:flex-start;
}
.wrapper.my-account main {
  padding-bottom: 18dvw;
}
.my-account header {
  padding-left:2rem;
  padding-right: 2rem;
}

#username {
  font-family: var(--header-font);
  font-size: 8vw;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
#user-point {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.4rem;
  align-items: center;
  font-family: var(--header-font);
  font-weight: 700;
  font-size: 0.8rem;
}
#user-point svg {
  width: auto;
  height: 1.4rem;
  fill:var(--light-gold);
}

.offcanvas {
  background: rgba(var(--bs-light-rgb), 0.9);
  backdrop-filter: blur(4px);
}
.userMenuList {
  margin: 1rem 0 1rem 0;
  padding: 0;
  list-style: none;
}
.userMenuList li {
  padding: 0.5rem 1rem;
  font-size: 6vw;
  font-family: var(--header-font);
}
.userMenuList li a {
  text-decoration: none;
}
.languageMenu {
  display: flex;
  flex-direction: row;
  gap:2rem;
  margin:0;
  padding: 0 0 2rem 0;
  list-style: none;
}
.languageMenu li a {
  text-decoration: none;
  font-family: var(--header-font);
  font-size: 4dvw;
}


/************************************************
* REDEMPTION HISTORY TABLE
*************************************************/
#history-wrapper {
  color: var(--bs-dark);
}
#history-wrapper table th {
  border-bottom: 1px solid rgba(var(--bs-dark-rgb),0.7);
}
#history-wrapper table th,
#history-wrapper table td {
  color: var(--bs-dark);
  font-size: 0.8rem;
  padding-bottom: 0.3rem;
  vertical-align: top;
}

#history-wrapper .v-scroll {
  height: 50vh;
  overflow-y: scroll;
}
.history-tbl {
  width: 100%;
}
.history-tbl .date {
  font-size: 0.6rem;
}
.history-tbl th:nth-child(1),
.history-tbl td:nth-child(1) {
  width: 20%;
}
.history-tbl th:nth-child(2),
.history-tbl td:nth-child(2) {
  width: 60%;
}
.history-tbl th:nth-child(3),
.history-tbl td:nth-child(3) {
  width: 20%;
  text-align: right;
}

/************************************************
* REWARDS PRIZE LIST
*************************************************/
.prize-img {
}
.prize-img img {
  box-shadow: 2dvw 2dvw 2dvw rgba(var(--bs-black-rgb), 0.8);
}
.prize-desc {
  padding: 2dvw;
}
.prize-desc .name {
  font-family: var(--header-font);
  font-size:3dvw;
  font-weight: 700;
}
.prize-desc .point {
  font-size:3dvw;
  font-family: var(--header-font);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap:0.3rem;
}
.prize-desc .point svg {
  width: 4dvw;
  height: 4dvw;
}
.prize-desc .point span {
  color:var(--sky-magenta);
  font-size:3.5dvw;
  font-weight: 700;
}

/************************************************
* BUTTON
*************************************************/
.btn-app-back {
  color: var(--bs-dark);
  text-decoration: none;
  font-family: var(--header-font);
  font-size: 4vw;
  white-space: nowrap;
}
.the-button-light {
  position: relative;
  font-family: var(--header-font);
  font-size: 5vw;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.10em;
  color: var(--bs-dark);
  background: none;
  padding: 2vw 4vw;
  min-width: 50vw;
  height: 10vw;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-border-radius: 0;
     -moz-border-radius: 0;
      -ms-border-radius: 0;
       -o-border-radius: 0;
          border-radius: 0;
  }
  
  .the-button-light:hover:before {
    width: 100%;
  }
  
  .the-button-light:hover:after {
    width: 100%;
  }
  
  .the-button-light::before {
    content: "";
    position: absolute;
    width: 4vw;
    height: 10vw;
    top: 0;
    left: -2vw;
    border: 1px solid var(--bs-dark);
    border-right: none;
    -webkit-transition: all 0.5s linear;
      -moz-transition: all 0.5s linear;
        -ms-transition: all 0.5s linear;
        -o-transition: all 0.5s linear;
            transition: all 0.5s linear;
  }
  
  .the-button-light::after {
    content: "";
    position: absolute;
    width: 4vw;
    height: 10vw;
    top: 0;
    right: -2vw;
    border: 1px solid var(--bs-dark);
    border-left: none;
    -webkit-transition: all 0.5s linear;
      -moz-transition: all 0.5s linear;
        -ms-transition: all 0.5s linear;
        -o-transition: all 0.5s linear;
            transition: all 0.5s linear;  
  }
  
/************************************************
* FORM
*************************************************/
.text-field-wrapper {
  position: relative;
}

.text-field-wrapper input {
  width: 100%;
  padding: 2vw 1vw;
  font-size: 6vw;
  color: var(--bs-dark);
  margin-bottom: 30px;
  font-family: var(--header-font);
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--bs-dark);
  outline: none;
  background: transparent;
}
.text-field-wrapper label {
  position: absolute;
  top:0;
  left: 0;
  padding: 6vw 0;
  font-size: 4vw;
  color: var(--bs-dark);
  font-family: var(--header-font);
  pointer-events: none;
  transition: .5s;
}
.text-field-wrapper input:focus ~ label,
.text-field-wrapper input:valid ~ label {
  top: -10vw;
  left: 0;
  color: var(--bs-dark);
  font-size: 3vw;
}
.text-field-wrapper label.error {
  top:unset !important;
  bottom: -5vw;
  color: var(--electric-pink) !important;

}

.verify-code-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2vw;
}
.ver-code {
  border: 1px solid var(--bs-dark);
  font-family: var(--header-font);
  height: 18vw;
  font-size: 8vw;
  text-align: center;
  padding: 0;
  margin: 0;
}


/************************************************
* MODAL
*************************************************/


.forgot_link {
  font-family: var(--header-font);
  text-decoration: none;
  color: var(--bs-dark);
}

.modal-header {
  padding: 0;
}
.modal-header .btn-close {
  background: rgba(var(--bs-white-rgb),1);
  color: var(--bs-dark);
  border-radius: 0;
  margin:0 0 0 auto;
}
.modal-body {
  background-color: #FFDEE9;
  background-image: linear-gradient(16deg, #FFDEE9 0%, #B5FFFC 100%);

  color: var(--bs-dark);
  font-family: var(--header-font);
  text-align: center;
  font-size: 6vw;
  box-shadow: 2vw 2vw 2vw rgba(--bs-black-rgb, 0.8);
  padding-top:3rem;
  padding-bottom: 3rem;
}

/************************************************
* RESET
*************************************************/
input:-internal-autofill-selected {
    background: transparent;
}

.mw-unset {
  min-width: unset;
}

.solid-bg {
  background-color: rgba(var(--bs-white-rgb),0.8);
}

.w-15 {
  width: 15dvw !important;
} 
.h-15 {
  height: 15dvw !important;
} 
.fill-current {
  fill: currentColor;
} 