/* -- Reset & Base -- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #e0e0e0;
  background: #1a1a2e;
  min-height: 100vh;
}

a {
  color: #64b5f6;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #90caf9;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

[hidden] {
  display: none !important;
}

/* -- Layout helpers -- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.page-header {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-header p {
  color: #9e9e9e;
  margin-top: 0.4rem;
}

.img-center {
  display: block;
  margin: 0 auto;
}

/* -- Footer -- */
.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 1rem 2rem;
  border-top: 1px solid #2a3a5e;
  background: #111827;
}

.footer-inner {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.2rem;
}

.footer-nav a {
  font-size: 0.8rem;
  color: #9e9e9e;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #90caf9;
}

.footer-copyright {
  font-size: 0.75rem;
  color: #666;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

#footer-message,
body > #footer-message, .auto-dark-theme > #footer-message {
  color-scheme: only light; /* override auto-dark-mode */
  background: #111827;
  text-align: center !important; 
  padding: 2rem 1rem !important;
  color: #141d2f !important;
  /*background-color: transparent !important;*/
  font-size: 0.8rem !important;
  -webkit-text-fill-color: #141d2f !important;
}
