*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light dark;
  /* Allows browser to apply default light/dark styles */
  --light-text: #000000;
  --dark-text: #ffffff;
  --light-const-text: var(--dark-text);
  --dark-const-text: var(--light-text);
  --light-bg: #eeeeee;
  --dark-bg: #222222;
}

body {
  font-size: 1.2em;
  /* Increases the font size of all text within the body by 20% relative to its parent (which is the html element's font size). */
  background-color: light-dark(#fefefe, #111111) !important;
}

.title {
  font-size: 2.5em;
  text-align: center;
  color: light-dark(var(--light-text), var(--dark-text));
  margin-bottom: 0.5em;
}

.titleh2 {
  font-size: 1.5em;
  text-align: center;
  color: light-dark(var(--light-text), var(--dark-text));
  margin-bottom: 0.5em;
}

span {
  color: light-dark(var(--light-text), var(--dark-text));
}

#drop-zone {
  border: 2px dashed #ccc;
  padding: 20px;
  text-align: center;
  font-size: 1.5em;
  font-family: sans-serif;
  min-height: 150px;
  justify-content: center;
}

#drop-zone.dragging {
  background-color: rgba(125, 125, 125, 0.50);
  border-color: #007bff;
}

.status-bar {
  position: fixed;
  /* Makes the element stay in place even when scrolling */
  bottom: 0;
  /* Positions the element at the very bottom of the viewport */
  left: 0;
  /* Aligns the element to the left edge */
  width: 100%;
  /* Makes the element span the full width of the viewport */
  background-color: light-dark(#333, #6c6c6c);
  ;
  /* Sets a background color */
  padding: 10px;
  /* Adds some padding around the content */
  text-align: center;
  /* Centers the text */
  z-index: 1000;
  /* Ensures the status bar appears above other content */
  color: light-dark(var(--light-const-text), var(--dark-const-text));
}

#output {
  width: 50%;
  height: 50%;
  /*text-align: center; */
  background-color: light-dark(var(--light-bg), var(--dark-bg));
  ;
  /* Sets a background color */
  color: light-dark(var(--light-text), var(--dark-text));
}

button {
  background-color: blue;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  margin: 5px;
  color: light-dark(var(--light-const-text), var(--light-const-text));
}

button:disabled {
  color: #222222;
}

select {
  color: light-dark(var(--light-text), var(--dark-text));
  background-color: light-dark(var(--light-bg), var(--dark-bg));
  ;
  /* Sets a background color */
}

input {
  color: light-dark(var(--light-text), var(--dark-text));
  background-color: light-dark(var(--light-bg), var(--dark-bg));
  ;
  /* Sets a background color */
  border-width: 1px;
  border-style: solid;
}

.blockCenter {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 10px;
}

/* Styling for a standalone circled number */
.circle-step-number {
  /* Sizing and Shape */
  display: inline-flex;
  /* Use inline-flex to allow the element to sit nicely with text */
  justify-content: center;
  align-items: center;
  width: 60px;
  /* Width of the circle */
  height: 60px;
  /* Height of the circle (must match width for a perfect circle) */
  border-radius: 50%;
  /* Makes it a perfect circle */

  /* Styling */
  background-color: #4CAF50;
  /* Circle background color (Green) */
  color: white;
  /* Number/text color */
  font-weight: 700;
  /* Boldness for visibility */
  font-size: 32px;
  /* Large number size */
  line-height: 1;
  /* Ensures the number is centered vertically */
  text-align: center;
  /* Ensures the number is centered horizontally */

  /* Spacing and Visual Effect */
  margin-right: 15px;
  /* Space between the number and the text that follows */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  /* More prominent shadow */
}

/* General Table Styling */
.styled-table {
  width: 80%;
  border-collapse: collapse;
  /* Removes space between borders */
  margin: 25px 0;
  font-size: 1em;
  font-family: sans-serif;
  min-width: 400px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

/* Header Styling (Applies to all <th> cells) */
.styled-table thead th {
  background-color: #4CAF50;
  /* Darker background for headers */
  color: #ffffff;
  text-align: left;
  padding: 12px 15px;
}

/* Data Cell Styling */
.styled-table tbody td {
  padding: 12px 15px;
  border: 1px solid #dddddd;
  /* Light border around cells */
}

/* --- THE KEY TO ALTERNATING ROWS --- */

/* Default row background (Odd rows) */
.styled-table tbody tr {
  background-color: rgba(125, 125, 125, 0.75);
}

/* Lighter background for EVEN rows (2nd, 4th, 6th, etc.) */
.styled-table tbody tr:nth-child(even) {
  background-color: rgba(125, 125, 125, 0.95);
}

/* Hover effect for a better user experience (Optional) */
.styled-table tbody tr:hover {
  background-color: blue;
}

/* --- NEW STYLE TO HIDE THE TOP-LEFT CELL --- */
.styled-table thead th.invisible-header {
  /* Hides the cell content */
  background-color: transparent;
  color: transparent;
  box-shadow: none;

  /* Hides the borders */
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid #dddddd;
  /* Optional: Keep the bottom border for separation */
}

.grid-container {
  display: grid;
  /* Creates 2 columns, each taking up an equal fraction of the space */
  grid-template-columns: 1fr 1fr;
  /* Creates 2 rows, each taking up an equal fraction of the space */
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  /* Adds space between the items */
  /* width: 300px; /* Optional: set container size */

  /* Alignment properties for items inside the grid */
  align-items: center;
  /* Aligns items vertically in their cells */
}

.grid-container2X1 {
  display: grid;
  /* Creates 2 columns, each taking up an equal fraction of the space */
  grid-template-columns: 1fr;
  /* Creates 2 rows, each taking up an equal fraction of the space */
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  /* Adds space between the items */
  /* width: 300px; /* Optional: set container size */

  /* Alignment properties for items inside the grid */
  align-items: center;
  /* Aligns items vertically in their cells */
}

.item {
  padding: 2px;
}