/* styles.css */

/* Reset and base styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Arial', sans-serif;
  background-color: #fff; /* Default: white background */
  color: #000; /* Default: black text */
}

/* Full-screen container using flex layout */
#container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Header (settings panel) */
header#settings {
  padding: 10px;
  text-align: center;
  font-size: 1.5em;
}

#settings-panel label {
  margin-right: 5px;
}

#settings-panel input {
  margin-right: 15px;
  font-size: 1em;
}

/* Main content: center items both horizontally and vertically */
main#main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Display area for collections and active selections */
.display {
  font-size: 10em;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Buffer area: shows the accumulated message (no label) */
.buffer {
  font-size: 8em;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Start button styling */
#controls button {
  font-size: 2em;
  padding: 10px 20px;
  border: none;
  background-color: #000;
  color: #fff;
  cursor: pointer;
  border-radius: 5px;
}

/* Footer styling: theme selector (left) and instructions link (right) */
footer {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  font-size: 1.2em;
}

#theme-selector {
  margin-left: 10px;
}

#instructions {
  margin-right: 10px;
}

#instructions a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

/* Active selection styling: underline with a thick black line */
.display u {
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
}

/* Themes */

/* High Contrast: Black background, white text */
.high-contrast {
  background-color: #000;
  color: #fff;
}

.high-contrast #controls button {
  background-color: #fff;
  color: #000;
}

/* Inverted: Yellow background, black text */
.inverted {
  background-color: #ff0;
  color: #000;
}

.inverted #controls button {
  background-color: #000;
  color: #ff0;
}

/* Responsive scaling for smaller screens */
@media (max-width: 600px) {
  .display {
    font-size: 10em;
  }
  .buffer {
    font-size: 8em;
  }
  #controls button {
    font-size: 1.5em;
  }
  header#settings {
    font-size: 1.2em;
  }
  footer {
    font-size: 1em;
  }
}
