/* styles.css */
/* Centers all items, black background, white text */

:root {
 /* --bg-color: #000;/*
  --text-color: #000;
}


/* Apply background and base text color to the whole page */
html, body {
  height: 100%;
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utility: center any direct child containers both horizontally and vertically */
.center-screen {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Make body content centered and stacked */
body > * {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Center text and ensure readable spacing for inline elements */
* {
  box-sizing: border-box;
}

/* Ensure block-level elements are centered and use column layout by default */
div, main, section, article, header, footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Center forms, lists, images, and figures */
form, ul, ol, figure {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

/* Ensure inline elements' text is centered */
p, span, a, button, label, h1, h2, h3, h4, h5, h6 {
  text-align: center;
  color: var(--text-color);
  margin: 0.25rem 0;
}

/* Make images centered and responsive */
img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Buttons and inputs styled to match theme */
button, input, textarea, select {
  color: var(--text-color);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  outline: none;
}

/* Provide a centered full-page utility */
.fullscreen-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* Small responsive tweak */
@media (max-width: 480px) {
  body, div, main, section, article {
    padding: 1rem;
  }
}