* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Zekton', sans-serif;
}

@font-face {
    font-family: 'Zekton';
    src: url('/fonts/zekton.woff2') format('woff2'),
         url('/fonts/zekton.woff') format('woff'),
         url('/fonts/zekton.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
body {
    font-family: 'Zekton', sans-serif;
}


body {
    background-color: #181818;
    color: #fff;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #111;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo img {
    width: 100px;
}

.header-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.header-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.translate-toggle,
.theme-toggle {
    cursor: pointer;
}


main {
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

#search-bar, #type-filter, #attribute-filter {
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: #222;
    color: #fff;
}
#themeToggle {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 20px;
  cursor: pointer;
}

body.light-mode {
    background-color: #f5f5f5;
    color: #000;
}

body.light-mode header {
    background-color: #e0e0e0;
}

body.light-mode nav ul li a {
    color: #000;
}

/* Inputs & Selects */
body.light-mode #search-bar,
body.light-mode #type-filter,
body.light-mode #attribute-filter {
    background-color: #fff;
    color: #000;
    border: 1px solid #ccc;
}

/* Cards */
body.light-mode .card {
    background-color: #f0f0f0;
    color: #000;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

/* Optional: Card hover effect */
body.light-mode .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Main headings */
body.light-mode h1 {
    color: #000;
}

/* Form container area */
body.light-mode .filters {
    background-color: transparent;
}

/* Card grid background (optional) */
body.light-mode .cards-grid {
    background-color: transparent;
}

/* Icons, buttons, and other dark-specific items */
body.light-mode .fa-solid {
    color: #000;
}

/* Light Mode: HSP container */
body.light-mode .hsp-container {
    color: #000;
}

body.light-mode .hsp-container .hsp-value {
    color: #b37700;
}

body.light-mode .catalogue {
    color: #000;
}

/* Dark mode no-color */
body:not(.light-mode) #cards-container.no-color .card {
    background: #222 !important;
}

/* Light mode no-color */
body.light-mode #cards-container.no-color .card {
    background: #f0f0f0 !important;
}

body.light-mode .clickable-character {
    cursor: pointer;
    color: #b37700;
    font-weight: bold;
}

/* Light Mode: number colors (these can stay as-is unless you want variants) */
body.light-mode .number-1 { color: red; }
body.light-mode .number-2 { color: goldenrod; }
body.light-mode .number-3 { color: teal; }

/* Light Mode: card hover effect */
body.light-mode .card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.15); /* lighter shadow */
}

body.light-mode #colourCardButton,
body.light-mode #openCardButton,
body.light-mode #flipNoteButton {
    background-color: #e0e0e0;
    border: 1px solid #bbb;
    color: #000;
}
body.light-mode #colourCardButton i,
body.light-mode #openCardButton i,
body.light-mode #flipNoteButton i {
    color: #000;
}

/* Close button in light mode */
body.light-mode .close-button {
    color: #000;
}

/* Sort buttons in light mode */
body.light-mode .sort-button {
    background-color: #e0e0e0;
    border: 1px solid #bbb;
    color: #000;
}

/* Optional: Sort button icon color */
body.light-mode .sort-button i {
    color: #000;
}

body.light-mode .attr-text-subterra {
    color: #5E2F00;
}
body.light-mode .attr-text-ventus {
    color: #00B359;
}
body.light-mode .attr-text-pyrus {
    color: #B30000;
}
body.light-mode .attr-text-aquos {
    color: #0444C2;
}
body.light-mode .attr-text-haos {
    color: #c5d700;
}
body.light-mode .attr-text-darkus {
    color: #8408FF;
}

/* === Google Translate Hider === */
.goog-te-banner-frame.skiptranslate,
.skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}

#google_translate_element {
  display: none;
}

/* === Header Layout === */
header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.header-left {
  flex: 0 0 auto;
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.header-center ul {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.header-center ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

.header-right {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-right button {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

/* === Flag Tray Animation === */
.language-icons {
  position: absolute;
  right: 65px;
  top: 60%;
  transform: translateY(-50%) translateX(10%);
  transform-origin: right center;
  scale: 0.9;
  transition: transform 0.4s ease, opacity 0.4s ease, scale 0.4s ease;
  opacity: 0;
  pointer-events: none;
  display: flex;
  gap: 6px;
  background: transparent;
  z-index: 9999;
}

.language-icons.visible {
  transform: translateY(-50%) translateX(0%);
  opacity: 1;
  pointer-events: auto;
  scale: 1;
}

.language-icons button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.language-icons img {
  width: 32px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid #666;
  object-fit: cover;
  transition: transform 0.2s;
}

.language-icons button:hover img {
  transform: scale(1.1);
}

/* === AU Flip Text Logic (No longer needed, but keep transition for smoothness) === */
.card-index-header,
.center-filters,
#search-bar,
#type-filter option,
#attribute-filter option,
.card {
    transition: transform 0.4s ease;
}

.language-icons button img {
    display: inline-block;
    transition: transform 0.4s ease;
    transform-origin: center center;
}

.sort-button-container button {
    display: inline-block;
    transition: transform 0.4s ease;
    transform-origin: center center;
}

.header-nav ul li a {
    display: inline-block;
    transition: transform 0.4s ease;
}

img[src="/images/icon/bloxugan-logo.png"] {
    display: inline-block;
    transition: transform 0.4s ease;
    transform-origin: center center;
}

#toggleFlags,
#themeToggle {
    display: inline-block;
    transition: transform 0.4s ease;
    transform-origin: center center;
}

.card-index-header,
.center-filters {
    justify-content: center;
    align-items: center;
}

.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  cursor: none;

  background: url('/images/icon/bloxugan.png') repeat left top;
  background-size: calc(2640px / 4) auto;

  animation: bg-anime_pc 40s linear infinite;
}

@keyframes bg-anime_pc {
  0% {
    background-position: left 0 top 0;
  }
  100% {
    background-position: left calc(2640px / 1.375) top calc(992px / 1.375);
  }
}