*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/*
! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e5e7eb;
  /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -moz-tab-size: 4;
  /* 3 */
  -o-tab-size: 4;
     tab-size: 4;
  /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
  -webkit-tap-highlight-color: transparent;
  /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  /* 1 */
  line-height: inherit;
  /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0;
  /* 1 */
  color: inherit;
  /* 2 */
  border-top-width: 1px;
  /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* 1 */
  font-feature-settings: normal;
  /* 2 */
  font-variation-settings: normal;
  /* 3 */
  font-size: 1em;
  /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-feature-settings: inherit;
  /* 1 */
  font-variation-settings: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  font-weight: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  letter-spacing: inherit;
  /* 1 */
  color: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
  padding: 0;
  /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button;
  /* 1 */
  background-color: transparent;
  /* 2 */
  background-image: none;
  /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  /* 1 */
  vertical-align: middle;
  /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

body {
  font-family: 'Lexend Deca', 'Chiron GoRound TC', sans-serif;
  cursor: url('../cursor.svg'), auto !important;
}

html {
  scroll-behavior: smooth;
}

a, button, input, textarea, label, select {
  cursor: url('../cursor_hand.svg'), auto !important;
}

.scrolled {
  background-color: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.scroll-animate > .relative {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.is-visible > .relative {
  opacity: 1;
  transform: translateY(0);
}

.filter-btn.active {
  background-color: #f59e0b;
  color: white;
}

.prize_link {
  margin-top: 3%;
  box-sizing: content-box;
  text-align: center;
}

.prize_link a {
  font-size: 100%;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .25em;
  padding: .4em 1.2em;
  margin-right: 1em;
  border: 2px solid #000;
  border-radius: 8px;
  display: inline-block;
  color: #000
}

.prize_link a:hover {
  color: #FFF;
  background: #ed620e;
  border-color: #ed620e
}

#awards-list-container {
  overflow-y: auto;
  padding-right: 0.75rem;
}

#awards-list-container::-webkit-scrollbar {
  width: 8px;
}

#awards-list-container::-webkit-scrollbar-track {
  background-color: #f1f1f1;
  border-radius: 10px;
}

#awards-list-container::-webkit-scrollbar-thumb {
  background-color: #eab308;
  border-radius: 10px;
}

#awards-list-container::-webkit-scrollbar-thumb:hover {
  background-color: #f59e0b;
}

.award-item {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.award-photo {
  transition: background-image 0.5s ease-in-out;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
  animation: float 8s ease-in-out infinite;
  animation-delay: 2s;
}

/* 標題動畫效果 */

#title-container {
  color: #f1f1f1;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#flip {
  height: 60px;
  overflow: hidden;
  display: inline-block;
}

.flip-container {
  animation: show 15s linear infinite;
}

.flip-item {
  color: #fff;
  padding: 0 12px;
  height: 60px;
  line-height: 60px;
  display: block;
  border-radius: 8px;
  text-align: center;
  white-space: nowrap;
}

.flip-item:nth-child(1), .flip-item:nth-child(4) {
  background: #ea580c;
}

.flip-item:nth-child(2) {
  background: #f59e0b;
}

.flip-item:nth-child(3) {
  background: #22c55e;
}

@keyframes show {
  0% {
    margin-top:-240px;
  }

  5% {
    margin-top:-180px;
  }

  33% {
    margin-top:-180px;
  }

  38% {
    margin-top:-120px;
  }

  66% {
    margin-top:-120px;
  }

  71% {
    margin-top:-60px;
  }

  99.99% {
    margin-top:-60px;
  }

  100% {
    margin-top:-240px;
  }
}

/* 向下滾動圖示與動畫 */

.scroll-down-icon {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.scroll-down-icon:hover {
  background-color: rgba(223,255,50,0.6);
}

.scroll-down-icon::after {
  content: '';
  width: 0.75rem;
  height: 0.75rem;
  border-bottom: 2px solid white;
  border-right: 2px solid white;
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) rotate(45deg);
  }

  40% {
    transform: translateY(-8px) rotate(45deg);
  }

  60% {
    transform: translateY(-4px) rotate(45deg);
  }
}

#hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translateX(-50%) translateY(-50%);
  -o-object-fit: cover;
     object-fit: cover;
  transition: 1s opacity;
}

::-moz-selection {
  background: transparent;
  color: #33CCFF;
}

::selection {
  background: transparent;
  color: #33CCFF;
}

::-moz-selection {
  background: transparent;
  color: #33CCFF;
}

.hero-info-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes scroll-bg {
  from {
    background-position: 0 0;
  }

  to {
    background-position: -200px 0;
  }
}

#features {
  background-color: #b7efc5;
  background-image: linear-gradient(0deg, rgba(125, 125, 125, 0.3), rgba(200, 200, 200, 0.3));
}

#features::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-image: url("../imgs/roll_bg_1.svg");
  background-size: 400px 400px;
  animation: scroll-bg 15s linear infinite;
}

/* 懸浮資訊欄位 */

.feature-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 1.5rem;
}

.feature-box .content-wrapper {
  position: relative;
  z-index: 2;
  padding: 1rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.feature-box .bg-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 榮譽榜區塊 */

#honors {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fde68a, #facc15, #eab308, #ca8a04);
  background-size: 400% 400%;
  animation: wave-animation 15s ease infinite;
}

@keyframes wave-animation {
  0% {
    background-position: 0% 50%;
  }

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

  100% {
    background-position: 0% 50%;
  }
}

.bubbles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bubbles span {
  position: absolute;
  bottom: -50px;
  font-size: 2rem;
  opacity: 0;
  animation: bubble-rise 20s linear infinite;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@keyframes bubble-rise {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(-120vh);
    opacity: 0;
  }
}

.bubbles span:nth-child(1)  {
  left: 10%;
  animation-duration: 15s;
  animation-delay: 0s;
}

.bubbles span:nth-child(2)  {
  left: 20%;
  animation-duration: 12s;
  animation-delay: 2s;
  font-size: 1.5rem;
}

.bubbles span:nth-child(3)  {
  left: 35%;
  animation-duration: 18s;
  animation-delay: 4s;
}

.bubbles span:nth-child(4)  {
  left: 50%;
  animation-duration: 10s;
  animation-delay: 1s;
  font-size: 2.5rem;
}

.bubbles span:nth-child(5)  {
  left: 65%;
  animation-duration: 16s;
  animation-delay: 5s;
}

.bubbles span:nth-child(6)  {
  left: 80%;
  animation-duration: 11s;
  animation-delay: 3s;
  font-size: 1.8rem;
}

.bubbles span:nth-child(7)  {
  left: 90%;
  animation-duration: 14s;
  animation-delay: 6s;
}

.bubbles span:nth-child(8)  {
  left: 5%;
  animation-duration: 20s;
  animation-delay: 8s;
  font-size: 2.2rem;
}

.bubbles span:nth-child(9)  {
  left: 85%;
  animation-duration: 17s;
  animation-delay: 7s;
}

.bubbles span:nth-child(10) {
  left: 25%;
  animation-duration: 13s;
  animation-delay: 9s;
  font-size: 1.6rem;
}

.bubbles span:nth-child(11) {
  left: 15%;
  animation-duration: 19s;
  animation-delay: 11s;
}

.bubbles span:nth-child(12) {
  left: 45%;
  animation-duration: 14s;
  animation-delay: 13s;
  font-size: 2.3rem;
}

.bubbles span:nth-child(13) {
  left: 75%;
  animation-duration: 22s;
  animation-delay: 10s;
}

.bubbles span:nth-child(14) {
  left: 55%;
  animation-duration: 16s;
  animation-delay: 15s;
  font-size: 1.7rem;
}

.bubbles span:nth-child(15) {
  left: 5%;
  animation-duration: 18s;
  animation-delay: 12s;
}

/* 頁尾區塊 */

footer {
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0,0 Q600,80 1200,0 L1200,80 L0,80 Z' style='fill:%231f2937;'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
}

/* 載入動畫 */

#loading-overlay {
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
  transition-delay: 0s;
}

#loading-overlay.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition-delay: 0.3s;
  /* Delay fade-out */
}

#logo-loader svg {
  width: 160px;
  height: 160px;
  display: block;
  margin: auto;
}