.hidden {
  display: none;
}

body {
  background-color: black;
  color: white;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  line-height: 1.4;
}

.maindiv {
  width: 30%;
  margin: 0 auto; /* Centers the form horizontally */
}

.maindiv h1 {
  text-align: center; /* Centers the heading horizontally */
}

.maindiv div {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.resultdiv {
  width: 80%;
  margin: 0 auto; /* Centers the form horizontally */
}

.resultdiv h1 {
  text-align: center; /* Centers the heading horizontally */
}

.resultdiv div {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

#result p {
  text-align: center;
}
.good {
  color: #00ff00;
}

.bad {
  color: red;
}

input[type="text"],
input[type="number"] {
  background-color: black;
  color: white;
  border: 1px solid white;
  padding: 5px;
  font-family: "Courier New", Courier, monospace;
}

#leaderboard {
  text-align: center;
}

#leaderboard h1,
#leaderboard ul {
  margin-bottom: 10px;
}

#leaderboard ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#config {
  font-family: Arial, sans-serif;
  max-width: 800px; /* Increase the max-width to allow more space */
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.config-section {
  margin-bottom: 20px;
}

.config-section h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #333;
}

.config-section ul {
  list-style: none;
  padding: 0;
}

.config-section ul li {
  font-size: 16px;
  margin: 5px 0;
  color: #555;
  white-space: nowrap; /* Prevent text from wrapping */
  overflow: hidden;
  text-overflow: ellipsis; /* Add ellipsis if the text overflows */
}

.config-section ul li strong {
  color: #000;
}

.error {
  color: red;
  min-height: 1.4em;
}

#ops,
#ranges {
  border: 1px solid white;
  margin: 0 0 10px 0;
}

#ops label {
  display: block;
}

/* .maindiv div sets display: flex, which outranks the generic .hidden rule. */
#ranges .hidden {
  display: none;
}

#start-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}