/* style.css */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}

header {
  background-color: #0056b3;
  color: white;
  text-align: center;
  padding: 1em 0;
  margin-bottom: 2em;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

section {
  background-color: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  width: 80%;
  max-width: 800px;
}

section h2 {
  color: #0056b3;
  margin-top: 0;
}

.input-group {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
}

.input-group label {
  font-weight: bold;
  text-align: right;
  padding-right: 10px;
}

.input-group input[type="text"],
.input-group input[type="number"],
.input-group textarea {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box; /* Important to include padding in width */
}

.input-group textarea {
  resize: vertical;
  min-height: 100px;
}

.input-group button {
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  background-color: #0056b3;
  color: white;
  cursor: pointer;
  font-size: 1em;
  grid-column: 1 / span 2; /* Span both columns */
  justify-self: center;
  width: auto; /* Adjust width to content */
}

.input-group button:hover {
  background-color: #003d82;
}

#trait-list ul, #candidate-list ul {
  list-style: none;
  padding: 0;
}

#trait-list li, #candidate-list li {
  padding: 8px 0;
  border-bottom: 1px dotted #ccc;
}

#trait-list li:last-child, #candidate-list li:last-child {
  border-bottom: none;
}

#personality-scores p {
  margin: 5px 0;
}

footer {
  text-align: center;
  padding: 1em 0;
  background-color: #ddd;
  color: #555;
  margin-top: 2em;
}