.content {
  align-items: center;
}

:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --table-header: #f0f0f0;
  --table-border: #cccccc;
  --accent: #0078d4;
}

body.dark {
  --bg-color: #0d0d0d;
  --text-color: #e6e6e6;
  --table-header: #1a1a1a;
  --table-border: #333333;
  --accent: #4bb3ff;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: Arial, sans-serif;
  margin: 0;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 100px;
}

.controls button {
  margin-left: 5px;
}

.hint {
  font-size: 0.9em;
  opacity: 0.7;
  margin-bottom: 10px;
}

/* button {
  padding: 6px 10px;
  cursor: pointer;
} */

button {
font-variation-settings : 'wght' 400, 'slnt' 0;
border : none;
appearance : none;
font-size : 20px;
line-height : 30px;
padding : 10px 30px;
border-radius : 9999px;
background : #191919;
color : #999;
margin-top : 1em;
transition : color 0.4s ease-out, background 0.4s ease-out;
cursor : pointer;
}
button:hover {
background : #00f;
color : #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid var(--table-border);
  padding: 8px;
}

thead {
  background-color: var(--table-header);
}

td[contenteditable="true"]:focus {
  outline: 2px solid var(--accent);
}

tr:nth-child(even) {
  opacity: 0.96;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  /* Ensure main content doesn't get hidden behind the footer */
}



/* @ MEDIA */

/* Legacy Syntax */
@media screen and (max-width: 600px) {
  /* General styles */
  body {
    font-size: 10px;
    padding: 10px;
  }

  /* Responsive Table Styles */
  table {
    width: 100%;
    display: block;      /* Allows the table to be scrollable if needed */
    overflow-x: auto;   /* Adds a horizontal scrollbar if table is too wide */
    white-space: nowrap; /* Prevents text wrapping in cells */
  }

  /* Force table cells to stack (optional alternative for data lists) */
  .stack-table tr, 
  .stack-table td {
    display: block;
    width: 100%;
  }
}

/* Modern Range Syntax (supported in all major browsers) */
@media (width <= 600px) {
  .container {
    padding: 5px;
  }
}

