@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Roboto:wght@400;700&family=Montserrat:wght@400;700&family=Tilt+Warp&display=swap");

:root {
  /* 霓虹竞技场配色 */
  --neon-orange: #FF6B00;
  --neon-blue: #00D4FF;
  --deep-bg-blue: #0f172a;
  --arena-purple: #1a1a40;
  --arena-dark: #000000;
  
  /* 保留原有变量以兼容 */
  --primary-color: var(--neon-orange);
  --secondary-color: var(--neon-blue);
  --accent-color: var(--neon-orange);
  --menu-background: rgba(20, 30, 50, 0.9);
  --body-background: var(--arena-purple);
  --segment-background: rgba(20, 30, 50, 0.85);
  --input-background: rgba(20, 30, 50, 0.9);
  --input-border: var(--neon-blue);
  --dropdown-background: rgba(20, 30, 50, 0.95);
}

body {
  font-family: "Montserrat", sans-serif;
  color: #fff;
  margin: 0;
  /* 使用背景图片 */
  background-image: url("../img/back.png");
  background-repeat: repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  /* 如果图片加载失败，使用深蓝紫色作为fallback */
  background-color: var(--arena-dark);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  letter-spacing: 0.2px;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  scroll-behavior: smooth;
  position: relative;
  /* 为文本添加强阴影，确保在背景图片上可见 */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9),
               0 0 8px rgba(0, 0, 0, 0.7),
               0 0 12px rgba(0, 0, 0, 0.5),
               -1px -1px 2px rgba(0, 0, 0, 0.8);
}

.notbody {
  background-image: url("../img/snowflake.gif");
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.7;
  color: #fff;
  overflow-x: hidden;
  letter-spacing: 0.2px;
  /* -webkit-transition: all 200ms linear; */
  /* transition: all 200ms linear; */
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  scroll-behavior: smooth;

  /* background: #1f2029 url("../img/bg.svg") repeat fixed center; */
}

.iframe {
  position: relative;
  color: #fff;
}

.icon_image {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  flex-grow: 0;
  gap: 15px 15px;
  justify-content: center;
  order: 0;
  align-items: center;
  width: 100%;
}

.icon_image a {
  flex-wrap: wrap;
  display: block;
  position: relative;
  width: 200px;
  height: 200px;
}

.icon_image a img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.centered-fixed {
  position: fixed;
  top: 1.5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999; /* Ensure it appears above other content if needed */
}

.duckmath-header {
  font-size: 2rem;
  color: var(--neon-orange);
  text-align: center;
  margin-top: -5px;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-style: italic;
  text-shadow: 0 0 10px rgba(255, 107, 0, 0.7),
               2px 2px 4px rgba(0, 0, 0, 0.8),
               0 0 8px rgba(0, 0, 0, 0.6);
}

.small-text {
  font-size: 1rem;
  color: #fff;
  text-align: center;
  margin-top: -5px; /* Adjust this value to move the text up */
}

.icon_image a figcaption {
  position: relative;
  bottom: 0;
  right: 0;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  color: #ff0000;
  font-size: 25px;
  font-weight: 100;
  font-family: "Tilt Warp", "Montserrat", sans-serif;
  text-align: center;
  pointer-events: none;
  z-index: 1;
  visibility: hidden;
  background-color: #fff;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  border-radius: 1rem;
  margin-top: -30px;
  left: 50%;
  transform: translateX(-50%); /* Centers the figcaption horizontally */
  line-height: 150%;
  max-width: 100%;
  box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
  transition: all 0.25s cubic-bezier(0.05, 0.75, 0.12, 0.97);
}

.button {
  border: none;
  padding: 10px 14px;
  min-width: 4rem;
  transition: all 0.25s cubic-bezier(0.05, 0.75, 0.12, 0.97);
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 25px;
  border-radius: 10px;
  margin: 4px 2px;
  cursor: pointer;
  white-space: nowrap;
  font-family: "Tilt Warp", sans-serif;
  margin-bottom: 1.5rem;
  background-color: #fff;
  color: #000;
  margin-top: 2rem;
}

.button:hover {
  background-color: #ff0000;
  color: #fff;
  transform: scale(0.95);
}

.button:active {
  transform: scale(0.9);
}

.button-55 {
  margin-top: 15px;
  margin-bottom: 10px;
  align-self: center;
  background-color: #fff;
  background-image: none;
  background-position: 0 90%;
  background-repeat: repeat no-repeat;
  background-size: 4px 3px;
  border-style: solid;
  border-width: 2px;
  box-shadow: rgba(0, 0, 0, 0.2) 15px 28px 25px -18px;
  box-sizing: border-box;
  color: #000;
  cursor: pointer;
  display: inline-block;
  font-family: Neucha, sans-serif;
  font-size: 3rem;
  line-height: 70px;
  min-width: 400px;
  outline: none;
  padding: 0.75rem;
  text-decoration: none;
  transition: all 235ms ease-in-out;
  border-bottom-left-radius: 15px 255px;
  border-bottom-right-radius: 225px 15px;
  border-top-left-radius: 255px 15px;
  border-top-right-radius: 15px 225px;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.button-55.github {
  min-width: 320px;
  font-size: 45px;
}

.button-55:hover {
  box-shadow: rgba(0, 0, 0, 0.3) 2px 8px 8px -5px;
  transform: translate3d(0, 2px, 0);
}

.button-55:focus {
  box-shadow: rgba(0, 0, 0, 0.3) 2px 8px 4px -6px;
}

.recommended-btns {
  text-decoration: none;
}

.disclaimer {
  font-size: 20px;
  line-height: 120%;
  margin-top: 3rem;
}

.footer {
  color: #fff;
  padding: 10px;
  text-align: center;
}

/* 霓虹竞技场风格 - 全局标题样式 */
h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-style: italic;
}

h1 {
  color: var(--neon-orange);
  text-shadow: 0 0 10px rgba(255, 107, 0, 0.7),
               2px 2px 4px rgba(0, 0, 0, 0.9),
               0 0 8px rgba(0, 0, 0, 0.7);
}

h2 {
  color: var(--neon-blue);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.7),
               2px 2px 4px rgba(0, 0, 0, 0.9),
               0 0 8px rgba(0, 0, 0, 0.7);
}

h3 {
  color: var(--neon-blue);
  text-shadow: 0 0 6px rgba(0, 212, 255, 0.6),
               2px 2px 4px rgba(0, 0, 0, 0.9),
               0 0 8px rgba(0, 0, 0, 0.7);
}

/* Footer 霓虹风格 */
#site-footer {
  background-color: #0a0a0a;
  border-top: 3px solid;
  border-image: linear-gradient(to right, var(--neon-orange), var(--neon-blue)) 1;
  padding: 40px 0;
  margin-top: 60px;
}

#site-footer h3 {
  color: var(--neon-blue);
  font-size: 1.2rem;
}

#site-footer a {
  color: #aaa;
  transition: color 0.3s;
}

#site-footer a:hover {
  color: var(--neon-orange);
  text-decoration: none;
}

a {
  text-decoration: none;
  color: var(--neon-blue);
  transition: all 0.3s ease;
}

a:visited {
  color: var(--neon-blue);
}

a:hover {
  color: var(--neon-orange);
  text-shadow: 0 0 8px rgba(255, 107, 0, 0.5);
}

/*^ Streak.html */
.claim-streak {
  margin-top: 150px;
  padding: 0px 10px 0px 10px;
  margin-bottom: 2rem;
  background-color: rgba(39, 48, 67, 0.5);
  color: #ff0000;
  border-radius: 1rem;
  transition: all 0.25s cubic-bezier(0.05, 0.75, 0.12, 0.97);
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.claim-streak:hover {
  transform: scale(0.95);
}

.claim-streak:active {
  transform: scale(0.925);
}

.streak-title {
  font-size: 7.5rem;
  margin: 0;
}

.streak-subtitle {
  font-size: 2.75rem;
  margin: 0;
  margin-top: -2.5rem;
  margin-bottom: -0.25rem;
}

#stats_div {
  margin-bottom: 2.5rem;
}

#stats_div {
  transform: scale(0);
  transition: transform 0.25s ease;
}

#stats_div.loaded {
  transform: scale(1);
}

.ad {
  width: 100%;
  display: compact;
}

.adsbygoogle {
  display: block;
  text-align: center;
}

/** Search Bar/Input */
.group {
  display: flex;
  line-height: 28px;
  align-items: center;
  position: relative;
  max-width: 190px;
  margin-bottom: -4rem;
  left: 50%;
  transform: translateX(-50%);
}

.input {
  font-family: "Montserrat", sans-serif;
  color: black;
  width: 100%;
  height: 45px;
  padding-left: 2.5rem;
  box-shadow: 0 0 0 1.5px var(--input-border),
    0 0 25px -17px var(--input-border);
  border: 0;
  border-radius: 12px;
  outline: none;
  transition: all 0.25s cubic-bezier(0.19, 1, 0.22, 1);
  cursor: text;
  z-index: 0;
}

.input::placeholder {
  color: #bdbecb;
}

.input:hover {
  box-shadow: 0 0 0 2.5px var(--input-border),
    0px 0px 25px -15px var(--input-border);
}

.input:active {
  transform: scale(0.95);
}

.input:focus {
  box-shadow: 0 0 0 2.5px var(--input-border);
}

.search-icon {
  position: absolute;
  left: 1rem;
  fill: #bdbecb;
  width: 1rem;
  height: 1rem;
  pointer-events: none;
  z-index: 1;
}

/* removes the X from search (Edge) */
input[type="search"]::-ms-clear,
input[type="search"]::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

/* removes the X from search (Chrome) */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

/* removes the X from search (Firefox) */
input[type="search"]::-moz-search-clear,
input[type="search"]::-moz-search-cancel-button {
  display: none;
}

/* removes the X from search (Safari) */
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.rounded {
  border-radius: 1rem;
}

.expand {
  transition: all 0.25s cubic-bezier(0.05, 0.75, 0.12, 0.97);
}

.expand:hover {
  transform: scale(1.1);
}

.expand:active {
  transform: scale(0.9);
}
